:root {
  --bg: #f7f7f5; --panel: #ffffff; --text: #1c1f24; --muted: #5f6672; --faint: #8a909a; --line: #e2e3e0; --grid: #ececea;
  --accent: #2f6fd6; --ok: #1f7a3f; --warn: #a15c00; --bad: #b42318; --bad-bg: #fdecea; --ok-bg: #e8f4ec;
  --m-spark: #2f6fd6; --m-glimmer: #c27803; --m-nemotron: #5a9216; --m-claude: #9b4f96;
  --bus: #0d9488; --eq: #2f6fd6; --ptr: #7c3aed;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121417; --panel: #1b1e23; --text: #e7e9ec; --muted: #a2a8b3; --faint: #737a85; --line: #2c3038; --grid: #262a31;
    --accent: #6ea2f7; --ok: #5cc785; --warn: #f0b44c; --bad: #f2776c; --bad-bg: #3a1f1d; --ok-bg: #18301f;
    --m-spark: #6ea2f7; --m-glimmer: #f0b44c; --m-nemotron: #8fcf4a; --m-claude: #e58fdf;
    --bus: #2dd4bf; --eq: #6ea2f7; --ptr: #a78bfa;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--accent); }
header.site { background: var(--panel); border-bottom: 1px solid var(--line); }
header.site .inner, main { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
header.site .inner { display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: center; padding-top: 14px; padding-bottom: 12px; }
header.site .brand { font-weight: 650; font-size: 15px; }
header.site nav { display: flex; gap: 4px 14px; flex-wrap: wrap; font-size: 15px; }
header.site nav a { text-decoration: none; color: var(--muted); padding: 2px 0; }
header.site nav a[aria-current="page"] { color: var(--text); border-bottom: 2px solid var(--accent); }
header.site .byline { margin-left: auto; color: var(--muted); font-size: 14px; }
main { padding-top: 24px; padding-bottom: 48px; }
h1 { font-size: clamp(24px, 4vw, 32px); line-height: 1.2; margin: 0 0 10px; letter-spacing: -0.01em; }
h2 { font-size: 21px; margin: 40px 0 8px; letter-spacing: -0.005em; }
h3 { font-size: 17px; margin: 0 0 6px; }
p { margin: 0 0 12px; }
.lede { font-size: 18px; max-width: 760px; }
.caveat { color: var(--muted); font-size: 15px; max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.ok { color: var(--ok); } .bad { color: var(--bad); } .warn { color: var(--warn); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.finding { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 20px; align-items: center; margin-top: 16px; }
.finding .num { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
@media (max-width: 760px) { .finding { grid-template-columns: 1fr; } }
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart text { fill: var(--muted); font: 12px system-ui, sans-serif; }
.chart .label { fill: var(--text); }
.chart .gridline { stroke: var(--grid); }
.chart .axis { stroke: var(--line); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--muted); margin: 8px 0 0; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.swatch { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 7px 10px 7px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 550; font-size: 13px; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; }
.asks li { margin-bottom: 10px; }
footer { color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); margin-top: 48px; padding-top: 16px; }
.pill { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.pill.planned { border-style: dashed; }

/* How it works */
.pipeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; counter-reset: step; margin-top: 16px; }
.step { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px 14px; counter-increment: step; }
.step::before { content: counter(step); position: absolute; top: 12px; right: 14px; font-size: 13px; color: var(--faint); font-variant-numeric: tabular-nums; }
.step.loop { border-style: dashed; }
.step h3 { padding-right: 20px; }
.step p { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.step a { font-size: 14px; }
.flow { font-size: 14px; color: var(--muted); margin: 10px 0 0; }

/* Subtle prototype label in every page header */
.proto { font-size: 12px; padding: 1px 9px; border-radius: 999px; border: 1px dashed var(--faint); color: var(--muted); text-decoration: none; white-space: nowrap; }
.proto:hover { color: var(--text); border-color: var(--muted); }
.layers td:first-child { white-space: nowrap; font-weight: 550; }
.story { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 14px; }
.story .card h3 { margin: 0 0 6px; font-size: 16px; }
.story .card p { margin: 0 0 8px; }
/* Public edition: the four-box flow on the overview */
.flow { display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; margin: 14px 0 6px; }
.flow .box { flex: 1 1 150px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.flow .box b { display: block; margin-bottom: 4px; }
.flow .arrow { align-self: center; color: var(--faint); }
figure.drawing { margin: 14px 0 0; }
figure.drawing img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
