@font-face { font-family: "Hanken Grotesk"; font-weight: 100 900; font-display: swap; src: url("fonts/hanken-grotesk-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Hanken Grotesk"; font-weight: 100 900; font-display: swap; src: url("fonts/hanken-grotesk-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0; }
@font-face { font-family: "Newsreader"; font-weight: 200 800; font-display: swap; src: url("fonts/newsreader-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Newsreader"; font-weight: 200 800; font-display: swap; src: url("fonts/newsreader-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0; }
@font-face { font-family: "Red Hat Mono"; font-weight: 300 700; font-display: swap; src: url("fonts/red-hat-mono-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Hanken Fallback"; src: local("Arial"), local("Liberation Sans"); size-adjust: 101.7%; ascent-override: 98.3%; descent-override: 29.8%; line-gap-override: 0%; }
@font-face { font-family: "Newsreader Fallback"; src: local("Times New Roman"), local("Liberation Serif"); size-adjust: 108.3%; ascent-override: 67.9%; descent-override: 24.5%; line-gap-override: 0%; }

:root {
  --font: "Hanken Grotesk", "Hanken Fallback", system-ui, sans-serif;
  --serif: "Newsreader", "Newsreader Fallback", Georgia, serif;
  --mono: "Red Hat Mono", ui-monospace, Menlo, Consolas, monospace;
  --bg: #f4efe6; --surface: #fbf8f2; --inset: #ede6d9; --line: #ddd3c2;
  --ink: #2a231c; --muted: #6b5f51; --accent: #b04a22; --on-accent: #ffffff;
  --ok: #2f6b4f; --warn: #7a5410; --bad: #9c2a21;
  --gutter: 16px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1a1511; --surface: #231d18; --inset: #2d2520; --line: #3b3128;
    --ink: #ede3d3; --muted: #b3a491; --accent: #e08a5c; --on-accent: #1a1511;
    --ok: #7fc19c; --warn: #e0b45c; --bad: #ef8f85;
  }
}
:root[data-theme="dark"] {
  --bg: #1a1511; --surface: #231d18; --inset: #2d2520; --line: #3b3128;
  --ink: #ede3d3; --muted: #b3a491; --accent: #e08a5c; --on-accent: #1a1511;
  --ok: #7fc19c; --warn: #e0b45c; --bad: #ef8f85;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: var(--gutter); top: -60px; background: var(--surface); border: 1px solid var(--line); padding: 8px 12px; border-radius: 6px; z-index: 10; }
.skip:focus { top: 8px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 680px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.12; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: clamp(38px, 6.4vw, 68px); }
h2 { font-size: clamp(28px, 4vw, 40px); }
h3 { font-size: 22px; }
p { margin: 0 0 1em; }
code, .mono { font-family: var(--mono); font-size: 0.88em; }
code { background: var(--inset); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; }
.muted { color: var(--muted); }
.label { font-size: 14px; color: var(--muted); font-weight: 500; margin: 0 0 12px; }

/* header */
.top { border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 24px; min-height: 64px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 10px; font: 500 24px var(--serif); color: var(--ink); text-decoration: none; margin-right: auto; }
.brand img { width: 28px; height: 28px; }
.nav { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-size: 15px; padding: 10px 0; }
.nav a:hover { color: var(--accent); }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--accent); }
.theme { background: none; border: 1px solid var(--line); color: var(--ink); border-radius: 6px; min-height: 40px; padding: 0 12px; font: 500 14px var(--font); cursor: pointer; }
.theme:hover { border-color: var(--accent); }

.btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 6px; font: 600 16px var(--font); text-decoration: none; border: 1px solid var(--line); color: var(--ink); background: var(--surface); transition: background 120ms, border-color 120ms; }
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn.primary:hover { filter: brightness(1.08); }
.row { display: flex; gap: 12px; flex-wrap: wrap; }

/* hero */
.hero { padding-top: 72px; padding-bottom: 56px; }
.hero h1 { max-width: 14ch; }
.hero .lede { font-size: 20px; max-width: 34em; margin: 24px 0 32px; color: var(--ink); }
.hero .fine { margin-top: 20px; font-size: 14px; color: var(--muted); }

section { padding: 64px 0; }
section + section { border-top: 1px solid var(--line); }
.head { max-width: 680px; margin-bottom: 40px; }
.head p { margin-top: 16px; color: var(--muted); }

/* pipeline: a numbered rail, not cards */
.rail { list-style: none; margin: 0; padding: 0; counter-reset: s; border-left: 1px solid var(--line); margin-left: 12px; }
.rail li { counter-increment: s; position: relative; padding: 0 0 28px 36px; max-width: 720px; }
.rail li::before { content: counter(s); position: absolute; left: -13px; top: 0; width: 25px; height: 25px; display: grid; place-items: center; font: 600 13px var(--mono); background: var(--bg); border: 1px solid var(--line); border-radius: 4px; color: var(--ink); }
.rail li.exec::before { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.rail h3 { font-family: var(--font); font-size: 17px; font-weight: 600; margin-bottom: 4px; letter-spacing: 0; }
.rail p { margin: 0; color: var(--muted); }
.rail .who { font: 500 12px var(--mono); color: var(--muted); }

/* screenshots */
figure { margin: 0; }
.shot { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); }
.shot img { display: block; width: 100%; height: auto; }
figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; }
.shot-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .shot-light { display: none; }
  :root:not([data-theme="light"]) .shot-dark { display: block; }
}
:root[data-theme="dark"] .shot-light { display: none; }
:root[data-theme="dark"] .shot-dark { display: block; }

/* boundaries: definition rows */
.defs { margin: 0; }
.defs > div { display: grid; grid-template-columns: 220px 1fr; gap: 8px 40px; padding: 24px 0; border-top: 1px solid var(--line); }
.defs > div:first-child { border-top: 0; padding-top: 0; }
.defs dt { font: 500 22px var(--serif); }
.defs dd { margin: 0; max-width: 640px; }
.defs dd p:last-child { margin-bottom: 0; }

.split { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: center; }
.split.flip { grid-template-columns: 7fr 5fr; }

/* modes table */
.tbl { width: 100%; border-collapse: collapse; font-size: 16px; }
.tbl th, .tbl td { text-align: left; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { font-weight: 600; font-size: 14px; color: var(--muted); }
.tbl td:first-child { font: 500 15px var(--mono); white-space: nowrap; }
.scroll { overflow-x: auto; }

.chip { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border: 1px solid var(--line); background: var(--inset); border-radius: 4px; font: 500 12px var(--font); color: var(--ink); }
.status { list-style: none; padding: 0; margin: 0; max-width: 720px; }
.status li { padding: 14px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 110px 1fr; gap: 16px; }
.status li:last-child { border-bottom: 1px solid var(--line); }

.foot { border-top: 1px solid var(--line); padding: 40px 0 56px; font-size: 15px; color: var(--muted); }
.foot .wrap { display: flex; gap: 24px 48px; flex-wrap: wrap; justify-content: space-between; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }

/* whitepaper */
.doc { padding: 56px 0 80px; }
.doc-grid { display: grid; grid-template-columns: 220px minmax(0, 680px); gap: 64px; }
.toc { position: sticky; top: 24px; align-self: start; font-size: 15px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.toc a { color: var(--muted); text-decoration: none; display: block; padding: 4px 0; }
.toc a:hover { color: var(--accent); }
.doc h1 { font-size: clamp(34px, 5vw, 52px); margin-bottom: 16px; }
.doc h2 { margin: 56px 0 16px; scroll-margin-top: 16px; }
.doc h3 { margin: 32px 0 8px; font-size: 20px; }
.doc .meta { color: var(--muted); font-size: 15px; margin-bottom: 32px; }
.doc ul, .doc ol { padding-left: 1.2em; }
.doc li { margin-bottom: 8px; }
.callout { border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 16px 20px; margin: 24px 0; }
.callout p:last-child { margin-bottom: 0; }
.draft { border: 1px solid var(--warn); color: var(--ink); border-radius: 10px; padding: 12px 16px; margin: 0 0 32px; background: var(--surface); font-size: 15px; }
.doc .tbl td:first-child { font: 600 15px var(--font); white-space: normal; }

@media (max-width: 860px) {
  .split, .split.flip { grid-template-columns: 1fr; gap: 24px; }
  .defs > div { grid-template-columns: 1fr; gap: 4px; }
  .doc-grid { grid-template-columns: 1fr; gap: 24px; }
  .toc { position: static; border-bottom: 1px solid var(--line); padding-bottom: 16px; }
  .hero { padding-top: 48px; padding-bottom: 40px; }
  section { padding: 48px 0; }
  .status li { grid-template-columns: 1fr; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
.mt { margin-top: 16px; }
.ink { color: var(--ink); }

/* wind band: stepped Tehuelche figures that drift slowly */
.wind { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--surface);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.wind svg { display: block; overflow: hidden; }
.w-rule { fill: var(--muted); }
.w-fig { fill: var(--accent); }
.w-air { fill: var(--ink); opacity: .7; }
.w-run { animation: wind-drift 24s linear infinite; }
.wind.paused .w-run { animation-play-state: paused; }
@keyframes wind-drift { from { transform: translateX(-96px); } to { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) { .w-run { animation: none; } }
