/* Stet. An editor's desk: galley paper, typeset text, red and blue pencil. */

@font-face { font-family: "Fraunces"; src: url("/static/fonts/fraunces.woff2") format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("/static/fonts/fraunces-italic.woff2") format("woff2"); font-weight: 300 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("/static/fonts/newsreader.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("/static/fonts/newsreader-italic.woff2") format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/static/fonts/plex-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/static/fonts/plex-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/static/fonts/plex-mono-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Caveat"; src: url("/static/fonts/caveat.woff2") format("woff2"); font-weight: 500 700; font-display: swap; }

:root {
  --paper: #f4efe3;
  --paper-2: #ece5d4;
  --card: #fbf8f0;
  --ink: #1b1915;
  --ink-2: #4b473d;
  --ink-3: #7d7767;
  --rule: #d6ccb6;
  --rule-2: #e5ddca;
  --red: #c0301c;
  --red-wash: rgba(192, 48, 28, 0.09);
  --blue: #2747b0;
  --blue-wash: rgba(39, 71, 176, 0.08);
  --green: #2c6a3b;
  --mark: #2747b0;
  --mark-neg: #c0301c;
  --shadow: 0 1px 0 rgba(27, 25, 21, 0.04), 0 12px 32px -18px rgba(27, 25, 21, 0.35);
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --hand: "Caveat", "Segoe Print", cursive;
  --w: 1120px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --paper: #14130f;
  --paper-2: #1a1914;
  --card: #1e1c16;
  --ink: #ece5d3;
  --ink-2: #c0b8a4;
  --ink-3: #8b8474;
  --rule: #38342a;
  --rule-2: #29261f;
  --red: #ff7254;
  --red-wash: rgba(255, 114, 84, 0.12);
  --blue: #8fabff;
  --blue-wash: rgba(143, 171, 255, 0.11);
  --green: #7fc48e;
  --mark: #6f8fee;
  --mark-neg: #ee5f47;
  --shadow: 0 1px 0 rgba(0, 0, 0, 0.3), 0 16px 40px -20px rgba(0, 0, 0, 0.8);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #14130f; --paper-2: #1a1914; --card: #1e1c16; --ink: #ece5d3; --ink-2: #c0b8a4; --ink-3: #8b8474;
    --rule: #38342a; --rule-2: #29261f; --red: #ff7254; --red-wash: rgba(255, 114, 84, 0.12);
    --blue: #8fabff; --blue-wash: rgba(143, 171, 255, 0.11); --green: #7fc48e; --mark: #6f8fee; --mark-neg: #ee5f47;
    --shadow: 0 1px 0 rgba(0, 0, 0, 0.3), 0 16px 40px -20px rgba(0, 0, 0, 0.8);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.55;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
/* A faint laid-paper grain. */
body::before {
  content: "";
  position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: 0.5;
  background-image: radial-gradient(var(--rule-2) 0.6px, transparent 0.7px);
  background-size: 5px 5px;
  mask-image: linear-gradient(to bottom, black, transparent 520px);
}
a { color: inherit; text-decoration-color: var(--rule); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--red); }
::selection { background: var(--red-wash); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 560; line-height: 1.08; letter-spacing: -0.015em; margin: 0; font-variation-settings: "SOFT" 30; }
p { margin: 0 0 1em; }
code, kbd, pre, .mono { font-family: var(--mono); font-size: 0.82em; }
code { background: var(--paper-2); padding: 0.1em 0.35em; border-radius: 3px; }
pre code { background: none; padding: 0; }

.wrap { max-width: var(--w); margin: 0 auto; padding: 0 28px; position: relative; z-index: 1; }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.muted { color: var(--ink-3); }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.pos { color: var(--green); }
.neg { color: var(--red); }
.hand { font-family: var(--hand); color: var(--red); font-weight: 700; }

/* --- masthead --- */
.mast { border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); }
.mast .wrap { display: flex; align-items: center; gap: 28px; height: 62px; }
.logo { font-family: var(--display); font-weight: 640; font-size: 27px; letter-spacing: -0.02em; text-decoration: none; position: relative; padding-bottom: 2px; font-variation-settings: "SOFT" 100, "WONK" 1; }
.logo::after { content: ""; position: absolute; left: 1px; right: 1px; bottom: -3px; height: 4px; background-image: radial-gradient(circle, var(--red) 1.6px, transparent 1.9px); background-size: 8px 4px; }
.mast nav { display: flex; gap: 22px; font-size: 16px; margin-left: 6px; }
.mast nav a { text-decoration: none; color: var(--ink-2); padding: 4px 0; border-bottom: 1.5px solid transparent; }
.mast nav a:hover, .mast nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--red); }
.mast .spacer { flex: 1; }
.mast .season { font-family: var(--mono); font-size: 12px; color: var(--ink-3); letter-spacing: 0.06em; }
.theme { border: 1px solid var(--rule); background: none; color: var(--ink-2); border-radius: 999px; width: 32px; height: 32px; cursor: pointer; font-size: 15px; line-height: 1; }
.theme:hover { border-color: var(--ink-3); }

/* --- hero --- */
.hero { padding: 76px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(44px, 5.7vw, 78px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.2; margin-top: 14px; }
.hero h1 .fix { position: relative; display: inline-block; white-space: nowrap; }
.struck { position: relative; color: var(--ink-3); }
.struck::after { content: ""; position: absolute; left: -4%; right: -4%; top: 54%; height: 0.075em; background: var(--red); border-radius: 2px; transform: rotate(-2.2deg) scaleX(0); transform-origin: left center; animation: strike 0.5s 0.5s cubic-bezier(0.6, 0, 0.2, 1) forwards; }
.insert { position: absolute; left: 50%; bottom: 74%; transform: translateX(-50%) rotate(-4deg); font-family: var(--hand); font-weight: 700; color: var(--red); font-size: 0.86em; letter-spacing: 0; line-height: 1; white-space: nowrap; opacity: 0; animation: write 0.45s 1.05s ease-out forwards; }
.caret { position: absolute; left: 50%; top: 86%; width: 0.36em; height: 0.3em; transform: translateX(-50%); opacity: 0; animation: write 0.3s 0.95s ease-out forwards; }
.caret path { fill: none; stroke: var(--red); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
@keyframes strike { to { transform: rotate(-2.2deg) scaleX(1); } }
@keyframes write { from { opacity: 0; clip-path: inset(0 100% 0 0); } to { opacity: 1; clip-path: inset(-20% -10% -20% 0); } }
.hero .lede { font-size: 21px; line-height: 1.5; color: var(--ink-2); max-width: 31em; margin: 30px 0 30px; }
.hero .lede strong { color: var(--ink); font-weight: 600; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 14px; font-weight: 500; text-decoration: none; padding: 11px 18px; border-radius: 4px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); cursor: pointer; }
.btn:hover { background: var(--red); border-color: var(--red); color: #fff; }
.btn.ghost { background: none; color: var(--ink); border-color: var(--rule); }
.btn.ghost:hover { border-color: var(--ink); background: none; color: var(--ink); }

/* --- the command box --- */
.cmd { display: flex; align-items: stretch; border: 1px solid var(--rule); border-radius: 5px; background: var(--card); font-family: var(--mono); font-size: 14px; overflow: hidden; max-width: 100%; }
.cmd pre { margin: 0; padding: 12px 14px; overflow-x: auto; flex: 1; white-space: pre; font-size: inherit; line-height: 1.6; }
.cmd pre .p { color: var(--ink-3); user-select: none; }
.cmd pre .c { color: var(--ink-3); }
.cmd button { border: 0; border-left: 1px solid var(--rule); background: none; color: var(--ink-3); font-family: var(--mono); font-size: 12px; padding: 0 14px; cursor: pointer; }
.cmd button:hover { color: var(--red); }
.tabs { display: flex; gap: 2px; margin-bottom: -1px; position: relative; z-index: 1; }
.tabs button { font-family: var(--mono); font-size: 12px; padding: 6px 12px; border: 1px solid transparent; border-bottom: 0; background: none; color: var(--ink-3); cursor: pointer; border-radius: 4px 4px 0 0; }
.tabs button[aria-selected="true"] { background: var(--card); border-color: var(--rule); color: var(--ink); }
.tabbed .cmd { border-top-left-radius: 0; }

/* --- the galley proof --- */
.galley { background: var(--card); border: 1px solid var(--rule); border-radius: 3px; box-shadow: var(--shadow); padding: 20px 22px 16px 78px; position: relative; font-size: 14.5px; line-height: 1.5; transform: rotate(0.6deg); }
.galley::before { content: ""; position: absolute; left: 62px; top: 0; bottom: 0; width: 1px; background: color-mix(in srgb, var(--red) 35%, transparent); }
.galley .head { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 12px -56px; padding-left: 56px; }
.line { position: relative; margin: 0 0 7px; color: var(--ink-2); }
.line .t { background-repeat: no-repeat; padding-bottom: 1px; }
.line .mark { position: absolute; left: -66px; top: -3px; width: 50px; text-align: right; font-family: var(--hand); font-weight: 700; font-size: 19px; color: var(--red); opacity: 0; transform: rotate(-6deg); }
.line.keep .mark { color: var(--blue); }
.line.cut .t { background-image: linear-gradient(var(--red), var(--red)); background-position: 0 56%; background-size: 0% 1.5px; }
.line.keep .t { background-image: radial-gradient(circle, var(--blue) 1.1px, transparent 1.4px); background-position: 0 100%; background-size: 0 4px; background-repeat: repeat-x; color: var(--ink); }
.galley.play .line.cut .t { animation: cut 0.55s var(--d) ease-out forwards, fade 0.4s calc(var(--d) + 0.35s) forwards; }
.galley.play .line.keep .t { animation: keep 0.7s var(--d) ease-out forwards; }
.galley.play .line .mark { animation: note 0.3s calc(var(--d) + 0.3s) ease-out forwards; }
@keyframes cut { to { background-size: 100% 1.5px; } }
@keyframes fade { to { color: var(--ink-3); opacity: 0.62; } }
@keyframes keep { from { background-size: 0 4px; } to { background-size: 6px 4px; } }
@keyframes note { to { opacity: 1; } }
.line.keep .t { background-clip: border-box; }
.galley .tally { margin: 14px 0 0 -56px; padding: 12px 0 0 56px; border-top: 1px dashed var(--rule); display: flex; gap: 16px; align-items: baseline; white-space: nowrap; font-family: var(--mono); font-size: 12px; color: var(--ink-3); opacity: 0; }
.galley.play .tally { animation: note 0.5s 5.2s forwards; }
.galley .tally b { font-family: var(--display); font-size: 26px; color: var(--ink); font-weight: 600; letter-spacing: -0.02em; }
.galley .tally .arrow { color: var(--red); }
.replay { position: absolute; right: 10px; bottom: 8px; border: 0; background: none; color: var(--ink-3); font-family: var(--mono); font-size: 11px; cursor: pointer; }
.replay:hover { color: var(--red); }
@media (prefers-reduced-motion: reduce) {
  .struck::after, .insert, .caret, .galley.play .line .t, .galley.play .line .mark, .galley.play .tally { animation-duration: 0.01s !important; animation-delay: 0s !important; }
}

/* --- ticker --- */
.ticker { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--paper-2); }
.ticker .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.ticker .cell { padding: 20px 22px 18px; border-left: 1px solid var(--rule); }
.ticker .cell:first-child { border-left: 0; padding-left: 0; }
.ticker .v { font-family: var(--display); font-size: 34px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; margin-top: 4px; font-variant-numeric: tabular-nums; }
.ticker .v small { font-size: 15px; font-family: var(--serif); font-weight: 400; color: var(--ink-3); letter-spacing: 0; margin-left: 4px; }
.ticker .s { font-size: 14.5px; color: var(--ink-3); margin-top: 2px; }

/* --- sections --- */
section { padding: 72px 0; }
section + section { border-top: 1px solid var(--rule); }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 30px; }
.sec-head h2 { font-size: clamp(30px, 3.6vw, 44px); }
.sec-head p { margin: 10px 0 0; color: var(--ink-2); max-width: 36em; }
.more { font-family: var(--mono); font-size: 13px; white-space: nowrap; }

/* --- steps --- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--rule); border-radius: 4px; background: var(--card); counter-reset: step; }
.step { padding: 26px 26px 22px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); counter-increment: step; position: relative; }
.step:nth-child(3n) { border-right: 0; }
.step:nth-last-child(-n + 3) { border-bottom: 0; }
.step::before { content: counter(step); font-family: var(--display); font-size: 15px; font-weight: 600; color: var(--red); border: 1.5px solid var(--red); width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.step h3 { font-size: 22px; margin-bottom: 8px; }
.step p { margin: 0; font-size: 16.5px; color: var(--ink-2); line-height: 1.5; }

/* --- tables --- */
.table-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: 4px; background: var(--card); }
table { border-collapse: collapse; width: 100%; font-size: 16px; }
th { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500; color: var(--ink-3); text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--rule); white-space: nowrap; }
td { padding: 13px 16px; border-bottom: 1px solid var(--rule-2); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--paper-2); }
th.r, td.r { text-align: right; }
td.rank { font-family: var(--display); font-weight: 600; font-size: 19px; color: var(--ink-3); width: 44px; }
tr.record td.rank { color: var(--red); }
td .name { font-weight: 600; font-size: 17.5px; text-decoration: none; }
td .name:hover { color: var(--red); }
td .by { color: var(--ink-3); font-size: 14.5px; margin-left: 6px; }
td .by a { text-decoration: none; }
td .tech { display: block; font-style: italic; color: var(--ink-2); font-size: 15px; margin-top: 1px; }
td.mult { font-family: var(--display); font-size: 24px; font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; font-variant-numeric: tabular-nums; }
td.mult sup { font-size: 12px; color: var(--ink-3); font-family: var(--mono); font-weight: 400; }
.pm { color: var(--ink-3); font-size: 0.86em; }
.tag { display: inline-block; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; border: 1px solid var(--rule); color: var(--ink-3); vertical-align: 2px; margin-left: 6px; }
.tag.red { border-color: var(--red); color: var(--red); }
.tag.blue { border-color: var(--blue); color: var(--blue); }
.tag.green { border-color: var(--green); color: var(--green); }
.empty { padding: 44px 28px; text-align: center; color: var(--ink-2); }
.empty .hand { font-size: 30px; display: block; margin-bottom: 6px; transform: rotate(-2deg); }
svg.spark { display: block; }
svg .axis { stroke: var(--rule); stroke-width: 1; }
svg text { font-family: var(--mono); font-size: 11px; fill: var(--ink-3); }

/* --- cards and grids --- */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: var(--card); border: 1px solid var(--rule); border-radius: 4px; padding: 24px 26px; }
.card h3 { font-size: 22px; margin-bottom: 10px; }
.card p { color: var(--ink-2); font-size: 16.5px; margin: 0; }
.card .eyebrow { margin-bottom: 10px; display: block; }
.claim { border-left: 2px solid var(--red); padding: 2px 0 2px 20px; }
.claim h3 { font-size: 21px; margin-bottom: 6px; }
.claim p { margin: 0; color: var(--ink-2); font-size: 16.5px; }

/* --- status panel --- */
.panel { background: var(--card); border: 1px solid var(--rule); border-radius: 4px; }
.panel .row { display: flex; justify-content: space-between; gap: 16px; padding: 13px 20px; border-bottom: 1px solid var(--rule-2); font-size: 16px; align-items: baseline; }
.panel .row:last-child { border-bottom: 0; }
.panel .row .k { color: var(--ink-3); font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.panel .row .v { text-align: right; overflow-wrap: anywhere; }
.bar { height: 6px; background: var(--rule-2); border-radius: 3px; overflow: hidden; min-width: 120px; }
.bar i { display: block; height: 100%; background: var(--red); }
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { padding: 11px 20px; border-bottom: 1px solid var(--rule-2); font-size: 15.5px; display: flex; gap: 14px; align-items: baseline; }
.feed li:last-child { border-bottom: 0; }
.feed time { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); white-space: nowrap; min-width: 62px; }

/* --- page heads --- */
.page-head { padding: 54px 0 34px; border-bottom: 1px solid var(--rule); }
.page-head h1 { font-size: clamp(36px, 4.6vw, 58px); letter-spacing: -0.025em; }
.page-head .sub { color: var(--ink-2); font-size: 20px; margin: 14px 0 0; max-width: 40em; }
.page-head .meta { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 22px; font-family: var(--mono); font-size: 13px; color: var(--ink-3); }
.page-head .meta a { color: var(--ink-2); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--rule); border-radius: 4px; background: var(--card); margin: 34px 0; }
.stats > div { padding: 18px 22px; border-left: 1px solid var(--rule); }
.stats > div:first-child { border-left: 0; }
.stats .v { font-family: var(--display); font-size: 32px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stats .v small { font-family: var(--mono); font-size: 12px; font-weight: 400; color: var(--ink-3); margin-left: 4px; white-space: nowrap; }
main.page { padding: 0 0 80px; }
main.page h2 { font-size: 28px; margin: 48px 0 18px; }

/* --- source viewer --- */
.files { display: grid; grid-template-columns: 240px minmax(0, 1fr); border: 1px solid var(--rule); border-radius: 4px; background: var(--card); overflow: hidden; }
.files ul { list-style: none; margin: 0; padding: 8px 0; border-right: 1px solid var(--rule); max-height: 640px; overflow: auto; }
.files li a { display: flex; justify-content: space-between; gap: 10px; padding: 6px 16px; font-family: var(--mono); font-size: 12.5px; text-decoration: none; color: var(--ink-2); }
.files li a:hover, .files li a.on { background: var(--paper-2); color: var(--ink); }
.files li a span { color: var(--ink-3); }
.files pre { margin: 0; padding: 18px 20px; overflow: auto; max-height: 640px; font-size: 13px; line-height: 1.55; tab-size: 4; }

/* --- prose (docs) --- */
.prose { max-width: 44em; padding: 44px 0 0; }
.prose h1 { font-size: clamp(36px, 4.6vw, 54px); margin-bottom: 22px; }
.prose h2 { font-size: 30px; margin: 52px 0 14px; padding-top: 22px; border-top: 1px solid var(--rule); }
.prose h3 { font-size: 22px; margin: 32px 0 10px; }
.prose ul, .prose ol { padding-left: 1.25em; margin: 0 0 1em; }
.prose li { margin-bottom: 0.4em; }
.prose pre { background: var(--card); border: 1px solid var(--rule); border-radius: 4px; padding: 14px 16px; overflow-x: auto; font-size: 13.5px; line-height: 1.55; }
.prose table { font-size: 15.5px; margin: 0 0 1.2em; border: 1px solid var(--rule); background: var(--card); }
.prose th, .prose td { padding: 9px 13px; }
.prose blockquote { margin: 0 0 1em; padding-left: 18px; border-left: 2px solid var(--red); color: var(--ink-2); }
.prose em { font-style: italic; }
.docs { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 56px; }
.docs aside { padding-top: 58px; position: sticky; top: 62px; align-self: start; }
.docs aside a { display: block; padding: 5px 0; font-size: 16px; text-decoration: none; color: var(--ink-2); }
.docs aside a[aria-current="page"] { color: var(--red); }

/* --- footer --- */
footer { border-top: 1px solid var(--rule); padding: 40px 0 56px; font-size: 15.5px; color: var(--ink-3); }
footer .wrap { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
footer a { color: var(--ink-2); margin-right: 18px; }

@media (max-width: 920px) {
  body { font-size: 17px; }
  .hero { padding: 48px 0 40px; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .galley { transform: none; }
  .ticker .wrap { grid-template-columns: 1fr 1fr; }
  .ticker .cell { border-left: 0; padding: 16px 0; }
  .ticker .cell:nth-child(n + 3) { border-top: 1px solid var(--rule); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step { border-right: 0 !important; border-bottom: 1px solid var(--rule) !important; }
  .step:last-child { border-bottom: 0 !important; }
  .grid2, .grid3 { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats > div:nth-child(odd) { border-left: 0; }
  .stats > div:nth-child(n + 3) { border-top: 1px solid var(--rule); }
  .stats .v small { display: block; margin: 2px 0 0; }
  .files { grid-template-columns: minmax(0, 1fr); }
  .files ul { border-right: 0; border-bottom: 1px solid var(--rule); max-height: 180px; }
  .docs { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .docs aside { position: static; padding-top: 28px; display: flex; flex-wrap: wrap; gap: 4px 18px; }
  .mast nav { gap: 16px; font-size: 15px; overflow-x: auto; }
  .mast .season { display: none; }
  section { padding: 52px 0; }
  .sec-head { flex-direction: column; align-items: start; }
  .hide-s { display: none; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  .galley { padding-left: 64px; font-size: 13.5px; }
  .galley::before { left: 50px; }
  .line .mark { left: -56px; width: 42px; font-size: 17px; }
  td, th { padding: 11px 10px; }
  .mast nav a.opt { display: none; }
  /* The four links do not fit beside the name on a phone: they get a row of their own. */
  .mast .wrap { flex-wrap: wrap; height: auto; gap: 0 14px; padding-top: 9px; }
  .mast nav { order: 3; width: 100%; margin: 0; gap: 10px; justify-content: space-between; overflow: visible; padding: 4px 0 7px; }
  .hero h1 { font-size: 39px; }
  .hero .lede { font-size: 19px; }
}

/* --- charts --- */
svg.chart { display: block; width: 100%; height: auto; overflow: visible; }
svg .grid { stroke: var(--rule-2); stroke-width: 1; }
svg .ln { fill: none; stroke: var(--mark); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
svg.spark .ln { stroke-width: 1.5; }
svg .dot { fill: var(--mark); }
svg .dot.ring { stroke: var(--card); stroke-width: 2; }
svg .hollow { fill: var(--card); stroke: var(--ink-3); stroke-width: 1.5; }
svg .void { fill: var(--card); stroke: var(--ink-3); stroke-width: 1.5; stroke-dasharray: 2 2; }
svg .bar { fill: var(--mark); }
svg .bar.neg { fill: var(--mark-neg); }
svg .bar.quiet { fill: var(--ink-3); opacity: 0.55; }
svg .link { stroke: var(--mark); stroke-width: 2; stroke-linecap: round; opacity: 0.45; }
svg .link.neg { stroke: var(--mark-neg); }
svg .hit { fill: transparent; stroke: none; cursor: crosshair; }
svg text.lbl { fill: var(--ink-2); font-size: 12px; }
svg text.val { fill: var(--ink); font-size: 12px; }
svg text.val.neg { fill: var(--red); }
svg .cross { stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: 3 3; pointer-events: none; }
svg .focus { fill: var(--mark); stroke: var(--card); stroke-width: 2; pointer-events: none; }
.figure { background: var(--card); border: 1px solid var(--rule); border-radius: 4px; padding: 20px 22px 14px; margin: 0; }
.figure figcaption { font-size: 15px; color: var(--ink-3); margin-top: 10px; }
/* A chart's labels shrink with it, so on a phone it keeps its size and scrolls sideways. */
.figure .plot { overflow-x: auto; }
.figure h3 { font-size: 19px; margin-bottom: 14px; }
.tip { position: fixed; z-index: 50; pointer-events: none; background: var(--ink); color: var(--paper); font-family: var(--mono); font-size: 12px; padding: 6px 9px; border-radius: 4px; white-space: nowrap; transform: translate(-50%, calc(-100% - 12px)); opacity: 0; transition: opacity 0.08s; }
.tip.on { opacity: 1; }

/* --- more parts --- */
.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0; margin: 0; }
.kv dt { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); padding: 12px 24px 12px 20px; border-bottom: 1px solid var(--rule-2); white-space: nowrap; }
.kv dd { margin: 0; padding: 11px 20px 11px 0; border-bottom: 1px solid var(--rule-2); overflow-wrap: anywhere; font-size: 16px; }
.kv dt:last-of-type, .kv dd:last-of-type { border-bottom: 0; }
.kv dd code { font-size: 12.5px; word-break: break-all; background: none; padding: 0; }
.stage { font-family: var(--mono); font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.stage::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--ink-3); margin-right: 7px; vertical-align: 1px; }
.stage.grading::before { border-color: var(--blue); background: var(--blue-wash); }
.stage.settled::before { border-color: var(--green); background: var(--green); }
.stage.invalid::before { border-color: var(--red); background: var(--red); }
.note { border-left: 2px solid var(--blue); padding: 2px 0 2px 18px; color: var(--ink-2); font-size: 16.5px; margin: 0 0 1em; }
.agent { background: var(--ink); color: var(--paper); border-radius: 4px; padding: 30px 32px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 36px; align-items: center; }
.agent h2 { font-size: clamp(26px, 3vw, 36px); }
.agent p { color: color-mix(in srgb, var(--paper) 78%, transparent); margin: 12px 0 0; font-size: 17px; }
.agent .cmd { background: color-mix(in srgb, var(--paper) 8%, transparent); border-color: color-mix(in srgb, var(--paper) 22%, transparent); color: var(--paper); }
.agent .cmd pre .p, .agent .cmd pre .c { color: color-mix(in srgb, var(--paper) 55%, transparent); }
.agent .cmd button { border-color: color-mix(in srgb, var(--paper) 22%, transparent); color: color-mix(in srgb, var(--paper) 60%, transparent); }
.agent .cmd button:hover { color: var(--paper); }
.agent a { color: var(--paper); text-decoration-color: color-mix(in srgb, var(--paper) 40%, transparent); }
.stack > * + * { margin-top: 12px; }
.lead { font-size: 19px; color: var(--ink-2); max-width: 42em; }
.cols { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.reason { color: var(--ink-3); font-size: 14.5px; font-style: italic; display: block; }
td.num, th.num { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 14.5px; white-space: nowrap; }
td .sub { display: block; color: var(--ink-3); font-size: 13px; font-family: var(--mono); }
.pill { display: inline-block; font-family: var(--mono); font-size: 12px; padding: 3px 9px; border: 1px solid var(--rule); border-radius: 999px; color: var(--ink-2); text-decoration: none; margin: 0 6px 6px 0; }
a.pill:hover { border-color: var(--red); color: var(--red); }
.count { font-variant-numeric: tabular-nums; }
.dev { background: var(--red); color: #fff; font-family: var(--mono); font-size: 12px; text-align: center; padding: 5px 10px; position: relative; z-index: 2; }
.files .binary { padding: 40px; color: var(--ink-3); text-align: center; }
@media (max-width: 920px) {
  .agent { grid-template-columns: minmax(0, 1fr); padding: 24px 22px; gap: 22px; }
  .cols { grid-template-columns: minmax(0, 1fr); }
  .kv { grid-template-columns: minmax(0, 1fr); }
  .kv dt { border-bottom: 0; padding: 12px 20px 0; }
  .kv dd { padding: 4px 20px 12px; }
}
