/* Applivation — Engineering notes. Quiet Instrument (decision 3.26):
   HIG-default surfaces, slate as the only accent, SF throughout, mono only for
   real data / paths / artifact excerpts, hairlines instead of shadows. */

:root {
  color-scheme: light dark;
  --canvas: #F2F2F7;
  --plate: #FFFFFF;
  --ink: #1C1C1E;
  --ink-2: #55555B;
  --ink-3: #6E6E74;
  --line: rgba(60, 60, 67, 0.16);
  --line-strong: rgba(60, 60, 67, 0.32);
  --accent: #2A3441;
  --accent-ink: #FFFFFF;
  --accent-wash: rgba(42, 52, 65, 0.08);
  --select: rgba(42, 52, 65, 0.18);
  --ok: #62B58A;
  --warn: #D8A24A;

  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;

  --measure: 40rem;
  --wide: 60rem;
  --rail: 15rem;
  --gutter: clamp(1rem, 4vw, 3rem);
  --ease: cubic-bezier(0.33, 1, 0.68, 1);
}

/* The shared footer (site/footer.css, copied from web/shared-footer by `npm run footer`) reads
   these. Mapping them to the page's own variables is the whole colour swap: the footer follows
   the light and dark palettes above with no markup of its own. */
:root {
  --foot-canvas: var(--canvas);
  --foot-ink: var(--ink);
  --foot-ink-2: var(--ink-2);
  --foot-line: var(--line);
  --foot-accent: var(--accent);
  --foot-wordmark-accent: #5B789D;
  --foot-sans: var(--sans);
  --foot-ease: var(--ease);
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #0B0D11;
    --plate: #1A1F27;
    --ink: #F2F2F7;
    --ink-2: #A9AAB2;
    --ink-3: #8C8E96;
    --line: rgba(255, 255, 255, 0.09);
    --line-strong: rgba(255, 255, 255, 0.18);
    --accent: #9FB0C5;
    --accent-ink: #0B0D11;
    --accent-wash: rgba(159, 176, 197, 0.10);
    --select: rgba(159, 176, 197, 0.28);
    --foot-wordmark-accent: #9FB0C5;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
  caret-color: var(--accent);
  scrollbar-color: var(--line-strong) transparent;
}

::selection { background: var(--select); color: inherit; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.2em; text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent); }
a:hover { text-decoration-color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

p, ul, ol, dl, table, figure, pre { margin: 0; }
p + p, p + ul, ul + p, p + ol, ol + p, p + .figure, .figure + p, p + table, table + p,
.table-wrap + p, p + .table-wrap, .aside + p, p + .aside, ul + .figure, .figure + h3, p + h3, ul + h3, ol + h3, .table-wrap + h3, .flow + p { margin-top: 1.1rem; }
.artifact + p, .artifact + h3, .artifact + .artifact, .artifact + ul { margin-top: 1.5rem; }
h3 + p, h3 + ul, h3 + ol { margin-top: 0.5rem; }
ul, ol { padding-left: 1.25rem; }
li + li { margin-top: 0.45rem; }
li::marker { color: var(--ink-3); }
strong { font-weight: 600; }
em { font-style: italic; }
code, .path { font-family: var(--mono); font-size: 0.9em; }
pre code, .artifact header .path, figcaption .path, .caption .path, .caption code, figcaption code { font-size: inherit; }
:not(pre) > code { background: var(--accent-wash); padding: 0.08em 0.32em; border-radius: 5px; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Top bar: the shared header (site/header.css, stamped by `npm run header`) ----------
   It reads these; mapping them to the page's own variables is the whole colour swap, light and
   dark. Sticky rather than fixed, so the page needs no top padding. */
:root {
  --head-canvas: var(--canvas);
  --head-page: var(--canvas);
  --head-ink: var(--ink);
  --head-ink-2: var(--ink-2);
  --head-line: var(--line);
  --head-accent: var(--accent);
  --head-wordmark-accent: #5B789D;
  --head-sans: var(--sans);
  --head-position: sticky;
  --head-blend: 86%;
}

@media (prefers-color-scheme: dark) {
  :root {
    --head-wordmark-accent: #9FB0C5;
  }
}
.site-head .conf { color: var(--ink-2); font-size: 0.875rem; }
.site-head .here { display: none; }

/* ---------- Hero ---------- */
.hero {
  max-width: calc(var(--rail) + var(--wide) + 4rem + 2 * var(--gutter));
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 6.5rem) var(--gutter) clamp(3rem, 7vw, 5.5rem);
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  column-gap: 4rem;
}
.hero-text { grid-column: 2; max-width: var(--measure); }
.hero > .loop { grid-column: 2; max-width: var(--wide); margin-top: clamp(3rem, 6vw, 4.5rem); }
.conf-strip { display: none; }
@media (max-width: 1080px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-text, .hero > .loop { grid-column: 1; }
  .conf-strip { display: block; margin: 0; padding: 0.5rem var(--gutter); font-size: 0.75rem; color: var(--ink-2); border-bottom: 1px solid var(--line); }
}
.hero h1 {
  font: 700 clamp(2.4rem, 4.6vw + 0.6rem, 3.75rem)/1.04 var(--display);
  letter-spacing: -0.035em;
  margin: 0 0 1.5rem;
  text-wrap: balance;
  max-width: 14ch;
}
.hero h1:has(+ .subhead) { margin-bottom: 0.9rem; }
.hero .subhead {
  font: 500 clamp(1.1875rem, 0.6vw + 1rem, 1.4375rem)/1.35 var(--display);
  letter-spacing: -0.012em; color: var(--ink);
  max-width: 38rem; margin: 0 0 1.75rem; text-wrap: balance;
}
.hero .lede { font-size: 1.1875rem; line-height: 1.5; color: var(--ink-2); max-width: 36rem; }
.hero .lede strong { color: var(--ink); font-weight: 600; }
.hero .lede + .lede { margin-top: 1rem; }
.hero .readout { margin-top: 2rem; max-width: 36rem; }
.hero .start { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 2rem; font-weight: 600; text-decoration: none; }
.hero .start svg { transition: transform 0.4s var(--ease); }
.hero .start:hover svg { transform: translateY(3px); }

/* ---------- Device frame (real fill-audit frames) ---------- */
.device {
  width: var(--device-w, 300px);
  border-radius: calc(var(--device-w, 300px) * 0.148);
  padding: calc(var(--device-w, 300px) * 0.03);
  background: var(--plate);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.device img {
  display: block; width: 100%; height: auto;
  border-radius: calc(var(--device-w, 300px) * 0.12);
  box-shadow: 0 0 0 1px var(--line);
}
figcaption, .caption {
  font-size: 0.8125rem; line-height: 1.45; color: var(--ink-2);
  margin-top: 0.85rem; max-width: 34rem;
}

/* ---------- Readout strip (the app's status-strip idiom) ---------- */
.readout {
  display: flex; flex-wrap: wrap; gap: 0.35rem 0;
  font: 500 0.75rem/1.5 var(--mono);
  letter-spacing: 0.045em; text-transform: uppercase;
  color: var(--ink-2);
  padding: 0.6rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}
.readout span { white-space: nowrap; }
.readout span:not(:last-child)::after { content: "·"; margin: 0 0.6rem; color: var(--ink-3); }
.readout b { color: var(--ink); font-weight: 600; }
.readout .date { color: var(--ink-3); }

/* ---------- Layout: rail + document ---------- */
.layout {
  max-width: calc(var(--rail) + var(--wide) + 4rem + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter) 6rem;
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  gap: 4rem;
}
.doc { min-width: 0; max-width: var(--wide); }

/* ---------- The rail: contents drawn as the system map ---------- */
.rail { position: relative; }
.rail nav { position: sticky; top: 4.5rem; padding-top: 0.5rem; }
.rail .band { position: relative; padding-left: 1.25rem; }
.rail .band + .band { margin-top: 1.25rem; }
.rail .band::before {
  content: ""; position: absolute; left: 4.5px; top: 1.9rem; bottom: 0.55rem;
  width: 1px; background: var(--line-strong);
}
.rail .band-name {
  display: block; margin-left: -1.25rem; margin-bottom: 0.5rem;
  font-size: 0.75rem; font-weight: 600; color: var(--ink-3);
}
.rail ol { list-style: none; padding: 0; margin: 0; }
.rail li + li { margin-top: 0; }
.rail a {
  position: relative; display: block;
  padding: 0.3rem 0; font-size: 0.875rem; line-height: 1.35;
  color: var(--ink-2); text-decoration: none;
  transition: color 0.25s var(--ease);
}
.rail a::before {
  content: ""; position: absolute; left: calc(-1.25rem + 1px); top: 0.62rem;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--canvas); box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.rail a:hover { color: var(--ink); }
.rail a.is-read::before { background: var(--line-strong); box-shadow: none; }
.rail a[aria-current="true"] { color: var(--ink); font-weight: 600; }
.rail a[aria-current="true"]::before { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-wash); transform: scale(1.12); }
.rail .rail-foot { margin-top: 2rem; font-size: 0.8125rem; color: var(--ink-3); }
.rail .rail-foot a { display: inline; padding: 0; font-size: inherit; color: var(--ink-2); }
.rail .rail-foot a::before { content: none; }

/* ---------- Sections ---------- */
.section { padding-top: 5.5rem; }
.section:first-child { padding-top: 0.5rem; }
.section > * { max-width: var(--measure); }
.section > .wide, .section > .figure.wide, .section > .table-wrap.wide, .section > .artifact { max-width: var(--wide); }
.section h2 {
  font: 700 clamp(1.75rem, 1.6vw + 1.2rem, 2.25rem)/1.12 var(--display);
  letter-spacing: -0.025em; margin: 0 0 1rem; text-wrap: balance;
}
.section h2 + .readout { margin-bottom: 1.5rem; }
.section h3 {
  font: 600 1.1875rem/1.3 var(--display); letter-spacing: -0.012em;
  margin: 2.75rem 0 0.5rem; text-wrap: balance;
}
.section h2 + p { margin-top: 0; }
.lead { font-size: 1.1875rem; line-height: 1.5; }
.muted { color: var(--ink-2); }

/* ---------- Rules list (the three rules) ---------- */
.rules { list-style: none; padding: 0; counter-reset: rule; border-top: 1px solid var(--line); margin-top: 1.25rem; }
.rules li { margin: 0; padding: 0.9rem 0 0.9rem 2.25rem; border-bottom: 1px solid var(--line); position: relative; }
.rules li::before {
  counter-increment: rule; content: counter(rule);
  position: absolute; left: 0; top: 0.95rem;
  width: 1.4rem; height: 1.4rem; border-radius: 50%;
  display: grid; place-items: center;
  font: 600 0.75rem/1 var(--sans); color: var(--accent-ink); background: var(--accent);
}
.rules strong { display: block; }
.rules span { color: var(--ink-2); }

/* ---------- Flow (ordered stages) ---------- */
.flow { list-style: none; padding: 0; margin-top: 1.5rem; display: grid; gap: 0; border-top: 1px solid var(--line); }
.flow > li {
  display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 1.25rem;
  padding: 1rem 0; margin: 0; border-bottom: 1px solid var(--line);
}
.flow .step { position: relative; font-weight: 600; padding-left: calc(7px + 0.6rem); }
.flow .step::before {
  content: ""; position: absolute; left: 0; top: 0.62em; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
}
.flow .who { display: block; font-size: 0.8125rem; font-weight: 400; color: var(--ink-2); margin-top: 0.1rem; }
.flow p { color: var(--ink); }
.flow p + p { margin-top: 0.4rem; }

/* ---------- Figures ---------- */
.figure { margin-top: 2rem; }
.frames {
  display: flex; gap: clamp(0.75rem, 1.8vw, 1.5rem); align-items: flex-start;
  overflow-x: auto; padding: 0.25rem 0.25rem 1rem; margin: 0 -0.25rem;
  scroll-snap-type: x mandatory; scrollbar-width: thin;
}
.frames figure { flex: none; scroll-snap-align: start; --device-w: 200px; }
.frames figure figcaption { max-width: 200px; margin-top: 0.7rem; }
.frames figure figcaption b { color: var(--ink); font-weight: 600; display: block; }

/* ---------- Artifact excerpts ---------- */
.artifact {
  margin-top: 1.75rem;
  background: var(--plate);
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
}
.artifact header {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 1rem;
  padding: 0.6rem 1rem; border-bottom: 1px solid var(--line);
  font: 500 0.75rem/1.45 var(--mono); color: var(--ink-2);
}
.artifact header .kind { color: var(--ink); font-family: var(--sans); font-weight: 600; font-size: 0.8125rem; }
.artifact pre {
  padding: 0.9rem 1rem 1rem; overflow-x: auto;
  font: 400 0.78rem/1.6 var(--mono); color: var(--ink);
  tab-size: 2; scrollbar-width: thin;
}
.artifact pre .c { color: var(--ink-3); }
.artifact pre .k { color: var(--accent); }
.artifact .note { padding: 0 1rem 0.9rem; font-size: 0.8125rem; color: var(--ink-2); }

/* ---------- Tables ---------- */
.table-wrap { margin-top: 1.5rem; overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
caption { text-align: left; font-size: 0.8125rem; color: var(--ink-2); padding-bottom: 0.6rem; }
th, td { text-align: left; vertical-align: top; padding: 0.65rem 0.9rem 0.65rem 0; border-bottom: 1px solid var(--line); }
thead th { font-size: 0.8125rem; font-weight: 600; color: var(--ink-2); border-bottom-color: var(--line-strong); }
tbody th { font-weight: 600; }
.enforce tbody th { width: 13rem; padding-right: 1.5rem; }
@media (max-width: 640px) { .enforce tbody th { width: 8.5rem; padding-right: 0.9rem; } }
td.n, th.n { text-align: right; padding-right: 0; padding-left: 0.9rem; white-space: nowrap; }
th.n + th, td.n + td { padding-left: 1.75rem; }
.harm td { padding-right: 0.9rem; }
.harm .cell b { display: block; font: 600 1.375rem/1.15 var(--display); letter-spacing: -0.01em; }
.harm .cell span { font-size: 0.8125rem; color: var(--ink-2); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 0.45rem; transform: translateY(-1px); }
.dot.ok { background: var(--ok); } .dot.warn { background: var(--warn); }

/* ---------- Asides ---------- */
.aside {
  margin-top: 2rem; padding: 1.25rem 1.35rem;
  background: var(--plate); border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line);
}
.aside h3 { margin: 0 0 0.5rem; font-size: 1.0625rem; }
.aside p { font-size: 0.96875rem; }
.aside p + p { margin-top: 0.65rem; }
.aside .choice {
  margin-top: 1rem; display: grid; gap: 0.35rem;
  font: 400 0.78rem/1.4 var(--mono); font-variant-numeric: tabular-nums;
}
.aside .choice div { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr) 3.5rem; gap: 0.75rem; align-items: center; }
.aside .choice i { display: block; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.aside .choice i::after { content: ""; display: block; height: 100%; width: var(--p); background: var(--accent); border-radius: 3px; }
.aside .choice span:last-child { text-align: right; color: var(--ink-2); }

/* ---------- The loop (how the pieces connect), drawn in the rail's grammar ---------- */
.loop {
  --link: 2.75rem;
  margin-top: 2.25rem;
  display: grid; grid-template-columns: minmax(0, 1fr) var(--link) minmax(0, 1fr) var(--link) minmax(0, 1fr);
  align-items: stretch;
}
.loop .lane { display: flex; flex-direction: column; min-width: 0; }
.loop .lane h3 { margin: 0; font: 600 0.9375rem/1.3 var(--display); letter-spacing: -0.012em; padding-left: 1.1rem; }
.loop .lane > p { margin: 0.2rem 0 0.9rem; min-height: 2.8em; padding-left: 1.1rem; font-size: 0.8125rem; line-height: 1.4; color: var(--ink-2); }
.loop .lane ol { list-style: none; padding: 0; margin: 0; position: relative; flex: 1; }
.loop .lane ol::before { content: ""; position: absolute; left: 3px; top: 0.55rem; height: calc(100% - 1.6rem); width: 1px; background: var(--line-strong); }
.loop .lane.ends ol::before { height: auto; bottom: 0; }
.loop .lane li { position: relative; padding-left: 1.1rem; font-size: 0.875rem; line-height: 1.4; margin: 0; }
.loop .lane li + li { margin-top: 0.55rem; }
.loop .lane li::before { content: ""; position: absolute; left: 0; top: 0.42rem; width: 7px; height: 7px; border-radius: 50%; background: var(--canvas); box-shadow: inset 0 0 0 1.5px var(--accent); }
.loop .lane li.out { font-weight: 600; }
.loop .lane li.out::before { background: var(--accent); }
.loop .link { width: 100%; height: 12px; margin-top: 0.3rem; color: var(--ink-3); }
.loop .return {
  grid-column: 1 / -1; position: relative; height: 1.6rem;
  margin-left: -12px; margin-right: calc((100% - 2 * var(--link)) / 3 - 4px);
  border: 1px solid var(--line-strong); border-top: 0; border-radius: 0 0 10px 10px;
}
.loop .lane.first ol::after { content: ""; position: absolute; left: -12px; top: 0.6rem; bottom: 0; width: 1px; background: var(--line-strong); }
.loop .lane.first .in { position: absolute; left: -12px; top: calc(0.42rem + 3.5px - 4.5px); width: 10px; height: 9px; color: var(--ink-2); }
.loop .return-label { grid-column: 1 / -1; margin-top: 0.6rem; padding-left: 1.1rem; font-size: 0.8125rem; color: var(--ink-2); }
.loop .return-label .up { display: none; }

/* ---------- Glossary ---------- */
.glossary { display: grid; grid-template-columns: 11rem minmax(0, 1fr); border-top: 1px solid var(--line); }
.glossary dt, .glossary dd { padding: 0.7rem 0; border-bottom: 1px solid var(--line); margin: 0; }
.glossary dt { font-weight: 600; padding-right: 1.25rem; }
.glossary dd { color: var(--ink); }
.glossary dd small { display: block; color: var(--ink-3); font-size: 0.8125rem; margin-top: 0.2rem; }

/* ---------- Confidentiality strip (full notes only), above the shared footer ---------- */
.foot {
  max-width: calc(var(--rail) + var(--wide) + 4rem + 2 * var(--gutter)); margin: 0 auto;
  padding: 2rem var(--gutter); border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  font-size: 0.8125rem; color: var(--ink-2);
}

/* ---------- Mobile contents (no rail) ---------- */
.mobile-toc { display: none; }

@media (max-width: 1080px) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .rail { display: none; }
  .site-head .conf { display: none; }
  .site-head .here { display: block; }
  .mobile-toc { display: block; position: relative; }
  .mobile-toc summary {
    list-style: none; cursor: pointer;
    display: inline-flex; align-items: center; gap: 0.4rem;
    font-weight: 600; color: var(--ink); font-size: 0.875rem;
    padding: 0.35rem 0.75rem; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-strong);
    max-width: 52vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .mobile-toc summary::-webkit-details-marker { display: none; }
  .mobile-toc summary svg { flex: none; transition: transform 0.25s var(--ease); }
  .mobile-toc[open] summary svg { transform: rotate(180deg); }
  .mobile-toc .panel {
    position: absolute; right: 0; top: calc(100% + 0.5rem); width: min(19rem, calc(100vw - 2rem));
    max-height: 70vh; overflow-y: auto;
    background: var(--plate); border-radius: 14px; padding: 1rem 1.1rem;
    box-shadow: inset 0 0 0 1px var(--line), 0 18px 40px -16px rgba(0, 0, 0, 0.35);
  }
  .mobile-toc .panel .band + .band { margin-top: 0.9rem; }
  .mobile-toc .panel .band-name { font-size: 0.75rem; font-weight: 600; color: var(--ink-3); display: block; margin-bottom: 0.25rem; }
  .mobile-toc .panel ol { list-style: none; padding: 0; }
  .mobile-toc .panel li { margin: 0; }
  .mobile-toc .panel a { display: block; padding: 0.4rem 0; color: var(--ink); text-decoration: none; font-size: 0.9375rem; }
  .mobile-toc .panel a[aria-current="true"] { color: var(--accent); font-weight: 600; }
}

@media (max-width: 820px) {
  .loop { grid-template-columns: minmax(0, 1fr); row-gap: 0.75rem; }
  .loop .link { transform: rotate(90deg); width: 28px; margin: 0 0 0 -10px; }
  .loop .lane ol::before, .loop .lane.ends ol::before { height: calc(100% - 1.6rem); bottom: auto; }
  .loop .return, .loop .lane.first ol::after, .loop .lane.first .in { display: none; }
  .loop .return-label { display: flex; gap: 0.5rem; align-items: flex-start; padding-left: 0; margin-top: 0.5rem; }
  .loop .return-label .up { display: block; flex: none; width: 12px; height: 12px; margin-top: 0.2rem; color: var(--ink-2); }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .hero .lede, .lead { font-size: 1.0625rem; }
  .flow > li { grid-template-columns: minmax(0, 1fr); gap: 0.35rem; }
  .glossary { grid-template-columns: minmax(0, 1fr); }
  .glossary dt { border-bottom: 0; padding-bottom: 0; }
  .glossary dd { padding-top: 0.2rem; }
  .aside .choice div { grid-template-columns: 7.5rem minmax(0, 1fr) 3rem; }
  .harm .cell b { font-size: 1.125rem; }
  .section { padding-top: 4rem; }
}

@media print {
  .site-head, .rail, .mobile-toc, .hero .start { display: none; }
  .layout { grid-template-columns: 1fr; }
  body { background: #fff; color: #000; }
}

/* ---------- The public outline (site/index.html) ---------- */
.outline .hero { grid-template-columns: minmax(0, 1fr); max-width: calc(var(--wide) + 2 * var(--gutter)); }
.outline .hero-text, .outline .hero > .loop { grid-column: 1; }
.outline-note { margin-top: 1.5rem; font-size: 0.9375rem; color: var(--ink-2); max-width: 34rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; margin-top: 1.5rem; }
.button {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.7rem 1.35rem; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 600; text-decoration: none;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}
.button:hover { background: color-mix(in srgb, var(--accent) 88%, var(--ink)); }
.button:active { transform: scale(0.98); }
.quiet { font-weight: 600; text-decoration: none; }
.quiet:hover { text-decoration: underline; }
.outline-body {
  max-width: calc(var(--wide) + 2 * var(--gutter)); margin: 0 auto;
  padding: 1rem var(--gutter) 6rem;
}
.outline-body h2 {
  font: 700 clamp(1.5rem, 1.2vw + 1.1rem, 1.875rem)/1.15 var(--display);
  letter-spacing: -0.022em; margin: 0 0 1.25rem;
}
.concepts { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.concepts li {
  display: grid; grid-template-columns: 15rem minmax(0, var(--measure)); gap: 2rem;
  margin: 0; padding: 1.35rem 0; border-bottom: 1px solid var(--line);
}
.concepts h3 { margin: 0; font: 600 1.0625rem/1.35 var(--display); letter-spacing: -0.01em; text-wrap: balance; }
.concepts li p { margin-top: 0; }
.outline .foot { max-width: calc(var(--wide) + 2 * var(--gutter)); }
.more { margin-top: 5rem; }
.more ul { max-width: var(--measure); }
.more > p { margin-top: 1.25rem; max-width: var(--measure); }
@media (max-width: 820px) {
  .concepts li { grid-template-columns: minmax(0, 1fr); gap: 0.4rem; }
}
