/* Aberra site. One stylesheet for the landing page and the writing. */
@font-face { font-family: "Geist"; src: url("/fonts/Geist-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

/* Tokens. A neutral grey ladder with four text tiers (after shiori.sh): one family, few sizes, hierarchy from
   tone rather than size. Light and dark follow the system. Dark keeps the Fringe void; colour only ever
   appears as light (dark) or ink (light), never as decoration. */
:root {
  color-scheme: light dark;
  --bg: #fdfdfd;          /* oklch 99.1% */
  --surface: #f5f5f5;     /* oklch 97% */
  --raised: #ebebeb;      /* oklch 92.2% */
  --line: color-mix(in oklch, #e5e5e5, #0a0a0a 2%);
  --line-strong: #d4d4d4;
  --fg: #0a0a0a;          /* primary text, oklch 14.5% */
  --text: #262626;        /* body */
  --muted: #525252;       /* secondary, oklch 43.9% */
  --faint: #666666;       /* tertiary, 4.8:1 even on --raised */
  --soft: #737373;        /* the grey half of a two-tone heading, 4.7:1 */
  --elevated: #ffffff;
  --shadow: 0 0 0 0.5px rgb(0 0 0 / 0.09), 0 1px 1px -1px rgb(0 0 0 / 0.08), 0 2px 2px -1px rgb(0 0 0 / 0.05), 0 12px 32px -12px rgb(0 0 0 / 0.12);
  --btn-shadow: 0 0 0 0.5px rgb(82 82 82 / 0.2), 0 1px 1px -1px rgb(55 55 55 / 0.1), 0 2px 2px -1px rgb(55 55 55 / 0.06), inset 0 1px 0 rgb(255 255 255 / 0.7);
  --primary-bg: #262626;
  --primary-fg: #fdfdfd;
  --primary-shadow: 0 10px 15px -3px rgb(163 163 163 / 0.25), 0 4px 6px -4px rgb(163 163 163 / 0.25);
  --r: #ff0040;
  --g: #00ff6a;
  --b: #2a5cff;
  --b-text: #2a4fd6;
  --accent: #0a0a0a;
  --pass: #007a36;
  --fail: #c8003a;
  --warn: #2a4fd6;
  --pass-bg: rgb(0 160 70 / 0.1);
  --fail-bg: rgb(255 0 64 / 0.08);
  --warn-bg: rgb(42 92 255 / 0.1);
  --sans: "Geist", ui-sans-serif, system-ui, sans-serif;
  --max: 1120px;
  --col: 640px;
  --inner: 880px;
  --prose: 680px;
  /* Surface finish: light containers stay flat; dark ones get grain, a lit corner and an aberration edge (see design/tokens.css). */
  --grain: none;
  --surface-layer: none;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #08080a;
    --surface: #111114;
    --raised: #1a1a1f;
    --line: #1f1f25;
    --line-strong: #2c2c34;
    --fg: #f5f5f5;
    --text: #d4d4d8;
    --muted: #a1a1aa;
    --faint: #8b8b94;
    --soft: #82828b;
    --elevated: #111114;
    --shadow: 0 0 0 0.5px rgb(255 255 255 / 0.06), 0 24px 64px -24px rgb(0 0 0 / 0.8);
    --btn-shadow: 0 0 0 0.5px rgb(255 255 255 / 0.1), inset 0 1px 0 rgb(255 255 255 / 0.06);
    --primary-bg: #f5f5f5;
    --primary-fg: #08080a;
    --primary-shadow: none;
    --grain: url(data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20width=%27160%27%20height=%27160%27%3E%3Cfilter%20id=%27n%27%3E%3CfeTurbulence%20type=%27fractalNoise%27%20baseFrequency=%27.9%27%20numOctaves=%272%27%20stitchTiles=%27stitch%27/%3E%3CfeColorMatrix%20values=%270%200%200%200%201%200%200%200%200%201%200%200%200%200%201%20.34%20.34%20.34%200%200%27/%3E%3CfeComponentTransfer%3E%3CfeFuncA%20type=%27linear%27%20slope=%27.17%27/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect%20width=%27100%25%27%20height=%27100%25%27%20filter=%27url%28%23n%29%27/%3E%3C/svg%3E);
    --surface-layer: linear-gradient(90deg, rgb(42 92 255 / 0.9), transparent 50%) top left / 100% 1px no-repeat, linear-gradient(180deg, rgb(42 92 255 / 0.7), transparent 45%) top left / 1px 100% no-repeat, linear-gradient(270deg, rgb(255 0 64 / 0.85), transparent 50%) bottom right / 100% 1px no-repeat, linear-gradient(0deg, rgb(255 0 64 / 0.65), transparent 45%) top right / 1px 100% no-repeat, var(--grain) 0 0 / 160px 160px, radial-gradient(75% 70% at 0% 0%, rgb(42 92 255 / 0.2), transparent 70%), radial-gradient(65% 60% at 100% 100%, rgb(255 0 64 / 0.14), transparent 70%), linear-gradient(150deg, rgb(255 255 255 / 0.06), transparent 40%);
    --b-text: #7d97ff;
    --accent: #f5f5f5;
    --pass: #00ff6a;
    --fail: #ff3d6e;
    --warn: #7d97ff;
    --pass-bg: rgb(0 255 106 / 0.08);
    --fail-bg: rgb(255 0 64 / 0.12);
    --warn-bg: rgb(42 92 255 / 0.14);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
}
a { color: inherit; }
::selection { background: rgb(42 92 255 / 0.3); color: var(--fg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
img { max-width: 100%; }
code, kbd, pre, samp { font-family: var(--sans); }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--fg); color: var(--bg); padding: 8px 12px; border-radius: 6px; z-index: 10; }
.skip:focus { left: 16px; }

/* ---------- top bar ---------- */
.bar { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px); }
.bar .wrap { display: flex; align-items: center; gap: 24px; height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.brand svg { display: block; }
.bar nav { display: flex; gap: 4px; margin-left: 8px; }
.bar nav a { color: var(--muted); text-decoration: none; font-size: 14px; padding: 8px 10px; border-radius: 6px; }
.bar nav a:hover, .bar nav a[aria-current="page"] { color: var(--fg); }
.bar .spacer { flex: 1; }

/* Buttons: small and quiet. The secondary is a hairline ring with a lit top edge, the primary a solid block
   with a soft drop. No borders, so both sit flush in a row. */
.btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 16px; border-radius: 8px;
  font: 500 14px/20px var(--sans); text-decoration: none; color: var(--fg); background: var(--elevated);
  border: 0; box-shadow: var(--btn-shadow); cursor: pointer; white-space: nowrap;
  transition: background-color 0.15s, box-shadow 0.15s;
}
.btn:hover { background: var(--raised); }
.btn.primary { background: var(--primary-bg); color: var(--primary-fg); box-shadow: var(--primary-shadow); }
.btn.primary:hover { background: color-mix(in srgb, var(--primary-bg) 88%, var(--bg)); }
.btn.small { min-height: 32px; padding: 0 12px; font-size: 13px; }
.btn kbd { font: 500 11px/1 var(--sans); color: inherit; opacity: 0.6; }

/* ---------- hero ---------- */
/* One narrow column of copy, left-aligned, over a wider product shot. The headline and the line under it
   are nearly the same size; the second half is grey, so tone does the work that size used to. */
.hero { padding-top: 88px; padding-bottom: 24px; }
/* Copy and sections share one inner column; only the product shot runs wider. */
.intro, .caption { max-width: var(--inner); margin-left: auto; margin-right: auto; }
.section.wrap, .closer.wrap { max-width: calc(var(--inner) + 48px); }
.hero .lede { max-width: var(--col); }
.hero-mark { display: block; color: var(--fg); margin: 0 0 28px; }
h1, h2, h3 { color: var(--fg); font-weight: 600; letter-spacing: -0.02em; }
.hero h1 { font-size: clamp(30px, 3.4vw, 38px); line-height: 1.12; font-weight: 500; letter-spacing: -0.025em; margin: 0; max-width: 18ch; }
.hero .lede { font-size: clamp(22px, 2.8vw, 30px); line-height: 1.22; font-weight: 500; letter-spacing: -0.015em; color: var(--soft); margin: 4px 0 0; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 32px; }

/* The product shot, with a scan line passing over it like the extension's scan. */
.stage { position: relative; margin: 56px 0 0; border-radius: 12px; background: var(--surface); overflow: hidden; box-shadow: var(--shadow); }
.stage img { display: block; width: 100%; height: auto; }
.stage::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 120px; pointer-events: none;
  background: linear-gradient(to bottom, rgba(42, 92, 255, 0), rgba(42, 92, 255, 0.08) 70%, rgba(0, 255, 106, 0.16) 92%, rgba(255, 0, 64, 0.9) 98.5%, rgba(255, 255, 255, 0.95) 99.2%, rgba(42, 92, 255, 0.9) 100%); mix-blend-mode: screen;
  transform: translateY(-130px); animation: scan 7s cubic-bezier(.45, 0, .25, 1) 1.2s infinite;
}
@keyframes scan { 0% { transform: translateY(-130px); } 55%, 100% { transform: translateY(calc(var(--stage-h, 540px) + 10px)); } }
.caption { color: var(--faint); font-size: 13px; margin-top: 14px; margin-bottom: 0; }

/* ---------- sections ---------- */
/* Section heads are two lines at one size: the claim in ink, the explanation in grey. */
.section { padding-top: 120px; }
.section h2, .split h2 { font-size: 24px; line-height: 32px; font-weight: 500; letter-spacing: -0.012em; margin: 0; max-width: none; }
.section .sub, .split .sub { font-size: 24px; line-height: 32px; font-weight: 500; letter-spacing: -0.012em; color: var(--soft); margin: 0 0 48px; max-width: var(--col); }
.split .sub { margin-bottom: 28px; }
.section .sub code { font-size: 0.72em; vertical-align: 0.1em; }

/* Three layers: plain columns divided by rules, no icon cards. */
.layers { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.layers > div { padding: 28px 28px 8px 0; }
.layers > div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.layers .num { font: 500 24px/1 var(--sans); color: var(--fg); letter-spacing: -0.03em; }
.layers .num small { font-size: 14px; color: var(--muted); margin-left: 6px; letter-spacing: 0; }
.layers h3 { font-size: 16px; font-weight: 500; letter-spacing: -0.01em; margin: 18px 0 6px; }
.layers p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.62; }

/* Packs, styled like a command palette. */
.palette { border-radius: 12px; background: var(--elevated); box-shadow: var(--shadow); overflow: hidden; }
.palette .search { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); color: var(--faint); font-size: 15px; }
.palette .search span { flex: 1; color: var(--muted); }
.palette kbd, .keys kbd {
  font: 500 11px/1 var(--sans); color: var(--muted); border: 1px solid var(--line-strong); border-bottom-width: 2px;
  border-radius: 5px; padding: 4px 6px; background: var(--raised);
}
.palette ul { list-style: none; margin: 0; padding: 8px; }
.palette li { display: grid; grid-template-columns: 22px 1fr auto auto; align-items: center; gap: 14px; padding: 12px; border-radius: 8px; }
.palette li[aria-current="true"] { background: var(--raised); }
.palette .dot { width: 10px; height: 10px; border-radius: 3px; justify-self: center; }
.palette .name { color: var(--fg); font-size: 14px; font-weight: 500; }
.palette .desc { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.palette .count { font: 400 13px/1 var(--sans); color: var(--muted); white-space: nowrap; }
.palette .count b { color: var(--text); font-weight: 500; }
.palette .switch { width: 30px; height: 18px; border-radius: 999px; background: var(--fg); position: relative; }
.palette .switch::after { content: ""; position: absolute; right: 2px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); }
.palette .switch.off { background: var(--raised); }
.palette .switch.off::after { right: auto; left: 2px; background: var(--faint); }
.palette .foot { display: flex; justify-content: space-between; gap: 16px; padding: 12px 20px; border-top: 1px solid var(--line); color: var(--faint); font-size: 12.5px; }
.palette .foot span { display: inline-flex; gap: 8px; align-items: center; }

/* The loop. */
.loop { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); counter-reset: step; }
.loop li { counter-increment: step; padding: 24px 24px 0 0; }
.loop li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.loop li::before { content: counter(step, decimal-leading-zero); font: 500 12px/1 var(--sans); color: var(--faint); }
.loop h3 { font-size: 16px; font-weight: 500; letter-spacing: -0.01em; margin: 14px 0 6px; }
.loop p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.62; }
.loop code, .prose code, .sub code { font-size: 0.86em; color: var(--text); background: var(--raised); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; }

/* Verdict table. */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.verdicts { border-radius: 12px; background: var(--elevated); box-shadow: var(--shadow); overflow: hidden; font-size: 14px; }
.verdicts .row { display: grid; grid-template-columns: 1fr 84px 64px 56px; gap: 12px; padding: 13px 18px; border-top: 1px solid var(--line); align-items: center; }
.verdicts .row:first-child { border-top: 0; color: var(--faint); font: 500 12px/1 var(--sans); padding: 14px 18px; }
.verdicts .rule { color: var(--text); }
.verdicts .rule small { display: block; color: var(--faint); font-size: 12.5px; }
.verdicts .how { font: 400 12px/1 var(--sans); color: var(--muted); }
.verdicts .conf { font: 400 13px/1 var(--sans); color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.pill { font: 500 12px/1 var(--sans); padding: 5px 8px; border-radius: 6px; justify-self: start; }
.pill.pass { color: var(--pass); background: var(--pass-bg); }
.pill.fail { color: var(--fail); background: var(--fail-bg); }
.pill.unsure { color: var(--b-text); background: var(--warn-bg); }
.list-plain { list-style: none; padding: 0; margin: 0; }
.list-plain li { padding: 14px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.list-plain li strong { color: var(--fg); font-weight: 500; }

/* Writing list. */
.posts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.posts li { border-bottom: 1px solid var(--line); }
.posts a { display: grid; grid-template-columns: 64px 1fr auto; gap: 24px; padding: 22px 0; text-decoration: none; align-items: baseline; }
.posts .part { font: 500 13px/1 var(--sans); color: var(--faint); }
.posts .title { color: var(--fg); font-size: 16px; font-weight: 500; letter-spacing: -0.01em; }
.posts .desc { display: block; color: var(--muted); font-size: 14px; margin-top: 4px; max-width: 70ch; }
.posts .go { color: var(--faint); font-size: 14px; }
.posts a:hover .title { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--faint); }
.posts a:hover .go { color: var(--fg); }

/* Install. */
pre.term { margin: 0; background: var(--elevated); box-shadow: var(--shadow); border-radius: 12px; padding: 22px 24px; overflow-x: auto; font-size: 13.5px; line-height: 1.75; color: var(--text); }
pre.term .c { color: var(--faint); }
pre.term .p { color: var(--pass); user-select: none; }

/* Closing line and footer. */
.closer { padding-top: 136px; padding-bottom: 104px; }
.closer h2 { font-size: clamp(30px, 3.4vw, 38px); line-height: 1.12; font-weight: 500; letter-spacing: -0.025em; margin-top: 0; margin-bottom: 0; }
.closer .actions { margin-top: 28px; }
footer.foot { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--faint); font-size: 13px; }
footer.foot .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
footer.foot a { color: var(--muted); text-decoration: none; display: inline-flex; align-items: center; min-height: 24px; }
footer.foot a:hover { color: var(--fg); }
footer.foot nav { display: flex; gap: 20px; }
.selfcheck { display: inline-flex; align-items: center; gap: 8px; font-family: var(--sans); font-size: 12px; }
.selfcheck svg { flex: none; }

/* ---------- writing ---------- */
.page-head { padding-top: 88px; padding-bottom: 48px; }
.page-head h1 { font-size: clamp(30px, 3.4vw, 38px); line-height: 1.12; font-weight: 500; margin: 0; letter-spacing: -0.025em; max-width: 18ch; }
.page-head p { color: var(--soft); font-size: clamp(20px, 2.4vw, 24px); line-height: 1.33; font-weight: 500; letter-spacing: -0.012em; max-width: 34ch; margin: 6px 0 0; }

.article { max-width: var(--prose); margin: 0 auto; padding-top: 72px; display: flex; flex-direction: column; }
/* Title, grey standfirst, byline, then the series line: nothing sits above the title. */
.article > * { order: 2; }
.article > h1, .article > .standfirst, .article > .byline { order: 0; }
.article > .meta { order: 1; margin: -28px 0 40px; }
.article .meta { font: 400 13px/1.4 var(--sans); color: var(--faint); display: flex; gap: 10px; flex-wrap: wrap; }
.article .meta a { color: var(--muted); text-decoration: none; display: inline-flex; align-items: center; min-height: 24px; }
.article .meta { align-items: center; }
.article .meta a:hover { color: var(--fg); }
.article h1 { font-size: clamp(30px, 3.6vw, 40px); line-height: 1.12; font-weight: 500; letter-spacing: -0.025em; margin: 0 0 4px; }
.article .standfirst { font-size: clamp(20px, 2.2vw, 24px); line-height: 1.33; font-weight: 500; letter-spacing: -0.012em; color: var(--soft); margin: 0 0 40px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.byline { display: flex; align-items: center; gap: 12px; margin: 0 0 40px; font-size: 14px; color: var(--muted); }
.byline .avatar { width: 32px; height: 32px; border-radius: 50%; background: #26262b; display: grid; place-items: center; font: 500 12px/1 var(--sans); color: #fff; }
.byline b { color: var(--fg); font-weight: 500; display: block; }

.prose { font-size: 17.5px; line-height: 1.72; color: var(--text); }
.prose p { margin: 0 0 1.25em; }
.prose h2 { font-size: 24px; line-height: 1.25; font-weight: 500; letter-spacing: -0.012em; margin: 2.2em 0 0.7em; }
.prose h3 { font-size: 19px; font-weight: 500; letter-spacing: -0.012em; margin: 1.8em 0 0.6em; }
.prose a { color: var(--fg); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--fg) 35%, transparent); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--fg); }
.prose strong { color: var(--fg); font-weight: 500; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.4em; }
.prose li { margin: 0.45em 0; padding-left: 0.2em; }
.prose li::marker { color: var(--faint); }
.prose blockquote { margin: 1.6em 0; padding: 0 0 0 20px; border-left: 2px solid var(--line-strong); color: var(--muted); }
.prose q { quotes: "\201C" "\201D" "\2018" "\2019"; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose pre { background: var(--surface); box-shadow: 0 0 0 0.5px var(--line-strong); border-radius: 12px; padding: 18px 20px; overflow-x: auto; font-size: 14px; line-height: 1.6; }

.series { margin: 72px 0 0; border-radius: 12px; background: var(--elevated); box-shadow: var(--shadow); overflow: hidden; }
.series h2 { font: 500 13px/1 var(--sans); color: var(--muted); letter-spacing: 0; margin: 0; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.series ol { list-style: none; margin: 0; padding: 8px; }
.series a { display: grid; grid-template-columns: 32px 1fr; gap: 8px; padding: 10px 12px; border-radius: 8px; text-decoration: none; color: var(--muted); font-size: 15px; }
.series a:hover { color: var(--fg); background: var(--raised); }
.series a[aria-current="page"] { color: var(--fg); background: var(--raised); }
.series .n { font: 500 13px/1.6 var(--sans); color: var(--faint); }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 24px 0 0; }
.pager a { display: flex; flex-direction: column; padding: 16px 18px; box-shadow: var(--ring, 0 0 0 0.5px var(--line)); border-radius: 12px; text-decoration: none; color: var(--fg); font-size: 15px; }
.pager a:hover { background: var(--surface); }
/* Previous / Next reads as the card's grey byline, under the title. */
.pager small { order: 1; display: block; color: var(--muted); font: 400 14px/20px var(--sans); margin-top: 2px; }
.pager .next { text-align: right; align-items: flex-end; grid-column: 2; }

.endnote a:not(.btn) { display: inline-block; min-height: 24px; line-height: 24px; }
.endnote { margin: 56px 0 0; padding: 24px 0 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .layers, .loop { grid-template-columns: 1fr 1fr; }
  .layers > div:nth-child(3), .loop li:nth-child(3) { border-left: 0; padding-left: 0; }
  .layers > div:nth-child(3) { padding-left: 0; }
  .split { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 640px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .bar nav { display: none; }
  .hero { padding-top: 56px; }
  .section { padding-top: 88px; }
  .section .sub, .split .sub { font-size: 20px; line-height: 28px; }
  .section h2, .split h2 { font-size: 20px; line-height: 28px; }
  .layers, .loop { grid-template-columns: 1fr; }
  .layers > div, .layers > div + div, .loop li, .loop li + li { padding: 24px 0 8px; border-left: 0; border-top: 1px solid var(--line); }
  .layers > div:first-child, .loop li:first-child { border-top: 0; }
  .palette li { grid-template-columns: 22px 1fr auto; }
  .palette .count { display: none; }
  .palette .foot span:last-child { display: none; }
  .verdicts .row { grid-template-columns: 1fr 64px 48px; }
  .verdicts .how { display: none; }
  .posts a { grid-template-columns: 1fr; gap: 6px; }
  .posts .go { display: none; }
  .pager { grid-template-columns: 1fr; }
  .pager .next { grid-column: 1; text-align: left; align-items: flex-start; }
  .article { padding-top: 48px; }
  .prose { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .stage::after { animation: none; display: none; }
  .btn { transition: none; }
}

.brand { gap: 10px; min-height: 24px; }
.brand .word { font-weight: 600; font-size: 19px; letter-spacing: -0.035em; line-height: 1; color: var(--fg); }
.mark { display: block; overflow: visible; }

/* The logo: the mark from server/src/brand.js (markCss), a glitterball turning. */
.logo-mark{--s:22px;--turn:18s;display:inline-block;width:var(--s);height:var(--s);flex:none;overflow:visible;vertical-align:middle}.logo-mark .gm{transform-box:view-box;transform-origin:32px 32px;animation:gb-sweep var(--turn) linear infinite;animation-delay:calc(var(--turn) * (var(--i) + .5) / -12)}.logo-mark .gf{animation:gb-flip calc(var(--turn) / 6) step-end infinite}.logo-mark .gg{transform-box:fill-box;transform-origin:center;animation:gb-glint calc(var(--turn) / 3) ease-in-out infinite}.logo-mark .g2{animation-delay:calc(var(--turn) / -9)}.logo-mark .g3{animation-delay:calc(var(--turn) / -4.5)}a:hover>.logo-mark,.logo-mark.fast{--turn:4.5s}@keyframes gb-sweep{0%{transform:scaleX(-1)}4.17%{transform:scaleX(-0.99)}8.33%{transform:scaleX(-0.97)}12.5%{transform:scaleX(-0.92)}16.67%{transform:scaleX(-0.87)}20.83%{transform:scaleX(-0.79)}25%{transform:scaleX(-0.71)}29.17%{transform:scaleX(-0.61)}33.33%{transform:scaleX(-0.5)}37.5%{transform:scaleX(-0.38)}41.67%{transform:scaleX(-0.26)}45.83%{transform:scaleX(-0.13)}50%{transform:scaleX(0)}54.17%{transform:scaleX(0.13)}58.33%{transform:scaleX(0.26)}62.5%{transform:scaleX(0.38)}66.67%{transform:scaleX(0.5)}70.83%{transform:scaleX(0.61)}75%{transform:scaleX(0.71)}79.17%{transform:scaleX(0.79)}83.33%{transform:scaleX(0.87)}87.5%{transform:scaleX(0.92)}91.67%{transform:scaleX(0.97)}95.83%{transform:scaleX(0.99)}100%{transform:scaleX(1)}}@keyframes gb-flip{0%{opacity:0}25%{opacity:1}75%{opacity:0}}@keyframes gb-glint{0%,40%,100%{transform:scale(0) rotate(0)}52%{transform:scale(1) rotate(45deg)}64%{transform:scale(0) rotate(90deg)}}
.logo-mark { --s: 22px; }

.hero .lockup { display: flex; align-items: center; gap: 16px; margin: 28px 0 0; }


/* Self-check fixes (2026-10-10): article measure, one fewer radius, standfirst leading, phone targets */
.prose p, .prose li { max-width: 34em; }
.prose code, .loop code, .sub code { border-radius: 6px; }
.page-head p, .article .standfirst { line-height: 1.42; }
@media (max-width: 720px) {
  .brand, footer a, .article .meta a, .site-head nav a, header nav a { min-height: 44px; display: inline-flex; align-items: center; }
  footer a { padding-inline: 8px; }
}
@media (max-width: 720px) {
  footer.foot a, .btn.small, .endnote a { min-height: 44px; }
  footer.foot nav { gap: 8px; } footer.foot nav a { padding-inline: 8px; }
}
@media (max-width: 720px) {
  footer.foot nav a, .article .endnote span a, .endnote span a { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .skip { min-height: 44px; display: inline-flex; align-items: center; }
}

/* Dark-surface finish on the site's panels: one pseudo-element over the flat surface, so text still sits on a
   solid colour and nothing blurs or glows. Does nothing in light. Same recipe as design/tokens.css .surface. */
.stage, .palette, .verdicts, pre.term, .series, .surface { position: relative; isolation: isolate; }
.stage::before, .palette::before, .verdicts::before, pre.term::before, .series::before, .surface::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; background: var(--surface-layer, none); }
