/* EvoLLM — layout: one reading column of ledger rows, a sticky lane index, and a measured scoreboard table.
   The page is a record, so the design borrows from filings: tight rules, tabular figures, stamped status.
   Look: Yottabyte Services brand (yottabyte.services) — Inter + IBM Plex Mono, ink/night/accent palette,
   a night site bar with the Y mark, and a night masthead band. */

/* Fonts: self-hosted, same files as yottabyte.services (SIL OFL 1.1, licenses in assets/fonts/). */
@font-face { font-family: "Inter Variable"; font-style: normal; font-display: swap; font-weight: 100 900; src: url(fonts/inter-latin-ext-wght-normal.woff2) format("woff2-variations"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Inter Variable"; font-style: normal; font-display: swap; font-weight: 100 900; src: url(fonts/inter-latin-wght-normal.woff2) format("woff2-variations"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-display: swap; font-weight: 400; src: url(fonts/ibm-plex-mono-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-display: swap; font-weight: 500; src: url(fonts/ibm-plex-mono-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-display: swap; font-weight: 600; src: url(fonts/ibm-plex-mono-latin-600-normal.woff2) format("woff2"); }

/* Brand colors (from yottabyte.services global.css @theme). */
:root {
  --ink-brand: #0f172a;
  --night: #05080f;
  --night-2: #0c1322;
  --night-3: #131c2e;
  --brand-accent: #0a66c2;
  --brand-accent-light: #93c5fd;
  --signal: #f97316;

  --bg: #f4f6f9;
  --surface: #ffffff;
  --ink: #0f172a;
  --ink-2: #334155;
  --ink-3: #556274;
  --rule: #e2e7ee;
  --rule-strong: #c9d1dc;
  --accent: #0a66c2;
  --accent-soft: #e8f1fb;
  --confirmed: #1f6b4a;
  --confirmed-soft: #e3f1ea;
  --reported: #8a5a12;
  --reported-soft: #f6eddc;
  --rumor: #6b4f8f;
  --rumor-soft: #efe9f6;
  --measured: #084f97;
  --bar: #93c5fd;

  --font-display: "Inter Variable", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter Variable", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --step--1: 0.8125rem;
  --step-0: 0.9375rem;
  --step-1: 1.125rem;
  --step-2: 1.5rem;
  --step-3: 2.5rem;
  --radius: 10px;
  --max: 80rem;
}
/* Night tokens: the site bar and masthead always, the whole page in dark mode. */
.tone-night {
  --bg: #05080f; --surface: #0c1322; --ink: #f5f7fa; --ink-2: #c3cad6; --ink-3: #8d98a9;
  --rule: rgb(255 255 255 / 0.1); --rule-strong: rgb(255 255 255 / 0.2); --accent: #93c5fd; --accent-soft: #0f2340;
  --confirmed: #6fcf9f; --confirmed-soft: #10271d; --reported: #e2b061; --reported-soft: #2a2013;
  --rumor: #c0a6e6; --rumor-soft: #221a31; --measured: #93c5fd; --bar: #2c5a94;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #05080f; --surface: #0c1322; --ink: #f5f7fa; --ink-2: #c3cad6; --ink-3: #8d98a9;
    --rule: rgb(255 255 255 / 0.1); --rule-strong: rgb(255 255 255 / 0.2); --accent: #93c5fd; --accent-soft: #0f2340;
    --confirmed: #6fcf9f; --confirmed-soft: #10271d; --reported: #e2b061; --reported-soft: #2a2013;
    --rumor: #c0a6e6; --rumor-soft: #221a31; --measured: #93c5fd; --bar: #2c5a94;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #05080f; --surface: #0c1322; --ink: #f5f7fa; --ink-2: #c3cad6; --ink-3: #8d98a9;
  --rule: rgb(255 255 255 / 0.1); --rule-strong: rgb(255 255 255 / 0.2); --accent: #93c5fd; --accent-soft: #0f2340;
  --confirmed: #6fcf9f; --confirmed-soft: #10271d; --reported: #e2b061; --reported-soft: #2a2013;
  --rumor: #c0a6e6; --rumor-soft: #221a31; --measured: #93c5fd; --bar: #2c5a94;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 64px; font-feature-settings: "cv11", "ss01"; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--step-0)/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration-color: var(--rule-strong); text-underline-offset: 3px; }
a:hover { color: var(--accent); text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: clamp(16px, 4vw, 40px); }

/* Site bar: same slim night header as yottabyte.services, Y mark + lockup linking home. */
.sitebar { background: var(--night); border-bottom: 1px solid rgb(255 255 255 / 0.1); }
.sitebar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 56px; }
.lockup { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; }
.lockup:hover { color: #fff; }
.lockup svg { flex: none; }
.lockup .words { display: flex; flex-direction: column; line-height: 1; white-space: nowrap; }
.lockup .top { font: 600 0.95rem/1 var(--font-body); letter-spacing: 0.12em; }
.lockup .sub { margin-top: 3px; font: 500 0.55rem/1 var(--font-mono); letter-spacing: 0.28em; color: var(--brand-accent-light); }
.sitebar .home { font-size: 0.85rem; color: #c3cad6; text-decoration: none; white-space: nowrap; }
.sitebar .home:hover { color: #fff; }
@media (max-width: 439px) { .lockup .words { display: none; } }

/* Masthead: night band, like the yottabyte.services hero. */
.masthead { padding-block: 44px 32px; border-bottom: 1px solid var(--rule); background: var(--night); color: var(--ink); }
.masthead .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: end; }
.brand { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.brand h1 { margin: 0; font: 650 var(--step-3)/1 var(--font-display); letter-spacing: -0.03em; }
.brand .by { font: 500 var(--step--1)/1 var(--font-mono); color: var(--brand-accent-light); letter-spacing: 0.08em; text-transform: uppercase; }
.thesis { margin: 14px 0 0; max-width: 62ch; color: var(--ink-2); font-size: var(--step-1); line-height: 1.5; text-wrap: balance; }
.runinfo { text-align: right; font: 400 var(--step--1)/1.6 var(--font-mono); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.runinfo strong { color: var(--ink); font-weight: 500; }
.preview-flag { display: inline-block; margin-bottom: 10px; padding: 2px 9px; border: 1px solid var(--rule-strong); border-radius: 99px; font: 500 11px/1.4 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }

/* Legend */
.legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 22px; font-size: var(--step--1); color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }

/* Lane index */
.lanes { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule); }
.lanes .wrap { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-block: 8px; }
.lanes a { flex: none; padding: 6px 12px; border-radius: 99px; font-size: var(--step--1); font-weight: 500; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.lanes a:hover { background: var(--accent-soft); color: var(--accent); }
.lanes a .n { font-family: var(--font-mono); color: var(--ink-3); margin-left: 4px; font-variant-numeric: tabular-nums; }

/* Sections */
main { padding-block: 8px 80px; }
section.lane { padding-top: 44px; }
.lane-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 24px; align-items: end; padding-bottom: 14px; border-bottom: 2px solid var(--ink); }
.lane-head .layer::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 1px; background: var(--signal); vertical-align: 1px; }
.lane-head h2 { margin: 0; font: 650 var(--step-2)/1.15 var(--font-display); letter-spacing: -0.02em; text-wrap: balance; }
.lane-head .layer { font: 500 11px/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.lane-head p { margin: 6px 0 0; color: var(--ink-2); max-width: 70ch; font-size: var(--step--1); }
.controls { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.seg { display: inline-flex; border: 1px solid var(--rule-strong); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.seg button, .chip-btn {
  font: 500 var(--step--1)/1 var(--font-body); color: var(--ink-2); background: transparent; border: 0; padding: 8px 12px; cursor: pointer;
}
.seg button + button { border-left: 1px solid var(--rule); }
.seg button[aria-pressed="true"] { background: var(--brand-accent); color: #fff; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; padding-block: 12px; }
.chip-btn { border: 1px solid var(--rule); border-radius: 99px; padding: 6px 11px; background: var(--surface); }
.chip-btn[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

/* Ledger rows */
.ledger { list-style: none; margin: 0; padding: 0; }
.row { display: grid; grid-template-columns: 104px minmax(0, 1fr) auto; gap: 4px 18px; padding: 13px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.row .title { font-weight: 500; line-height: 1.4; min-width: 0; overflow-wrap: anywhere; }
.row .title a { text-decoration: none; }
.row .title a:hover { text-decoration: underline; }
.row .meta { grid-column: 2; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: var(--step--1); color: var(--ink-3); }
.row .meta .src { color: var(--ink-2); font-weight: 500; }
.row time { grid-column: 3; grid-row: 1; font: 400 var(--step--1)/1.4 var(--font-mono); color: var(--ink-3); white-space: nowrap; font-variant-numeric: tabular-nums; text-align: right; }
.tag { font: 500 11px/1 var(--font-mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-2); padding: 3px 6px; border-radius: 3px; background: var(--bg); border: 1px solid var(--rule); }
.tag.retirement, .tag.pricing { color: var(--reported); border-color: color-mix(in srgb, var(--reported) 35%, transparent); background: var(--reported-soft); }
.empty { padding: 18px 0; color: var(--ink-3); font-size: var(--step--1); }

/* Status stamps: form encodes certainty. Solid = confirmed, half = reported, dashed = rumor. */
.stamp { justify-self: start; display: inline-flex; align-items: center; gap: 6px; font: 600 10.5px/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 7px; border-radius: 3px; white-space: nowrap; }
.stamp::before { content: ""; width: 7px; height: 7px; border-radius: 50%; }
.stamp.confirmed { color: var(--confirmed); background: var(--confirmed-soft); }
.stamp.confirmed::before { background: var(--confirmed); }
.stamp.reported { color: var(--reported); background: var(--reported-soft); }
.stamp.reported::before { background: linear-gradient(90deg, var(--reported) 50%, transparent 50%); border: 1px solid var(--reported); width: 5px; height: 5px; }
.stamp.rumor { color: var(--rumor); background: transparent; border: 1px dashed var(--rumor); }
.stamp.rumor::before { border: 1px dashed var(--rumor); width: 5px; height: 5px; }
.stamp.measured { color: var(--measured); background: transparent; border: 1px solid var(--rule-strong); }
.stamp.measured::before { background: var(--measured); border-radius: 1px; }

/* Two-up grid for side lanes */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 48px; }

/* Watch box: retirements and reprices */
.watch { margin-top: 18px; border: 1px solid var(--rule-strong); border-radius: var(--radius); background: var(--surface); padding: 14px 18px; }
.watch h3 { margin: 0 0 6px; font: 600 var(--step--1)/1.3 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--reported); }
.watch ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.watch li { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 12px; font-size: var(--step--1); }
.watch li time { font-family: var(--font-mono); color: var(--ink-3); }

/* Open-weight shelf */
.shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 32px; }
.shelf-lab { padding: 14px 0; border-bottom: 1px solid var(--rule); min-width: 0; }
.shelf-lab h3 { margin: 0 0 2px; font: 600 var(--step-0)/1.3 var(--font-body); display: flex; justify-content: space-between; gap: 8px; }
.shelf-lab h3 a { font: 400 var(--step--1)/1.3 var(--font-mono); color: var(--ink-3); }
.shelf-lab .why { margin: 0 0 8px; font-size: var(--step--1); color: var(--ink-3); }
.shelf-lab ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.shelf-lab li { display: flex; justify-content: space-between; gap: 10px; font: 400 var(--step--1)/1.45 var(--font-mono); min-width: 0; }
.shelf-lab li a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.shelf-lab li time { color: var(--ink-3); flex: none; font-variant-numeric: tabular-nums; }

/* Scoreboard */
.table-scroll { overflow-x: auto; margin-top: 4px; }
table.board { width: 100%; border-collapse: collapse; font-size: var(--step--1); font-variant-numeric: tabular-nums; min-width: 760px; }
.board th { text-align: left; font: 500 11px/1.2 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); padding: 12px 10px 8px; border-bottom: 1px solid var(--rule-strong); white-space: nowrap; }
.board th.num, .board td.num { text-align: right; }
.board td { padding: 10px; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.board td.model { font-weight: 500; }
.board td.model small { display: block; font-weight: 400; color: var(--ink-3); font-size: 11.5px; }
.board td a { text-decoration: none; border-bottom: 1px dotted var(--rule-strong); }
.board td a:hover { border-bottom-color: currentColor; }
.board .rank { color: var(--ink-3); font-family: var(--font-mono); width: 2.5em; }
.idx { display: grid; grid-template-columns: 1fr 3.2em; gap: 8px; align-items: center; min-width: 140px; }
.idx .track { display: block; height: 6px; background: var(--rule); border-radius: 3px; overflow: hidden; }
.idx .fill { display: block; height: 100%; background: var(--bar); }
.idx .fill.top { background: var(--accent); }
.weights { font: 500 11px/1 var(--font-mono); letter-spacing: 0.04em; text-transform: uppercase; padding: 3px 6px; border-radius: 3px; border: 1px solid var(--rule-strong); color: var(--ink-2); }
.weights.open { color: var(--confirmed); border-color: color-mix(in srgb, var(--confirmed) 40%, transparent); }
tr.shelf-row td { background: var(--accent-soft); }
.na { color: var(--ink-3); }
.footnote { margin-top: 12px; font-size: var(--step--1); color: var(--ink-3); max-width: 80ch; }

/* Source map */
.map { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px 40px; margin-top: 18px; }
.map-layer h3 { margin: 0; font: 650 var(--step-1)/1.3 var(--font-display); letter-spacing: -0.01em; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.map-layer > p { margin: 4px 0 10px; font-size: var(--step--1); color: var(--ink-2); }
.map-layer ul { list-style: none; margin: 0; padding: 0; }
.map-layer li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 7px 0; border-top: 1px solid var(--rule); font-size: var(--step--1); }
.map-layer li .note { grid-column: 1 / -1; color: var(--ink-3); }
.wired { font: 500 10.5px/1 var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; padding: 3px 6px; border-radius: 3px; align-self: center; }
.wired.on { color: var(--confirmed); background: var(--confirmed-soft); }
.wired.off { color: var(--ink-3); border: 1px solid var(--rule); }
.wired.fail { color: var(--reported); background: var(--reported-soft); }

footer { border-top: 1px solid var(--rule); padding-block: 28px 48px; color: var(--ink-3); font-size: var(--step--1); }
footer p { margin: 0 0 6px; max-width: 80ch; }

@media (max-width: 860px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .masthead .wrap { grid-template-columns: minmax(0, 1fr); }
  .runinfo { text-align: left; }
  .lane-head { grid-template-columns: minmax(0, 1fr); }
  .controls { justify-content: flex-start; }
}
@media (max-width: 560px) {
  .row { grid-template-columns: minmax(0, 1fr) auto; }
  .row .stamp { grid-column: 1; grid-row: 1; }
  .row time { grid-column: 2; grid-row: 1; }
  .row .title { grid-column: 1 / -1; }
  .row .meta { grid-column: 1 / -1; }
  .watch li { grid-template-columns: minmax(0, 1fr); gap: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .lanes a, .chip-btn, .seg button { transition: background-color .15s, color .15s; }
}
