/* Same house style as peytonthalman.com: white paper, ink, hairline rules. Serif headlines (Newsreader),
   Geist for reading, Geist Mono for buttons and small labels. Square-ish corners, no pills, no shadows,
   nothing lifts on hover. Colour is kept for right/wrong marks and chart data. */
:root {
  --paper: #ffffff;
  --band: #f7f7f5;
  --card: #ffffff;
  --ink: #16181c;
  --muted: #4d525b;
  --dim: #7b808a;
  --rule: rgba(22, 24, 28, 0.1);
  --rule-2: rgba(22, 24, 28, 0.2);
  --accent: #16181c;
  --accent-soft: #f7f7f5;
  --ok: #15803d;
  --ok-soft: #e9f4ec;
  --bad: #a1362b;
  --warn: #9a6212;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Geist", ui-sans-serif, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --r: 6px;
  --shadow: none;
  --step--1: 0.8125rem;
  --step-0: 1rem;
  --step-1: 1.0625rem;
  --step-2: 1.625rem;
  --step-3: clamp(1.75rem, 1.3rem + 1.9vw, 2.5rem);
  --step-4: clamp(2.5rem, 1.6rem + 3.6vw, 4.5rem);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 var(--step-0)/1.6 var(--sans); font-variant-numeric: tabular-nums;
}
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; text-wrap: balance; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: var(--step-4); line-height: 1.02; max-width: 17ch; }
h2 { font-size: var(--step-3); line-height: 1.08; max-width: 22ch; }
h3 { font-size: var(--step-1); font-family: var(--sans); font-weight: 600; letter-spacing: 0; }
p { margin: 0; }
code { font-family: var(--mono); font-size: 0.875em; }

.wrap {
  max-width: 68rem; margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.eyebrow { font: 500 var(--step--1)/1.4 var(--mono); color: var(--accent); letter-spacing: 0.04em; text-transform: uppercase; }
.sub { color: var(--muted); font-size: var(--step-1); max-width: 60ch; }
.label { font: 500 var(--step--1)/1.4 var(--mono); color: var(--muted); letter-spacing: 0.03em; text-transform: uppercase; }
.section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.band { background: var(--band); padding-block: clamp(3.5rem, 7vw, 6rem); }
.section-head { display: grid; gap: 0.875rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section + .section { border-top: 1px solid var(--rule); }

/* Nav: five links; on a phone they scroll sideways inside the bar, never the page. */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--paper) 90%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule); padding-top: env(safe-area-inset-top, 0px); }
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 3.5rem; }
.wordmark { font: 400 1.375rem/1 var(--serif); text-decoration: none; white-space: nowrap; }
.nav nav { display: flex; gap: clamp(0.25rem, 1.5vw, 0.75rem); overflow-x: auto; scrollbar-width: none; min-width: 0; }
.nav nav::-webkit-scrollbar { display: none; }
.nav nav a { font-size: 0.875rem; color: var(--muted); text-decoration: none; white-space: nowrap; padding: 0.4rem 0.6rem; border-radius: var(--r); }
.nav nav a:hover { color: var(--ink); }
.nav nav a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); font-weight: 500; }

/* Page header (inner pages) */
.page-head { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2rem, 4vw, 3rem); display: grid; gap: 1.25rem; }
.page-head h1 { font-size: var(--step-3); max-width: 20ch; line-height: 1.06; }
.lede { font-size: var(--step-1); color: var(--muted); max-width: 58ch; }
.tldr { display: grid; gap: 0.5rem; max-width: 58ch; padding: 1rem 1.25rem; background: var(--accent-soft); border-radius: var(--r); }
.tldr p { color: var(--ink); }

/* Home hero */
.hero { padding-block: clamp(3.5rem, 9vw, 7rem) clamp(2.5rem, 5vw, 4rem); display: grid; gap: 1.5rem; }
.thesis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(1.5rem, 4vw, 2.5rem); border-top: 1px solid var(--ink); }
.figure { display: grid; gap: 0.5rem; align-content: start; padding: 1.25rem 1.5rem 0 0; }
.figure + .figure { padding-left: 1.5rem; border-left: 1px solid var(--rule); }
.figure .num { font: 400 var(--step-4)/1 var(--serif); letter-spacing: -0.02em; }
.figure .num .from { color: var(--muted); font-size: 0.55em; }
.figure.accent .num { color: var(--accent); }
.figure .cap { color: var(--muted); max-width: 30ch; }
.thesis-note { font-size: var(--step--1); color: var(--muted); max-width: 70ch; }
.cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.5rem; }
.btn { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.7rem 1.1rem; border-radius: var(--r); text-decoration: none; font-weight: 500; font-size: 0.9375rem; border: 1px solid var(--rule); background: var(--card); }
.btn.primary { background: var(--accent); color: var(--paper); border-color: var(--accent); }
.btn:hover { border-color: var(--accent); }

/* System map: how the pieces fit. Nodes are buttons; the panel under them explains the one picked. */
.map { display: grid; gap: 0; }
.map-row { display: grid; gap: 0.75rem; justify-content: center; }
.map-row.one { grid-template-columns: minmax(0, 26rem); }
.map-row.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.map-row.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.map-row.engine { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; }
.flow { height: 2.25rem; display: grid; place-items: center; color: var(--muted); font: 400 0.75rem/1 var(--mono); position: relative; }
.flow::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; border-left: 1.5px dashed var(--rule); }
.flow span { position: relative; background: var(--paper); padding: 0.2rem 0.5rem; }
.band .flow span { background: var(--band); }
.node { appearance: none; font: inherit; color: inherit; text-align: left; cursor: pointer; background: var(--card); border: 1px solid var(--rule); border-radius: var(--r); padding: 0.9rem 1rem; display: grid; gap: 0.25rem; box-shadow: var(--shadow); transition: border-color 0.15s, transform 0.15s; min-width: 0; }
.node:hover { border-color: var(--accent); transform: translateY(-1px); }
.node[aria-pressed="true"] { border-color: var(--accent); outline: 2px solid var(--accent); outline-offset: -1px; }
.node .k { font: 500 0.6875rem/1.3 var(--mono); text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.node .t { font-weight: 600; }
.node .d { font-size: 0.875rem; color: var(--muted); }
.node.core { background: var(--accent); border-color: var(--accent); color: var(--paper); padding: 1.25rem; }
.node.core .k, .node.core .d { color: color-mix(in srgb, var(--paper) 78%, transparent); }
.node.core .t { font: 400 1.75rem/1.1 var(--serif); }
.node.core[aria-pressed="true"] { outline-color: var(--ink); }
.node.side { border-style: dashed; box-shadow: none; }
.link-h { font: 400 0.75rem/1.2 var(--mono); color: var(--muted); text-align: center; }
.map-panel { margin-top: 1.5rem; background: var(--card); border: 1px solid var(--rule); border-radius: var(--r); padding: clamp(1.25rem, 3vw, 1.75rem); display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1.5rem 2rem; box-shadow: var(--shadow); }
.map-panel h3 { font: 400 var(--step-2)/1.1 var(--serif); }
.map-panel .why { color: var(--muted); }
.map-panel dl { margin: 0; display: grid; gap: 0.75rem; align-content: start; }
.map-panel dt { font: 500 0.6875rem/1.3 var(--mono); text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.map-panel dd { margin: 0.15rem 0 0; }
.map-panel .proof { font: 400 var(--step-2)/1.1 var(--serif); color: var(--accent); }
.map-panel a.more { font-weight: 500; color: var(--accent); text-decoration: none; }
.map-panel a.more:hover { text-decoration: underline; }

/* The story, in steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--ink); counter-reset: s; }
.steps > li { counter-increment: s; display: grid; grid-template-columns: 3rem minmax(0, 1.3fr) minmax(0, 1fr); gap: 1rem 2rem; padding: 1.75rem 0; border-bottom: 1px solid var(--rule); align-items: start; }
.steps > li::before { content: counter(s, decimal-leading-zero); font: 500 var(--step--1)/2.2 var(--mono); color: var(--muted); }
.steps h3 { font: 400 var(--step-2)/1.15 var(--serif); margin-bottom: 0.5rem; }
.steps p { color: var(--muted); }
.steps .stat { display: grid; gap: 0.25rem; align-content: start; }
.steps .stat b { font: 400 var(--step-3)/1 var(--serif); color: var(--accent); font-weight: 400; }
.steps .stat > span { color: var(--muted); font-size: 0.9375rem; }
.steps a { color: var(--accent); font-weight: 500; text-decoration: none; font-size: 0.9375rem; }
.steps a:hover { text-decoration: underline; }
.steps .go { margin-top: 0.75rem; display: inline-block; }

/* Next-page link at the bottom of every page */
.next { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.5rem; border: 1px solid var(--rule); border-radius: var(--r); text-decoration: none; background: var(--card); box-shadow: var(--shadow); }
.next:hover { border-color: var(--accent); }
.next .label { display: block; margin-bottom: 0.25rem; }
.next b { font: 400 var(--step-2)/1.1 var(--serif); font-weight: 400; }
.next .arrow { font-size: 1.5rem; color: var(--accent); }

/* Worked question */
.worked { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(1.5rem, 3vw, 2.5rem); align-items: start; }
.question { display: grid; gap: 1rem; }
.prompt { font: 400 1.25rem/1.5 var(--serif); }
.answers { display: grid; gap: 0; margin: 0.5rem 0 0; border-top: 1px solid var(--rule); }
.answers > div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.75rem 0; border-bottom: 1px solid var(--rule); }
.answers dt { color: var(--muted); }
.answers dd { margin: 0; font-family: var(--mono); display: flex; align-items: center; gap: 0.5rem; text-align: right; }
.mark { font: 500 0.6875rem/1 var(--sans); letter-spacing: 0.04em; text-transform: uppercase; padding: 0.25rem 0.45rem; border-radius: 4px; }
.mark.ok { color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent); }
.mark.bad { color: var(--bad); background: color-mix(in srgb, var(--bad) 12%, transparent); }

.form { background: var(--card); border: 1px solid var(--rule); border-radius: var(--r); padding: clamp(1.25rem, 3vw, 2rem); display: grid; gap: 1rem; min-width: 0; box-shadow: var(--shadow); }
.lines { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.lines li { display: grid; grid-template-columns: 2.75rem minmax(0, 1fr) auto; gap: 0.75rem; align-items: baseline; padding: 0.6rem 0; border-bottom: 1px solid var(--rule); }
.lines .no { font: 500 var(--step--1)/1 var(--mono); color: var(--muted); }
.lines .what { font-size: 0.9375rem; }
.lines .amt { font-family: var(--mono); font-size: 0.9375rem; text-align: right; }
.lines li.total { border-bottom: 1px solid var(--ink); }
.lines li.total .what, .lines li.total .amt { font-weight: 600; }
.lines li.total .amt { color: var(--accent); }
.misread { display: grid; gap: 0.5rem; padding: 1rem; background: color-mix(in srgb, var(--bad) 7%, transparent); border-radius: var(--r); }
.misread p:last-child { font-size: 0.9375rem; }
.misread .amt { font-family: var(--mono); }

/* Results */
.table-wrap { overflow-x: auto; border-top: 1px solid var(--ink); }
.scores { width: 100%; border-collapse: collapse; min-width: 40rem; }
.scores th { text-align: left; font: 500 0.75rem/1.4 var(--mono); color: var(--muted); letter-spacing: 0.03em; text-transform: uppercase; padding: 0.875rem 1rem 0.875rem 0; border-bottom: 1px solid var(--rule); }
.scores td { padding: 1rem 1rem 1rem 0; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.scores .r { text-align: right; }
.scores .model { font-weight: 600; white-space: nowrap; }
.scores .overall { font: 400 var(--step-2)/1 var(--serif); text-align: right; }
.scores .cost { font-family: var(--mono); color: var(--muted); text-align: right; }
.scores .model .via { display: block; font: 400 0.75rem/1.4 var(--mono); color: var(--muted); margin-top: 0.25rem; font-weight: 400; }
.cell { display: grid; gap: 0.375rem; min-width: 6.5rem; }
.cell .v { font-family: var(--mono); font-size: 0.9375rem; }
.cell .track { position: relative; height: 4px; background: var(--rule); border-radius: 2px; overflow: hidden; }
.cell .fill { position: relative; height: 100%; background: var(--ink); border-radius: 2px; }
.cell .band-ci { position: absolute; top: 0; bottom: 0; background: color-mix(in srgb, var(--ink) 22%, transparent); border-radius: 2px; }
.ci { display: block; font: 400 0.75rem/1.3 var(--mono); color: var(--muted); }
.scores .overall .ci { margin-top: 0.25rem; }
.cell.low .fill { background: var(--bad); }
.cell.low .v { color: var(--bad); }
.table-note { font-size: 0.9375rem; color: var(--muted); margin-top: 1rem; max-width: 70ch; }
details.fine { margin-top: 1rem; max-width: 70ch; color: var(--muted); font-size: 0.9375rem; }
details.fine summary { cursor: pointer; color: var(--accent); font-weight: 500; }
details.fine p { margin-top: 0.5rem; }

.pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); margin-top: clamp(2.5rem, 5vw, 4rem); }
.chart-card { margin: 0; display: grid; gap: 1rem; align-content: start; min-width: 0; }
.chart-card figcaption { display: grid; gap: 0.375rem; }
.chart-card figcaption h3, .sub-head h3 { font: 400 var(--step-2)/1.15 var(--serif); }
.chart-card figcaption p { color: var(--muted); font-size: 0.9375rem; }
.chart { position: relative; min-height: 10rem; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart text { font-family: var(--sans); font-size: 12px; fill: var(--muted); }
.chart .lbl { fill: var(--ink); font-size: 13px; }
.legend { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; font-size: var(--step--1); color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 0.4rem; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); display: inline-block; }
.dot.hollow, .legend .dot.open { background: transparent; border: 2px solid var(--accent); }
.value-card { margin-top: clamp(2.5rem, 5vw, 4rem); }
.sub-head { display: grid; gap: 0.5rem; margin: clamp(3rem, 6vw, 4.5rem) 0 1rem; }
.sub-head p { color: var(--muted); max-width: 64ch; }

/* Questions */
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 28rem), 1fr)); gap: clamp(1rem, 2vw, 1.5rem); }
.tier { background: var(--card); border: 1px solid var(--rule); border-radius: var(--r); padding: clamp(1.25rem, 3vw, 1.75rem); display: grid; gap: 1rem; align-content: start; min-width: 0; }
.tier-top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.tier-name { font: 500 var(--step--1)/1.4 var(--mono); text-transform: uppercase; letter-spacing: 0.04em; color: var(--accent); }
.tier-score { font: 400 var(--step-2)/1 var(--serif); }
.tier-blurb { color: var(--muted); font-size: 0.9375rem; }
.tier .q { font: 400 1.0625rem/1.55 var(--serif); white-space: pre-line; }
.tier details { border-top: 1px solid var(--rule); padding-top: 0.75rem; }
.tier summary { cursor: pointer; font-size: var(--step--1); color: var(--muted); list-style: none; }
.tier summary::-webkit-details-marker { display: none; }
.tier summary::before { content: "+ "; font-family: var(--mono); }
.tier details[open] summary::before { content: "− "; }
.tier .key { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; font-size: var(--step--1); color: var(--muted); }
.tier .key b { font-family: var(--mono); font-weight: 500; color: var(--ink); }
.tasks { display: flex; flex-wrap: wrap; gap: 0.375rem; }
.tasks code { font: 400 0.75rem/1 var(--mono); padding: 0.3rem 0.45rem; border: 1px solid var(--rule); border-radius: 4px; color: var(--muted); }

/* Lists: checks, notes, roadmap */
.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.split > div:first-child { display: grid; gap: 0.875rem; }
.checks, .roadmap { margin: 0; padding: 0; list-style: none; counter-reset: n; border-top: 1px solid var(--ink); }
.checks li, .roadmap li { counter-increment: n; display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); gap: 0.75rem; padding: 1rem 0; border-bottom: 1px solid var(--rule); }
.checks li::before, .roadmap li::before { content: counter(n, decimal-leading-zero); font: 500 var(--step--1)/1.9 var(--mono); color: var(--muted); }
.checks b { font-weight: 600; }
.aside { margin-top: 2.5rem; max-width: 62ch; padding-left: 1rem; border-left: 2px solid var(--accent); color: var(--muted); }
.notes { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.notes li { padding: 1rem 0; border-bottom: 1px solid var(--rule); color: var(--muted); }
.notes b { color: var(--ink); font-weight: 600; }
.roadmap { max-width: 44rem; }

/* Proof stack on the method page: each layer, what it checks, and its score */
.proofs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: 1rem; }
.proof-card { background: var(--card); border: 1px solid var(--rule); border-radius: var(--r); padding: 1.25rem; display: grid; gap: 0.5rem; align-content: start; box-shadow: var(--shadow); }
.proof-card b { font: 400 var(--step-2)/1 var(--serif); color: var(--accent); font-weight: 400; }
.proof-card .t { font-weight: 600; }
.proof-card p { color: var(--muted); font-size: 0.9375rem; }
.proof-card code { color: var(--muted); font-size: 0.75rem; }

/* How I built it */
.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: 1rem; }
.principle { background: var(--card); border: 1px solid var(--rule); border-radius: var(--r); padding: 1.25rem 1.25rem 1.4rem; display: grid; gap: 0.5rem; align-content: start; box-shadow: var(--shadow); }
.principle .n { font: 500 0.75rem/1 var(--mono); color: var(--accent); }
.principle h3 { font: 400 1.5rem/1.15 var(--serif); }
.principle p { color: var(--muted); font-size: 0.9375rem; }
.principle .eg { color: var(--ink); border-top: 1px solid var(--rule); padding-top: 0.6rem; margin-top: 0.25rem; }
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--rule); margin-left: 0.4rem; display: grid; gap: 1.75rem; }
.timeline li { position: relative; padding-left: 1.5rem; display: grid; gap: 0.35rem; }
.timeline li::before { content: ""; position: absolute; left: -0.45rem; top: 0.35rem; width: 0.8rem; height: 0.8rem; border-radius: 50%; background: var(--paper); border: 2px solid var(--accent); }
.band .timeline li::before { background: var(--band); }
.timeline .when { font: 500 0.75rem/1.3 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.timeline h3 { font: 400 1.5rem/1.15 var(--serif); }
.timeline p { color: var(--muted); max-width: 62ch; }
.decisions { width: 100%; border-collapse: collapse; min-width: 44rem; }
.decisions th { text-align: left; font: 500 0.75rem/1.4 var(--mono); color: var(--muted); letter-spacing: 0.03em; text-transform: uppercase; padding: 0.875rem 1rem 0.875rem 0; border-bottom: 1px solid var(--rule); }
.decisions td { padding: 1rem 1rem 1rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; font-size: 0.9375rem; color: var(--muted); }
.decisions td:first-child { color: var(--ink); font-weight: 600; width: 22%; }
.decisions td.chose { color: var(--ink); }
.crew { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 0; border-top: 1px solid var(--ink); }
.crew > div { padding: 1rem 1rem 1rem 0; border-bottom: 1px solid var(--rule); display: grid; gap: 0.25rem; }
.crew b { font-weight: 600; }
.crew span { color: var(--muted); font-size: 0.9375rem; }

.foot { border-top: 1px solid var(--rule); padding-block: 2rem calc(2rem + env(safe-area-inset-bottom, 0px)); }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; font-size: var(--step--1); color: var(--muted); }

@media (max-width: 52rem) {
  .map-row.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .worked, .split, .map-panel { grid-template-columns: minmax(0, 1fr); }
  .steps > li { grid-template-columns: 2.25rem minmax(0, 1fr); }
  .steps .stat { grid-column: 2; }
}
@media (max-width: 40rem) {
  .thesis { grid-template-columns: minmax(0, 1fr); }
  .figure, .figure + .figure { padding: 1.25rem 0; border-left: 0; border-bottom: 1px solid var(--rule); }
  .lines li { grid-template-columns: 2.25rem minmax(0, 1fr) auto; gap: 0.5rem; }
  .map-row.three, .map-row.four, .map-row.engine { grid-template-columns: minmax(0, 1fr); }
  .link-h { padding: 0.25rem 0; }
  .nav-row { flex-wrap: wrap; height: auto; padding-block: 0.6rem 0.4rem; gap: 0.25rem; }
  .nav nav { width: 100%; margin-left: -0.5rem; gap: 0; flex-wrap: wrap; overflow-x: visible; }
  .nav nav a { padding: 0.35rem 0.5rem; font-size: 0.8125rem; }
}

/* With the engine */
.ladder { min-width: 36rem; }
.ladder .model { white-space: normal; max-width: 16rem; }
.ladder tr.best .model { color: var(--accent); }
.ladder tr.best .cell .fill { background: var(--accent); }
.tools-worked { margin-top: clamp(2.5rem, 5vw, 4rem); }
.quote { margin: 0; font: 400 1.25rem/1.5 var(--serif); padding-left: 1rem; border-left: 2px solid var(--bad); }
.tools-worked #tools-lines li { grid-template-columns: minmax(0, 1fr) auto; }
.rule-text { font-size: 0.9375rem; color: var(--muted); }
.tools-notes { margin-top: clamp(2.5rem, 5vw, 4rem); max-width: 48rem; }

/* Replays (replay.html) */
.rp-pick { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.5rem; }
.rp-pick label { display: grid; gap: 0.35rem; flex: 1 1 18rem; min-width: 0; }
.rp-pick select { font: inherit; padding: 0.6rem 0.75rem; border: 1px solid var(--rule); border-radius: var(--r); background: var(--card); color: var(--ink); width: 100%; }
.rp-view { display: grid; gap: 1.25rem; }
.rp-empty { color: var(--muted); }
.rp-card { background: var(--card); border: 1px solid var(--rule); border-radius: var(--r); padding: 1.5rem; box-shadow: var(--shadow); min-width: 0; }
.rp-card > .label { margin: 0 0 0.5rem; }
.rp-h { font-family: var(--serif); font-weight: 400; font-size: 1.75rem; line-height: 1.15; margin: 0 0 0.9rem; }
.rp-opts { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.4rem; }
.rp-withheld { margin: 1rem 0 0; padding: 0.7rem 0.9rem; border-radius: var(--r); background: var(--accent-soft); }
.rp-sub { margin: 0 0 1.25rem; color: var(--muted); }

/* How it did */
.rp-verdicts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 0.75rem; margin-bottom: 1.25rem; }
.rp-verdict { border-radius: var(--r); padding: 0.9rem 1rem; background: var(--paper); border-left: 4px solid var(--ok); }
.rp-verdict.bad { border-left-color: var(--bad); }
.rp-verdict p { margin: 0.5rem 0 0; }
.rp-answers { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.rp-answers th, .rp-answers td { padding: 0.6rem 0.6rem; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.rp-answers thead th, .rp-answers tr:first-child th[scope="col"] { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); font-weight: 500; }
.rp-answers th[scope="row"] { font-weight: 400; color: var(--muted); font-size: 0.875rem; max-width: 22rem; }
.rp-answers td { font-family: var(--mono); font-size: 0.875rem; white-space: nowrap; }
.rp-answers td.ok { background: var(--ok-soft); }
.rp-answers td.bad { background: #f6e3df; }
.rp-mark { font-family: var(--sans); font-weight: 700; margin-right: 0.4rem; }
td.ok .rp-mark { color: var(--ok); }
td.bad .rp-mark { color: var(--bad); }

/* How it got there */
.rp-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
.rp-step { display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: 0.9rem; }
.rp-n { width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; background: var(--band); font: 500 0.85rem var(--mono); }
.rp-step.err .rp-n { background: #f6e3df; color: var(--bad); }
.rp-step.ask .rp-n { background: var(--accent-soft); color: var(--accent); }
.rp-body { min-width: 0; }
.rp-title { margin: 0.2rem 0 0.75rem; font-size: 1.05rem; font-weight: 600; line-height: 1.35; }
.rp-title code { font: 400 0.75rem var(--mono); color: var(--muted); background: var(--band); padding: 0.1rem 0.4rem; border-radius: 6px; margin-left: 0.3rem; white-space: nowrap; }
.rp-io { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 0.75rem; }
.rp-io > div { background: var(--paper); border-radius: var(--r); padding: 0.8rem 0.9rem; min-width: 0; }
.rp-who { margin: 0 0 0.45rem; font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.rp-kv { margin: 0; display: grid; gap: 0.3rem; }
.rp-kv div { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.875rem; border-bottom: 1px dashed var(--rule); padding-bottom: 0.25rem; }
.rp-kv div:last-child { border-bottom: 0; }
.rp-kv dt { color: var(--muted); }
.rp-kv dd { margin: 0; text-align: right; font-family: var(--mono); overflow-wrap: anywhere; }
.rp-headline { margin: 0 0 0.5rem; font-weight: 600; }
.rp-options { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.rp-options td { padding: 0.4rem 0.3rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
.rp-options tr.best td { font-weight: 600; }
.rp-options .num { text-align: right; font-family: var(--mono); white-space: nowrap; }
.rp-options .muted { color: var(--bad); font-weight: 400; }
.rp-note { margin: 0.5rem 0 0; font-size: 0.8rem; color: var(--muted); }
.rp-err { margin: 0; color: var(--bad); }
.rp-hint { margin: 0.75rem 0 0; font-size: 0.875rem; color: var(--muted); }
.rp-bubble { margin: 0 0 0.5rem; padding: 0.7rem 0.9rem; border-radius: var(--r); max-width: 40rem; }
.rp-bubble.me { background: var(--paper); border: 1px solid var(--rule); }
.rp-bubble.them { background: var(--accent-soft); margin-left: 1.5rem; }
.rp-raw { margin-top: 0.75rem; font-size: 0.8125rem; }
.rp-raw summary { cursor: pointer; color: var(--muted); }
.rp-raw pre { margin: 0 0 0.5rem; max-height: 18rem; overflow: auto; white-space: pre-wrap; word-break: break-word; font: 0.75rem/1.5 var(--mono); background: var(--paper); border-radius: var(--r); padding: 0.6rem 0.75rem; }
@media (max-width: 40rem) {
  .rp-card { padding: 1.1rem; }
  .rp-answers, .rp-answers tbody { display: block; }
  .rp-answers tr { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 0.35rem; padding: 0.7rem 0; border-bottom: 1px solid var(--rule); }
  .rp-answers tr.rp-head { display: none; }
  .rp-answers th[scope="row"] { grid-column: 1 / -1; max-width: none; padding: 0; border: 0; }
  .rp-answers td { border: 0; border-radius: var(--r); padding: 0.4rem 0.5rem; white-space: normal; }
  .rp-answers td::before { content: attr(data-label); display: block; font: 500 0.6875rem var(--sans); text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); margin-bottom: 0.15rem; }
  .rp-kv div { flex-direction: column; gap: 0.1rem; }
  .rp-kv dd { text-align: left; }
}
.rp-badge { display: inline-block; font-size: 0.75rem; font-weight: 600; padding: 0.15rem 0.55rem; border-radius: var(--r); vertical-align: middle; }
.rp-badge.ok { background: var(--ok-soft); color: var(--ok); }
.rp-badge.bad { background: #f6e3df; color: var(--bad); }
.more-link { margin: 1.5rem 0 0; }
.more-link a { color: var(--accent); font-weight: 600; text-decoration: none; }
.more-link a:hover { text-decoration: underline; }

/* In the chat (chat.html) */
.turns { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(2rem, 4vw, 3rem); }
.turn { display: grid; gap: 0.75rem; }
.turn .said { justify-self: end; max-width: 34rem; padding: 0.8rem 1.1rem; border-radius: 16px 16px 4px 16px; background: var(--ink); color: var(--paper); }
.reply { display: grid; gap: 0.7rem; max-width: 46rem; padding: 1.25rem 1.4rem; background: var(--card); border: 1px solid var(--rule); border-radius: 4px 16px 16px 16px; box-shadow: var(--shadow); }
.reply .ask { font: 400 1.5rem/1.25 var(--serif); }
.reply .why, .reply .meta { color: var(--muted); font-size: 0.9375rem; }
.reply ul { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.3rem; color: var(--muted); }
.reply .headline { font: 400 clamp(1.5rem, 3vw, 1.9rem)/1.2 var(--serif); color: var(--accent); }
.reply .kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: 0.6rem; margin: 0.25rem 0; }
.reply .kv div { padding: 0.6rem 0.75rem; background: var(--band); border-radius: var(--r); }
.reply .kv dt { font-size: 0.8125rem; color: var(--muted); }
.reply .kv dd { margin: 0; font-weight: 600; }
.reply .sides { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 1rem; }
.reply .sides ul { list-style: none; padding: 0; gap: 0.5rem; }
.reply .sides li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 0.75rem; color: var(--ink); font-size: 0.9375rem; }
.reply .sides li small { grid-column: 1 / -1; color: var(--muted); font: 400 0.75rem/1.4 var(--mono); }
.reply.refuse { border-left: 3px solid var(--bad); }
.turn .gap { color: var(--muted); font-style: italic; }

/* ───────── house style (2026-11-14): overrides that make the pieces above match peytonthalman.com */
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2 { font-weight: 420; letter-spacing: -0.022em; font-optical-sizing: auto; }
h1 { letter-spacing: -0.03em; }
::selection { background: var(--ink); color: #fff; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline-color: var(--ink); border-radius: 2px; }
.eyebrow { font: 400 0.78rem/1.4 var(--mono); color: var(--dim); letter-spacing: 0; text-transform: none; }
.section-head .eyebrow, .split .eyebrow { display: none; }
.sub, .lede { font-size: 1.0625rem; }
.nav { background: #fff; backdrop-filter: none; }
.wordmark { font: 500 1.25rem/1 var(--serif); letter-spacing: -0.015em; }
.nav nav { gap: clamp(0.75rem, 2vw, 1.375rem); }
.nav nav a { padding: 0.4rem 0; border-radius: 0; }
.nav nav a[aria-current="page"] { color: var(--ink); background: none; font-weight: 400; text-decoration: underline; text-underline-offset: 5px; }
.btn { height: 38px; padding: 0 14px; border-color: var(--rule-2); background: #fff; font: 500 0.8125rem/1 var(--mono); white-space: nowrap; transition: background .15s, border-color .15s; }
.btn:hover { background: var(--band); border-color: var(--ink); }
.btn.primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.primary:hover { background: #2c3038; }
.tldr { border: 1px solid var(--rule); }
.node:hover { transform: none; }
.next:hover, .node:hover { border-color: var(--ink); }
.steps a, .map-panel a.more, .more-link a, details.fine summary { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--rule-2); }
.steps a:hover, .more-link a:hover { text-decoration-color: var(--ink); }
.turn .said, .reply, .rp-bubble { border-radius: var(--r); }
.foot a { color: inherit; text-underline-offset: 3px; }
.figure-img { margin: 0; }
@media (max-width: 40rem) { .nav nav { margin-left: 0; gap: 0.25rem 0.9rem; } .nav nav a { padding: 0.3rem 0; } }

/* ───────── home (2026-11-14): the story first, numbers second */
.prose { display: grid; gap: 1rem; max-width: 60ch; font-size: 1.125rem; line-height: 1.65; }
.finds { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.find { display: grid; gap: 0.6rem; align-content: start; padding: 1.25rem 1.25rem 1.5rem 0; text-decoration: none; }
.find + .find { padding-left: 1.25rem; border-left: 1px solid var(--rule); }
.find .n { font: 400 0.78rem/1 var(--mono); color: var(--dim); }
.find h3 { font: 500 1.0625rem/1.3 var(--sans); }
.find .big { font: 420 clamp(2rem, 1.4rem + 1.6vw, 2.75rem)/1.05 var(--serif); letter-spacing: -0.02em; white-space: nowrap; }
.find p:last-child { color: var(--muted); font-size: 0.9375rem; }
.find:hover h3 { text-decoration: underline; text-underline-offset: 3px; }
.notes a { text-underline-offset: 3px; }
.go-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.go-list a { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 1rem; padding: 0.9rem 0; border-bottom: 1px solid var(--rule); text-decoration: none; }
.go-list b { font-weight: 500; }
.go-list span { color: var(--muted); }
.go-list a:hover b { text-decoration: underline; text-underline-offset: 3px; }
.example { display: grid; gap: 0.6rem; max-width: 62ch; padding: 1.1rem 1.25rem; border: 1px solid var(--rule-2); border-radius: var(--r); background: #fff; }
.example blockquote { margin: 0; padding-left: 0.9rem; border-left: 2px solid var(--bad); font: 400 1.125rem/1.5 var(--serif); }
.takeaway { max-width: 66ch; margin-top: 0.75rem; color: var(--muted); }
.takeaway b { color: var(--ink); font-weight: 500; }
details.fine.wide { max-width: none; }
details.fine.wide .table-wrap { margin-top: 0.75rem; }
@media (max-width: 60rem) { .finds { grid-template-columns: repeat(2, minmax(0, 1fr)); } .find:nth-child(3) { padding-left: 0; border-left: 0; } .find:nth-child(n+3) { border-top: 1px solid var(--rule); } }
@media (max-width: 40rem) { .finds { grid-template-columns: minmax(0, 1fr); } .find, .find + .find { padding: 1.25rem 0; border-left: 0; } .find + .find { border-top: 1px solid var(--rule); } .go-list a { grid-template-columns: minmax(0, 1fr); gap: 0.1rem; } }
.find h3 { font: 500 1.125rem/1.35 var(--sans); }
.find .big .vs { font-size: 0.5em; color: var(--dim); letter-spacing: 0; }
.find p:last-child { font-size: 1rem; line-height: 1.6; }
.finds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.find:nth-child(3) { padding-left: 0; border-left: 0; }
.find:nth-child(n+3) { border-top: 1px solid var(--rule); }
.find:nth-child(odd) { padding-right: 2rem; }
.find:nth-child(even) { padding-left: 2rem; }
.prose .cta { margin-top: 0.25rem; }
@media (max-width: 40rem) { .finds { grid-template-columns: minmax(0, 1fr); } .find:nth-child(n) { padding: 1.25rem 0; border-left: 0; } }

/* Agent mode (build engineer) */
/* Human / Agent switch at the right end of the nav; "Agent" leads to agent.html and the plain-text twins. */
.nav nav .mode { display: inline-flex; align-items: center; margin-left: auto; padding-left: 0.5rem; flex: none; }
.nav nav .mode a { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.02em; padding: 0.2rem 0.5rem; border: 1px solid var(--rule); border-radius: 0; color: var(--muted); text-decoration: none; background: none; font-weight: 400; }
.nav nav .mode a:first-child { border-radius: var(--r) 0 0 var(--r); }
.nav nav .mode a:last-child { border-radius: 0 var(--r) var(--r) 0; border-left: 0; }
.nav nav .mode a[aria-current] { color: var(--ink); background: var(--rule); text-decoration: none; }
@media (max-width: 40rem) { .nav nav .mode { margin-left: 0; padding-left: 0; } .nav nav .mode a { font-size: 0.6875rem; padding: 0.15rem 0.4rem; } }
.agent-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; border-top: 1px solid var(--rule); }
.agent-list li { display: grid; grid-template-columns: minmax(10rem, 14rem) minmax(0, 1fr); gap: 1rem; padding: 0.75rem 0; border-bottom: 1px solid var(--rule); }
.agent-list code { font-family: var(--mono); font-size: 0.875rem; }
.agent-list span { color: var(--muted); }
@media (max-width: 40rem) { .agent-list li { grid-template-columns: minmax(0, 1fr); gap: 0.15rem; } }
/* Baked charts: src/bake_site.py ships each app.js chart drawn at desktop and at phone width; show the one that fits. */
.chart svg.chart-narrow { display: none; }
@media (max-width: 40rem) { .chart svg.chart-wide { display: none; } .chart svg.chart-narrow { display: block; } }

/* writer B */
/* Wrong facts, With a calculator, Try it in Claude or ChatGPT */
.wf-quotes { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); align-items: start; }
.wf-quotes .example { max-width: none; }
.wf-quotes .example > p:last-child { color: var(--muted); font-size: 0.9375rem; }
.wf-outcomes { max-width: 66ch; margin-bottom: 1.5rem; }
.wf-outcomes li { padding: 0.6rem 0; }
.example blockquote { overflow-wrap: anywhere; }
.status { display: grid; gap: 0.5rem; max-width: 62ch; padding: 1rem 1.25rem; border: 1px solid var(--rule-2); border-left: 2px solid var(--accent); border-radius: var(--r); background: #fff; }
.status p { color: var(--ink); }
.status .label { color: var(--muted); }

/* writer A */
/* Home: the boxed straight answer; finding cards' "read more" line. alone.html: settings line and the two takeaways. */
.answer-box { display: grid; gap: 0.9rem; max-width: 52rem; padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--ink); border-radius: var(--r); background: #fff; }
.answer-box h2 { max-width: none; }
.answer-box ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0; border-top: 1px solid var(--rule); }
.answer-box li { padding: 0.9rem 0; border-bottom: 1px solid var(--rule); color: var(--muted); font-size: 1.0625rem; line-height: 1.6; }
.answer-box li:last-child { border-bottom: 0; padding-bottom: 0; }
.answer-box b { color: var(--ink); font-weight: 600; }
.find .more { font: 400 0.8125rem/1.4 var(--mono); color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--rule-2); }
.find p.big + p { color: var(--muted); }
.takeaway-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); gap: 0.5rem clamp(1.5rem, 3vw, 2.5rem); margin-top: clamp(2rem, 4vw, 3rem); }
.takeaway-row .takeaway { margin-top: 0; }
.settings { max-width: 66ch; margin: 0 0 1.25rem; padding: 0.75rem 1rem; border-left: 2px solid var(--ink); color: var(--muted); }
.settings b { color: var(--ink); font-weight: 600; }
.prose .notes { font-size: 1rem; line-height: 1.6; }
details.fine .notes { margin-top: 0.75rem; }
/* writer A: the short tables on alone.html fit a phone without sideways scrolling */
.scores.compact { min-width: 0; }
.scores.compact .model { white-space: normal; }
.scores.compact .cell { min-width: 5.5rem; }
/* writer A, round 2 */
/* Home: the definition of "best" under the lede, the "How to read the numbers" box, each finding's catch line,
   and the closing three things. alone.html: one ID line per test. method.html: "you can stop here" line. */
.best-def { max-width: 62ch; color: var(--muted); font-size: 0.9375rem; }
.best-def b { color: var(--ink); font-weight: 600; }
.read-box { max-width: 52rem; padding: clamp(1rem, 2.5vw, 1.5rem) clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--rule-2); border-radius: var(--r); background: var(--card); display: grid; gap: 0.75rem; }
.read-box dl { margin: 0; display: grid; border-top: 1px solid var(--rule); }
.read-box dl > div { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 0.25rem 1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--rule); }
.read-box dl > div:last-child { border-bottom: 0; padding-bottom: 0; }
.read-box dt { font-weight: 600; }
.read-box dd { margin: 0; color: var(--muted); line-height: 1.55; }
@media (max-width: 640px) { .read-box dl > div { grid-template-columns: minmax(0, 1fr); } }
.find .catch { font-size: 0.875rem; color: var(--muted); padding-left: 0.7rem; border-left: 2px solid var(--rule-2); }
.find .catch b { color: var(--ink); font-weight: 600; }
.three { margin: 0; padding: 0; list-style: none; counter-reset: t; max-width: 52rem; border-top: 1px solid var(--ink); }
.three li { counter-increment: t; display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); gap: 0.75rem; padding: 1rem 0; border-bottom: 1px solid var(--rule); color: var(--muted); line-height: 1.6; }
.three li::before { content: counter(t); font: 500 1.25rem/1.4 var(--serif); color: var(--ink); }
.three b { color: var(--ink); font-weight: 600; }
.id-line { max-width: 75ch; font: 400 0.8125rem/1.6 var(--mono); color: var(--muted); padding: 0.6rem 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin: 0 0 1.25rem; }
.id-line b { color: var(--ink); font-weight: 500; }
.stop-here { color: var(--muted) !important; font-size: 0.9375rem; }
.hosts { font-size: 0.9375rem; }

/* writer B, round 2 */
/* With a calculator: the list of experiments, each experiment's ID line and result; Wrong facts: words on this page;
   Chat demo: side totals; Replays: the household summary. */
.exp-index { max-width: 62ch; padding-top: 0.25rem; }
.exp-index ol { margin: 0.5rem 0 0; padding-left: 1.25rem; display: grid; gap: 0.4rem; color: var(--muted); }
.exp-index a { color: var(--ink); text-underline-offset: 3px; text-decoration-color: var(--rule-2); }
.idline { display: grid; gap: 0; max-width: 70ch; margin: 0 0 1.25rem; border-top: 1px solid var(--rule); }
.idline > div { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 0.75rem; padding: 0.45rem 0; border-bottom: 1px solid var(--rule); }
.idline dt { font: 500 var(--step--1)/1.5 var(--mono); color: var(--muted); letter-spacing: 0.03em; text-transform: uppercase; }
.idline dd { margin: 0; font-size: 0.9375rem; line-height: 1.5; }
@media (max-width: 40rem) { .idline > div { grid-template-columns: minmax(0, 1fr); gap: 0.1rem; } }
.result { max-width: 66ch; margin: 0 0 1rem; }
.result b { font-weight: 600; }
.subpart { margin-top: clamp(2rem, 4vw, 3rem); padding-top: clamp(1.5rem, 3vw, 2rem); border-top: 1px solid var(--rule-2); }
.subpart h3 { font: 400 1.5rem/1.2 var(--serif); margin: 0 0 1rem; max-width: 40ch; }
.glossary { max-width: 62ch; }
.glossary dl { margin: 0.5rem 0 0; border-top: 1px solid var(--rule); }
.glossary dl > div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 0.75rem; padding: 0.5rem 0; border-bottom: 1px solid var(--rule); }
.glossary dt { font-weight: 600; }
.glossary dd { margin: 0; color: var(--muted); }
@media (max-width: 40rem) { .glossary dl > div { grid-template-columns: minmax(0, 1fr); gap: 0.1rem; } }
.reply .sides li.total { border-top: 1px solid var(--rule-2); padding-top: 0.4rem; font-weight: 500; }
.rp-intro { margin: 0 0 1rem; font-size: 1.0625rem; max-width: 66ch; }
.rp-facts, .rp-asked { margin: 0 0 0.5rem; padding-left: 1.1rem; display: grid; gap: 0.3rem; font-size: 0.9375rem; color: var(--muted); max-width: 72ch; }
.rp-asked { margin-top: 0.25rem; }
.rp-card .rp-opts + .rp-who { margin-top: 1rem; }
.rp-gloss { margin: 0.5rem 0 0; font-size: 0.8125rem; line-height: 1.5; color: var(--muted); max-width: 72ch; }

/* writer B, round 3 */
/* Wrong facts and With a calculator: ChatGPT (GPT-6 Luna on a subscription) is its own boxed result, kept apart from the ranked models. */
.subpart.solo { border: 1px solid var(--rule-2); border-radius: 6px; padding: clamp(1rem, 3vw, 1.75rem); }
.subpart.solo > .label { margin: 0 0 0.35rem; }
.subpart.solo .example { margin-top: 1rem; }
.subpart.solo .result:last-of-type { margin-bottom: 0; }

/* writer A, round 3 */
/* Home: the bottom line at the top with "what to do this week", three result cards, the reading path.
   alone.html: the ChatGPT table. */
.hero .bottom-line { margin-top: 0.5rem; }
.this-week { display: grid; gap: 0.4rem; padding: 0.9rem 1rem; border-left: 2px solid var(--accent); background: var(--card); border-radius: 0 var(--r) var(--r) 0; }
.this-week p:not(.label) { color: var(--ink); font-size: 1.0625rem; line-height: 1.6; max-width: 66ch; }
.finds.three-up { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.finds.three-up .find:nth-child(n) { padding: 1.25rem 1.5rem 1.5rem; border-top: 0; border-left: 1px solid var(--rule); }
.finds.three-up .find:first-child { padding-left: 0; border-left: 0; }
.finds.three-up .find:last-child { padding-right: 0; }
@media (max-width: 60rem) {
  .finds.three-up { grid-template-columns: minmax(0, 1fr); }
  .finds.three-up .find:nth-child(n) { padding: 1.25rem 0; border-left: 0; }
  .finds.three-up .find + .find { border-top: 1px solid var(--rule); }
}
.go-list.path a { grid-template-columns: 13rem minmax(0, 1fr); }
.go-list.path a > span { line-height: 1.55; }
.go-list.path a > span span { color: inherit; }
@media (max-width: 40rem) { .go-list.path a { grid-template-columns: minmax(0, 1fr); } }
.scores.luna td.r, .scores.luna th.r { text-align: right; }
.scores.luna .model { font-weight: 500; }

/* Home, structural pass (2026-11-15): three result cards, the 60-second story, the experiment map */
.finds.three-up { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.finds.three-up .find:nth-child(3) { padding-left: 1.25rem; border-left: 1px solid var(--rule); border-top: 0; }
@media (max-width: 60rem) { .finds.three-up { grid-template-columns: minmax(0, 1fr); } .finds.three-up .find, .finds.three-up .find + .find, .finds.three-up .find:nth-child(3) { padding: 1.25rem 0; border-left: 0; } .finds.three-up .find + .find { border-top: 1px solid var(--rule); } }
.story60 p { margin: 0 0 0.75rem; }
.story60 b { color: var(--ink); font-weight: 600; }
.exp-map { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.exp-map th { text-align: left; font: 500 0.75rem/1.4 var(--mono); color: var(--muted); letter-spacing: 0.03em; text-transform: uppercase; padding: 0.75rem 1rem 0.75rem 0; border-bottom: 1px solid var(--rule); }
.exp-map td { padding: 0.7rem 1rem 0.7rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; color: var(--muted); }
.exp-map td:first-child { color: var(--ink); font-weight: 600; }
.exp-map td:first-child a { text-underline-offset: 3px; text-decoration-color: var(--rule-2); }
@media (max-width: 40rem) {
  .exp-map thead { display: none; }
  .exp-map tr { display: grid; grid-template-columns: minmax(0, 1fr); padding: 0.7rem 0; border-bottom: 1px solid var(--rule); }
  .exp-map td { padding: 0.1rem 0; border: 0; }
  .exp-map td:nth-child(2)::before { content: "When: "; color: var(--dim); }
  .exp-map td:nth-child(3)::before { content: "Questions: "; color: var(--dim); }
  .exp-map td:nth-child(4)::before { content: "Models: "; color: var(--dim); }
}

/* Home as a short story (2026-11-15): one reading column, a number links to the section that backs it up. */
.story .hero { padding-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.story .hero h1 { max-width: 14ch; }
.story-body { display: grid; gap: clamp(2.5rem, 5vw, 3.5rem); padding-bottom: clamp(3.5rem, 7vw, 6rem); font-size: 1.125rem; line-height: 1.65; }
.story-body > * { max-width: 62ch; }
.story-body section { display: grid; gap: 1rem; padding-top: clamp(2rem, 4vw, 2.75rem); border-top: 1px solid var(--rule); }
.story-body h2 { font-size: var(--step-2); }
.story-body .finding { display: grid; gap: 0.6rem; }
.story-body .finding + .finding { margin-top: 0.75rem; }
.story-body .finding h3 { font: 500 1.125rem/1.35 var(--sans); }
.story-body a.num { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--rule-2); white-space: nowrap; }
.story-body a.num:hover { text-decoration-color: var(--ink); }
.story-body a.fn { text-decoration: none; color: var(--muted); }
.story-links { font: 500 0.9375rem/1.6 var(--mono); display: flex; flex-wrap: wrap; gap: 0.5rem 0.75rem; padding-top: clamp(2rem, 4vw, 2.75rem); border-top: 1px solid var(--ink); }
.story-links a { text-underline-offset: 3px; }
.story-note { color: var(--muted); max-width: 62ch; line-height: 1.5; }
.story-note + .story-note { margin-top: -1.75rem; }
/* Home v2 (2026-11-15): plain intro, a four-line results list. */
.story-body .intro { border-top: 0; padding-top: 0; }
.story-body .byline { color: var(--muted); font-size: 1rem; }
.results-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.results-list li { padding: 0.9rem 0; border-bottom: 1px solid var(--rule); }
.story-body .more-link { margin: 0; }
/* How I built it (2026-11-15): the eight parts as a numbered, ruled list. */
.parts { margin: 0; padding: 0; list-style: none; counter-reset: p; border-top: 1px solid var(--ink); }
.parts li { counter-increment: p; display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); gap: 0.5rem; padding: 1rem 0; border-bottom: 1px solid var(--rule); }
.parts li::before { content: counter(p); font: 500 var(--step--1)/2.1 var(--mono); color: var(--dim); }
.story-body .hero h1, .story .hero h1 { max-width: 18ch; }
.story-body h2 { max-width: none; }

/* Example questions (questions.html) */
#questions { display: contents; }
.qcard { display: grid; gap: 0.75rem; padding-top: 1.5rem; margin-top: 0.5rem; border-top: 1px solid var(--rule); min-width: 0; }
.qcard h3 { font: 500 1.0625rem/1.4 var(--sans); }
.qcard .q { font: 400 1.0625rem/1.55 var(--serif); white-space: pre-line; max-width: 70ch; }
.qcard .qa b { font-family: var(--mono); font-weight: 500; }
.qcard .label { margin-top: 0.25rem; }
.qscores { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 0 2rem; font-size: 0.9375rem; }
.qscores li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.3rem 0; border-bottom: 1px solid var(--rule); color: var(--muted); }
.qscores b { font-family: var(--mono); font-weight: 500; color: var(--ink); white-space: nowrap; }
