/* Windward Capital — the Session. Spec: docs/superpowers/specs/2026-07-26-capital-session-design.md */

:root {
  color-scheme: light dark;
  --g: #eff1f4;
  --ink: #161d2b;
  --mut: #4d5870;
  --line: rgba(22, 29, 43, 0.16);
  --rule: rgba(22, 29, 43, 0.3);
  --cell: rgba(255, 255, 255, 0.6);
  --gold: #c9a25e;
  --gold-ink: #8a6b39;
  --up: #1e6f4f;
  --down: #9c3a30;
  --hf-fill: #202e4d;
  --hf-stroke: transparent;
  --hf-sw: 0;
  --hf-dot: #c9a25e;
  --dv-stroke: #202e4d;
}

@media (prefers-color-scheme: dark) {
  :root {
    --g: #0f141d;
    --ink: #e6e9ef;
    --mut: #97a1b5;
    --line: rgba(230, 233, 239, 0.14);
    --rule: rgba(230, 233, 239, 0.3);
    --cell: rgba(255, 255, 255, 0.04);
    --gold-ink: #d9bd85;
    --up: #5fbf9a;
    --down: #e08a7e;
    --hf-fill: transparent;
    --hf-stroke: #d9bd85;
    --hf-sw: 1.6;
    --hf-dot: #d9bd85;
    --dv-stroke: #d9bd85;
  }
}
:root[data-theme="light"] {
  --dv-stroke: #202e4d;
  --g: #eff1f4;
  --ink: #161d2b;
  --mut: #4d5870;
  --line: rgba(22, 29, 43, 0.16);
  --rule: rgba(22, 29, 43, 0.3);
  --cell: rgba(255, 255, 255, 0.6);
  --gold-ink: #8a6b39;
  --up: #1e6f4f;
  --down: #9c3a30;
  --hf-fill: #202e4d;
  --hf-stroke: transparent;
  --hf-sw: 0;
  --hf-dot: #c9a25e;
}
:root[data-theme="dark"] {
  --g: #0f141d;
  --ink: #e6e9ef;
  --mut: #97a1b5;
  --line: rgba(230, 233, 239, 0.14);
  --rule: rgba(230, 233, 239, 0.3);
  --cell: rgba(255, 255, 255, 0.04);
  --gold-ink: #d9bd85;
  --up: #5fbf9a;
  --down: #e08a7e;
  --hf-fill: transparent;
  --hf-stroke: #d9bd85;
  --hf-sw: 1.6;
  --hf-dot: #d9bd85;
  --dv-stroke: #d9bd85;
}

@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(fonts/Geist.woff2) format("woff2");
}
@font-face {
  font-family: "EB Garamond";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(fonts/EBGaramond-Roman.woff2) format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/PlexMono-Regular.woff2) format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/PlexMono-Medium.woff2) format("woff2");
}

* { box-sizing: border-box; margin: 0; }

body {
  font-family: "Geist", Helvetica, Arial, sans-serif;
  background: var(--g);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.sflag .sf { fill: #f7f5ef; stroke: var(--dv-stroke); stroke-width: 1.4; }
.sflag .sq { fill: #202e4d; }
.hflag .f { fill: var(--hf-fill); stroke: var(--hf-stroke); stroke-width: var(--hf-sw); }
.hflag .d { fill: var(--hf-dot); }

/* top bar */
.top {
  max-width: 920px;
  margin: 0 auto;
  padding: 24px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--rule);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-name {
  font-family: "EB Garamond", Georgia, serif;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
}
.top-right { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.top-link {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mut);
  text-decoration: none;
  white-space: nowrap;
}
.top-link:hover { color: var(--gold-ink); }

/* the lamp */
.lamp { display: flex; align-items: center; gap: 2px; }
.lamp-opt {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: none;
  border: 0;
  color: var(--mut);
  padding: 7px 7px;
  cursor: pointer;
}
.lamp-opt:hover { color: var(--ink); }
.lamp-opt:focus-visible, a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.lamp-opt[aria-pressed="true"] { color: var(--gold-ink); }

/* hero */
main { max-width: 920px; margin: 0 auto; padding: 0 30px; }
.hero { padding: 64px 0 44px; }
.hero-eyebrow {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--gold-ink);
}
.hero-h1 {
  margin-top: 14px;
  font-weight: 600;
  font-size: clamp(30px, 4.8vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 20ch;
  text-wrap: balance;
}
.hero-sub { margin-top: 16px; font-size: 16px; color: var(--mut); max-width: 52ch; }

/* sessions & marks */
.board { border-top: 1px solid var(--rule); }
.board-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 14px 0 10px; }
.board-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--mut);
  text-transform: uppercase;
}
.board-stamp { font-family: "IBM Plex Mono", monospace; font-size: 10px; letter-spacing: 0.08em; color: var(--mut); }
.b-row {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr 0.6fr 1fr;
  gap: 18px;
  align-items: baseline;
  padding: 13px 8px;
  border-bottom: 1px solid var(--line);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}
.b-row--head { font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mut); border-bottom-color: var(--rule); }
.b-sess { color: var(--ink); }
.b-sess b { display: block; font-weight: 400; color: var(--mut); font-size: 11px; }
.b-hours, .b-local { color: var(--mut); }
.b-hours i, .b-hours em { font-style: normal; opacity: 0.7; }
.b-state { font-size: 10.5px; letter-spacing: 0.12em; }
.b-state.is-open { color: var(--up); }
.b-state.is-closed { color: var(--mut); }
.num { text-align: right; }
.b-mark b { font-weight: 500; display: block; }
.b-mark i { font-style: normal; font-size: 11px; display: block; }
.b-mark .chg-up { color: var(--up); }
.b-mark .chg-down { color: var(--down); }
.board-foot { padding: 12px 8px 0; font-family: "IBM Plex Mono", monospace; font-size: 9.5px; letter-spacing: 0.06em; color: var(--mut); }

/* flagship */
.flagship {
  margin-top: 56px;
  background: var(--cell);
  border: 1px solid var(--line);
  padding: 30px 32px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
}
.fs-kick { font-family: "IBM Plex Mono", monospace; font-size: 10.5px; letter-spacing: 0.2em; color: var(--gold-ink); text-transform: uppercase; }
.fs-name { margin-top: 10px; font-weight: 600; font-size: 27px; letter-spacing: -0.01em; }
.fs-desc { margin-top: 8px; font-size: 14.5px; color: var(--mut); max-width: 48ch; }
.fs-link {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11.5px;
  color: var(--gold-ink);
  text-decoration: none;
  white-space: nowrap;
}
.fs-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* contact */
.contact { margin-top: 56px; border-top: 1px solid var(--rule); padding-top: 18px; display: flex; align-items: baseline; gap: 24px; }
.contact-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--mut);
  text-transform: uppercase;
}
.contact-link { font-size: 15px; color: var(--gold-ink); text-decoration: none; }
.contact-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* footer */
.foot {
  max-width: 920px;
  margin: 0 auto;
  padding: 56px 30px 64px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  align-items: center;
  justify-content: space-between;
}
.plate { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.plate-text {
  font-family: "EB Garamond", Georgia, serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--mut);
}
.plate-diamond { width: 5px; height: 5px; background: var(--gold); transform: rotate(45deg); }
.plate-link {
  font-family: "EB Garamond", Georgia, serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--gold-ink);
  text-decoration: none;
  text-transform: uppercase;
}
.plate-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot-copy {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--mut);
  text-transform: uppercase;
}

/* motion, small screens, print */
@media (prefers-reduced-motion: no-preference) {
  .lamp-opt, .top-link, .fs-link, .contact-link { transition: color 0.15s ease; }
  .b-mark b.ticked { animation: tick 0.5s ease; }
  @keyframes tick { from { color: var(--gold-ink); } to { color: inherit; } }
}
@media (max-width: 760px) {
  .b-row { grid-template-columns: 1fr 1fr; }
  .b-row--head { display: none; }
  .b-state, .b-mark { text-align: left; }
  .num { text-align: left; }
  .flagship { grid-template-columns: 1fr; }
}
@media print {
  :root {
    --g: #ffffff; --ink: #161d2b; --mut: #4d5870;
    --line: rgba(22, 29, 43, 0.2); --rule: rgba(22, 29, 43, 0.4); --cell: #ffffff;
    --gold-ink: #8a6b39; --up: #1e6f4f; --down: #9c3a30;
    --hf-fill: #202e4d; --hf-stroke: transparent; --hf-sw: 0; --hf-dot: #c9a25e;
  }
  .lamp { display: none; }
}

/* the wall — the one element that breaks the design on purpose.
   A trading-floor board is an object, not a surface: it stays black in
   both themes, and its prices burn red and green. */
.wall {
  background: #0a0d12;
  border: 1px solid #1c232e;
  border-radius: 2px;
  padding: 14px 16px 6px;
  margin-top: 6px;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.5);
}
.wall-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-bottom: 10px; border-bottom: 1px solid #1c232e; }
.wall-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px; font-weight: 500; letter-spacing: 0.22em;
  color: #8a93a6; text-transform: uppercase;
}
.board-live { display: flex; align-items: center; gap: 8px; font-family: "IBM Plex Mono", monospace; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: #8a93a6; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #566072; flex: none; }
.board-live.is-live { color: #28c76f; }
.board-live.is-live .live-dot { background: #28c76f; box-shadow: 0 0 8px rgba(40, 199, 111, 0.8); }
.board-live.is-stale .live-dot { background: transparent; border: 1px solid #8a93a6; }
@media (prefers-reduced-motion: no-preference) {
  .board-live.is-live .live-dot { animation: breathe 2.2s ease-in-out infinite; }
  @keyframes breathe { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
}
.wall-cols {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0 14px;
  padding-top: 10px;
}
.wall-col { min-width: 0; }
.wall-col-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px; font-weight: 500; letter-spacing: 0.18em;
  color: #566072; text-transform: uppercase;
  padding: 2px 0 6px; border-bottom: 1px solid #161d26;
}
.wall-scroll {
  max-height: 300px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #2a3441 transparent;
}
.wall-scroll::-webkit-scrollbar { width: 4px; }
.wall-scroll::-webkit-scrollbar-thumb { background: #2a3441; border-radius: 2px; }
.wrow {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 8px;
  padding: 7px 2px;
  border-bottom: 1px solid #10151d;
  font-family: "IBM Plex Mono", monospace;
  font-variant-numeric: tabular-nums;
}
.wrow-sym { font-size: 9.5px; letter-spacing: 0.05em; color: #8a93a6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wrow-px { grid-column: 1; font-size: 12px; font-weight: 500; color: #e8ecf3; }
.wrow-chg { grid-column: 2; grid-row: 2; font-size: 9.5px; text-align: right; align-self: center; }
.wrow.up .wrow-px { color: #28c76f; }
.wrow.down .wrow-px { color: #ff5b5b; }
.wrow.up .wrow-chg { color: rgba(40, 199, 111, 0.75); }
.wrow.down .wrow-chg { color: rgba(255, 91, 91, 0.75); }
@media (prefers-reduced-motion: no-preference) {
  .wrow-px.ticked { animation: burn 0.45s ease; }
  @keyframes burn { from { color: #ffffff; } }
}
@media (max-width: 1000px) { .wall-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 14px; } }
@media (max-width: 560px) { .wall-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.sessions { margin-top: 48px; border-top: 1px solid var(--rule); }
.sessions-label { padding: 14px 0 4px; }
.sessions .b-row { grid-template-columns: 1fr 1fr 1fr 0.6fr; }
