/* The Making of Overbid. Mobile first; the game's tokens (css/tokens.css) for every color,
   font and radius, so the page reads as part of the game. Flat color only, 2px ink outlines,
   one flat offset shadow on the primary button, as in the game. */

/* ───────────── Base ───────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--sky); scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-ui); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
img, svg { display: block; max-width: 100%; }
/* outlines: ink for what you can use (buttons, links, the playable screen); this softer variant for
   everything that only holds or frames content */
:root { --outline-variant: #CBBC95; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 60; background: var(--ink); color: var(--cream); padding: 10px 14px; border-radius: 6px; font-weight: 700; }
.skip:focus { left: 8px; }
.num { font-variant-numeric: tabular-nums lining-nums; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
@media (max-width: 359px) { .wrap { padding: 0 16px; } }

/* type shared with the game */
.display, .hero-title, .ch-title, .b-statement, .b-subhead, .b-story h3, .b-lab h4, .signoff {
  font-family: var(--font-display); font-weight: 800;
  font-variation-settings: "opsz" 96, "wdth" 82;
}
.ph-tag { font: 700 11.5px/1.2 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; }
.lead { font-weight: 700; color: var(--ink); }
.tone-sky .lead { color: var(--cream); }

/* the game's wordmark and buttons, as in css/app.css */
.wordmark {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 800; font-variation-settings: "opsz" 48, "wdth" 85;
  letter-spacing: -.075em; font-size: 22px; line-height: 1; color: inherit; text-decoration: none; white-space: nowrap;
}
.wordmark .sf-plate { height: 1.3em; width: auto; vertical-align: -.3em; margin-left: .22em; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 14px 22px; border-radius: var(--radius);
  border: var(--border-w) solid var(--ink); background: var(--cream); color: var(--ink);
  font-family: var(--font-display); font-weight: 800; font-variation-settings: "opsz" 24, "wdth" 90;
  font-size: 19px; line-height: 1; text-decoration: none;
  transition: transform var(--dur-fast) ease, box-shadow var(--dur-fast) ease, background-color var(--dur-fast) ease;
}
.btn-primary { background: var(--action); color: var(--action-text); box-shadow: 4px 4px 0 var(--ink); }
.btn-primary:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); background: var(--action-hover); }
.btn-primary:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
/* the cream button (Contact me): the game's secondary hover, plus the same small lift as the primary */
.btn:not(.btn-primary):hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--ink); background: var(--paper-deep); }
.btn:not(.btn-primary):active { transform: translate(1px, 1px); box-shadow: 0 0 0 var(--ink); }

/* ───────────── Top bar: the game's sky header, with the way back ───────────── */
.topbar { position: sticky; top: 0; z-index: 40; background: var(--sky); color: var(--cream); } /* making.js (wireTopbar) moves it: away with the page, back on a quick scroll up */
/* reading progress: a thin track pinned to the top once you start scrolling */
.read-progress { position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: 5px; background: var(--paper-deep); opacity: 0; transition: opacity 200ms ease; pointer-events: none; }
.read-progress.is-on { opacity: 1; }
.rp-fill { position: absolute; inset: 0 auto 0 0; width: calc(var(--p, 0) * 100%); background: var(--poppy); }
@media (prefers-reduced-motion: reduce) { .read-progress { transition: none; } }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.topbar .wordmark { font-size: 17px; min-height: var(--touch); }
.topbar-play { display: inline-flex; align-items: center; min-height: var(--touch); padding: 0 14px; border: 2px solid var(--cream); border-radius: 999px; font: 700 14px/1 var(--font-ui); text-decoration: none; white-space: nowrap; }
.topbar-play:hover { background: var(--cream); color: var(--sky); }
.draft { margin: 0; padding: 10px 20px; background: var(--gold); color: var(--ink); font-size: 13.5px; line-height: 1.4; text-align: center; }

/* ───────────── Street signs ─────────────
   Built like the logo: white plates with a black inner border, the small one on top carrying
   the chapter number between an up and a down arrow. The sign's own black and white. */
.sign { display: inline-flex; flex-direction: column; align-items: center; gap: 3px; color: #141414; text-decoration: none; }
.sign-num, .sign-name { background: #fff; box-shadow: 0 0 0 1px #C9C0AC, inset 0 0 0 2px #fff, inset 0 0 0 3.5px #141414; font-family: var(--font-display); font-weight: 800; font-variation-settings: "opsz" 48, "wdth" 85; line-height: 1; }
.sign-num { display: inline-flex; align-items: center; gap: 6px; border-radius: 5px; padding: 6px 9px; font-size: 13px; }
.sign-num svg { width: 8px; height: 11px; fill: #141414; }
.sign-name { border-radius: 7px; padding: 11px 15px 10px; font-size: 17px; text-transform: uppercase; letter-spacing: .07em; white-space: nowrap; }
a.sign:hover .sign-name, a.sign:hover .sign-num { background: var(--cream); }

/* ───────────── Hero ───────────── */
.chapter.is-lead { padding-top: 0; } /* the first section opens the page: the drawing right under the top bar, then its headline and the game */
.chapter.is-centered .ch-head, .chapter.is-centered .ch-body > .b-text { text-align: center; } /* the short version's sections: headline and sentence centered over what follows */
.chapter.is-centered .ch-title, .chapter.is-centered .ch-body > .b-text { margin-left: auto; margin-right: auto; text-wrap: balance; } /* even lines, no word left alone */
.chapter.is-centered .b-cta { align-items: center; justify-content: center; } /* and the buttons under them */
.hero-art { margin: 0 0 56px; }
.hero-art .art { aspect-ratio: 4 / 3; }
.hero-art .art-homeScene, .b-figure.is-full .art-homeScene { aspect-ratio: 9 / 5; overflow: hidden; } /* the scene's own shape on a phone */
.hero-art .art-homeScene { aspect-ratio: 18 / 7; } /* the page's top drawing runs 30% shorter than the scene */
.hero-art .art-homeScene svg, .b-figure.is-full .art-homeScene svg { width: 100%; height: 100%; border: 0; border-radius: 0; }
.hero-art figcaption { width: 100%; max-width: 1120px; margin: 10px auto 0; padding: 0 20px; }
/* the chapters, as signs stacked on one post (phones); a row of signs when there's room */
/* Go deeper: the divider between the short version and the full chapters, one card per chapter */
.deeper { padding: 64px 0 72px; }
.deeper .ch-title { margin: 0; }
.deeper-dek { margin: 16px 0 0; max-width: 34rem; font-size: 19px; line-height: 1.45; color: var(--text-soft); }
.deeper-list { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 14px; }
.deeper-link { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; height: 100%; padding: 18px; border: var(--border-w) solid var(--ink); border-radius: var(--radius); background: var(--paper); color: var(--text); text-decoration: none; }
.deeper-link > span { font-size: 16px; line-height: 1.45; }
.deeper-link:hover { background: var(--cream); }
.deeper-link:hover .sign-name, .deeper-link:hover .sign-num { background: var(--cream); }
.toc { margin-top: 34px; }
.toc ol { position: relative; list-style: none; margin: 0; padding: 0 0 26px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.toc ol::before { content: ""; position: absolute; left: 50%; top: -14px; bottom: 0; width: 8px; margin-left: -4px; border-radius: 4px 4px 0 0; background: var(--ink); opacity: .82; }
.toc li { position: relative; }

/* ───────────── Chapters ───────────── */
.chapter { padding: 64px 0 72px; }
.chapter.has-opener { padding-top: 0; }
.chapter:not(.is-essay) + .chapter:not(.is-essay) { border-top: 2px solid var(--outline-variant); } /* a rule between the numbered chapters */
.chapter.ends-full { padding-bottom: 0; } /* a closing full-width illustration meets the next section directly */
.chapter.ends-full .b-figure.is-full .art svg:not(.is-wide):not(.is-tall) { display: block; } /* the bills pick their own layout below */
.chapter.ends-full .ch-body > .b-figure.is-full:last-child { margin-bottom: -1px; } /* overlap the next band by a pixel, so no hairline shows at fractional sizes */
.ch-body > .b-figure.is-full:has(> .art-street) { margin-top: 40px; } /* the progress band: the section's full bottom padding above it */
.opener { margin-bottom: 44px; }
.opener svg { width: 100%; height: auto; }
.tone-paper { background: var(--paper); }
.tone-cream { background: var(--cream); }
.tone-deep { background: var(--paper-deep); }
.tone-sky { background: var(--sky); color: var(--cream); }
.ch-head { margin-bottom: 30px; }
.ch-title { margin: 20px 0 0; font-size: clamp(28px, 7.25vw, 64px); line-height: .9; letter-spacing: -.05em; color: var(--ink); max-width: 22ch; overflow-wrap: break-word; } /* every section headline shares one size, the page's h1 included */
.tone-sky .ch-title { color: var(--cream); }
.chapter.is-essay .ch-title { margin-top: 0; } /* no sign above it */
.ch-title a { text-decoration-thickness: .06em; text-underline-offset: .12em; }
.ch-body { display: flex; flex-direction: column; gap: 32px; }

/* text */
.b-text { max-width: 35rem; }
.b-text p + p { margin-top: 14px; }
.b-statement { max-width: 17ch; font-size: clamp(31px, 9vw, 68px); line-height: 1; letter-spacing: -.04em; color: var(--poppy); padding: 8px 0; }
.tone-sky .b-statement { color: var(--cream); }
.b-subhead { margin: 24px 0 -8px; font-size: clamp(27px, 7.4vw, 44px); line-height: 1; letter-spacing: -.035em; color: var(--ink); max-width: 20ch; }
.b-note { align-self: flex-end; max-width: 22rem; background: var(--cream); color: var(--text); border: 2px solid var(--outline-variant); border-radius: var(--radius); padding: 14px 16px 16px; transform: rotate(-1.2deg); font-size: 15.5px; line-height: 1.45; }
.tone-cream .b-note { background: var(--paper); }
/* a note pinned onto a figure: over the bottom of the phone on a small screen, beside the money line wider up */
.b-figure.has-note { position: relative; }
.b-note.fig-note { position: relative; z-index: 1; margin: 4px 0 0 auto; max-width: 17rem; transform: rotate(2deg); box-shadow: 0 0 0 4px var(--cream); }
.tone-cream .b-note.fig-note { box-shadow: 0 0 0 4px var(--cream); }
@media (min-width: 640px) {
  .b-note.fig-note { position: absolute; top: 122px; left: calc(50% + 128px); width: 15rem; margin: 0; }
}

/* figures */
figure { margin: 0; }
figcaption { margin-top: 10px; max-width: 35rem; font-size: 14px; line-height: 1.45; color: var(--text-soft); }
.tone-sky figcaption { color: var(--cream); opacity: .9; }
.b-figure.is-inline { max-width: 35rem; }
.b-figure.is-full { width: 100vw; margin-left: calc(50% - 50vw); }
.b-figure.is-full figcaption { width: min(100%, 1120px); max-width: none; margin: 10px auto 0; padding: 0 20px; } /* lines up with the text column */

/* art */
.art { position: relative; }
.art-panorama { aspect-ratio: 4 / 3; overflow: hidden; }
.art-panorama svg { width: 100%; height: 100%; }
.b-story .art, .b-figure .art:not(.art-panorama), .b-compare .art { border-radius: 12px; overflow: hidden; }
.art-homeScene svg { width: 100%; height: auto; border: 2px solid var(--outline-variant); border-radius: 12px; }
.art-streetSign, .art-sfSilhouette, .art-sliderThumb { background: var(--paper-deep); border-radius: 12px; display: grid; place-items: center; padding: 28px 20px; }
.tone-deep .art-streetSign, .tone-deep .art-sfSilhouette, .tone-deep .art-sliderThumb { background: var(--paper); }
.art-streetSign img { width: 100%; max-width: 520px; height: auto; }
.art-sfSilhouette, .art-zone { background: var(--cream); border: 2px solid var(--cream-line); }
.art-zone { display: grid; place-items: center; padding: 20px; border-radius: 12px; }
.art-zone svg { width: 100%; max-width: 240px; height: auto; }
.b-story .zones { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }  /* a story step is narrow: three across */
.b-story .palette { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px 8px; }  /* the paint box in a story step: two even rows */
.b-story .palette li { font-size: 11.5px; }
.b-story .palette i { height: 44px; }
.b-story .palette code { font-size: 10.5px; }
.b-story .zones span { font-size: 12px; }
.share-card { aspect-ratio: 1080 / 1350; max-width: 300px; margin: 0 auto; border: 2px solid var(--outline-variant); border-radius: 12px; overflow: hidden; background: var(--sky); }
.share-card img { display: block; width: 100%; height: 100%; }
.share-pair { display: flex; flex-direction: column; gap: 16px; max-width: 320px; margin: 0 auto; }
.share-pair .share-card { width: 100%; max-width: none; }
.share-msg { align-self: flex-end; max-width: 86%; margin: 0; padding: 10px 16px; border-radius: 20px 20px 6px 20px; background: var(--sky); color: var(--cream); font-size: 16px; line-height: 1.4; white-space: pre-line; overflow-wrap: anywhere; }
.img.is-outlined { border: 1.5px solid var(--outline-variant); }
.art-sfSilhouette img { width: 100%; max-width: 240px; height: auto; }
.art-wordmark { background: var(--sky); color: var(--cream); border-radius: 12px; display: grid; place-items: center; padding: 30px 20px; }
.art-wordmark .wordmark { font-size: clamp(28px, 9vw, 44px); }
.art-bandHouses { background: var(--sky); border-radius: 12px; padding-top: 14px; }
.art-bandHouses svg { width: 100%; height: auto; }

.thumb-stage { position: relative; width: 100%; max-width: 360px; height: 150px; }
.thumb-track { position: absolute; left: 0; right: 0; top: 96px; height: 10px; border-radius: 5px; background: var(--cream-line); border: 2px solid var(--ink); }
.thumb-ask { position: absolute; left: 34%; top: -14px; bottom: -14px; border-left: 2px dashed var(--ink); }
.thumb-stage img { position: absolute; left: calc(34% - 44px); top: 0; width: 88px; height: auto; }

/* type specimen: the game's display face and body face, as the game sets them */
.media-stack { display: flex; flex-direction: column; gap: 12px; }
.type-spec { display: grid; gap: 10px; }
.ts-row { background: var(--cream); border: 2px solid var(--outline-variant); border-radius: 12px; padding: 14px 16px; }
.ts-display { font-family: var(--font-display); font-weight: 800; font-variation-settings: "opsz" 96, "wdth" 82; letter-spacing: -.075em; line-height: .95; font-size: clamp(30px, 8vw, 38px); color: var(--ink); }
.ts-body { font-family: var(--font-ui); font-size: 16px; line-height: 1.45; color: var(--text); }

.palette { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
.palette li { font-size: 13px; line-height: 1.3; }
.palette i { display: block; height: 58px; border-radius: 10px; border: 2px solid var(--outline-variant); margin-bottom: 7px; }
.palette b { display: block; font-weight: 700; }
.palette code { font-size: 12px; color: var(--text-muted); }

.types svg { width: 100%; height: auto; }
.types ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); text-align: center; font: 700 clamp(9.5px, 2.7vw, 12.5px)/1.2 var(--font-ui); letter-spacing: .02em; text-transform: uppercase; color: var(--text-soft); }

/* the burning bills, full width: a wide row on desktop, a taller zigzag on phones */
.art-bills { background: var(--paper-deep); padding: 0 0 56px; }
.bills-cap { max-width: 1120px; margin: 0 auto; padding: 56px 20px 8px; box-sizing: border-box; text-align: center; }
.bills-title { max-width: 22ch; margin: 0 auto; font-family: var(--font-display); font-weight: 800; font-variation-settings: "opsz" 96, "wdth" 82; font-size: clamp(28px, 7.25vw, 64px); line-height: .9; letter-spacing: -.05em; color: var(--ink); text-wrap: balance; } /* the same size as the section headlines */
.bills-note { margin: 10px auto 0; max-width: 40ch; font-size: 16px; line-height: 1.45; color: var(--text-muted); }
.art-bills svg { display: block; width: 100%; max-width: 1200px; height: auto; margin: 0 auto; }
.art-bills .is-wide { display: none; }
@media (min-width: 768px) { .art-bills { padding-bottom: 88px; } .bills-cap { padding-top: 88px; } .art-bills .is-wide { display: block; } .art-bills .is-tall { display: none; } } /* the same breathing room as under the top drawing */
.b-figure.is-full .art { border-radius: 0; }

/* media */
.img, .vid { position: relative; border-radius: 12px; overflow: hidden; background: var(--paper-deep); }
.img img, .vid video { display: block; width: 100%; height: 100%; object-fit: cover; }
.is-portrait { width: 100%; max-width: 300px; margin-left: auto; margin-right: auto; }
.set { display: grid; grid-template-columns: repeat(var(--cols-sm), minmax(0, 1fr)); gap: 10px; }
.set figcaption { margin-top: 6px; font-size: 13px; }
.b-collage { margin: 0; }
/* screenshots pinned up loosely; overlaps land on photo edges and margins, never on a post's words */
.cl-stage { position: relative; aspect-ratio: 768 / 560; }
.cl-item { position: absolute; transform: rotate(var(--rot, 0deg)); }
.cl-item img { display: block; width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--outline-variant); background: #fff; box-shadow: 0 0 0 3px var(--paper); } /* a paper edge keeps overlaps legible */
.cl-1 { --rot: -1.5deg; left: 1%; top: 1.5%; width: 47%; z-index: 1; }
.cl-2 { --rot: 2deg; left: 50%; top: 6%; width: 48%; z-index: 2; }
.cl-3 { --rot: -1deg; left: 30%; top: 68%; width: 50%; z-index: 3; } /* tucks over the first post's source line */
.b-collage figcaption { margin-top: 14px; }
@media (min-width: 768px) {
  .b-collage { max-width: 860px; }
  .cl-item img { border-radius: 12px; border-width: 1.5px; box-shadow: 0 0 0 5px var(--paper); }
}
}
@media (min-width: 600px) { .set { grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); } }
.glyphs { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; background: var(--paper-deep); border-radius: 12px; padding: 26px 16px; }
.tone-deep .glyphs { background: var(--paper); }
.glyphs svg { width: 60px; height: auto; }
.zones { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.zones li { background: var(--cream); border: 2px solid var(--cream-line); border-radius: 12px; padding: 10px 8px 12px; text-align: center; }
.zones svg { width: 100%; height: auto; }
.zones span { display: block; margin-top: 6px; font-size: 13px; font-weight: 600; line-height: 1.25; color: var(--ink); }
@media (min-width: 768px) { .zones { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; } }
.art-prize svg { width: 100%; height: auto; border: 2px solid var(--outline-variant); border-radius: 12px; }

/* placeholders: what only the author has. Dashed, labeled, never mistaken for the real thing. */
.ph { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 7px; width: 100%; padding: 20px; border: 2px dashed #B09F78; border-radius: 12px; background: var(--paper-deep); color: #6A5D42; }
.ph-tag { background: var(--ink); color: var(--cream); padding: 5px 7px 4px; border-radius: 4px; font-size: 10.5px; }
.ph strong { font-family: var(--font-display); font-weight: 800; font-variation-settings: "opsz" 48, "wdth" 85; font-size: 21px; line-height: 1.1; letter-spacing: -.01em; color: var(--ink); }
.ph span:last-child:not(.ph-tag) { font-size: 14px; line-height: 1.4; max-width: 32ch; }
.tone-cream .ph, .tone-deep .ph { background: var(--paper); }
.tone-sky .ph { background: var(--sky-deep); border-color: rgba(251,245,230,.6); color: var(--cream); }
.tone-sky .ph strong { color: var(--cream); }
.tone-sky .ph-tag { background: var(--cream); color: var(--ink); }

/* live screens: the real game at a phone's size, scaled by making.js (--s) */
.screen { width: 100%; max-width: 300px; margin: 0 auto; }
.screen-vp { position: relative; box-sizing: content-box; width: calc(100% - 4px); aspect-ratio: 375 / var(--vh); border: 2px solid var(--outline-variant); border-radius: 22px; overflow: hidden; background: var(--paper); } /* the ratio is the frame's own, inside the outline, so the scaled game fills it to the bottom edge */
.screen-vp iframe { position: absolute; left: 0; top: 0; width: 375px; height: calc(var(--h) * 1px); border: 0; transform-origin: 0 0; transform: scale(var(--s, .8)) translateY(calc(var(--top) * -1px)); pointer-events: none; }
.screen.is-live iframe { pointer-events: auto; }
.screen.is-live .screen-vp { border-color: var(--ink); } /* the one you can play keeps the ink outline */
.screen.is-crop { max-width: none; }
.screen.is-crop .screen-vp { width: 100%; border: 0; border-radius: 12px; }
.screen.is-outlined .screen-vp::after { content: ""; position: absolute; inset: 0; border: 2px solid var(--outline-variant); border-radius: inherit; pointer-events: none; } /* drawn over the frame, so a slice keeps its full width */ /* a slice of a screen reads as part of the page, no phone outline */
.screen.is-bare .screen-vp { background: none; border-radius: 0; } /* bare: just what the game draws, on the page's own paper */
.screen[data-loop] iframe, .screen[data-reveal] iframe { transition: opacity 300ms ease; }
.screen[data-loop].is-fading iframe, .screen[data-reveal].is-fading iframe { opacity: 0; }
.b-figure:has(> .screen) > figcaption { max-width: none; text-align: center; } /* under a phone screen, the caption lines up with the centered phone and its link */
.screen-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 16px; margin-top: 12px; }
.screen-actions .open { display: inline-flex; align-items: center; min-height: var(--touch); font-size: 14px; font-weight: 600; text-underline-offset: 3px; }
.play { min-height: 48px; padding: 0 20px; border-radius: var(--radius); border: 2px solid var(--ink); background: var(--action); color: var(--action-text); box-shadow: 4px 4px 0 var(--ink); font-family: var(--font-display); font-weight: 800; font-variation-settings: "opsz" 24, "wdth" 90; font-size: 17px; cursor: pointer; }
.play:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.play:disabled { opacity: .6; cursor: default; transform: none; box-shadow: 2px 2px 0 var(--ink); }

/* a row of phones: swipe on a phone, side by side when there's room */
.b-screens { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -20px; padding: 2px 20px 14px; scroll-padding: 0 20px; scrollbar-width: thin; }
.b-screens figure { flex: 0 0 78%; max-width: 300px; scroll-snap-align: start; }
.b-screens figcaption { text-align: left; }

/* before and after: stacked on a phone */
.b-compare { display: grid; gap: 28px; }
.compare-cap { grid-column: 1 / -1; margin: -18px 0 0; max-width: 35rem; font-size: 14px; line-height: 1.45; color: var(--text-soft); } /* one caption under both, as close as a figcaption */

/* design stories: Inspiration → Exploration → Iteration → Final */
.b-story { border-top: 2px solid var(--outline-variant); padding-top: 36px; }
.ch-body > .b-story { margin-top: 24px; } /* stories and sections get more air than ordinary blocks */
.tone-sky .b-story { border-color: rgba(251, 245, 230, .4); }
.b-story h3 { margin: 0; font-size: clamp(27px, 7.4vw, 44px); line-height: 1; letter-spacing: -.035em; color: var(--ink); max-width: 18ch; }
.tone-sky .b-story h3 { color: var(--cream); }
.story-dek { margin-top: 16px; max-width: 35rem; }
.sec-ref { margin: 28px 0 0; max-width: 240px; }
.sec-ref a { display: block; transform: rotate(-2deg); border: 2px solid var(--outline-variant); border-radius: 8px; overflow: hidden; background: var(--cream); }
.sec-ref img { display: block; width: 100%; height: auto; }
.sec-ref figcaption { margin-top: 10px; font-size: 13px; line-height: 1.4; color: var(--text-muted); }
.story-credit { margin-top: 14px; max-width: 35rem; padding-left: 12px; border-left: 3px solid var(--poppy); font-size: 14.5px; line-height: 1.45; color: var(--text-soft); }
.story-credit a { color: var(--ink); font-weight: 600; text-underline-offset: 3px; }
.b-story > ol { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 48px; } /* the story's own steps, not lists nested in a section */
.b-story > ol > li > p { margin-bottom: 14px; max-width: 35rem; font-size: 16px; }
.b-story > ol > li .screen { max-width: 280px; }
.b-story > ol > li .screen.is-crop { max-width: none; }

/* part: the A, B, C of a long chapter. A clear stop between parts: space, a letter plate like the
   chapter signs, and a big title. */
.b-part { margin-top: 36px; padding-top: 8px; }
.b-part:first-child { margin-top: 0; }
.part-band { width: 100vw; margin: 0 0 40px calc(50% - 50vw); }
.part-band svg { width: 100%; height: auto; }
/* a full-width sky right before a street part runs straight into the band's sky, no seam */
.ch-body > .b-figure.is-full + .b-part:has(.part-band) { margin-top: -32px; padding-top: 0; }
.ch-body > .b-figure.is-full:has(+ .b-part .part-band) .art svg { display: block; }
.ch-body > .b-figure.is-full:has(+ .b-part .part-band) .art, .ch-body > .b-figure.is-full + .b-part .part-band { background: var(--sky); }
.ch-body > .b-figure.is-full + .b-part .part-band { position: relative; margin-top: -1px; padding-top: 1px; } /* covers the antialiased seam at fractional positions */
.part-plate { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border-radius: 5px; background: #fff; color: #141414; box-shadow: 0 0 0 1px #C9C0AC, inset 0 0 0 2px #fff, inset 0 0 0 3.5px #141414; font-family: var(--font-display); font-weight: 800; font-variation-settings: "opsz" 48, "wdth" 85; font-size: 13px; line-height: 1; }
.part-plate svg { width: 8px; height: 11px; fill: #141414; }
.part-title { margin: 14px 0 0; font-family: var(--font-display); font-weight: 800; font-variation-settings: "opsz" 96, "wdth" 82; font-size: clamp(34px, 9.5vw, 64px); line-height: .98; letter-spacing: -.045em; color: var(--ink); max-width: 16ch; }
.part-dek { margin-top: 12px; max-width: 34rem; font-size: 18px; line-height: 1.5; color: var(--text-soft); }

/* section: a story's frame around ordinary blocks, in one column */
.sec-body { display: flex; flex-direction: column; gap: 40px; margin-top: 32px; }
.sec-body .b-statement { font-size: clamp(29px, 8vw, 52px); }

/* one moment, beat by beat */
.b-beats { list-style: none; margin: 0; padding: 0; max-width: 42rem; border-top: 2px solid var(--outline-variant); }
.b-beats li { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 14px; padding: 15px 0; border-bottom: 1.5px solid var(--cream-line); }
.b-beats b { font-family: var(--font-display); font-weight: 800; font-variation-settings: "opsz" 24, "wdth" 85; font-size: 16px; line-height: 1.5; color: var(--sky); }
.b-beats p { font-size: 16px; }

/* the lab notebook */
.b-lab { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.b-lab li { background: var(--cream); border: 2px solid var(--outline-variant); border-radius: var(--radius-lg); padding: 18px 18px 20px; }
.stamp { display: inline-block; margin-bottom: 12px; padding: 6px 8px 5px; border: 2.5px solid currentColor; border-radius: 6px; font-family: var(--font-display); font-weight: 800; font-variation-settings: "opsz" 24, "wdth" 85; font-size: 13px; line-height: 1; letter-spacing: .08em; text-transform: uppercase; transform: rotate(-4deg); }
.stamp.is-kept { color: var(--leaf-deep); }
.stamp.is-replaced { color: var(--gold-deep); }
.stamp.is-cut { color: var(--poppy); }
.stamp.is-parked { color: var(--sky); }
.b-lab h4 { margin: 0 0 6px; font-size: 23px; line-height: 1.05; letter-spacing: -.03em; color: var(--ink); text-wrap: balance; }
.b-lab p { font-size: 15.5px; }

/* side by side lists (What I did / What AI did): stacked on a phone */
.b-columns { display: grid; gap: 18px; }
.b-columns section { background: var(--cream); border: 2px solid var(--outline-variant); border-radius: var(--radius-lg); padding: 18px 18px 20px; }
.tone-cream .b-columns section { background: var(--paper); }
.b-columns h4 { margin: 0 0 10px; font-family: var(--font-display); font-weight: 800; font-variation-settings: "opsz" 96, "wdth" 82; font-size: 24px; line-height: 1.05; letter-spacing: -.03em; color: var(--ink); text-wrap: balance; }
.b-columns ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: 15.5px; line-height: 1.45; }
@media (min-width: 768px) { .b-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ── diagrams ── */
/* flow: boxes joined by labeled arrows. A column on a phone, a row from 900px */
.b-flow { margin: 0; }
.fl-row { display: flex; flex-direction: column; align-items: stretch; }
.fl-node { background: var(--cream); border: 2px solid var(--outline-variant); border-radius: var(--radius-lg); padding: 14px 16px 16px; }
.tone-cream .fl-node { background: var(--paper); }
.fl-node b { display: block; font-family: var(--font-display); font-weight: 800; font-variation-settings: "opsz" 48, "wdth" 85; font-size: 21px; line-height: 1.05; letter-spacing: -.02em; color: var(--ink); }
.fl-sub { display: block; margin-top: 2px; font-size: 13px; color: var(--text-soft); }
.fl-node ul { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.fl-node li { font-size: 13px; line-height: 1.2; padding: 5px 8px; border-radius: 999px; background: var(--paper-deep); color: var(--ink); }
.fl-node.is-me { background: var(--coral); border-color: var(--coral); }
.fl-node.is-me li { background: var(--cream); }
.fl-node.is-ai { background: var(--sky); border-color: var(--sky); }
.fl-node.is-ai b, .fl-node.is-ai .fl-sub { color: var(--cream); }
.fl-node.is-ai li { background: var(--cream); }
.fl-link { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 8px 0; color: var(--ink); }
.fl-link i { font-style: normal; font-size: 24px; line-height: 1; font-weight: 700; transform: rotate(90deg); }
.fl-link span { font-size: 13px; font-weight: 600; color: var(--text-soft); }
.fl-again { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 10px; color: var(--ink); font-size: 13px; font-weight: 600; }
.fl-again i { font-style: normal; font-size: 22px; }
.b-flow figcaption { margin-top: 14px; }
@media (min-width: 900px) {
  .fl-row { flex-direction: row; align-items: stretch; }
  .fl-node { flex: 1 1 0; min-width: 0; }
  .fl-link { flex: 0 0 auto; flex-direction: column; gap: 4px; padding: 0 6px; max-width: 104px; text-align: center; }
  .fl-link i { transform: none; }
}

/* inside a section the column is narrow, so a flow runs top to bottom, each box laid out sideways */
.sec-body .fl-row { flex-direction: column; }
.sec-body .fl-node { flex: none; }
.sec-body .fl-link { flex-direction: row; max-width: none; padding: 8px 0; gap: 10px; }
.sec-body .fl-link i { transform: rotate(90deg); }
@media (min-width: 600px) {
  .sec-body .fl-node { display: grid; grid-template-columns: 150px minmax(0, 1fr); column-gap: 18px; align-items: start; }
  .sec-body .fl-node ul { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; }
}

/* steps: numbered icon cards, two across on a phone, four on desktop */
.b-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.b-steps li { position: relative; background: var(--cream); border: 2px solid var(--outline-variant); border-radius: var(--radius-lg); padding: 14px 12px 14px; }
.tone-cream .b-steps li { background: var(--paper); }
.st-icon { display: flex; align-items: center; height: 30px; }
.st-icon svg { width: auto; height: 28px; }
.st-num { position: absolute; top: 10px; right: 12px; font-family: var(--font-display); font-weight: 800; font-size: 15px; color: var(--text-muted); }
.b-steps b { display: block; margin-top: 10px; font-family: var(--font-display); font-weight: 800; font-variation-settings: "opsz" 48, "wdth" 85; font-size: 19px; line-height: 1.05; color: var(--ink); }
.b-steps p { margin-top: 4px; font-size: 13.5px; line-height: 1.4; color: var(--text-soft); }
@media (min-width: 900px) { .b-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; } }

/* sequence: two lanes with lifelines, messages as arrows between them */
.b-seq { margin: 0; max-width: 44rem; }
.seq-lanes { display: flex; justify-content: space-between; }
.seq-lanes span { width: 34%; white-space: nowrap; text-align: center; padding: 9px 6px; border: 2px solid var(--outline-variant); border-radius: var(--radius); background: var(--cream); font-family: var(--font-display); font-weight: 800; font-variation-settings: "opsz" 48, "wdth" 85; font-size: 17px; color: var(--ink); }
.seq-lanes span:last-child { background: var(--sky); border-color: var(--sky); color: var(--cream); }
.b-seq ol { position: relative; list-style: none; margin: 0; padding: 6px 0 10px; }
.b-seq ol::before, .b-seq ol::after { content: ""; position: absolute; top: 0; bottom: 0; border-left: 2px dashed var(--cream-line); }
.b-seq ol::before { left: 17%; }
.b-seq ol::after { right: 17%; }
.seq-msg { position: relative; margin: 0 17%; padding: 12px 0 14px; text-align: center; } /* each arrow runs lifeline to lifeline */
.seq-msg i { display: block; position: relative; height: 2px; margin: 6px 0; background: var(--ink); }
.seq-msg i::after { content: ""; position: absolute; top: -5px; border: 6px solid transparent; }
.seq-msg.is-right i::after { right: -2px; border-left: 9px solid var(--ink); border-right: 0; }
.seq-msg.is-left i::after { left: -2px; border-right: 9px solid var(--ink); border-left: 0; }
.seq-msg.is-left i { background: var(--poppy); }
.seq-msg.is-left i::after { border-right-color: var(--poppy); }
.seq-label { display: block; font-size: 14px; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.seq-sub { display: block; font-size: 12.5px; line-height: 1.35; color: var(--text-soft); }
.seq-note { position: relative; z-index: 1; margin: 6px 0; text-align: center; }
.seq-note span { display: inline-block; padding: 5px 10px; border-radius: 999px; background: var(--paper-deep); font-size: 12.5px; font-weight: 600; color: var(--ink); }
.tone-cream .seq-note span { background: var(--paper); }
.stamp.is-caught { color: var(--poppy); }

/* ── prizes ── */
.prize-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
.prize-grid .pz-art svg { width: 100%; height: auto; border: 2px solid var(--outline-variant); border-radius: 10px; }
.prize-grid b { display: block; margin-top: 8px; font-family: var(--font-display); font-weight: 800; font-variation-settings: "opsz" 48, "wdth" 85; font-size: 16px; line-height: 1.1; color: var(--ink); }
.pz-range { display: block; margin-top: 3px; font-size: 12px; font-weight: 600; color: var(--sky); }
@media (min-width: 768px) { .prize-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 16px; } }

/* the fly-by plane, full width: the whole plane and banner always in view */
.art-planeBand { aspect-ratio: 4 / 3; overflow: hidden; }
.art-planeBand svg { width: 100%; height: 100%; }
@media (min-width: 768px) { .art-planeBand { aspect-ratio: 12 / 5; } }

/* a billboard on its own, against the prizes' sky */
.art-billboard { background: var(--sky); border-radius: 12px; padding: 14px 16px 0; overflow: hidden; }
.art-billboard svg { width: 100%; height: auto; max-height: 220px; }

/* prompt → result cards */
.b-prompts { display: grid; gap: 22px; }
.pr { background: var(--cream); border: 2px solid var(--outline-variant); border-radius: var(--radius-lg); padding: 18px; }
.tone-cream .pr { background: var(--paper); }
.pr h4 { margin: 0 0 12px; font-family: var(--font-display); font-weight: 800; font-variation-settings: "opsz" 96, "wdth" 82; font-size: 22px; line-height: 1.05; letter-spacing: -.02em; color: var(--ink); }
.pr-quote { position: relative; margin: 0 0 16px; padding: 12px 14px; border-radius: 14px 14px 14px 4px; background: var(--coral); color: var(--ink); font-size: 15px; line-height: 1.45; }
.pr-quote p + p { margin-top: 8px; }
.pr-quote.is-single { margin: 0; }
.pr-quote.is-single p + p { margin-top: 10px; }
.pr-pair { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; align-items: center; }
.pr-pair > i { font-style: normal; font-size: 22px; font-weight: 700; text-align: center; color: var(--ink); transform: rotate(90deg); }
.pr-pair figure { margin: 0; }
.pr-pair .img { background: none; }
.pr-pair .img img { height: auto; max-height: 360px; object-fit: contain; }
.pr-pair figcaption { margin-top: 6px; font-size: 12.5px; font-weight: 600; }
.pr-pair .art-prize svg, .pr-pair .art-billboard { width: 100%; }
@media (min-width: 600px) {
  .pr-pair { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 14px; }
  .pr-pair > i { transform: none; }
}

/* a thread of prompts: my words on the right, what came back on the left */
.b-thread { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.th-say { align-self: flex-end; max-width: 82%; }
.th-say { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.th-bubble { padding: 10px 14px; border-radius: 16px 16px 4px 16px; background: var(--coral); color: var(--ink); font-size: 15px; line-height: 1.45; } /* one prompt, one bubble */
.th-bubble p + p { margin-top: 8px; }
.th-say figure { margin: 4px 0 0; width: min(100%, 260px); }
.th-say figcaption { margin-top: 6px; font-size: 12.5px; text-align: right; }
.th-got { align-self: flex-start; width: min(100%, 320px); }
.th-got figure { margin: 0; }
.th-got figcaption { margin-top: 6px; font-size: 12.5px; }

/* the way back */
.b-cta { display: flex; flex-direction: column; gap: 14px; }
.b-cta .btn { width: 100%; }

/* ───────────── End ───────────── */
.end { padding: 40px 0 56px; text-align: center; }
.ornament svg { width: 120px; height: auto; margin: 0 auto; }
.signoff { margin-top: 22px; font-size: 30px; letter-spacing: -.03em; color: var(--ink); text-wrap: balance; }
.bio { margin: 14px auto 0; max-width: 34rem; display: grid; gap: 10px; font-size: 16px; line-height: 1.55; color: var(--text); text-wrap: pretty; }
.bio p { margin: 0; }
.bio { margin-top: 18px; }
.more-work { margin: 8px auto 0; max-width: 34rem; font-size: 16px; line-height: 1.5; color: var(--text); }
.more-work a { font-weight: 600; text-underline-offset: 3px; }

/* ───────────── Larger phones and tablets ───────────── */
@media (min-width: 600px) {
  .palette { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .b-cta { flex-direction: row; flex-wrap: wrap; }
  .b-cta .btn { width: auto; }
}
@media (min-width: 768px) {
  .wrap { padding: 0 40px; }
  .hero-art { margin-bottom: 88px; }
  .hero-art .art { aspect-ratio: 1200 / 440; }
  .hero-art .art-homeScene { aspect-ratio: 24 / 7; } /* the footer keeps the whole scene at 9:5 */ /* wider on desktop: a little sky and lawn trimmed, the houses whole */
  .hero-art figcaption { padding: 0 40px; }
  .toc { max-width: none; } /* the signs use the whole screen, so the row only wraps when it truly can't fit */
  .toc ol { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 14px; padding-bottom: 0; }
  .toc ol::before { display: none; }
  .chapter, .deeper { padding: 88px 0 96px; }
  .deeper-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .b-screens { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; overflow: visible; }
  .b-screens figure { max-width: none; }
  .b-compare { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; align-items: start; }
  .b-lab { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .b-figure.is-wide { max-width: 860px; }
  .b-figure.is-full figcaption { padding: 0 40px; }

  .b-story > ol { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px 48px; }
  .b-story > ol > li.is-wide { grid-column: 1 / -1; } /* a step that leads the story runs across both columns */
  .b-beats li { grid-template-columns: 120px minmax(0, 1fr); }
}

/* ───────────── Desktop: the journal spreads out ───────────── */
@media (min-width: 1024px) {
  body { font-size: 18px; }
  .ch-head { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 32px; align-items: start; margin-bottom: 48px; }
  .ch-head .sign { margin-top: 10px; justify-self: start; }
  .ch-title { margin: 0; }
  /* the essay and the divider have no signs, so they skip the sign column and read in one centered column */
  .chapter.is-essay .ch-head { display: block; }
  .chapter.is-essay .ch-head, .chapter.is-essay .ch-body > :not(.is-full), .deeper .wrap > * { margin-left: calc((100% - 760px) / 2); }
  .chapter.is-centered .ch-head, .chapter.is-centered .ch-body > .b-text, .chapter.is-centered .ch-body > .b-cta { margin-left: auto; margin-right: auto; }
  .chapter.is-essay .ch-body > .b-compare, .chapter.is-essay .ch-body > .b-figure.is-wide,
  .chapter.is-essay .ch-body > .b-figure.is-inline:has(> .screen), .deeper-list { max-width: 760px; }
  .deeper-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  /* reading blocks sit in the column right of the sign; stories, rows of screens, comparisons
     and the lab use the full width */
  .ch-body { gap: 40px; }
  .ch-body > .b-figure.is-full + .b-part:has(.part-band) { margin-top: -40px; }
  .ch-body > .b-text, .ch-body > .b-statement, .ch-body > .b-subhead, .ch-body > .b-figure.is-inline,
  .ch-body > .b-figure.is-wide, .ch-body > .b-collage, .ch-body > .b-beats, .ch-body > .b-cta { margin-left: 272px; }
  .ch-body > .b-figure.is-wide, .ch-body > .b-collage { max-width: calc(100% - 272px); }
  .b-story { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 0 52px; padding-top: 56px; } /* a wider gutter; the right column still starts 272px in, with the chapter's text */
  .ch-body > .b-story { margin-top: 40px; }
  .b-story h3, .b-story .story-dek, .b-story .story-credit, .b-story .sec-ref { grid-column: 1; align-self: start; }
  .b-story { align-content: start; grid-template-rows: auto auto 1fr; } /* the left column stacks at the top; the last row takes the slack */
  .b-story h3 { font-size: 34px; }
  .b-story > ol { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; }
  .b-section .sec-body { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; }
  .b-note { margin-right: -40px; }
  .b-figure.is-full figcaption { padding-left: 312px; }
}
/* the privacy link at the very end of the page: small and quiet, underlined only on hover */
.page-foot { padding: 20px 20px 32px; text-align: center; border-top: 2px solid var(--cream-line); }
.legal-link { font: 500 12px/1.4 var(--font-ui); color: var(--text-muted); text-decoration: none; }
.legal-link:hover, .legal-link:focus-visible { color: var(--ink); text-decoration: underline; }

/* ── the chapter nav (making.js, wireChapterNav) ── */
.chapter-nav { position: fixed; z-index: 30; left: 12px; bottom: max(12px, env(safe-area-inset-bottom)); background: var(--paper); border: 2px solid var(--outline-variant); border-radius: 12px; padding: 4px;
  transform: translateX(calc(-100% - 24px)); visibility: hidden; transition: transform 280ms cubic-bezier(.2, .7, .3, 1), visibility 0s linear 280ms; }
.chapter-nav.is-shown { transform: none; visibility: visible; transition: transform 280ms cubic-bezier(.2, .7, .3, 1), visibility 0s; }
.chapter-nav ol { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
@media (max-width: 1199px) { /* phones and tablets: a row across the bottom, the five plates sharing its width */
  .chapter-nav { right: 12px; }
  .chapter-nav li { flex: 1; }
  .chapter-nav .cn-link { width: 100%; }
}
.cn-link { display: flex; align-items: center; gap: 10px; min-width: 44px; min-height: 44px; padding: 0 6px; border-radius: 8px; box-sizing: border-box; justify-content: center; color: var(--ink); text-decoration: none; }
.cn-link .sign-num { font-size: 12px; padding: 5px 7px; gap: 5px; }
.cn-link .sign-num svg { width: 7px; height: 10px; }
.cn-link:hover { background: var(--cream); }
.cn-link[aria-current] .sign-num { background: var(--sky); color: var(--cream); box-shadow: 0 0 0 1px var(--sky), inset 0 0 0 2px var(--sky), inset 0 0 0 3.5px var(--cream); }
.cn-link[aria-current] .sign-num svg { fill: var(--cream); }
.cn-name { display: none; font-family: var(--font-display); font-weight: 800; font-variation-settings: "opsz" 48, "wdth" 85; font-size: 13px; line-height: 1; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; color: var(--text-soft); }
.cn-link[aria-current] .cn-name { color: var(--ink); }
@media (min-width: 1200px) { /* a column at the left edge, centered on the screen */
  .chapter-nav { top: 50%; bottom: auto; left: 16px; transform: translate(calc(-100% - 24px), -50%); }
  .chapter-nav.is-shown { transform: translateY(-50%); }
  .chapter-nav ol { flex-direction: column; }
  .cn-link { justify-content: flex-start; padding: 0 10px 0 6px; }
}
@media (min-width: 1200px) and (hover: hover) { .chapter-nav:hover .cn-name, .chapter-nav:focus-within .cn-name { display: block; } } /* names on hover or focus */
@media (min-width: 1600px) { .cn-name { display: block; } } /* room in the margin for the names */
@media (prefers-reduced-motion: reduce) { .chapter-nav, .chapter-nav.is-shown { transition: none; } }
