/* The archive pages in the v5 design (Notes, articles, Updates, About, project records, 404): the homepage's paper,
   ink and one red, Newsreader for reading, Geist for anything you click, Geist Mono for dates and labels. Reading
   pages keep a measure of about 65 characters; figures may use the whole column.
   The article figures (draws.css, stop.css, agent-flow.css) were written against the first site's token names and
   reset, so both are kept here, mapped onto v5's values. Teal stays as the figures' "gained" colour only. */
/* Georgia, resized to Newsreader's measurements, stands in while Newsreader loads, so the text doesn't jump when it
   arrives (measured from the Latin files with fontTools: width, ascent and descent) */
@font-face { font-family: "Newsreader Fallback"; src: local("Georgia"); size-adjust: 92.2%; ascent-override: 79.72%; descent-override: 28.74%; line-gap-override: 0%; }
@font-face { font-family: "Newsreader Fallback"; font-style: italic; src: local("Georgia Italic"), local("Georgia-Italic"); size-adjust: 84.61%; ascent-override: 86.87%; descent-override: 31.32%; line-gap-override: 0%; }
:root {
  --paper: #F6F6F3; --sheet: #FFFFFF; --ink: #121418; --ink-2: #4A4F57;
  --hair: rgba(18, 20, 24, .12); --hair-2: rgba(18, 20, 24, .07); --dash: rgba(18, 20, 24, .28);
  --red: #E0301E; --red-ink: #C42412;
  --serif: "Newsreader", "Newsreader Fallback", Georgia, serif; --sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, Menlo, monospace;
  --g: clamp(16px, 3.4vw, 48px); --ease: cubic-bezier(.2, .7, .1, 1);
  /* the figures' names */
  --muted: var(--ink-2); --faint: #63686F; --teal: #1D6B5F; --focus: var(--red);
  --lift: 0 1px 0 rgba(18, 20, 24, .04), 0 0 0 1px var(--hair-2), 0 18px 36px -24px rgba(18, 20, 24, .28);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure, pre, dl, dd { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2.5px solid var(--red); outline-offset: 3px; }
.skip { position: absolute; left: 12px; top: -60px; padding: 10px 14px; background: var(--ink); color: #fff; z-index: 100; }
.skip:focus { top: 12px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.meta { font: 400 13px/1.4 var(--mono); color: var(--ink-2); letter-spacing: .01em; }
.kick { font: 500 12.5px/1.4 var(--mono); color: var(--red-ink); letter-spacing: .02em; }

/* ---------- header and footer (as on Home) ---------- */
.top { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; padding: 0 var(--g); background: color-mix(in srgb, var(--paper) 88%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--hair); }
.mark { font: italic 500 26px/1 var(--serif); text-decoration: none; letter-spacing: -.01em; padding: 6px 0; }
.mark span { color: var(--red); }
.nav { display: flex; gap: clamp(14px, 2.2vw, 30px); font-size: 15px; font-weight: 500; }
.nav a { text-decoration: none; padding: 8px 0; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .35s var(--ease); }
.nav a:hover, .nav a[aria-current] { background-size: 100% 1.5px; }
.nav .email { color: var(--red-ink); }
@media (max-width: 560px) { .nav .hide-s { display: none; } }
/* the four links left from 380 px down: tighter, and under 340 px Writing waits in the page (Home shows it a scroll away) */
@media (max-width: 380px) { .nav { gap: 12px; font-size: 14px; } }
@media (max-width: 340px) { .nav .hide-xs { display: none; } }
footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 72px var(--g) 40px; color: var(--ink-2); font-size: 14px; }
footer .foot-nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
footer a { text-underline-offset: 3px; text-decoration-thickness: 1px; }
footer a:hover { color: var(--red-ink); }

/* ---------- index pages: a big italic title, then the record ---------- */
.page { padding: 0 var(--g); }
.head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 40px; margin-top: clamp(24px, 4vw, 48px); padding-bottom: 14px; border-bottom: 3px solid var(--ink); }
.head h1 { font: italic 600 clamp(56px, 9vw, 140px)/.88 var(--serif); font-variation-settings: "opsz" 72; letter-spacing: -.04em; text-wrap: balance; }
.head .side { max-width: 30em; color: var(--ink-2); }
.head .side a { color: var(--ink); text-underline-offset: 4px; }
.head .side a:hover { color: var(--red-ink); }

/* an entry: the date column, then the text (Notes and Updates) */
.entry { display: grid; grid-template-columns: minmax(0, 10em) minmax(0, 1fr); gap: 6px 32px; padding: 26px 0 28px; border-bottom: 1px solid var(--hair); scroll-margin-top: 84px; }
.entry > .when { padding-top: 6px; }
.entry > .when time { display: block; font: 700 clamp(26px, 2.4vw, 34px)/1 var(--serif); font-variation-settings: "opsz" 72; font-feature-settings: "lnum"; white-space: nowrap; }
.entry > .when .meta { display: block; margin-top: 8px; }
.entry h2 { font: 600 clamp(26px, 2.6vw, 36px)/1.08 var(--serif); letter-spacing: -.015em; text-wrap: balance; }
.entry h2 a { text-decoration: none; }
.entry h2 a:hover { text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.entry .was { margin-bottom: 6px; color: var(--ink-2); font: italic 400 17px/1.4 var(--serif); }
.entry img { max-width: min(440px, 100%); margin: 18px 0 4px; border-radius: 10px; }
.entry .from { margin-top: 14px; font-size: 15px; color: var(--ink-2); }
.entry .from a, .entry .links a { color: var(--red-ink); text-underline-offset: 4px; }
.entry .links { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 14px; font-size: 15px; font-weight: 500; }
.entry:target h2, .entry:target .text { background: linear-gradient(transparent 62%, rgba(224, 48, 30, .2) 0); }
@media (max-width: 700px) { .entry { grid-template-columns: 1fr; } .entry > .when { padding-top: 0; } .entry > .when time { display: inline; margin-right: 10px; } .entry > .when .meta { display: inline; } }

/* ---------- reading text: Notes bodies, articles, records, About ---------- */
.prose { font: 400 19px/1.65 var(--serif); overflow-wrap: break-word; }
.prose > :is(p, ul, ol, h2, h3, blockquote, hr, .article-faq) { max-width: 34em; }
.prose p + p, .prose p + ul, .prose ul + p, .prose p + ol, .prose ol + p { margin-top: .9em; }
.prose a { text-decoration-color: var(--red); text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.prose a:hover { color: var(--red-ink); }
.prose h2 { margin: 1.9em 0 .6em; font: 600 clamp(26px, 2.4vw, 32px)/1.15 var(--serif); letter-spacing: -.015em; scroll-margin-top: 84px; }
.prose h3 { margin: 1.6em 0 .5em; font: 600 22px/1.25 var(--serif); letter-spacing: -.01em; }
.prose > ul:not([class]), .prose > ol:not([class]) { margin-block: 1em; padding-left: 1.2em; }
.prose > ul:not([class]) { list-style: disc; }
.prose > ol:not([class]) { list-style: decimal; }
.prose > :is(ul, ol):not([class]) li + li { margin-top: .5em; }
.prose li::marker { color: var(--red); }
.prose > table { width: 100%; margin-block: 1.4em; border-collapse: collapse; font: 400 15.5px/1.5 var(--sans); }
.prose > table :is(th, td) { padding: 10px 14px 10px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--hair); }
.prose > table th { font-weight: 600; border-bottom: 2px solid var(--ink); }
.prose strong, .prose b { font-weight: 600; }
.prose blockquote { margin: 1.4em 0; padding-left: 18px; border-left: 3px solid var(--red); font-style: italic; }
.prose hr { border: 0; border-top: 1px dashed var(--dash); margin: 2.2em 0 1.4em; }
.prose hr + p { font: 400 15.5px/1.6 var(--sans); color: var(--ink-2); }
.prose :not(pre) > code { font: 500 .8em/1 var(--mono); padding: 2px 5px 3px; border-radius: 5px; background: rgba(18, 20, 24, .06); overflow-wrap: anywhere; }
.prose pre { overflow-x: auto; }
.prose img { border-radius: 10px; }
/* figures and tables keep the interface face they were designed in (zero specificity: their own CSS wins) */
:where(.prose) :where(figure, table, .dc-try, .ks-sim, .ks-calc, .ks-check, .af) { font-family: var(--sans); font-size: 17px; line-height: 1.55; }

/* ---------- an article or a project record ---------- */
.reading { max-width: 860px; margin: 0 auto; padding: clamp(28px, 5vw, 56px) var(--g) 0; }
.crumb { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 22px; font-size: 15px; font-weight: 500; }
.crumb a { text-underline-offset: 4px; color: var(--ink-2); }
.crumb a:hover { color: var(--red-ink); }
.article-header { padding-bottom: 26px; border-bottom: 3px solid var(--ink); }
.article-header h1 { margin-top: 10px; font: 800 clamp(40px, 6vw, 80px)/.94 var(--serif); font-variation-settings: "opsz" 72; letter-spacing: -.035em; text-wrap: balance; }
.article-subtitle { margin-top: 16px; font: italic 400 clamp(20px, 2.2vw, 27px)/1.3 var(--serif); color: var(--ink); max-width: 28em; text-wrap: balance; }
.article-cover { margin-top: 26px; padding-block: 10px; border-block: 1px solid var(--hair); }
.article-cover img { width: 100%; height: auto; aspect-ratio: 1200 / 630; }
.article-standfirst { margin-top: 22px; font: 400 clamp(19px, 1.7vw, 21px)/1.6 var(--serif); max-width: 34em; }
.article-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.article-tags li { font: 500 12px/1 var(--mono); color: var(--ink-2); padding: 6px 10px 7px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--hair); }
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 24px; margin-top: 22px; font: 400 13px/1.5 var(--mono); color: var(--ink-2); }
.article-meta a { color: var(--ink); text-underline-offset: 3px; }
.article-body { margin-top: 34px; }
.article-faq { margin-top: 3em; padding-top: 14px; border-top: 3px solid var(--ink); }
.article-faq h2 { margin-top: 0; font: italic 600 clamp(30px, 3vw, 40px)/1 var(--serif); }
.article-faq h3 { margin-top: 1.5em; }
.article-author { margin-top: 2.4em; padding-top: 18px; border-top: 1px dashed var(--dash); font: 400 15.5px/1.7 var(--sans); color: var(--ink-2); max-width: 40em; }
.article-author a { color: var(--ink); text-underline-offset: 3px; text-decoration-color: var(--red); }

/* under an article: the like and the anonymous comments (/shared/reactions.js); each part shows once its function
   answers. The like is a sentence in the essay's voice with the heart as its button; the comment form is a compose
   card (below). */
.reactions { margin-top: 3.4em; }
.like-row { display: flex; align-items: center; gap: 14px; max-width: 34em; }
.like-row[hidden], .comments[hidden] { display: none; }
.like { position: relative; flex: none; display: grid; place-items: center; width: 48px; height: 48px; margin: -6px -4px -6px -7px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; transition: transform .2s var(--ease); }
.like svg { width: 34px; height: 34px; overflow: visible; fill: none; stroke: var(--red); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; transition: fill .25s, transform .25s var(--ease); }
.like:hover svg { fill: rgba(224, 48, 30, .12); transform: scale(1.06); }
.like:active { transform: scale(.92); }
.like[aria-pressed="true"] svg { fill: var(--red); }
/* a small ring of dots when a like lands */
.like::after { content: ""; position: absolute; inset: 50%; width: 4px; height: 4px; margin: -2px; border-radius: 50%; opacity: 0; pointer-events: none;
  box-shadow: 0 -30px 0 var(--red), 26px -15px 0 var(--red), 26px 15px 0 var(--red), 0 30px 0 var(--red), -26px 15px 0 var(--red), -26px -15px 0 var(--red); }
.like.pop svg { animation: like-pop .45s var(--ease); }
.like.pop::after { animation: like-ring .55s var(--ease); }
@keyframes like-pop { 0% { transform: scale(1); } 40% { transform: scale(1.22); } 100% { transform: scale(1); } }
@keyframes like-ring { 0% { opacity: 0; transform: scale(.55); } 30% { opacity: 1; } 100% { opacity: 0; transform: scale(1.12); } }
.like-words { display: grid; gap: 3px; }
.like-line { font: italic 400 clamp(20px, 1.9vw, 23px)/1.25 var(--serif); letter-spacing: -.005em; }
.like-note { font-size: 13.5px; color: var(--ink-2); }

.comments { margin-top: 2.8em; padding-top: 14px; border-top: 3px solid var(--ink); }
.comments-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; }
.comments h2 { font: italic 600 clamp(30px, 3vw, 40px)/1 var(--serif); }
.comments-count { font: italic 400 18px/1.3 var(--serif); color: var(--ink-2); }
.comment-list { margin-top: 8px; }
.comment-list li { padding: 20px 0 18px; border-bottom: 1px solid var(--hair); }
.comment-text { max-width: 34em; font: 400 19px/1.6 var(--serif); white-space: pre-line; overflow-wrap: anywhere; }
.comment-list time { display: block; margin-top: 8px; font-size: 13px; color: var(--ink-2); }

/* the comment form, in the site's own language (paper, ink, one red, Newsreader to write in, Geist to click) with
   the manners of a good native form: the field grows with the writing, Send wakes up once there is something to
   send, buttons answer the press, and a sent comment is answered in place */
.compose { margin-top: 24px; }
.compose [hidden] { display: none; }
.compose-title { display: block; font: 600 22px/1.25 var(--serif); letter-spacing: -.01em; }
.compose-field { display: block; width: 100%; min-height: calc(3 * 1.6em + 32px); margin-top: 12px; padding: 14px 18px 18px; border: 0; border-radius: 12px; background: var(--sheet); box-shadow: inset 0 0 0 1px var(--hair); font: 400 19px/1.6 var(--serif); color: var(--ink); resize: none; overflow-y: auto; transition: box-shadow .2s ease; }
.compose-field::placeholder { font-style: italic; color: var(--faint); opacity: 1; }
.compose-field:hover { box-shadow: inset 0 0 0 1px var(--dash); }
.compose-field:focus { outline: 0; box-shadow: inset 0 0 0 1.5px var(--ink); }
.compose-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px 28px; margin-top: 14px; }
.compose-privacy { display: flex; gap: 8px; max-width: 34em; font: 400 13.5px/1.5 var(--sans); color: var(--ink-2); }
.compose-privacy svg { flex: none; width: 14px; height: 14px; margin-top: 2px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round; }
.compose-actions { display: flex; flex: none; align-items: center; gap: 12px; }
.compose-count { font: 400 13px/1 var(--mono); color: var(--ink-2); }
.compose-count:empty { display: none; }
.compose-send { min-width: 96px; min-height: 44px; padding: 0 22px 1px; border: 0; border-radius: 999px; background: var(--ink); color: var(--paper); font: 500 15px/1 var(--sans); cursor: pointer; transition: background .2s, color .2s, box-shadow .2s, transform .1s ease-out; }
.compose-send:hover:not(:disabled) { background: var(--red-ink); color: #fff; }
.compose-send:active:not(:disabled) { transform: scale(.96); }
.compose-send:disabled { background: transparent; box-shadow: inset 0 0 0 1.5px var(--hair); color: var(--faint); cursor: default; }
.compose-send.busy { color: transparent; background: var(--ink) radial-gradient(circle, var(--paper) 2.5px, transparent 3px) center / 12px 12px no-repeat; box-shadow: none; animation: compose-busy .9s ease-in-out infinite; }
@keyframes compose-busy { 50% { background-size: 22px 22px; } }
.compose-error { margin-top: 10px; font: 500 14px/1.4 var(--sans); color: var(--red-ink); }
.compose-error:empty { display: none; }
/* sent: the answer takes the form's place, left-aligned like everything else on the page */
.compose-done { display: flex; align-items: flex-start; gap: 18px; padding-top: 6px; }
.compose-check { flex: none; width: 44px; height: 44px; fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.compose-check circle { fill: var(--red); stroke: none; }
.compose-check path { stroke: #fff; stroke-dasharray: 34; stroke-dashoffset: 0; }
.compose-done.in .compose-check { animation: compose-pop .5s cubic-bezier(.2, .9, .3, 1.2) both; }
.compose-done.in .compose-check path { animation: compose-draw .38s .16s cubic-bezier(.4, 0, .2, 1) both; }
.compose-done-title { font: italic 600 clamp(26px, 2.6vw, 32px)/1.1 var(--serif); letter-spacing: -.015em; }
.compose-done-text { margin-top: 8px; font: 400 17px/1.5 var(--serif); color: var(--ink-2); }
.compose-again { margin-top: 18px; min-height: 42px; padding: 0 18px 1px; border: 0; border-radius: 999px; background: var(--sheet); box-shadow: inset 0 0 0 1.5px var(--ink); font: 500 15px/1 var(--sans); color: var(--ink); cursor: pointer; transition: box-shadow .2s, color .2s, transform .1s ease-out; }
.compose-again:hover { box-shadow: inset 0 0 0 1.5px var(--red); color: var(--red-ink); }
.compose-again:active { transform: scale(.96); }
.compose .in { animation: compose-in .32s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes compose-in { from { opacity: 0; transform: translateY(4px); } }
@keyframes compose-pop { from { opacity: 0; transform: scale(.6); } }
@keyframes compose-draw { from { stroke-dashoffset: 34; } }
.comment-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 560px) {
  .compose-foot { flex-direction: column; align-items: stretch; }
  .compose-send { flex: 1; }
}
}
@media (prefers-reduced-motion: reduce) {
  .compose .in, .compose-done.in .compose-check, .compose-done.in .compose-check path { animation: none; }
  .compose .in { animation: compose-fade .2s ease both; }
  .compose-send.busy { animation: none; }
}
@keyframes compose-fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .like.pop svg, .like.pop::after { animation: none; } .like { transition: none; } }

/* /moderate/: the owner's comment inbox (/shared/moderate.js) */
.mod-key { margin-top: 28px; max-width: 30em; }
.mod-key[hidden], .mod[hidden] { display: none; }
.mod-key label { display: block; font: 500 15px/1.4 var(--sans); }
.mod-key div { display: flex; gap: 10px; margin-top: 8px; }
.mod-key input { flex: 1; min-width: 0; min-height: 44px; padding: 0 14px; border: 0; border-radius: 10px; background: var(--sheet); box-shadow: inset 0 0 0 1.5px var(--hair); font: 400 15px/1 var(--mono); }
.mod-key input:focus { outline: 0; box-shadow: inset 0 0 0 2px var(--ink); }
.mod-key button, .mod-acts button, .mod-lock button { min-height: 40px; padding: 9px 18px 10px; border: 0; border-radius: 999px; background: var(--sheet); box-shadow: inset 0 0 0 1.5px var(--ink); font: 500 14.5px/1 var(--sans); cursor: pointer; }
.mod-key button, .mod-acts .go { background: var(--ink); color: var(--paper); box-shadow: none; }
.mod-acts .go:hover, .mod-key button:hover { background: var(--red-ink); }
.mod-acts .quiet { box-shadow: inset 0 0 0 1.5px var(--hair); color: var(--ink-2); }
.mod-acts .quiet:hover { box-shadow: inset 0 0 0 1.5px var(--red); color: var(--red-ink); }
.mod-acts button:disabled { opacity: .5; }
.mod-status { margin-top: 12px; min-height: 1.4em; font-size: 14.5px; color: var(--ink-2); }
.mod-part { margin-top: 44px; max-width: 860px; }
.mod-part h2 { padding-bottom: 10px; border-bottom: 3px solid var(--ink); font: italic 600 clamp(28px, 3vw, 40px)/1 var(--serif); }
.mod-n { font: 500 15px/1 var(--mono); font-style: normal; color: var(--ink-2); vertical-align: middle; }
.mod-hint { margin-top: 8px; font-size: 14.5px; color: var(--ink-2); }
.mod-list li { padding: 18px 0; border-bottom: 1px solid var(--hair); }
.mod-meta { font: 400 13px/1.5 var(--mono); color: var(--ink-2); }
.mod-meta a { color: var(--ink); text-underline-offset: 3px; }
.mod-text { margin-top: 8px; max-width: 34em; font: 400 18px/1.6 var(--serif); white-space: pre-line; overflow-wrap: anywhere; }
.mod-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.mod-empty { color: var(--ink-2); font-size: 15px; }
.mod-lock { margin-top: 36px; }

/* project records */
.record-scope { margin-top: 26px; padding-top: 4px; font-size: 15.5px; line-height: 1.6; }
.record-scope div { display: grid; grid-template-columns: 11em minmax(0, 1fr); gap: 4px 18px; padding: 10px 0; border-bottom: 1px solid var(--hair); }
.record-scope dt { font: 500 12.5px/1.6 var(--mono); color: var(--ink-2); padding-top: 2px; }
.record-explore { margin-top: 40px; padding-top: 18px; border-top: 1px dashed var(--dash); }
.record-explore a { display: inline-block; padding: 8px 0; font-size: 16px; font-weight: 500; color: var(--red-ink); text-underline-offset: 4px; }
.record-dates { margin-top: 18px; font: 400 13px/1.6 var(--mono); color: var(--ink-2); }
.record-dates a { color: var(--ink); }
@media (max-width: 640px) { .record-scope div { grid-template-columns: 1fr; } }

/* "more" lists after an article or a record, and the lists on About and the 404 */
.more-list { margin-top: 64px; }
.more-list h2 { padding-bottom: 10px; border-bottom: 3px solid var(--ink); font: italic 600 clamp(28px, 3vw, 40px)/1 var(--serif); }
.more-list ul { border-top: 0; }
.link-list li { display: grid; grid-template-columns: minmax(0, 15em) minmax(0, 1fr); gap: 4px 24px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--hair); }
.link-list li > a { font: 500 clamp(19px, 1.7vw, 23px)/1.2 var(--serif); text-decoration: none; }
.link-list li > a:hover { color: var(--red-ink); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.link-list li > span { color: var(--ink-2); font-size: 15.5px; }
/* every row says it is a link: a quiet arrow after the title (red on hover), and the whole row is the target */
.link-list li { position: relative; }
.link-list li > a::before { content: ""; position: absolute; inset: 0; }
.link-list li > a::after { content: "→"; display: inline-block; margin-left: .35em; font: 500 .8em/1 var(--mono); color: var(--faint); transition: transform .2s var(--ease), color .2s; }
.link-list li:hover > a { color: var(--red-ink); }
.link-list li:hover > a::after { color: var(--red-ink); transform: translateX(3px); }
.link-list li > a:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
.more-list > p { margin-top: 16px; font-size: 15px; font-weight: 500; }
.more-list > p a { text-underline-offset: 4px; }
.more-list > p a:hover { color: var(--red-ink); }
@media (max-width: 640px) { .link-list li { grid-template-columns: 1fr; } }

/* About and the 404 */
.about-body { margin-top: clamp(28px, 4vw, 44px); }
.about-body.prose { font-size: clamp(20px, 1.7vw, 23px); line-height: 1.55; }
.about-body.prose > p:first-child { font-size: 1.25em; line-height: 1.35; letter-spacing: -.01em; }
.about-part { margin-top: 64px; max-width: 980px; }
.about-part h2 { padding-bottom: 10px; border-bottom: 3px solid var(--ink); font: italic 600 clamp(28px, 3vw, 40px)/1 var(--serif); }
.about-more { margin-top: 14px; font-size: 15px; font-weight: 500; }
.about-more a { text-underline-offset: 4px; }
.nf-lede { margin-top: 28px; max-width: 32em; font: 400 21px/1.5 var(--serif); }
.nf-ways { margin-top: 22px; max-width: 980px; }

/* touch: every small link and button gets at least a 24px-tall target (WCAG 2.5.8) without changing how it looks */
footer a { display: inline-block; padding-block: 6px; }
.crumb a, .more-list > p a, .about-more a, .entry .links a { display: inline-block; padding-block: 6px; }
.link-list li > a { display: inline-block; padding-block: 3px; }
/* very wide screens: the page stops growing at 1760px and sits in the middle */
main, footer { max-width: 1760px; margin-inline: auto; }
.top { padding-inline: max(var(--g), calc((100% - 1760px) / 2 + var(--g))); }   /* lines up with the capped page */

/* a record's At a glance: links to try or read it, a few numbers, one real picture; the prose below stays as it was */
.glance { margin-top: 22px; padding: 0 0 6px; }
.glance-kick { font: 500 12px/1.35 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); }
.glance-links { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 14px; list-style: none; padding: 0; }
.glance-links a { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px 10px; border-radius: 999px; background: var(--sheet); box-shadow: inset 0 0 0 1.5px var(--ink); font: 500 15px/1 var(--sans); text-decoration: none; color: var(--ink); transition: background .2s, color .2s, box-shadow .2s; }
.glance-links li:first-child a { background: var(--ink); color: var(--paper); }
.glance-links a:hover { box-shadow: inset 0 0 0 1.5px var(--red); color: var(--red-ink); }
.glance-links li:first-child a:hover { background: var(--red-ink); color: #fff; box-shadow: none; }
.glance-links a span { font-family: var(--mono); font-size: .9em; }
.glance-rows { margin-top: 20px; border-top: 1px solid var(--hair); }
.glance-rows > div { display: grid; grid-template-columns: 9em minmax(0, 1fr); gap: 4px 20px; padding: 12px 0; border-bottom: 1px solid var(--hair); }
.glance-rows dt { padding-top: 3px; font: 500 12.5px/1.4 var(--mono); color: var(--ink-2); }
.glance-rows dd { margin: 0; font: 400 17px/1.5 var(--serif); color: var(--ink); }
.glance-rows strong { font-weight: 700; font-feature-settings: "lnum"; }
.glance-rows a { color: inherit; text-underline-offset: 3px; }
@media (max-width: 560px) { .glance-rows > div { grid-template-columns: 1fr; } }
.glance-shot { margin: 22px 0 0; }
.glance-shot img { width: auto; max-width: 100%; height: auto; max-height: 540px; border-radius: 10px; box-shadow: var(--lift); }
.glance-shot figcaption { margin-top: 8px; font: italic 14.5px/1.4 var(--serif); color: var(--ink-2); }

/* the outline beside a long article (toc: true), like a document outline. Labels are short (the part before a colon),
   and a section's parts only unfold while it is being read. From 1180px the outline is text beside the column; between
   980 and 1180px it is a column of short lines, each showing its own label on hover; phones get a folded list. */
.toc { display: none; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc a { display: block; text-decoration: none; color: var(--ink-2); }
.toc-mobile { margin-top: 18px; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.toc-mobile summary { padding: 12px 0; cursor: pointer; font: 500 13px/1.2 var(--mono); color: var(--ink-2); }
.toc-mobile ol { margin: 0 0 12px; padding-left: 1.2em; display: grid; gap: 6px; font-size: 15.5px; }
.toc-mobile a { color: var(--ink); text-underline-offset: 3px; }
@media (min-width: 980px) {
  .toc-mobile { display: none; }
  .toc { display: block; position: fixed; z-index: 20; top: 132px; left: calc(50% - 430px - 30px); width: 22px; }
  .toc-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .toc ol { display: grid; gap: 9px; }
  .toc ol ol { display: none; margin-top: 9px; }
  .toc li.open > ol { display: grid; }
  .toc a { position: relative; height: 4px; font-size: 0; }
  .toc a::before { content: ""; position: absolute; left: 0; top: 0; width: 18px; height: 3px; border-radius: 2px; background: var(--hair); transition: background .2s; }
  .toc ol ol a::before { left: 7px; width: 11px; }
  .toc a:hover::before { background: var(--ink-2); }
  .toc a[aria-current]::before { background: var(--red); }
  /* one label, beside its own line */
  .toc a::after { content: attr(data-short); position: absolute; left: 28px; top: -9px; padding: 4px 8px; border-radius: 6px; background: var(--ink); color: var(--paper); font: 500 12.5px/1.2 var(--sans); white-space: nowrap; opacity: 0; transform: translateX(-4px); pointer-events: none; transition: opacity .15s, transform .15s; }
  .toc a:hover::after, .toc a:focus-visible::after { opacity: 1; transform: none; }
}
@media (min-width: 1180px) {
  .toc { left: calc(50% - 430px - 142px); width: 150px; }
  .toc .toc-title { position: static; width: auto; height: auto; clip: auto; margin: 0 0 10px; font: 500 11px/1.2 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--faint); }
  .toc ol { gap: 1px; }
  .toc ol ol { margin: 2px 0 6px 10px; gap: 0; }
  .toc a { height: auto; padding: 4px 0 4px 10px; font: 500 13.5px/1.3 var(--sans); box-shadow: inset 1px 0 0 var(--hair); transition: color .15s, box-shadow .15s; }
  .toc ol ol a { font-size: 12.5px; padding-block: 3px; color: var(--faint); }
  .toc a::before, .toc a::after { display: none; }
  .toc a:hover { color: var(--ink); }
  .toc a[aria-current] { color: var(--ink); box-shadow: inset 2px 0 0 var(--red); }
}
@media (prefers-reduced-motion: reduce) { .toc a::after, .toc a::before { transition: none; } }
