/*
 * Talks & Thoughts: the shared stylesheet for quinan.tech/talks/ and every talk page under it.
 *
 * The house is the same as quinan.tech and /rag/: paper, ink, the chickadee's tan, Libre Caslon,
 * Archivo and IBM Plex Mono. Each talk differs by its accent alone, set on :root in the page:
 *
 *     --accent        fills, rules, emblem colour
 *     --accent-deep   text-safe version (4.5:1 or better on paper): numerals, labels, links on hover
 *     --accent-soft   card shadows, highlights, selection
 *     --accent-wash   faint backgrounds
 *
 * Components (class names), roughly in reading order:
 *   site-nav, crumbs, progress            fixed nav with the breadcrumb and a reading-progress hairline
 *   hero, talk-hero, h1-mask, lede,       the opening: kicker, two-line title, lede, facts, links, emblem
 *   hero-meta, hero-ctas, emblem
 *   section, section-head, wingbar        a chapter of the talk: kicker "01 · Name", wing bar, h2
 *   prose (+ .read for essays)            body text at a reading measure
 *   epigraph, pull, statement             quotations and the lines that should land
 *   duo, card, plate-label                two things side by side; the printed card with an offset shadow
 *   cards (.two/.three), framework        grids of cards; numbered framework cards
 *   tags, flow, chain, stats              chips; A -> B -> C diagrams; stacked chains; big numbers
 *   steps, ruled, agenda, checks          numbered steps; label/value rows; timed agenda; checklists
 *   code-cap, pre.code, table-wrap        code and tables
 *   downloads, chart, legend              files to download; figures with inline SVG
 *   note, credits, coda                   asides; who made it; the closing
 *   more, more-card                       "More talks and thoughts"
 *   subscribe, sub-form                   the dark band with the email form and the feed
 *   footer
 *   entries, entry, filters, record       the index page only
 *   hero-bird, bird-stage, species        the chickadee on the index (drawn and moved by /chickadee.js)
 *
 * Motion is calm and precise, and only ever moves transform and opacity (plus the dash of an emblem's lines as it
 * draws). It runs only when <html> has .js.motion (set in each page's head when reduced motion is not asked for);
 * without it every page is simply complete. In reading order:
 *   opening                               one sequence: kicker, title lines lifting out of their own masks, lede,
 *                                         facts, links; the emblem's plate settles and its drawing draws itself in
 *   reveal                                parts fade up as they reach the reading line (talks.js adds .in and staggers
 *                                         --d); grids step in child by child; wing bars draw from the left
 *   hover lines, plates                   underlines draw rather than jump; cards lift off a shadow that stays put
 *   between pages                         cross-document view transitions: a short cross-fade, the nav held still,
 *                                         each talk's emblem carried from its index card to its page (em-* names)
 */

:root {
    --paper: #f6f1e7;
    --paper-deep: #ede4d2;
    --cheek: #fffdf8;
    --flank: #b39a6b;
    --flank-deep: #8a7344;
    --flank-soft: #d8c9a8;
    --ink: #17130c;
    --ink-70: rgba(23, 19, 12, 0.76);
    --ink-55: rgba(23, 19, 12, 0.62);
    --rule: rgba(23, 19, 12, 0.16);
    --rule-strong: rgba(23, 19, 12, 0.55);
    --error: #8f2d1f;

    --accent: var(--flank);
    --accent-deep: #765f36;
    --accent-soft: var(--flank-soft);
    --accent-wash: #efe6d4;

    --display: 'Libre Caslon Display', 'Georgia', serif;
    --serif: 'Libre Caslon Text', 'Georgia', serif;
    --body: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
    --mono: 'IBM Plex Mono', 'Consolas', monospace;
    --label-s: 0.74rem;
    --track-s: 0.16em;
    --label-m: 0.75rem;
    --track-m: 0.14em;
    --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
    --ease-type: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-fade: cubic-bezier(0.3, 0, 0.2, 1);
    --ease-move: cubic-bezier(0.45, 0, 0.15, 1);
    --t-hover: 0.4s;
    --nav-h: 60px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    color-scheme: light;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-h) + 20px);
    -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
    position: relative;
    font-family: var(--body);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--ink);
    background: var(--paper);
    overflow-x: hidden;
}

/* Paper grain, kept faint */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 90;
    pointer-events: none;
    opacity: 0.07;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.08 0 0 0 0 0.05 0 0 0 0.6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--accent-soft); color: var(--ink); }
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.subscribe :focus-visible, footer :focus-visible { outline-color: var(--paper); }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip {
    position: absolute; left: 16px; top: -60px; z-index: 200;
    background: var(--ink); color: var(--paper);
    font-family: var(--mono); font-size: var(--label-m); letter-spacing: var(--track-m);
    text-transform: uppercase; text-decoration: none; padding: 10px 14px;
}
.skip:focus { top: 12px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 480px) { .wrap { padding: 0 18px; } }

.kicker {
    font-family: var(--mono);
    font-size: var(--label-s);
    letter-spacing: var(--track-s);
    text-transform: uppercase;
    color: var(--ink-55);
    text-wrap: balance;
}
.kicker .no { color: var(--accent-deep); }

/* Wing bar: two hairlines of unequal length, the bird's own marking, in the talk's colour */
.wingbar { display: block; width: 60px; height: 7px; position: relative; margin: 14px 0 18px; }
.wingbar::before, .wingbar::after { content: ''; position: absolute; left: 0; height: 1px; background: var(--accent); }
.wingbar::before { top: 0; width: 60px; }
.wingbar::after { top: 6px; width: 34px; }

.text-link {
    position: relative;
    display: inline-block;
    font-family: var(--mono);
    font-size: var(--label-m);
    letter-spacing: var(--track-m);
    text-transform: uppercase;
    text-decoration: none;
    color: var(--ink);
    border-bottom: 1px solid var(--rule-strong);
    padding-bottom: 3px;
    background: none;
    border-top: 0; border-left: 0; border-right: 0;
    cursor: pointer;
}

/* Hover lines: a hairline that draws from the left on hover and keyboard focus and goes back the way it came.
   Each sits over the link's resting border, so nothing is laid out again. */
.text-link::after, .crumb::after, .nav-link::after, .filters button::after, .copy::after, .footer-inner a::after {
    content: '';
    position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
    background: var(--ink);
    transform: scaleX(0); transform-origin: 0 50%;
    transition: transform var(--t-hover) var(--ease-type), opacity var(--t-hover) var(--ease-fade);
    pointer-events: none;
}
.text-link::after { height: 2px; background: var(--accent-deep); }
.text-link:hover::after, .text-link:focus-visible::after { transform: none; }

/* Links inside running text */
.prose a, .note a, .card a:not(.text-link), .credits a, td a, .steps a:not(.text-link), .ruled a:not(.text-link), .downloads a:not(.text-link), .lane a:not(.text-link) {
    text-decoration: underline;
    text-decoration-color: var(--accent);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}
.prose a:hover, .note a:hover, .card a:not(.text-link):hover, .credits a:hover, td a:hover, .steps a:not(.text-link):hover, .ruled a:not(.text-link):hover, .downloads a:not(.text-link):hover, .lane a:not(.text-link):hover {
    text-decoration-thickness: 2px;
    color: var(--accent-deep);
}

/* Archivo is loaded at 400 and 500; bold text uses 500 rather than a faked 700 */
strong, b { font-weight: 500; }

/* ---------- Navigation ---------- */
.site-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    height: var(--nav-h);
    background: rgba(246, 241, 231, 0.96);
    border-bottom: 1px solid transparent;
}
/* The hairline under the nav fades in once the page has scrolled */
.site-nav::before {
    content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
    background: var(--rule); opacity: 0; transition: opacity 0.4s var(--ease-fade); pointer-events: none;
}
.site-nav.scrolled::before { opacity: 1; }

.nav-inner {
    max-width: 1120px; height: 100%; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
}

.crumbs { display: flex; align-items: center; gap: 14px; min-width: 0; }
.nav-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.nav-brand img { width: 34px; height: 27px; }
.nav-brand span { font-family: var(--mono); font-size: var(--label-m); font-weight: 500; letter-spacing: 0.22em; }
.crumb-sep { font-family: var(--mono); font-size: var(--label-m); color: var(--ink-55); }
.crumb {
    position: relative;
    font-family: var(--mono); font-size: var(--label-m); letter-spacing: var(--track-m); text-transform: uppercase;
    text-decoration: none; color: var(--ink-70); white-space: nowrap;
    border-bottom: 1px solid transparent; padding-bottom: 2px;
}
.crumb::after { background: var(--accent); }
.crumb:hover, .crumb[aria-current="page"] { color: var(--ink); }
.crumb:hover::after, .crumb:focus-visible::after, .crumb[aria-current="page"]::after { transform: none; }

.nav-right { display: flex; align-items: center; gap: 26px; }
.nav-link {
    position: relative;
    font-family: var(--mono); font-size: var(--label-s); letter-spacing: var(--track-s); text-transform: uppercase;
    text-decoration: none; color: var(--ink-70); border-bottom: 1px solid transparent; padding: 4px 0;
    white-space: nowrap;
}
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after, .nav-link:focus-visible::after { transform: none; }
.nav-link.cta { color: var(--ink); border-bottom-color: var(--accent); }
.nav-link.wide { display: none; }
@media (min-width: 1000px) { .nav-link.wide { display: inline; } }

@media (max-width: 640px) {
    .nav-inner { padding: 0 18px; }
    .nav-brand span { display: none; }
    .crumbs { gap: 10px; }
    .nav-right { gap: 16px; }
}

/* Reading progress: a hairline in the talk's colour along the bottom of the nav */
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none; }
.progress i { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Hero ---------- */
.hero { position: relative; z-index: 1; padding: calc(var(--nav-h) + 88px) 0 64px; border-bottom: 1px solid var(--rule); overflow-x: clip; }
@media (max-width: 860px) { .hero { padding-top: calc(var(--nav-h) + 44px); padding-bottom: 52px; } }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr); gap: 56px; align-items: center; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; gap: 28px; } }

/* The title: each line is a .ln holding a span, <h1><span class="ln"><span>First line</span></span> ...</h1>.
   The .ln is the line's own mask (see the opening motion below); the span inside is what lifts. */
.h1-mask { margin: 18px 0 24px; padding-top: 0.05em; }
.hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(2.5rem, 5vw, 4.2rem); line-height: 1.04; letter-spacing: -0.005em; text-wrap: balance; }
.hero h1 > span, .hero h1 .ln > span { display: block; }
.hero .lede { font-size: 1.15rem; line-height: 1.65; max-width: 33em; }

/* The facts table's top rule is a layer, so it can draw in from the left as the page opens */
.hero-meta { position: relative; margin-top: 30px; max-width: 36em; padding-top: 1px; }
.hero-meta::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--rule-strong); transform-origin: 0 50%; }
.hero-meta div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.hero-meta dt { font-family: var(--mono); font-size: var(--label-s); letter-spacing: var(--track-s); text-transform: uppercase; color: var(--ink-55); padding-top: 3px; }
.hero-meta dd { font-size: 0.98rem; }
@media (max-width: 480px) { .hero-meta div { grid-template-columns: 1fr; gap: 2px; } }

.hero-ctas { display: flex; gap: 30px; margin-top: 32px; flex-wrap: wrap; }

/* The emblem: each talk's own small drawing, ink lines and accent fills, on a printed plate */
.emblem {
    position: relative;
    background: var(--cheek);
    border: 1px solid var(--rule-strong);
    box-shadow: 10px 10px 0 var(--accent-soft);
    padding: 22px 22px 16px;
    max-width: 360px;
    justify-self: center;
    width: 100%;
}
.emblem svg { display: block; width: 100%; height: auto; overflow: visible; color: var(--ink); }
.emblem figcaption {
    display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--rule);
    font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-55);
}
@media (max-width: 860px) { .emblem { justify-self: start; max-width: 300px; box-shadow: 7px 7px 0 var(--accent-soft); } }

/* Shared emblem strokes, so every drawing has the same hand */
.em-line { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.em-thin { fill: none; stroke: currentColor; stroke-width: 1; stroke-linecap: round; opacity: 0.45; }
.em-accent { fill: var(--accent); }
.em-accent-line { fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.em-soft { fill: var(--accent-soft); }
.em-paper { fill: var(--cheek); }
.em-ink { fill: currentColor; }
.em-label { font-family: var(--mono); font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; fill: var(--ink-55); }

/* ---------- Opening motion ----------
   One calm sequence in reading order, done in about 1.5 s: the kicker; the title lifting line by line out of its own
   mask; the lede; the facts (their top rule draws, then each row); the links. The emblem's plate settles early and
   its drawing draws itself in (talks.js). Every keyframe starts from the hidden state with fill-mode both, so if
   animations never run nothing is hidden. Arriving from another page through a view transition (.vt-in, set in the
   head), the opening is already in place and the transition carries the motion. */
.js.motion .hero h1 .ln {
    /* The line's mask: a clip just outside the line box (room for ascenders, descenders and overhangs), so a line
       waiting below it is hidden, not sitting in the line underneath. A clip, not overflow, so nothing reflows. */
    -webkit-clip-path: inset(-0.3em -0.3em -0.16em -0.3em);
    clip-path: inset(-0.3em -0.3em -0.16em -0.3em);
}
.js.motion:not(.vt-in) .hero .kicker { animation: rise 0.6s var(--ease-fade) 0.08s both; }
.js.motion:not(.vt-in) .hero h1 .ln > span { animation: lift 0.95s var(--ease-type) 0.14s both; }
.js.motion:not(.vt-in) .hero h1 .ln:nth-child(2) > span { animation-delay: 0.23s; }
.js.motion:not(.vt-in) .hero h1 .ln:nth-child(3) > span { animation-delay: 0.32s; }
.js.motion:not(.vt-in) .hero .lede { animation: rise 0.75s var(--ease-out) 0.38s both; }
.js.motion:not(.vt-in) .hero .epigraph { animation: rise 0.75s var(--ease-out) 0.5s both; }
.js.motion:not(.vt-in) .hero .sub-inline { animation: rise 0.75s var(--ease-out) 0.52s both; }
.js.motion:not(.vt-in) .hero-meta::before { animation: rule 0.9s var(--ease-type) 0.46s both; }
.js.motion:not(.vt-in) .hero-meta > div { --rise: 6px; animation: rise 0.6s var(--ease-out) 0.52s both; }
.js.motion:not(.vt-in) .hero-meta > div:nth-child(2) { animation-delay: 0.565s; }
.js.motion:not(.vt-in) .hero-meta > div:nth-child(3) { animation-delay: 0.61s; }
.js.motion:not(.vt-in) .hero-meta > div:nth-child(4) { animation-delay: 0.655s; }
.js.motion:not(.vt-in) .hero-meta > div:nth-child(5) { animation-delay: 0.7s; }
.js.motion:not(.vt-in) .hero-meta > div:nth-child(n+6) { animation-delay: 0.745s; }
.js.motion:not(.vt-in) .hero-ctas { animation: rise 0.6s var(--ease-out) 0.76s both; }
.js.motion:not(.vt-in) .hero .emblem { --rise: 14px; animation: rise 0.85s var(--ease-type) 0.24s both; }
/* The chickadee lands at about 1.7 s (/chickadee.js); its caption follows the landing. It keeps this timing even
   after a view transition, because the bird still flies in on its first page of a visit. */
.js.motion:not(.vt-in) .hero .species { animation: rise 0.6s var(--ease-out) 1.9s both; }
.js.motion:not(.vt-in) .hero .bird-hint { animation: rise 0.6s var(--ease-out) 2.05s both; }

@keyframes rise { from { opacity: 0; translate: 0 var(--rise, 10px); } }
@keyframes lift { from { transform: translateY(calc(100% + 0.2em)); } }
@keyframes rule { from { transform: scaleX(0); } }

/* ---------- Sections ---------- */
section { padding: 96px 0; position: relative; z-index: 1; border-bottom: 1px solid var(--rule); }
@media (max-width: 700px) { section { padding: 64px 0; } }
section.tint { background: var(--accent-wash); }

.section-head { position: relative; max-width: 720px; margin-bottom: 44px; }
.section-head .kicker { display: block; }
.section-head h2 { font-family: var(--display); font-weight: 400; font-size: clamp(1.9rem, 3.6vw, 2.75rem); line-height: 1.12; text-wrap: balance; }
.section-head p { margin-top: 18px; color: var(--ink-70); max-width: 36em; }

/* Notebook margin: kickers hang in the left gutter on wide screens */
@media (min-width: 1400px) {
    .section-head .kicker { position: absolute; right: calc(100% + 30px); top: 0.35em; width: 140px; text-align: right; line-height: 1.5; }
    .section-head .wingbar { margin-top: 0; }
}

.prose { max-width: 38em; }
.prose p + p, .prose p + ul, .prose ul + p, .prose p + ol, .prose ol + p, .prose * + .pull, .prose .pull + p { margin-top: 16px; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: 6px; }
.prose strong { font-weight: 500; }
.prose.read { font-size: 1.125rem; line-height: 1.75; max-width: 36em; }
.prose.read p + p { margin-top: 20px; }
.quiet { color: var(--ink-70); }
.small { font-size: 0.92rem; }

h3 { font-family: var(--serif); font-weight: 400; font-size: 1.45rem; line-height: 1.2; margin-bottom: 12px; }
h4 { font-family: var(--mono); font-weight: 500; font-size: var(--label-m); letter-spacing: var(--track-m); text-transform: uppercase; margin: 26px 0 10px; }

.block { margin-top: 56px; }
.block:first-child { margin-top: 0; }
.block-sm { margin-top: 32px; }

/* ---------- Quotations and the lines that land ---------- */
.epigraph { max-width: 30em; margin-top: 30px; }
.epigraph blockquote { font-family: var(--serif); font-style: italic; font-size: 1.2rem; line-height: 1.5; }
.epigraph figcaption { margin-top: 10px; font-family: var(--mono); font-size: var(--label-s); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-55); }

.pull {
    position: relative;
    max-width: 30em;
    margin: 44px 0;
    padding: 4px 0 4px 26px;
    border-left: 3px solid var(--accent);
    font-family: var(--display);
    font-size: clamp(1.45rem, 2.6vw, 1.95rem);
    line-height: 1.25;
    text-wrap: balance;
}
.pull cite { display: block; margin-top: 12px; font-family: var(--mono); font-style: normal; font-size: var(--label-s); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-55); }

.statement {
    max-width: 18em;
    margin: 64px auto;
    text-align: center;
    font-family: var(--display);
    font-size: clamp(2rem, 4.6vw, 3.4rem);
    line-height: 1.12;
    text-wrap: balance;
}
.statement .mark { background: linear-gradient(transparent 62%, var(--accent-soft) 62%, var(--accent-soft) 92%, transparent 92%); padding: 0 0.08em; }
.statement.long { max-width: 24em; font-size: clamp(1.55rem, 3vw, 2.3rem); line-height: 1.22; }
.statement small { display: block; margin-top: 18px; font-family: var(--mono); font-size: var(--label-s); letter-spacing: var(--track-s); text-transform: uppercase; color: var(--ink-55); }

/* ---------- Cards ---------- */
.card { position: relative; background: var(--cheek); border: 1px solid var(--rule-strong); box-shadow: 6px 6px 0 var(--accent-soft); padding: 26px 28px 28px; min-width: 0; }
.card > .kicker { display: block; margin-bottom: 10px; }
.card h3 { margin-bottom: 10px; }
.card p + p, .card p + ul, .card ul + p { margin-top: 12px; }
.card ul { padding-left: 1.1em; }
.card li + li { margin-top: 6px; }
.card.ink { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.card.ink .kicker { color: rgba(246, 241, 231, 0.6); }
.card.wash { background: var(--accent-wash); }
.card.dashed { background: transparent; border-style: dashed; box-shadow: none; }
@media (max-width: 480px) { .card { padding: 20px 18px 22px; box-shadow: 4px 4px 0 var(--accent-soft); } }

.cards { display: grid; gap: 28px; }
.cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .cards.three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .cards.two, .cards.three { grid-template-columns: minmax(0, 1fr); } }

/* Two things held side by side, with a joiner between them (vs, a two-way arrow) */
.duo { display: grid; grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr); align-items: stretch; max-width: 940px; margin-top: 36px; }
.duo .joiner { display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 1.3rem; color: var(--accent-deep); }
.duo.vs .joiner { font-size: var(--label-s); letter-spacing: var(--track-s); text-transform: uppercase; }
.duo-note { max-width: 940px; margin-top: 22px; text-align: center; font-family: var(--serif); font-style: italic; color: var(--ink-70); }
@media (max-width: 700px) {
    .duo { grid-template-columns: minmax(0, 1fr); }
    .duo .joiner { padding: 10px 0; transform: rotate(90deg); }
    .duo.vs .joiner { transform: none; }
}

/* Numbered framework cards: a large Caslon numeral in the accent */
.framework { counter-reset: fw; }
.framework .card { counter-increment: fw; padding-top: 70px; }
.framework .card::before {
    content: counter(fw, upper-roman);
    position: absolute; left: 28px; top: 20px;
    font-family: var(--display); font-size: 2.1rem; line-height: 1; color: var(--accent-deep);
}

/* ---------- Small parts ---------- */
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.tags li, .tag {
    display: inline-block; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
    background: var(--cheek); border: 1px solid var(--rule-strong); padding: 6px 11px; white-space: nowrap;
}
.tags li.on, .tag.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tags.accent li { border-color: var(--accent); box-shadow: 3px 3px 0 var(--accent-soft); }

.pill {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase;
    padding: 3px 9px; border: 1px solid var(--rule-strong); background: var(--cheek); white-space: nowrap;
}
.pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.pill.new { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.note { border-left: 1px solid var(--accent); padding: 4px 0 4px 18px; max-width: 40em; color: var(--ink-70); }
.note strong { color: var(--ink); font-weight: 500; }

code, kbd {
    font-family: var(--mono); font-size: 0.86em;
    background: var(--cheek); border: 1px solid var(--rule); padding: 0 4px; overflow-wrap: anywhere;
}

/* A -> B -> C. Reflows to a column on phones. Use .four or .three for fewer steps. */
.flow { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 30px; margin: 30px 0 8px; }
.flow.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.flow.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.flow li { position: relative; border: 1px solid var(--rule-strong); background: var(--cheek); padding: 14px 14px 16px; font-size: 0.94rem; }
.flow li.plain { background: transparent; border-style: dashed; }
.flow li.hot { border-color: var(--accent); box-shadow: 4px 4px 0 var(--accent-soft); }
.flow li:not(:last-child)::after {
    content: '\2192'; position: absolute; right: -25px; top: 50%; transform: translateY(-50%);
    font-family: var(--mono); font-size: 1.15rem; color: var(--accent-deep);
}
.flow .step-name { display: block; font-family: var(--serif); font-size: 1.12rem; margin-bottom: 4px; }
.flow .kicker { display: block; margin-bottom: 6px; }
@media (max-width: 860px) {
    .flow, .flow.four, .flow.three { grid-template-columns: minmax(0, 1fr); gap: 26px; max-width: 440px; }
    .flow li:not(:last-child)::after { content: '\2193'; right: auto; left: 20px; top: auto; bottom: -24px; transform: none; }
}

.chain { list-style: none; margin-top: 14px; max-width: 30em; }
.chain li { position: relative; border: 1px solid var(--rule-strong); padding: 10px 14px; font-size: 0.95rem; background: var(--cheek); }
.chain li + li { margin-top: 26px; }
.chain li + li::before { content: '\2193'; position: absolute; left: 16px; top: -24px; font-family: var(--mono); color: var(--accent-deep); }
.chain .who { display: block; font-family: var(--serif); font-size: 1.05rem; }

/* Big numbers */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule-strong); margin-top: 36px; }
.stats > div { padding: 22px 22px 20px 0; }
.stats > div + div { padding-left: 22px; border-left: 1px solid var(--rule); }
.stats .num { display: block; font-family: var(--display); font-size: clamp(2.2rem, 4.4vw, 3.2rem); line-height: 1; color: var(--accent-deep); }
.stats .what { display: block; margin-top: 10px; font-size: 0.94rem; color: var(--ink-70); max-width: 16em; }
@media (max-width: 700px) {
    .stats { grid-template-columns: minmax(0, 1fr); }
    .stats > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); }
}

/* Numbered steps: Caslon numerals in the margin */
.steps { list-style: none; counter-reset: step; border-top: 1px solid var(--rule-strong); max-width: 46em; }
.steps > li { counter-increment: step; position: relative; padding: 16px 0 16px 48px; border-bottom: 1px solid var(--rule); }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: 13px; width: 34px; font-family: var(--serif); font-size: 1.2rem; color: var(--accent-deep); }
.steps .detail { display: block; margin-top: 4px; font-size: 0.95rem; color: var(--ink-70); }
.steps .step-title { display: block; font-family: var(--serif); font-size: 1.15rem; }

/* Ruled rows: a label on the left, the thing on the right */
.ruled { list-style: none; border-top: 1px solid var(--rule-strong); max-width: 46em; }
.ruled > li, .ruled > div { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.ruled .label { font-family: var(--mono); font-size: var(--label-s); letter-spacing: var(--track-s); text-transform: uppercase; color: var(--ink-55); padding-top: 4px; }
.ruled .label.serif { font-family: var(--serif); font-size: 1.15rem; letter-spacing: 0; text-transform: none; color: var(--ink); padding-top: 0; }
.ruled.wide > li, .ruled.wide > div { grid-template-columns: 260px minmax(0, 1fr); }
@media (max-width: 700px) { .ruled > li, .ruled > div, .ruled.wide > li, .ruled.wide > div { grid-template-columns: 1fr; gap: 4px; } }

/* Timed agenda */
.agenda { list-style: none; border-top: 1px solid var(--rule-strong); max-width: 52em; }
.agenda li { display: grid; grid-template-columns: 52px minmax(0, 1fr) 110px; gap: 16px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.agenda .no { font-family: var(--serif); color: var(--accent-deep); font-size: 1.1rem; }
.agenda .title { font-family: var(--serif); font-size: 1.2rem; }
.agenda .title small { display: block; font-family: var(--body); font-size: 0.94rem; color: var(--ink-70); margin-top: 2px; }
.agenda .min { font-family: var(--mono); font-size: var(--label-s); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-55); text-align: right; }
@media (max-width: 600px) { .agenda li { grid-template-columns: 34px minmax(0, 1fr); } .agenda .min { grid-column: 2; text-align: left; } }

.checks { list-style: none; border-top: 1px solid var(--rule-strong); max-width: 42em; margin-top: 12px; }
.checks li { border-bottom: 1px solid var(--rule); }
.checks label { display: flex; gap: 14px; align-items: baseline; padding: 12px 0; cursor: pointer; }
.checks input { accent-color: var(--accent-deep); width: 15px; height: 15px; flex: none; transform: translateY(2px); }

/* Two parallel tracks (for example: no-code and code), side by side, stacked on phones */
.lanes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 48px; margin-top: 36px; }
.lane { border-top: 1px solid var(--ink); padding-top: 22px; min-width: 0; }
.lane-tag { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: var(--label-s); letter-spacing: var(--track-s); text-transform: uppercase; margin-bottom: 18px; }
.lane-tag::before { content: ''; width: 9px; height: 9px; border: 1px solid var(--ink); background: var(--accent); }
.lane-tag.ink::before { background: var(--ink); }
@media (max-width: 900px) { .lanes { grid-template-columns: minmax(0, 1fr); gap: 48px; } }

/* ---------- Code and tables ---------- */
pre.code {
    font-family: var(--mono); font-size: 0.82rem; line-height: 1.6;
    background: var(--cheek); border: 1px solid var(--rule-strong);
    padding: 18px 20px; overflow-x: auto; max-width: 100%; tab-size: 4; margin-top: 14px;
}
pre.code code { background: none; border: 0; padding: 0; font-size: inherit; overflow-wrap: normal; }
pre.code .c { color: var(--accent-deep); }
.code-cap { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 22px; font-family: var(--mono); font-size: var(--label-s); letter-spacing: 0.08em; color: var(--ink-55); }
.code-cap + pre.code { margin-top: 8px; }
.copy { position: relative; font-family: var(--mono); font-size: var(--label-s); letter-spacing: 0.08em; text-transform: uppercase; background: none; border: 0; border-bottom: 1px solid var(--rule-strong); padding: 0 0 2px; cursor: pointer; color: var(--ink-70); }
.copy:hover { color: var(--ink); }
.copy:hover::after, .copy:focus-visible::after { transform: none; }

.table-wrap { overflow-x: auto; margin-top: 16px; }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 0.95rem; }
th { text-align: left; font-family: var(--mono); font-weight: 400; font-size: var(--label-s); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-55); padding: 10px 14px 10px 0; border-bottom: 1px solid var(--rule-strong); }
td { padding: 12px 14px 12px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
td:first-child { font-family: var(--serif); }
td.num, th.num { text-align: right; font-family: var(--mono); font-size: 0.86rem; }

details.more-detail { margin-top: 18px; border-top: 1px solid var(--rule); max-width: 46em; }
details.more-detail > summary {
    list-style: none; cursor: pointer; padding: 12px 2px; display: flex; justify-content: space-between; align-items: center; gap: 14px;
    font-family: var(--mono); font-size: var(--label-m); letter-spacing: var(--track-m); text-transform: uppercase;
}
details.more-detail > summary::-webkit-details-marker { display: none; }
details.more-detail > summary::after { content: '+'; font-size: 1rem; transition: transform var(--t-hover) var(--ease-type); }
details.more-detail[open] > summary::after { transform: rotate(45deg); }
details.more-detail > *:not(summary) { margin-bottom: 18px; }

/* ---------- Files and figures ---------- */
.downloads { list-style: none; border-top: 1px solid var(--rule-strong); max-width: 46em; }
.downloads li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.downloads .file { font-family: var(--mono); font-size: 0.9rem; }
.downloads .what { display: block; font-family: var(--body); font-size: 0.94rem; color: var(--ink-70); margin-top: 2px; }

.chart { margin-top: 30px; max-width: 860px; }
.chart .frame { background: var(--cheek); border: 1px solid var(--rule-strong); box-shadow: 6px 6px 0 var(--accent-soft); padding: 18px 18px 12px; overflow-x: auto; }
.chart svg { display: block; width: 100%; min-width: 480px; height: auto; color: var(--ink); }
.chart svg text { font-family: var(--mono); font-size: 11px; fill: var(--ink-55); }
.chart svg .axis { stroke: var(--rule-strong); stroke-width: 1; fill: none; }
.chart svg .grid { stroke: var(--rule); stroke-width: 1; fill: none; }
.chart svg .series-a { stroke: var(--ink); stroke-width: 2; fill: none; stroke-linejoin: round; stroke-linecap: round; }
.chart svg .series-b { stroke: var(--accent); stroke-width: 2.4; fill: none; stroke-linejoin: round; stroke-linecap: round; }
.chart svg .bar-a { fill: var(--ink); }
.chart svg .bar-b { fill: var(--accent); }
.chart svg .bar-soft { fill: var(--accent-soft); }
.chart figcaption { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 16px; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.04em; color: var(--ink-70); }
.chart figcaption .cap { flex-basis: 100%; font-family: var(--body); font-size: 0.92rem; letter-spacing: 0; color: var(--ink-70); }
.legend { display: inline-flex; align-items: center; gap: 8px; }
.legend .sw { display: inline-block; width: 22px; height: 0; border-top: 2px solid var(--ink); }
.legend .sw.b { border-top-color: var(--accent); border-top-width: 2.4px; }
.legend .box { display: inline-block; width: 11px; height: 11px; background: var(--ink); }
.legend .box.b { background: var(--accent); }

/* ---------- Credits and the closing ---------- */
.credits { max-width: 46em; border-top: 1px solid var(--rule-strong); }
.credits > div { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.credits dt { font-family: var(--mono); font-size: var(--label-s); letter-spacing: var(--track-s); text-transform: uppercase; color: var(--ink-55); padding-top: 3px; }
.credits dd { font-size: 0.98rem; }
@media (max-width: 600px) { .credits > div { grid-template-columns: 1fr; gap: 2px; } }

.coda { text-align: center; padding: 110px 0; }
.coda .thanks { font-family: var(--display); font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1.05; }
.coda .wingbar { margin: 22px auto 0; }
.coda p { margin: 18px auto 0; max-width: 32em; color: var(--ink-70); }

/* ---------- More talks and thoughts ---------- */
.more { background: var(--paper-deep); }
.more-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
@media (max-width: 960px) { .more-grid { grid-template-columns: minmax(0, 1fr); max-width: 560px; } }
.more-card {
    --accent: var(--flank); --accent-deep: #765f36; --accent-soft: var(--flank-soft);
    position: relative; isolation: isolate;
    display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 18px; align-items: start;
    border: 1px solid transparent;
    padding: 18px 20px 20px 18px; text-decoration: none;
    transition: transform var(--t-hover) var(--ease-type);
}
/* Printed plates (more-cards, index cards, buttons): the face and its offset shadow are layers behind the content,
   so a hover lifts the card off a shadow that stays put, and only transforms change */
.more-card::before, .more-card::after, .entry .mini::before, .entry .mini::after, .btn::before, .btn::after {
    content: ''; position: absolute; inset: -1px; pointer-events: none;
}
.more-card::before, .entry .mini::before { z-index: -1; background: var(--cheek); border: 1px solid var(--rule-strong); }
.more-card::after, .entry .mini::after {
    z-index: -2; background: var(--accent-soft);
    transform: translate(var(--shadow, 6px), var(--shadow, 6px));
    transition: transform var(--t-hover) var(--ease-type);
}
.more-card:hover, .more-card:focus-visible { transform: translate(-3px, -3px); }
.more-card:hover::after, .more-card:focus-visible::after { transform: translate(calc(var(--shadow, 6px) + 3px), calc(var(--shadow, 6px) + 3px)); }
.more-card svg { width: 74px; height: auto; color: var(--ink); overflow: visible; }
.more-card .kicker { display: block; margin-bottom: 6px; }
.more-card .t { display: block; font-family: var(--serif); font-size: 1.2rem; line-height: 1.25; }
.more-card .d { display: block; margin-top: 6px; font-size: 0.9rem; color: var(--ink-70); }
.more-foot { margin-top: 36px; }

/* Talk colours, for cards that point at another talk */
.c-room { --accent: #8e6f7f; --accent-deep: #5f4453; --accent-soft: #e6dadf; --accent-wash: #f0e9e8; }
.c-augment { --accent: #b2603b; --accent-deep: #84412a; --accent-soft: #efd6c7; --accent-wash: #f4e7dd; }
.c-datajam { --accent: #66808f; --accent-deep: #3f5461; --accent-soft: #d7dfe3; --accent-wash: #e9ece9; }
.c-maker { --accent: #7f8c5c; --accent-deep: #4f5a35; --accent-soft: #dfe3cd; --accent-wash: #edeee0; }
.c-rag { --accent: #b39a6b; --accent-deep: #765f36; --accent-soft: #d8c9a8; --accent-wash: #efe6d4; }
.c-irreverence { --accent: #d99aa8; --accent-deep: #a8465f; --accent-soft: #f1dade; --accent-wash: #f5eae6; --sky: #8db4c8; --sun: #c9973f; }
.c-thought { --accent: #17130c; --accent-deep: #17130c; --accent-soft: #d8c9a8; --accent-wash: #efe6d4; }

/* ---------- Subscribe ---------- */
.subscribe { position: relative; background: var(--ink); color: var(--paper); padding: 110px 0; overflow: hidden; border-bottom: 0; }
@media (max-width: 700px) { .subscribe { padding: 72px 0; } }
.subscribe-mark { position: absolute; right: 24px; top: 50%; width: 340px; transform: translateY(-50%); opacity: 0.09; pointer-events: none; }
@media (max-width: 960px) { .subscribe-mark { display: none; } }
.subscribe .wrap { position: relative; }
.subscribe .kicker { color: rgba(246, 241, 231, 0.6); }
.subscribe .wingbar::before, .subscribe .wingbar::after { background: var(--accent); }
.subscribe h2 { font-family: var(--display); font-weight: 400; font-size: clamp(1.9rem, 3.4vw, 2.5rem); line-height: 1.12; margin: 0 0 18px; max-width: 16em; text-wrap: balance; }
.subscribe p { color: rgba(246, 241, 231, 0.78); max-width: 34em; }
.subscribe .text-link { color: var(--paper); border-bottom-color: rgba(246, 241, 231, 0.55); }
.subscribe .text-link::after { background: var(--accent); }
.subscribe .fine { margin-top: 18px; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.04em; color: rgba(246, 241, 231, 0.55); }
.subscribe .fine a { color: rgba(246, 241, 231, 0.8); }

.sub-form { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; max-width: 34em; }
.sub-form input[type="email"] {
    flex: 1 1 240px; min-width: 0;
    font: inherit; font-size: 1rem; color: var(--ink);
    background: var(--cheek); border: 1px solid var(--rule-strong); border-radius: 0; padding: 12px 14px;
}
/* Focus: a firm ring in the text-safe accent on paper, the bright accent on the ink band (3:1 or better on both) */
.sub-form input[type="email"]:focus { outline: 2px solid var(--accent-deep); outline-offset: 2px; }
.subscribe .sub-form input[type="email"] { border-color: var(--paper); }
.subscribe .sub-form input[type="email"]:focus { outline-color: var(--accent); }
.sub-status { flex-basis: 100%; min-height: 1.4em; font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.04em; }
.subscribe .sub-status { color: rgba(246, 241, 231, 0.8); }
.sub-status.bad { color: #e9a08f; }
.sub-inline .sub-status.bad { color: var(--error); }
/* Done: the field and button step aside (keeping their room, so nothing below moves) and the message takes their
   place. talks.js fades them out first and the message in. .closed is for a form with no list behind it yet. */
.sub-form.done input, .sub-form.done button { visibility: hidden; }
.sub-form.done .sub-status { order: -1; font-family: var(--serif); font-size: 1.15rem; line-height: 1.4; letter-spacing: 0; color: var(--ink); }
.subscribe .sub-form.done .sub-status { color: var(--paper); }
.sub-form.closed input, .sub-form.closed button { display: none; }
.sub-form.closed .sub-status { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.04em; }

.btn {
    --btn-bg: var(--ink); --btn-line: var(--ink); --btn-fg: var(--paper); --btn-shadow: var(--accent);
    position: relative; isolation: isolate; display: inline-block;
    font-family: var(--mono); font-size: var(--label-m); letter-spacing: var(--track-m); text-transform: uppercase;
    background: transparent; color: var(--btn-fg); border: 1px solid transparent; padding: 12px 20px; cursor: pointer;
    text-decoration: none;
    transition: transform var(--t-hover) var(--ease-type), opacity 0.25s var(--ease-fade);
}
.btn::before { z-index: -1; background: var(--btn-bg); border: 1px solid var(--btn-line); }
.btn::after { z-index: -2; background: var(--btn-shadow); opacity: 0; transition: transform var(--t-hover) var(--ease-type), opacity 0.3s var(--ease-fade); }
.btn:hover { transform: translate(-2px, -2px); }
.btn:hover::after { transform: translate(3px, 3px); opacity: 1; }
.btn:disabled { opacity: 0.5; cursor: wait; transform: none; }
.btn:disabled::after { opacity: 0; transform: none; }
.subscribe .btn { --btn-bg: var(--accent); --btn-line: var(--accent); --btn-fg: var(--ink); --btn-shadow: var(--paper); }
.btn.ghost { --btn-bg: transparent; --btn-line: var(--rule-strong); --btn-fg: var(--ink); }

/* ---------- Footer ---------- */
footer { background: var(--ink); color: rgba(246, 241, 231, 0.6); border-top: 1px solid rgba(246, 241, 231, 0.14); padding: 26px 0 30px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 30px; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; }
.footer-inner a { position: relative; color: rgba(246, 241, 231, 0.82); text-decoration: none; border-bottom: 1px solid rgba(246, 241, 231, 0.3); }
.footer-inner a::after { background: var(--accent); }
.footer-inner a:hover::after, .footer-inner a:focus-visible::after { transform: none; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* A short note at the foot of the screen (talks.js: "Feed address copied") */
.toast {
    position: fixed; left: 50%; bottom: 24px; z-index: 300;
    max-width: calc(100vw - 32px);
    background: var(--ink); color: var(--paper);
    font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.04em; line-height: 1.5;
    padding: 12px 16px;
    box-shadow: 5px 5px 0 var(--accent-soft);
    opacity: 0; translate: -50% 10px; pointer-events: none;
    transition: opacity 0.25s ease, translate 0.4s var(--ease-type);
}
.toast.on { opacity: 1; translate: -50% 0; }

/* ---------- Index: Talks & Thoughts ---------- */
.sub-inline { margin-top: 30px; max-width: 34em; }
.sub-inline .sub-form { margin-top: 10px; }
.sub-inline .fine { margin-top: 0; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.04em; color: var(--ink-55); }

.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-bottom: 30px; }
.filters .kicker { margin-right: 4px; }
.filters button {
    position: relative;
    font-family: var(--mono); font-size: var(--label-s); letter-spacing: var(--track-s); text-transform: uppercase;
    color: var(--ink-55); background: none; border: 0; border-bottom: 1px solid transparent;
    padding: 4px 0; cursor: pointer;
}
.filters button:hover { color: var(--ink); }
.filters button:hover::after, .filters button:focus-visible::after { transform: none; opacity: 0.3; }
.filters button[aria-pressed="true"] { color: var(--ink); }
.filters button[aria-pressed="true"]::after { transform: none; opacity: 1; }
.filters .count { color: var(--ink-55); letter-spacing: 0.06em; }

/* overflow-anchor: none keeps the page still when the filter takes entries out of the list. The top rule is a layer,
   so it can rule in with the filters. */
.entries { position: relative; list-style: none; padding-top: 1px; overflow-anchor: none; }
.entries::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--rule-strong); transform-origin: 0 50%; }
.entry { border-bottom: 1px solid var(--rule); }
.entry > a {
    display: grid; grid-template-columns: 150px minmax(0, 1fr) 150px; gap: 30px; align-items: center;
    padding: 30px 0; text-decoration: none; position: relative;
}
/* Hover: the accent bar draws down, the words step right (a transform: nothing reflows), the card lifts */
.entry > a::before { content: ''; position: absolute; left: 0; top: 30px; bottom: 30px; width: 3px; background: var(--accent); transform: scaleY(0); transform-origin: 50% 0; transition: transform var(--t-hover) var(--ease-type); }
.entry > a > .when, .entry > a > div { transition: transform var(--t-hover) var(--ease-type); }
.entry > a .go::after { transition-delay: 0.04s; }
@media (hover: hover) and (min-width: 761px) {
    .entry > a:hover > .when, .entry > a:hover > div { transform: translateX(14px); }
    .entry > a:hover::before { transform: none; }
}
@media (min-width: 761px) {
    .entry > a:focus-visible > .when, .entry > a:focus-visible > div { transform: translateX(14px); }
    .entry > a:focus-visible::before { transform: none; }
}
.entry > a:hover .go::after, .entry > a:focus-visible .go::after { transform: none; }
.entry .when { font-family: var(--mono); font-size: var(--label-s); letter-spacing: var(--track-s); text-transform: uppercase; color: var(--ink-55); line-height: 1.9; }
.entry .when .pill { margin-top: 6px; }
.entry h3 { font-family: var(--display); font-size: clamp(1.6rem, 2.8vw, 2.15rem); line-height: 1.12; margin-bottom: 8px; text-wrap: balance; }
.entry .venue { font-family: var(--mono); font-size: var(--label-s); letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-deep); }
.entry .sum { margin-top: 8px; color: var(--ink-70); max-width: 36em; }
.entry .go { display: inline-block; margin-top: 14px; }
.entry .mini { position: relative; isolation: isolate; justify-self: end; width: 128px; border: 1px solid transparent; padding: 12px; transition: transform var(--t-hover) var(--ease-type); }
.entry .mini svg { display: block; width: 100%; height: auto; color: var(--ink); overflow: visible; }
.entry > a:hover .mini, .entry > a:focus-visible .mini { transform: translate(-3px, -3px) rotate(-1.5deg); }
.entry > a:hover .mini::after, .entry > a:focus-visible .mini::after { transform: translate(calc(var(--shadow, 6px) + 3px), calc(var(--shadow, 6px) + 3px)); }
.entry.featured > a { padding: 40px 0; }
.entry.featured h3 { font-size: clamp(2rem, 3.6vw, 2.8rem); }
.entry.featured .mini { width: 168px; }
.entry[hidden] { display: none; }
@media (max-width: 760px) {
    .entry > a { grid-template-columns: minmax(0, 1fr) 86px; gap: 8px 18px; padding: 24px 0; }
    .entry .when { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; line-height: 1.5; }
    .entry .when .pill { margin-top: 0; }
    .entry .mini, .entry.featured .mini { --shadow: 4px; width: 86px; padding: 8px; align-self: start; }
    .entry > a::before { display: none; }
}

.empty-note { padding: 34px 0; border-bottom: 1px solid var(--rule); color: var(--ink-70); }
.empty-note .t { display: block; font-family: var(--serif); font-size: 1.3rem; color: var(--ink); margin-bottom: 6px; }

.record { list-style: none; border-top: 1px solid var(--rule-strong); max-width: 52em; }
.record li { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 30px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.record .when { font-family: var(--mono); font-size: var(--label-s); letter-spacing: var(--track-s); text-transform: uppercase; color: var(--ink-55); padding-top: 4px; }
.record .t { font-family: var(--serif); font-size: 1.15rem; }
.record .d { color: var(--ink-70); font-size: 0.96rem; }
@media (max-width: 600px) { .record li { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- The bird (index hero), as on quinan.tech ---------- */
.hero-bird { text-align: left; }
@media (min-width: 861px) { .hero-bird { text-align: center; } }
@media (max-width: 860px) { .hero-bird { order: -1; } }
.bird-btn { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; color: inherit; display: inline-block; border-radius: 4px; overflow: visible; -webkit-tap-highlight-color: transparent; }
.bird-stage { position: relative; display: block; width: min(260px, 42vw); }
@media (min-width: 861px) { .bird-stage { width: min(280px, 22vw); margin: 0 auto; } }
.bird-stage img { width: 100%; height: auto; }
/* The bird is drawn and moved by /chickadee.js; if the script never arrives, the PNG fades in by itself. */
.js.motion .bird-stage img { opacity: 0; animation: fade 0.5s ease 2.4s forwards; }
@keyframes fade { to { opacity: 1; } }
.species { margin-top: 16px; font-family: var(--mono); font-size: var(--label-s); color: var(--ink-55); }
.species em { font-style: italic; }
.bird-hint {
    display: inline-block; margin-top: 8px; background: none; border: 0; border-bottom: 1px solid var(--rule);
    padding: 0 0 2px; cursor: pointer; font-family: var(--mono); font-size: var(--label-s); letter-spacing: 0.06em;
    color: var(--ink-55); transition: color 0.2s ease, border-color 0.2s ease;
}
.bird-hint:hover { color: var(--ink); border-bottom-color: var(--ink); }

/* ---------- Reveal on scroll ----------
   talks.js adds .in as each part reaches the reading line and sets --d, so parts that arrive together step in one
   after another. Grids (.cards, .flow, .stats, .duo), the more-cards, the coda and the subscribe band step in child
   by child. On the index the filters, entries and the empty note arrive the same way, each entry's emblem drawing
   itself in as it lands. The offset uses the translate property, so it never fights a component's own transform. */
.js.motion .reveal:not(.cards, .flow, .stats, .duo),
.js.motion .reveal:is(.cards, .flow, .stats, .duo) > *,
.js.motion .filters, .js.motion .entry, .js.motion .empty-note, .js.motion .more-foot,
.js.motion .coda .wrap > :not(.wingbar),
.js.motion .subscribe .wrap > :not(.wingbar) {
    opacity: 0;
    translate: 0 12px;
    transition: opacity 0.8s var(--ease-fade) var(--d, 0s), translate 1s var(--ease-type) var(--d, 0s);
}
.js.motion .more-grid > * {
    opacity: 0;
    translate: 0 12px;
    transition: opacity 0.8s var(--ease-fade) var(--d, 0s), translate 1s var(--ease-type) var(--d, 0s), transform var(--t-hover) var(--ease-type);
}
.js.motion .reveal.in:not(.cards, .flow, .stats, .duo),
.js.motion .reveal.in:is(.cards, .flow, .stats, .duo) > *,
.js.motion .filters.in, .js.motion .entry.in, .js.motion .empty-note.in, .js.motion .more-foot.in,
.js.motion .more-grid.in > *,
.js.motion .coda.in .wrap > *,
.js.motion .subscribe.in .wrap > * { opacity: 1; translate: none; }

/* The chickadee watermark on the subscribe band comes up last, slowly */
.js.motion .subscribe-mark { opacity: 0; translate: 0 10px; transition: opacity 1.6s var(--ease-fade) 0.3s, translate 1.8s var(--ease-type) 0.3s; }
.js.motion .subscribe.in .subscribe-mark { opacity: 0.09; translate: none; }

/* Wing bars draw in from the left as their part arrives: the long line, then the short one a beat later */
.js.motion :is(.reveal, .coda, .subscribe) .wingbar::before,
.js.motion :is(.reveal, .coda, .subscribe) .wingbar::after {
    transform: scaleX(0); transform-origin: 0 50%;
    transition: transform 1.1s var(--ease-type) calc(var(--d, 0s) + 0.16s);
}
.js.motion :is(.reveal, .coda, .subscribe) .wingbar::after { transition-delay: calc(var(--d, 0s) + 0.3s); }
.js.motion .in .wingbar::before, .js.motion .in .wingbar::after { transform: none; }

/* The index list's top rule rules in from the left, just ahead of the first entry */
.js.motion .entries::before { transform: scaleX(0); transition: transform 1.2s var(--ease-type) var(--d, 0s); }
.js.motion .entries.in::before { transform: none; }

/* Arriving from another page through a view transition, the index list is already in place */
.js.motion.vt-in .filters, .js.motion.vt-in .entry, .js.motion.vt-in .empty-note { opacity: 1; translate: none; transition: none; }
.js.motion.vt-in .entries::before { transform: none; transition: none; }

/* If talks.js never runs, nothing it would reveal stays hidden: it all appears after a moment */
.js.motion:not(.tt-js) :is(.reveal:not(.cards, .flow, .stats, .duo), .reveal:is(.cards, .flow, .stats, .duo) > *, .filters, .entry, .empty-note, .more-foot, .more-grid > *, .coda .wrap > *, .subscribe .wrap > *) {
    animation: tt-show 0.6s var(--ease-out) 2.5s forwards;
}
.js.motion:not(.tt-js) :is(.reveal, .coda, .subscribe) .wingbar::before,
.js.motion:not(.tt-js) :is(.reveal, .coda, .subscribe) .wingbar::after,
.js.motion:not(.tt-js) .entries::before { animation: tt-bar 0.6s var(--ease-out) 2.5s forwards; }
.js.motion:not(.tt-js) .subscribe-mark { animation: tt-mark 0.6s var(--ease-out) 2.5s forwards; }
/* The hero emblem waits for talks.js to draw it; without it, it appears whole */
.js.motion:not(.tt-js):not(.vt-in) .hero .emblem svg { opacity: 0; animation: tt-show 0.5s var(--ease-out) 2.2s forwards; }
@keyframes tt-show { to { opacity: 1; translate: none; } }
@keyframes tt-bar { to { transform: none; } }
@keyframes tt-mark { to { opacity: 0.09; translate: none; } }

/* ---------- Between pages ----------
   Cross-document view transitions, where the browser has them: a short cross-fade, the nav held still, and each
   talk's emblem carried from its card on the index (.entry .mini) to the plate in the talk's opening (.emblem, named
   inline on each talk page). Names: site-nav, chickadee (the index's bird, from the homepage's perch), em-irreverence,
   em-rag, em-augment, em-room, em-datajam, em-maker; one element per name on any page. For a new talk, add its line
   below and put style="view-transition-name: em-NEW" on its page's .emblem. talks.js and the head script take
   off-screen emblems out of the morph. Off for reduced motion; elsewhere navigation is unchanged. */
@media (prefers-reduced-motion: no-preference) {
    @view-transition { navigation: auto; }
}
.site-nav { view-transition-name: site-nav; }
.bird-stage { view-transition-name: chickadee; }
.entry.c-irreverence .mini { view-transition-name: em-irreverence; }
.entry.c-rag .mini { view-transition-name: em-rag; }
.entry.c-augment .mini { view-transition-name: em-augment; }
.entry.c-room .mini { view-transition-name: em-room; }
.entry.c-datajam .mini { view-transition-name: em-datajam; }
.entry.c-maker .mini { view-transition-name: em-maker; }
.entry .mini, .emblem { view-transition-class: emblem; }
::view-transition-old(root), ::view-transition-new(root),
::view-transition-old(site-nav), ::view-transition-new(site-nav) { animation-duration: 0.3s; animation-timing-function: var(--ease-fade); }
/* The bird glides between perches exactly as it does arriving on the homepage */
::view-transition-group(chickadee) { animation-duration: 0.5s; animation-timing-function: var(--ease-type); }
::view-transition-group(*.emblem) { animation-duration: 0.6s; animation-timing-function: var(--ease-move); }
::view-transition-old(*.emblem), ::view-transition-new(*.emblem) { animation-duration: 0.42s; animation-timing-function: var(--ease-fade); }

@media print {
    .site-nav, .progress, .subscribe, .more, body::before { display: none !important; }
    .reveal, .reveal > *, .filters, .entry, .empty-note, .more-foot, .coda .wrap > * { opacity: 1 !important; translate: none !important; }
    .wingbar::before, .wingbar::after, .entries::before, .hero-meta::before { transform: none !important; }
    .hero { padding-top: 24px; }
    section { padding: 32px 0; }
    footer { background: none; color: var(--ink); }
}
