/* emmi.zone blog, reading page and the app pages: design B, "The Lamplit Shelf". Loaded after /zone/site.css (tokens, fonts, top bar).
   Only the app pages (src/) load this file; Home, Services and My story do not. */
/* Reading tokens on top of the site tokens in site.css */
:root, [data-theme="night"] {
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --read: oklch(0.91 0.014 85);            /* long reading: a touch softer than headline ink */
  --leaf: oklch(0.185 0.028 256);          /* the reading sheet at night: lamp-lit slate */
  --on: var(--lamp);                       /* ruled light, lit */
  --off: oklch(0.36 0.03 252);             /* ruled light, unlit */
  --spine: oklch(0.285 0.032 252);
  --spine-hi: oklch(0.35 0.03 250);
  --field: oklch(0.56 0.03 250);           /* an input edge, 3:1 on the ground */
  --code: oklch(0.125 0.022 257);
  --screen-a: oklch(0.27 0.045 258); --screen-b: oklch(0.205 0.04 258);
  --plate: var(--lamp);
  --cast: var(--lamp);
}
[data-theme="day"] {
  --read: var(--ink); --leaf: oklch(0.958 0.014 85); --on: var(--verm); --off: oklch(0.79 0.02 84);
  --spine: oklch(0.865 0.022 84); --spine-hi: oklch(0.91 0.018 85); --field: oklch(0.55 0.02 80); --code: oklch(0.905 0.018 85);
  --screen-a: oklch(0.965 0.012 85); --screen-b: oklch(0.915 0.018 84); --plate: oklch(0.94 0.02 85); --cast: var(--carbon);
}
@media (prefers-color-scheme: light) { :root:not([data-theme]) {
  --read: var(--ink); --leaf: oklch(0.958 0.014 85); --on: var(--verm); --off: oklch(0.79 0.02 84);
  --spine: oklch(0.865 0.022 84); --spine-hi: oklch(0.91 0.018 85); --field: oklch(0.55 0.02 80); --code: oklch(0.905 0.018 85);
  --screen-a: oklch(0.965 0.012 85); --screen-b: oklch(0.915 0.018 84); --plate: oklch(0.94 0.02 85); --cast: var(--carbon);
} }


/* ---- base for the app pages ---- */
body { font: 400 18px/1.6 var(--font-body); }
p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }
.quiet { color: var(--ink-2); }
.lk { display: inline; padding-block: 0; }
.btn { gap: 10px; cursor: pointer; }
.btn.ghost { background: none; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--ink); background: none; }
.chip:hover, .nextp:hover { transform: translateY(-1px); }
.chip:active { transform: translateY(1px); }
.nav { position: relative; }
/* ---- page frame ---- */
main { display: block; }
.eyebrow { font-size: 17px; color: var(--ink-2); }
.eyebrow a { color: inherit; }

/* ---- the blog: header, search, topics ---- */
.ix-head { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 40px 80px; align-items: end; padding: 48px var(--edge) 0; }
.ix-head .lede { font-size: 21px; line-height: 1.5; margin-top: 18px; max-width: 30em; }
.find { margin-top: 32px; max-width: 760px; }
.find label { display: block; font-size: 17px; color: var(--ink-2); margin-bottom: 10px; }
.field { position: relative; }
.field .ico { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; color: var(--ink-2); pointer-events: none; }
.field input { width: 100%; height: 62px; border-radius: 14px; border: 1.5px solid var(--field); background: var(--ground-2); padding: 0 64px 0 56px; font-size: 19px; }
.field input::placeholder { color: var(--ink-2); opacity: 1; }
.field input:focus { outline: 2px solid var(--focus); outline-offset: 2px; }
.field kbd { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); min-width: 30px; text-align: center; border: 1px solid var(--line); border-radius: 7px; padding: 1px 8px; font: 500 17px/1.5 var(--font-body); color: var(--ink-2); }
.field input:not(:placeholder-shown) ~ kbd { display: none; }
.start { position: relative; padding: 28px 28px 28px 52px; border-radius: 16px; border: 1px solid var(--line); background: var(--ground-2); }
.start::before { content: ""; position: absolute; left: 22px; top: 28px; bottom: 28px; width: 10px; background: repeating-linear-gradient(var(--on) 0 3px, transparent 3px 6px); }
.start .eyebrow { margin-bottom: 8px; }
.start h2 { font: 500 22px/1.3 var(--font-body); letter-spacing: 0; }
.start p.quiet { margin-top: 10px; font-size: 17px; }
.start .acts { margin-top: 20px; }
.topics { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 40px var(--edge) 0; }
.topics-h { font-size: 17px; color: var(--ink-2); margin-right: 6px; }
.chip { height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: none; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 17px; white-space: nowrap; }
.chip:hover { border-color: var(--ink); }
.chip .n { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--ground); border-color: var(--ink); }
.chip[aria-pressed="true"] .n { color: var(--ground); }
.result { padding: 14px var(--edge) 0; font-size: 17px; color: var(--ink-2); min-height: 1.6em; }

/* ---- the shelf: every post as a paper spine; the lamp lights the ones you ask for ---- */
.shelf { position: relative; margin: 20px var(--edge) 0; padding: 120px 0 0; isolation: isolate; }
.sh-row { display: flex; align-items: flex-end; gap: 26px; height: 196px; border-bottom: 2px solid var(--ink-2); }
.sh-g { flex: var(--n) 1 0; min-width: 0; height: 100%; display: flex; align-items: flex-end; gap: 5px; position: relative; }
.sh-g .y { position: absolute; left: 0; top: calc(100% + 12px); font: 500 17px/1 var(--font-display); color: var(--ink-2); white-space: nowrap; }
.sp { flex: 1 1 0; min-width: 0; position: relative; display: block; height: calc(40px + var(--h) * 150px); border-radius: 3px 3px 0 0; text-decoration: none; background: linear-gradient(90deg, var(--spine-hi), var(--spine) 55%); box-shadow: inset 0 1.5px 0 var(--cut); transition: transform 0.25s var(--ease), opacity 0.3s var(--ease); }
.sp::before { content: ""; position: absolute; inset: 0 0 26px 0; border-radius: 3px 3px 0 0; background: repeating-linear-gradient(var(--on) 0 3px, transparent 3px 6px); opacity: 0; transition: opacity 0.3s var(--ease); }
.sp i { position: absolute; left: 0; right: 0; bottom: 5px; text-align: center; font: 500 17px/1 var(--font-display); font-style: normal; color: var(--ink-2); }
.sp.lit::before { opacity: 1; }
.sp.lit i { color: var(--ink); }
.sp.coming { background: none; box-shadow: none; border: 1.5px dashed var(--ink-2); border-bottom: 0; }
.sp.coming i { color: var(--ink-2); }
.shelf.filtering .sp:not(.lit) { opacity: 0.32; pointer-events: none; } /* out of the tab order too (Shelf.tsx): every spine that can take focus keeps its full edge */
.sp:hover, .sp.hot { transform: translateY(-8px); }
.sh-g.coming-g::after { content: ""; position: absolute; left: 0; right: 0; bottom: calc(40px + var(--hmax) * 150px + 14px); height: 10px; border: 1.5px solid var(--ink-2); border-bottom: 0; }
.sh-note { position: absolute; left: 0; bottom: calc(40px + var(--hmax) * 150px + 34px); font-size: 17px; color: var(--ink-2); white-space: nowrap; }
.tip { position: absolute; z-index: 3; left: 0; top: 0; width: max-content; max-width: min(460px, 86vw); padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--veil); font-size: 17px; line-height: 1.35; pointer-events: none; }
.tip[hidden] { display: none; }
.tip span { display: block; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tip b { display: block; font-weight: 500; color: var(--ink); margin-top: 2px; }
.tip::after { content: ""; position: absolute; left: var(--rx, 50%); top: 100%; height: var(--rule, 24px); border-left: 2px solid var(--accent-line); }
.shelf figcaption { margin-top: 44px; font-size: 17px; color: var(--ink-2); max-width: 40em; }

/* ---- the contents: one part per topic, rows like a book's contents page ---- */
.contents { padding: 32px 0 40px; }
.part { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 0 64px; padding: 64px var(--edge) 0; }
.part[hidden] { display: none; }
.part-h { position: sticky; top: 24px; align-self: start; padding-top: 18px; }
.part-h h2 { font-size: 32px; line-height: 1.15; }
.part-h p { margin-top: 10px; font-size: 17px; color: var(--ink-2); max-width: 17em; }
.part-h .count { margin-top: 14px; font: 500 17px/1 var(--font-display); color: var(--ink); }
.rows { border-bottom: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 104px minmax(0, 1fr) 92px; grid-template-areas: "date main min"; gap: 0 28px; padding: 22px 0 24px; border-top: 1px solid var(--line); }
.row[hidden] { display: none; }
.r-date { grid-area: date; font-size: 17px; line-height: 1.35; color: var(--ink-2); padding-top: 2px; }
.r-date time { display: block; color: var(--ink); }
.r-main { grid-area: main; min-width: 0; }
.r-title { font: 500 21px/1.35 var(--font-body); letter-spacing: 0; text-wrap: pretty; }
.r-title a { text-decoration: none; background-image: linear-gradient(var(--accent-line), var(--accent-line)); background-size: 0 1.5px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size 0.3s var(--ease); }
.r-title a:hover, .r-title a:focus-visible { background-size: 100% 1.5px; }
.r-part { font: 500 17px/1 var(--font-display); color: var(--ink-2); margin-right: 10px; white-space: nowrap; }
.r-ex { margin-top: 6px; color: var(--ink-2); font-size: 17px; line-height: 1.55; max-width: 44em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.r-tags { margin-top: 8px; font-size: 17px; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 4px 14px; }
.r-tags a { text-decoration: none; border-bottom: 1px solid var(--line); }
.r-tags a:hover { border-bottom-color: var(--accent-line); }
.r-min { grid-area: min; display: flex; align-items: flex-end; justify-content: flex-end; gap: 10px; font: 500 17px/1 var(--font-display); color: var(--ink-2); white-space: nowrap; padding-top: 4px; align-self: start; }
.mini { width: 8px; height: calc(10px + var(--h) * 22px); border-radius: 2px 2px 0 0; background: var(--spine-hi); flex: none; }
.row:hover .mini { background: repeating-linear-gradient(var(--on) 0 2px, transparent 2px 4px); }
.row.coming .r-title { color: var(--ink-2); }
.soon { display: inline-block; margin-left: 10px; padding: 1px 10px; border-radius: 999px; border: 1px dashed var(--ink-2); font: 400 17px/1.4 var(--font-body); color: var(--ink-2); white-space: nowrap; vertical-align: 2px; }
.none { padding: 48px var(--edge) 0; font-size: 19px; }
.none[hidden] { display: none; }
.none button { font: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--accent-line); text-decoration-thickness: 1.5px; }
.method { padding: 40px var(--edge) 0; font-size: 17px; color: var(--ink-2); }

/* ---- the post: a chapter opener, then one sheet of rag paper (slate at night) ---- */
.op { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 420px); gap: 40px 88px; align-items: center; padding: 40px var(--edge) 64px; }
.op .eyebrow a { text-decoration: none; border-bottom: 1px solid var(--line); }
.op .eyebrow a:hover { border-bottom-color: var(--accent-line); }
.op h1 { margin-top: 18px; max-width: 15em; }
.op .lede { font-size: 21px; line-height: 1.5; margin-top: 22px; max-width: 32em; }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: 28px; font-size: 17px; color: var(--ink-2); }
.byline .who { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.byline .who img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: 50% 22%; }
.byline .who:hover span { text-decoration: underline; text-decoration-color: var(--accent-line); text-underline-offset: 4px; }
.op .acts { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; margin-top: 32px; }
/* the cast: the lamp throws the part number in ruled light onto a folded paper screen */
.cast { position: relative; width: 100%; aspect-ratio: 21 / 25; justify-self: end; isolation: isolate; }
.scr { position: absolute; inset: 4% 2% 10% 8%; display: grid; grid-template-columns: 57fr 43fr; border-radius: 3px; overflow: hidden; box-shadow: 0 34px 50px -28px oklch(0 0 0 / 0.55); }
.scr i:first-child { background: radial-gradient(ellipse 110% 80% at 0% 55%, color-mix(in oklab, var(--screen-a), var(--lamp) 16%), var(--screen-a) 62%); }
[data-theme="day"] .scr i:first-child { background: radial-gradient(ellipse 110% 80% at 0% 55%, oklch(0.985 0.012 88), var(--screen-a) 62%); }
.scr i:last-child { background: linear-gradient(90deg, var(--screen-b), color-mix(in oklab, var(--screen-b), black 10%)); box-shadow: inset 1px 0 0 color-mix(in oklab, var(--screen-b), black 25%); }
.glyph { position: absolute; inset: 4% 2% 10% 8%; display: grid; place-items: center; font: 500 clamp(190px, 21vw, 330px)/0.8 var(--font-display); letter-spacing: -0.02em; color: transparent; background: repeating-linear-gradient(to bottom, var(--cast) 0 7px, transparent 7px 14px); -webkit-background-clip: text; background-clip: text; padding-bottom: 0.04em; }
.fold-dim { position: absolute; inset: 4% 2% 10% calc(8% + 0.57 * 90%); background: oklch(0.1 0.02 258 / 0.28); mix-blend-mode: multiply; pointer-events: none; }
[data-theme="day"] .fold-dim { background: oklch(0.5 0.02 80 / 0.1); }
.cast-cap { position: absolute; left: 8%; right: 2%; bottom: 0; font-size: 17px; color: var(--ink-2); }

.read { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 0 56px; padding: 0 var(--edge) 72px; align-items: start; }
.rail { position: sticky; top: 24px; padding-top: 8px; }
.rail-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font: 500 17px/1.3 var(--font-display); padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.rail-h span { font: 400 17px/1.3 var(--font-body); color: var(--ink-2); }
.toc { counter-reset: s; margin-top: 8px; }
.toc a { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 8px; padding: 7px 0; font-size: 17px; line-height: 1.35; color: var(--ink-2); text-decoration: none; position: relative; }
.toc a i { font: 500 17px/1.35 var(--font-display); font-style: normal; color: var(--ink-2); }
.toc a:hover { color: var(--ink); }
.toc a.done i { color: var(--accent); }
[data-theme="day"] .toc a.done i { color: var(--ink); }
.toc a[aria-current="true"] { color: var(--ink); }
.toc a[aria-current="true"]::before { content: ""; position: absolute; left: -16px; top: 9px; bottom: 9px; width: 6px; background: repeating-linear-gradient(var(--on) 0 2px, transparent 2px 4px); }
.toc a[aria-current="true"] i { color: var(--ink); }
.rail-tools { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); display: grid; gap: 10px; justify-items: start; }
.rail-tools .pill { height: 40px; }

.rleaf { position: relative; border-radius: 6px; background: var(--leaf); padding: 56px clamp(28px, 6vw, 96px) 88px clamp(64px, 8vw, 116px); min-width: 0; }
.rleaf::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background-image: var(--grain); opacity: 0.07; pointer-events: none; }
[data-theme="day"] .rleaf::after { mix-blend-mode: multiply; opacity: 0.2; }
/* the margin rail runs the whole post (20,000px and more). Its dashes are one small tile repeated, not a repeating
   gradient: WebKit draws a gradient that long with drifting stripes, so dashes ran together and the lit and unlit
   layers fell out of step. The lit layer keeps the rail's full size and is clipped, so both tiles line up exactly. */
.margin { position: absolute; left: clamp(26px, 3vw, 44px); top: 56px; bottom: 88px; width: 12px; background: linear-gradient(var(--off) 3px, transparent 3px) 0 0 / 100% 6px; }
.margin i { position: absolute; inset: 0; clip-path: inset(0 0 calc(100% - var(--lit, 0) * 1px) 0); background: linear-gradient(var(--on) 3px, transparent 3px) 0 0 / 100% 6px; }
.runhead { display: flex; justify-content: space-between; gap: 24px; font-size: 17px; color: var(--ink-2); padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 44px; max-width: 46em; }
.runhead span:last-child { text-align: right; }
.prose { max-width: 36em; font-size: 19px; line-height: 1.72; color: var(--read); position: relative; z-index: 1; }
.prose > * + * { margin-top: 1.05em; }
.prose a { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; text-decoration-color: var(--accent-line); }
.prose a:hover { text-decoration-thickness: 3px; }
.prose strong { font-weight: 600; color: var(--ink); }
.prose .headnote { font-size: 17px; line-height: 1.6; color: var(--ink-2); padding-bottom: 26px; border-bottom: 1px solid var(--line); margin-bottom: 36px; }
.prose .headnote a { color: var(--ink-2); }
.prose .first::first-letter { float: left; font: 500 5.1em/0.74 var(--font-display); margin: 0.08em 0.14em 0 -0.02em; color: transparent; background: repeating-linear-gradient(var(--cast) 0 4px, transparent 4px 8px); -webkit-background-clip: text; background-clip: text; }
.prose blockquote { padding: 6px 0 6px 26px; border-left: 2px solid var(--accent-line); font-size: 21px; line-height: 1.55; color: var(--ink); }
.prose .key { font-size: 21px; line-height: 1.55; }
.prose h2 { position: relative; font-size: 34px; line-height: 1.18; margin-top: 2.4em; color: var(--ink); scroll-margin-top: 24px; }
.prose h2 + * { margin-top: 0.8em; }
.prose h2 .sec { position: absolute; right: calc(100% + 22px); top: 0.12em; font-size: 26px; line-height: 1; color: var(--accent); }
[data-theme="day"] .prose h2 .sec { color: var(--ink); }
.prose h3 { font-size: 24px; line-height: 1.25; margin-top: 1.8em; color: var(--ink); }
.prose ul { display: grid; gap: 0.5em; }
.prose ul > li { position: relative; padding-left: 26px; }
.prose ul > li::before { content: ""; position: absolute; left: 2px; top: 0.72em; width: 12px; height: 2px; background: var(--accent-line); }
.orn { display: flex; justify-content: center; align-items: center; gap: 14px; margin: 2.2em 0 0; color: var(--ink-2); }
.orn::before, .orn::after { content: ""; width: 48px; height: 1px; background: var(--line); }
.orn svg { width: 16px; height: 16px; fill: currentColor; }
.note { position: relative; padding: 2px 0 2px 30px; }
.note::before { content: ""; position: absolute; left: 0; top: 7px; bottom: 7px; width: 8px; background: repeating-linear-gradient(var(--on) 0 3px, transparent 3px 6px); }
.note .lab { display: block; font: 500 17px/1.4 var(--font-display); color: var(--ink); margin-bottom: 2px; }
.note p { margin: 0; }
.box { border: 1px solid var(--line); border-radius: 14px; background: color-mix(in oklab, var(--leaf), var(--ground) 45%); }
.box > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px; padding: 16px 22px; font: 500 19px/1.4 var(--font-body); color: var(--ink); border-radius: 14px; }
.box > summary::-webkit-details-marker { display: none; }
.box > summary::before { content: ""; flex: none; width: 16px; height: 16px; background: linear-gradient(currentColor, currentColor) center / 16px 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 16px no-repeat; }
.box[open] > summary::before { background: linear-gradient(currentColor, currentColor) center / 16px 2px no-repeat; }
.box[open] > summary { border-bottom: 1px solid var(--line); border-radius: 14px 14px 0 0; }
.box .in { padding: 18px 22px 22px; }
.box .in > * + * { margin-top: 0.9em; }
.code { border: 1px solid var(--line); border-radius: 12px; background: var(--code); overflow: hidden; }
.code-h { display: flex; justify-content: space-between; align-items: center; padding: 6px 8px 6px 18px; border-bottom: 1px solid var(--line); font-size: 17px; color: var(--ink-2); }
.copy { height: 36px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: none; cursor: pointer; font-size: 17px; color: var(--ink); }
.copy:hover { border-color: var(--ink); }
.code pre { margin: 0; padding: 16px 18px 18px; overflow-x: auto; font: 400 17px/1.6 var(--mono); color: var(--ink); tab-size: 2; }
.code .c { color: var(--ink-2); }
.plate { margin-top: 2.2em; margin-bottom: 0.4em; }
.plate .ph { position: relative; display: block; width: 100%; border: 0; padding: 0; border-radius: 6px; overflow: hidden; background: var(--code); cursor: pointer; }
.plate img { width: 100%; height: auto; filter: grayscale(1) sepia(1) saturate(1.7) hue-rotate(-6deg) brightness(1.12) contrast(1.04); transition: filter 0.45s var(--ease); }
[data-theme="day"] .plate img { filter: grayscale(1) sepia(0.3) contrast(0.96) brightness(1.06); }
.plate .ph::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(transparent 0 2px, color-mix(in oklab, var(--ground), transparent 78%) 2px 3px); transition: opacity 0.45s var(--ease); pointer-events: none; }
.plate .ph:hover img, .plate .ph:focus-visible img, .plate .ph.colour img { filter: none; }
.plate .ph:hover::after, .plate .ph:focus-visible::after, .plate .ph.colour::after { opacity: 0; }
.plate figcaption { display: flex; gap: 14px; margin-top: 12px; font-size: 17px; line-height: 1.5; color: var(--ink-2); max-width: 40em; }
.plate figcaption b { flex: none; font: 500 17px/1.5 var(--font-display); color: var(--ink); }
.prose .wide { margin-right: calc(-1 * clamp(0px, 9vw, 160px)); }
.cover { padding: 0 0 40px; }
.cover .plate { margin: 0 auto; max-width: 1360px; }
.cover .ph { aspect-ratio: 1024 / 420; }
.cover .ph img { height: 100%; object-fit: cover; object-position: 50% 40%; }

/* the end of the chapter: turn the page */
.endmatter { max-width: 46em; margin-top: 64px; }
.fin { display: flex; align-items: center; gap: 16px; font: 500 17px/1 var(--font-display); color: var(--ink-2); }
.fin::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.nextp { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 32px; align-items: center; margin-top: 28px; padding: 26px 28px 28px 56px; border-radius: 16px; border: 1px solid var(--line); background: var(--ground-2); text-decoration: none; }
.nextp::before { content: ""; position: absolute; left: 24px; top: 26px; bottom: 26px; width: 10px; background: repeating-linear-gradient(var(--on) 0 3px, transparent 3px 6px); }
.nextp:hover { border-color: var(--ink); }
.nextp .eyebrow { grid-column: 1; }
.nextp b { grid-column: 1; font: 500 24px/1.25 var(--font-display); color: var(--ink); }
.nextp .nextp-ex { display: block; grid-column: 1; font-size: 17px; line-height: 1.55; color: var(--ink-2); }
.nextp .arr { grid-column: 2; grid-row: 1 / 4; width: 52px; height: 52px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; }
.nextp .arr svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.prev { display: inline-block; margin-top: 18px; font-size: 17px; }
.series { margin-top: 48px; }
.series h2, .filed h2, .author h2 { font: 500 17px/1.3 var(--font-display); letter-spacing: 0; color: var(--ink-2); padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.series ol { margin-top: 6px; }
.series a { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 10px; padding: 9px 0; text-decoration: none; font-size: 17px; line-height: 1.4; color: var(--ink-2); }
.series a i { font: 500 17px/1.4 var(--font-display); font-style: normal; }
.series a:hover { color: var(--ink); }
.series a[aria-current="page"] { color: var(--ink); }
.series a[aria-current="page"] i { color: var(--accent); }
[data-theme="day"] .series a[aria-current="page"] i { color: var(--ink); }
.filed { margin-top: 40px; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.tags a { display: inline-flex; align-items: center; height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; font-size: 17px; }
.tags a:hover { border-color: var(--ink); }
.author { margin-top: 40px; }
.author-in { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 20px; align-items: center; margin-top: 16px; }
.author-in img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; object-position: 50% 22%; }
.author-in b { display: block; font-weight: 500; font-size: 19px; }
.author-in p { font-size: 17px; color: var(--ink-2); }

/* phone reading bar and the contents sheet */
.rbar { display: none; }
.sheet-dlg { width: min(560px, calc(100% - 24px)); max-height: 80vh; border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px 24px; background: var(--ground-2); color: var(--ink); }
.sheet-dlg::backdrop { background: oklch(0.1 0.02 258 / 0.6); }
.sheet-dlg header { display: flex; justify-content: space-between; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--line); font: 500 19px var(--font-display); }
.sheet-dlg header button { height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: none; cursor: pointer; font-size: 17px; }

/* ---- footer and the close, as on the live pages ---- */
.end { position: relative; text-align: center; padding: 96px var(--gut) 0; }
.end h2 { padding: 0 var(--gut); }
.end .acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 28px; margin-top: 24px; }
.split { position: relative; z-index: 2; height: var(--h); margin: 0 auto 36px; }
.split .wm { position: absolute; left: 50%; top: 0; transform: translateX(-50%); max-width: 86vw; height: auto; }
.split .wm:first-child { color: var(--carbon); clip-path: inset(0 0 50% 0); }
[data-theme="night"] .split .wm:first-child { color: var(--ink); }
.split .wm:last-child { color: var(--split-low); clip-path: inset(50% 0 0 0); }
.pic { position: relative; height: var(--sh, 100%); overflow: clip; isolation: isolate; --p: 0; }
.sky { position: absolute; inset: 0; }
.sky::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 34% 90% at 0% 100%, var(--bloom), transparent 72%); }
.hills { position: absolute; inset: 0; pointer-events: none; }
.rp { position: absolute; inset: 0; width: 100%; height: 100%; transform: translate(calc(var(--p) * var(--dx) * 1%), calc(var(--p) * var(--dy) * 1%)); }
.r1 { --c: var(--r1); } .r2 { --c: var(--r2); } .r3 { --c: var(--r3); } .r4 { --c: var(--r4); } .r5 { --c: var(--r5); }
.rp { fill: var(--c); }
.pic.strip { height: 180px; margin: 56px calc(-1 * var(--gut)) 0; --sh: 180px; }
.foot { display: grid; grid-template-columns: 1fr auto auto; gap: 14px 28px; align-items: center; padding: 28px var(--edge) 32px; font-size: 17px; background: var(--foot); }
.foot nav { display: flex; gap: 6px 18px; flex-wrap: wrap; }
.foot a { display: inline-block; text-decoration: none; padding: 8px 0; border-bottom: 1.5px solid transparent; }
.foot a:hover { border-bottom-color: var(--accent-line); }
.foot .small { grid-column: 1 / -1; color: var(--ink-2); }

/* ---- the other pages ---- */
.label-band { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin-top: 72px; padding: 16px var(--edge); border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); background: var(--ground-2); font-size: 17px; }
.label-band b { font: 500 17px var(--font-display); }
.label-band span { color: var(--ink-2); }

.pg { padding: 40px var(--edge) 0; }
.pg-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 64px; align-items: end; }
.pg-head .lede { font-size: 21px; line-height: 1.5; margin-top: 16px; max-width: 32em; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.card { position: relative; padding: 24px 26px 26px; border-radius: 16px; border: 1px solid var(--line); background: var(--ground-2); }
.card h3, .card .h-card { font-size: 24px; line-height: 1.2; }
.card h3.sm { font: 500 19px/1.35 var(--font-body); letter-spacing: 0; }
.card p { margin-top: 10px; font-size: 17px; line-height: 1.6; }
.card .quiet { font-size: 17px; }
.card ul { margin-top: 12px; display: grid; gap: 6px; font-size: 17px; }
.card ul li { position: relative; padding-left: 20px; }
.card ul li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 10px; height: 2px; background: var(--accent-line); }
.sec-h { margin-top: 56px; display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.sec-h h2 { font-size: 32px; }
.sec-h p { font-size: 17px; color: var(--ink-2); }
.arch { width: 220px; aspect-ratio: 3 / 4; border-radius: 999px 999px 14px 14px; overflow: hidden; box-shadow: 0 24px 60px -24px var(--lo); }
.arch img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.motto { font: 500 19px/1.4 var(--font-display); margin-top: 14px; }
.motto em { font-style: normal; color: var(--accent); }
[data-theme="day"] .motto em { color: var(--ink); text-decoration: underline; text-decoration-color: var(--verm); text-underline-offset: 5px; text-decoration-thickness: 2px; }
.pull { font: 400 23px/1.5 var(--font-body); color: var(--ink); padding-left: 26px; border-left: 2px solid var(--accent-line); max-width: 30em; }
.pull cite { display: block; margin-top: 8px; font-size: 17px; font-style: normal; color: var(--ink-2); }
.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 24px; font-size: 17px; }
.facts dt { color: var(--ink-2); }
.bars { display: grid; gap: 14px; }
.bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 14px; align-items: center; font-size: 17px; line-height: 1.35; }
.bar > span:first-child { grid-column: 1 / -1; grid-row: 1; }
.bar .track { grid-column: 1; grid-row: 2; height: 12px; border-radius: 2px; background: repeating-linear-gradient(90deg, var(--off) 0 3px, transparent 3px 6px); position: relative; overflow: hidden; }
.bar .track i { position: absolute; inset: 0 auto 0 0; width: calc(var(--v) * 1%); background: repeating-linear-gradient(90deg, var(--on) 0 3px, transparent 3px 6px); }
.bar b { font: 500 17px var(--font-display); text-align: right; grid-column: 2; grid-row: 2; }
.dlist { border-top: 1px solid var(--line); }
.dlist li { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 4px 24px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 17px; line-height: 1.45; }
.dlist li span { color: var(--ink-2); }
.dlist li b { font-weight: 500; }
.dlist li em { display: block; font-style: normal; color: var(--ink-2); }
.dlist.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; border-top: 0; }
.dlist.two li:nth-child(-n+2) { border-top: 1px solid var(--line); }
.tl { width: 100%; border-collapse: collapse; font-size: 17px; line-height: 1.45; }
.tl caption { text-align: left; font-size: 17px; color: var(--ink-2); padding-bottom: 10px; }
.tl th, .tl td { text-align: left; padding: 11px 16px 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.tl thead th { font: 500 17px var(--font-display); color: var(--ink-2); border-bottom: 2px solid var(--ink-2); }
.tl tbody th { font: 500 17px var(--font-display); white-space: nowrap; width: 8em; }
.ctas { display: flex; flex-wrap: wrap; gap: 14px 18px; margin-top: 28px; }
.form { display: grid; gap: 16px; }
.form label { display: grid; gap: 8px; font-size: 17px; color: var(--ink-2); }
.form input, .form textarea { width: 100%; min-height: 52px; border-radius: 12px; border: 1.5px solid var(--field); background: var(--ground); padding: 12px 16px; font-size: 18px; color: var(--ink); }
.form textarea { min-height: 120px; resize: vertical; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.models { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.models div { padding: 18px 20px 20px 0; }
.models div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.models b { display: block; font: 500 19px/1.3 var(--font-display); }
.models p { margin-top: 8px; font-size: 17px; color: var(--ink-2); line-height: 1.5; }
.costs { margin-top: 16px; font-size: 19px; }
.pf-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 24px; }
.pf { display: grid; align-content: start; gap: 0; text-decoration: none; }
.pf .ph { position: relative; aspect-ratio: 8 / 5; border-radius: 10px; overflow: hidden; background: var(--code); border: 1px solid var(--line); }
.pf .ph img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; filter: grayscale(1) sepia(1) saturate(1.7) hue-rotate(-6deg) brightness(1.12) contrast(1.04); transition: filter 0.45s var(--ease); }
[data-theme="day"] .pf .ph img { filter: grayscale(1) sepia(0.3) contrast(0.96) brightness(1.04); }
.pf .ph::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(transparent 0 2px, color-mix(in oklab, var(--ground), transparent 80%) 2px 3px); pointer-events: none; transition: opacity 0.45s var(--ease); }
.pf:hover .ph img, .pf:focus-visible .ph img { filter: none; }
.pf:hover .ph::after, .pf:focus-visible .ph::after { opacity: 0; }
.pf .ph.type { display: grid; place-items: center; background: var(--code); }
.pf .ph.type code { font: 400 17px/1.4 var(--mono); color: var(--ink); padding: 0 18px; text-align: center; }
.pf .cat { margin-top: 14px; font-size: 17px; color: var(--ink-2); }
.pf b { margin-top: 2px; font: 500 21px/1.3 var(--font-display); }
.pf p { margin-top: 6px; font-size: 17px; line-height: 1.55; color: var(--ink-2); }
.pf .go { margin-top: 10px; font-size: 17px; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1.5px; text-decoration-color: var(--accent-line); }
.pf.wide-2 { grid-column: span 2; }
.chips-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 32px; }
.tag-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; }
.tag-name { font: 500 clamp(38px, 2.6vw + 22px, 60px)/1.07 var(--font-display); }
.tag-name span { color: var(--ink-2); }
.mini-shelf { display: flex; align-items: flex-end; gap: 4px; height: 84px; padding-bottom: 0; border-bottom: 2px solid var(--ink-2); margin-top: 28px; }
.mini-shelf .sp { height: calc(14px + var(--h) * 60px); }
.mini-shelf .sp::before { inset: 0; }
.mini-shelf .sp i { display: none; }
.who-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px 48px; align-items: center; }
.who-head .arch { width: 170px; }
.roles { margin-top: 12px; font-size: 19px; color: var(--ink-2); max-width: 34em; }
.stat { display: grid; grid-auto-flow: column; gap: 32px; }
.stat div { display: grid; }
.stat b { font: 500 48px/1 var(--font-display); }
.stat span { margin-top: 8px; font-size: 17px; color: var(--ink-2); }
.socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.socials a { display: inline-flex; align-items: center; height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; font-size: 17px; }
.socials a:hover { border-color: var(--ink); }
.pg .rows { margin-top: 8px; }
.pg .row { grid-template-columns: 104px minmax(0, 1fr) 92px; }
.see-all { margin-top: 22px; display: inline-block; font-size: 17px; }

/* page layouts: compact cards, the long text one tap away */
.label-band { margin-top: 20px; padding: 9px var(--edge); }
#about > .label-band { margin-top: 0; }
.label-band { margin-top: 24px; }
.pg { padding-top: 20px; }
.sec-h.sm { margin-top: 22px; margin-bottom: 12px; padding-bottom: 8px; }
.sec-h.sm h2 { font-size: 26px; }
.h-sm { font: 500 24px/1.2 var(--font-display); letter-spacing: -0.01em; }
.card h3.sm, h3.sm, .card .h-card.sm { font: 500 19px/1.35 var(--font-body); letter-spacing: 0; }
.pull.sm { font-size: 19px; line-height: 1.5; padding-left: 18px; margin-top: 12px; }
.pull.sm p { margin: 0; font-size: 19px; }
.cards { margin-top: 20px; align-items: start; }
.cards .card h3 { font-size: 22px; }
.more { margin-top: 12px; }
.more > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; font-size: 17px; color: var(--ink); padding: 4px 0; border-bottom: 1px solid var(--line); }
.more > summary::-webkit-details-marker { display: none; }
.more > summary::before { content: ""; flex: none; width: 12px; height: 12px; background: linear-gradient(currentColor, currentColor) center / 12px 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 12px no-repeat; }
.more[open] > summary::before { background: linear-gradient(currentColor, currentColor) center / 12px 2px no-repeat; }
.more > summary:hover { border-bottom-color: var(--accent-line); }
.more > div { margin-top: 8px; font-size: 17px; line-height: 1.6; }
.more > div > * + * { margin-top: 8px; }
.ab-top { display: grid; grid-template-columns: minmax(0, 1fr) 560px; gap: 32px 72px; align-items: start; margin-top: 24px; }
.ab-top .lede { font-size: 21px; line-height: 1.5; max-width: 32em; }
.ab-id { display: grid; grid-template-columns: 176px minmax(0, 1fr); gap: 28px; align-items: start; }
.ab-id .arch { width: 176px; }
.ab-bottom { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 32px 48px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); align-items: start; }
.ab-bottom .bars, .ab-bottom .dlist { margin-top: 16px; }
.dlist.compact li { grid-template-columns: 7.5em minmax(0, 1fr); padding: 10px 0; }
.ex-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 24px 72px; align-items: start; }
.ex-head .lede { font-size: 21px; line-height: 1.5; margin-top: 16px; max-width: 30em; }
.ex-head .tl th, .ex-head .tl td { padding: 8px 14px 8px 0; }
.ex-head .tl caption { font: 500 17px var(--font-display); color: var(--ink); }
.roles-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; }
.roles-list li { display: grid; align-content: start; grid-template-columns: minmax(0, 1fr); gap: 2px 20px; padding: 12px 0 14px; border-top: 1px solid var(--line); font-size: 17px; line-height: 1.5; }
.roles-list li > div > p:not(.org) { margin-top: 4px; }
.roles-list .more { margin-top: 6px; }
.awards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; }
.awards li { display: grid; align-content: start; gap: 2px; padding: 12px 0 14px; border-top: 1px solid var(--line); font-size: 17px; line-height: 1.4; }
.awards li b { font-weight: 500; }
.awards li span { color: var(--ink-2); }
.role .org, .card .org { font-size: 17px; color: var(--ink-2); margin-top: 2px; }
.role h3.sm { margin-top: 4px; }
.ex-bottom { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 48px; align-items: start; }
.facts.tight { margin-top: 14px; grid-template-columns: 7.5em minmax(0, 1fr); }
.jobs { display: grid; border-top: 1px solid var(--line); }
.jobs li { padding: 12px 0 14px; border-bottom: 1px solid var(--line); }
.jobs h3.sm { margin-top: 2px; }
.jobs p { font-size: 17px; margin-top: 4px; }
.ct-top { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 32px 72px; align-items: start; }
.ct-top .lede { font-size: 21px; line-height: 1.5; margin-top: 16px; max-width: 32em; }
.ct-facts .socials { margin-top: 16px; }
.ct-mid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 56px; margin-top: 28px; align-items: start; }
.ct-mid .form h2 { margin-bottom: 2px; }
.form textarea { min-height: 84px; }
.form input { min-height: 48px; }
.costs { margin-top: 8px; font-size: 19px; }
.ct-mid .models { margin-top: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ct-mid .models div { padding: 14px 20px 16px 0; border-bottom: 1px solid var(--line); }
.ct-mid .models div:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line); }
.ct-mid .models div + div { border-top: 0; }
.ct-mid .models div:nth-child(odd) { border-left: 0; padding-left: 0; }
.ct-bottom { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); align-items: start; }
.ct-bottom p { margin-top: 10px; font-size: 17px; }
.ticks { margin-top: 10px; display: grid; gap: 6px; font-size: 17px; }
.ticks li { position: relative; padding-left: 20px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 10px; height: 2px; background: var(--accent-line); }
.pf-hint { max-width: 16em; text-align: right; }
.pf-grid { margin-top: 20px; gap: 20px 22px; }
.pf p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tag-head { margin-top: 0; }
.tag-head .tag-name { font-size: clamp(34px, 2vw + 20px, 52px); }
.tag-note { max-width: 30em; text-align: right; }
.mini-cap { margin-top: 12px; font-size: 17px; }
.mini-shelf { padding-top: 0; margin: 14px 0 0; height: 56px; }
.mini-shelf .sp { height: calc(10px + var(--h) * 50px); }
.rows.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 56px; border-bottom: 0; margin-top: 20px; }
.rows.two .row { grid-template-columns: 84px minmax(0, 1fr) 76px; gap: 0 20px; padding: 8px 0 10px; border-bottom: 1px solid var(--line); }
.rows.two .row:nth-child(n+3) { border-top: 0; }
.au-tags { margin-top: 8px; font-size: 17px; }
.who-head h1 { font-size: clamp(32px, 1.6vw + 20px, 46px); }
.who-head .arch { width: 112px; }

.ab-quote { margin-top: 20px; max-width: 34em; }
.ab-top .ctas { margin-top: 22px; }
.ab-top .more { max-width: 34em; }
.cards .bars { margin-top: 12px; gap: 8px; }
.cards .bar { font-size: 17px; line-height: 1.35; }
.recog { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px 40px; align-items: start; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.recog ul { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 24px; }
.recog li { display: grid; align-content: start; gap: 2px; font-size: 17px; line-height: 1.4; padding-left: 16px; border-left: 2px solid var(--accent-line); }
.recog li b { font-weight: 500; }
.recog li span { color: var(--ink-2); }
.rows.bare .r-ex { display: none; }
.mini-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 32px; }
.mini-list li { padding: 12px 0 14px; border-top: 1px solid var(--line); }
.mini-list p { font-size: 17px; color: var(--ink-2); }
.mini-list a { display: block; margin-top: 4px; font: 500 19px/1.35 var(--font-body); text-decoration: none; }
.mini-list a:hover { text-decoration: underline; text-decoration-color: var(--accent-line); text-underline-offset: 4px; }

.edu { margin-top: 24px; }
.edu .facts.tight { margin-top: 10px; }

.values { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.6fr); gap: 20px 48px; margin-top: 20px; padding: 22px 26px; border-radius: 16px; border: 1px solid var(--line); background: var(--ground-2); align-items: start; }
.values .h-sm { font-size: 22px; }
.values p { margin-top: 8px; font-size: 17px; }
.values .bars { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 28px; margin-top: 4px; align-self: center; }
.values .bar { grid-template-rows: auto auto; align-content: end; }


/* ---- Bionic Reading: the start of each word in running text, never in code, headings or the bar ---- */
.bx { font-weight: inherit; }
[data-bionic="on"] .bx { font-weight: 600; color: var(--ink); }

/* ---- motion: one rise on arrival, the shelf answers; nothing loops ---- */
@media (prefers-reduced-motion: no-preference) {
  [data-motion="on"] .btn, [data-motion="on"] .pill, [data-motion="on"] .seg button, [data-motion="on"] .chip, [data-motion="on"] .links a, [data-motion="on"] .foot a, [data-motion="on"] .lk, [data-motion="on"] .nextp, [data-motion="on"] .find-btn, [data-motion="on"] .caret svg { transition: background-color 0.15s, border-color 0.15s, color 0.15s, transform 0.15s; }
}
[data-motion="off"] *, [data-motion="off"] *::before, [data-motion="off"] *::after { transition: none !important; animation: none !important; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

@media (max-width: 1180px) {
  .pf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .models { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---- phone and narrow tablet (the top bar rules live in site.css) ---- */
@media (max-width: 820px) {
  body { font-size: 18px; }
  .ix-head { grid-template-columns: minmax(0, 1fr); padding-top: 32px; gap: 32px; }
  .ix-head .lede { font-size: 19px; }
  .find { margin-top: 24px; }
  .field input { height: 58px; font-size: 18px; padding-right: 20px; }
  .field kbd { display: none; }
  .start { padding: 22px 22px 22px 46px; }
  .start::before { left: 18px; top: 22px; bottom: 22px; }
  .topics { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 28px var(--gut) 4px; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); }
  .topics::-webkit-scrollbar { display: none; }
  .topics-h { display: none; }
  .topics > :last-child { margin-right: 28px; }
  .shelf { margin: 8px var(--gut) 0; padding-top: 104px; }
  .sh-row { height: 112px; gap: 10px; }
  .sh-g { gap: 2px; }
  .sp { height: calc(22px + var(--h) * 84px); border-radius: 2px 2px 0 0; }
  .sp::before { inset: 0; }
  .sp i { display: none; }
  .sp.coming { border-width: 1px; }
  .sh-g.coming-g::after { bottom: calc(22px + var(--hmax) * 84px + 8px); height: 7px; }
  .sh-note { display: none; }
  .sh-g .y { font-size: 17px; }
  .sh-g.y-2024 .y { display: none; }
  .shelf figcaption { margin-top: 40px; }
  .tip { max-width: calc(100vw - 2 * var(--gut)); }
  .part { grid-template-columns: minmax(0, 1fr); padding: 48px var(--gut) 0; }
  .part-h { position: static; padding: 0 0 16px; }
  .part-h h2 { font-size: 28px; }
  .part-h p { max-width: none; }
  .row, .pg .row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "date min" "main main"; gap: 6px 16px; padding: 18px 0 20px; }
  .r-date { display: flex; gap: 6px; padding: 0; }
  .r-date time { display: inline; color: var(--ink-2); }
  .r-title { font-size: 19px; }
  .r-min { padding: 0; align-self: center; }
  .mini { display: none; }
  .op { grid-template-columns: minmax(0, 1fr); padding: 16px var(--gut) 40px; gap: 24px; }
  .op .lede { font-size: 19px; }
  .cast { width: 100%; max-width: none; aspect-ratio: auto; height: 132px; justify-self: stretch; } /* phones: the title first, a small chapter number after the buttons */
  .scr, .glyph, .fold-dim { inset: 0 30% 0 30%; }
  .glyph { font-size: 120px; }
  .cast-cap { display: none; }
  .cover { padding: 0 0 32px; }
  .cover .ph { aspect-ratio: 16 / 9; border-radius: 0; }
  .cover figcaption { padding: 0 var(--gut); }
  .read { grid-template-columns: minmax(0, 1fr); padding: 0 0 72px; }
  .rail { display: none; }
  .rleaf { border-radius: 0; padding: 36px var(--gut) 72px calc(var(--gut) + 12px); }
  .margin { left: 10px; top: 36px; bottom: 72px; width: 6px; background: linear-gradient(var(--off) 2px, transparent 2px) 0 0 / 100% 5px; }
  .margin i { background: linear-gradient(var(--on) 2px, transparent 2px) 0 0 / 100% 5px; }
  .runhead { margin-bottom: 32px; }
  .runhead span:last-child { display: none; }
  .prose { font-size: 18px; line-height: 1.68; }
  .prose h2 { font-size: 28px; margin-top: 2.1em; }
  .prose h2 .sec { position: static; display: block; font-size: 22px; margin-bottom: 8px; }
  .prose blockquote, .prose .key { font-size: 19px; }
  .prose .wide { margin-right: 0; }
  .prose .plate { margin-left: calc(-1 * var(--gut) - 12px); margin-right: calc(-1 * var(--gut)); }
  .prose .plate .ph { border-radius: 0; }
  .prose .plate figcaption { padding: 0 var(--gut) 0 calc(var(--gut) + 12px); }
  .code pre { font-size: 17px; }
  .nextp { padding: 22px 20px 22px 46px; grid-template-columns: minmax(0, 1fr); }
  .nextp::before { left: 18px; }
  .nextp .arr { display: none; }
  .rbar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; position: fixed; z-index: 25; left: 0; right: 0; bottom: 0; padding: 10px var(--gut) calc(10px + env(safe-area-inset-bottom)); background: var(--ground-2); border-top: 1px solid var(--line); }
  .rbar .toc-btn { height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: none; cursor: pointer; font-size: 17px; }
  .rbar .prog { display: grid; gap: 6px; min-width: 0; font-size: 17px; color: var(--ink-2); }
  .rbar .prog span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .rbar .prog i { display: block; height: 8px; background: repeating-linear-gradient(90deg, var(--off) 0 2px, transparent 2px 5px); position: relative; }
  .rbar .prog i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: calc(var(--p, 0) * 100%); background: repeating-linear-gradient(90deg, var(--on) 0 2px, transparent 2px 5px); }
  .rbar .pill::after { display: none; }
  body.reading .foot { padding-bottom: calc(104px + env(safe-area-inset-bottom)); }
  .foot { grid-template-columns: minmax(0, 1fr); }
  .grid2, .grid3, .grid4, .pf-grid, .models, .dlist.two { grid-template-columns: minmax(0, 1fr); }
  .pf.wide-2 { grid-column: auto; }
  .models div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .dlist li { grid-template-columns: minmax(0, 1fr); }
  .pg { padding: 40px var(--gut) 0; }
  .pg-head, .who-head { grid-template-columns: minmax(0, 1fr); }
  .form .row2 { grid-template-columns: minmax(0, 1fr); }
  .label-band { padding: 14px var(--gut); }
}
@media (max-width: 820px) {
  .ab-top, .ab-id, .ab-bottom, .ex-head, .ex-bottom, .ct-top, .ct-mid, .awards, .rows.two, .roles-list, .roles-list li { grid-template-columns: minmax(0, 1fr); }
  .tag-note { text-align: left; }
  .recog, .recog ul, .values, .values .bars, .mini-list { grid-template-columns: minmax(0, 1fr); }
  .recog ul { gap: 14px; }
  .rows.two .row { grid-template-columns: minmax(0, 1fr) auto; }
  .rows.two .row:nth-child(n+3) { border-top: 1px solid var(--line); }
  .ab-id .arch { width: 150px; }
  .ct-mid .models div:nth-child(even) { padding-left: 0; border-left: 0; }
  .span2 { grid-column: auto; }
  .links-list li { grid-template-columns: minmax(0, 1fr); }
  .pf-hint { text-align: left; }
  .stat { grid-auto-flow: row; grid-template-columns: repeat(3, auto); justify-content: start; }
}
@media (max-width: 380px) { body { --gut: 16px; } .seg button { padding: 0 8px; } }

/* ---- built with the app: the review's fixes and what real posts need ---- */
/* search: the matches sit right under the box as soon as someone types */
.find .result { padding: 12px 0 0; }
.hits { margin-top: 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--ground-2); padding: 6px; }
.hits a { display: block; padding: 10px 14px; border-radius: 10px; text-decoration: none; font-weight: 500; line-height: 1.35; }
.hits a:hover, .hits a:focus-visible { background: var(--ground); }
.hits small { display: block; font-size: 17px; font-weight: 400; color: var(--ink-2); }
.hits .hits-more a { font-weight: 400; text-decoration: underline; text-decoration-color: var(--accent-line); text-underline-offset: 4px; }
/* desktop spines are links: a 3:1 edge on both grounds and a visible focus ring */
.sp:not(.coming) { box-shadow: inset 0 1.5px 0 var(--cut), inset 0 0 0 1px var(--field); }
.sp:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; transform: translateY(-8px); }
/* the post: numbered sections, lists, tables, inline code */
.prose { counter-reset: sec; scroll-margin-top: 24px; }
.prose h2 { counter-increment: sec; }
.prose h2 .sec::before { content: counter(sec); }
.prose h4 { font: 500 19px/1.35 var(--font-body); color: var(--ink); margin-top: 1.6em; }
.prose ol { display: grid; gap: 0.5em; padding-left: 1.6em; list-style: decimal; }
.prose ol > li::marker { font-family: var(--font-display); color: var(--ink-2); }
.prose :not(pre) > code { font: 400 0.9em/1 var(--mono); padding: 2px 6px; border-radius: 6px; background: var(--code); color: var(--ink); overflow-wrap: anywhere; }
.code pre:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.tbl { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.tbl:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.tbl table { width: 100%; border-collapse: collapse; font-size: 17px; line-height: 1.45; }
.tbl th, .tbl td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.tbl th { font-weight: 600; color: var(--ink); }
.tbl tr:last-child td { border-bottom: 0; }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 6px; }
.prose details { border: 1px solid var(--line); border-radius: 14px; padding: 14px 20px; }
.prose summary { cursor: pointer; font-weight: 500; color: var(--ink); }
.plate .ph { color: inherit; font: inherit; text-align: inherit; }
/* other states and pages from the content */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.content-page { max-width: 1360px; }
.content-page h1 { margin-bottom: 8px; }
.content-page > .prose { margin-top: 32px; }
.content-page .acts { margin-top: 28px; }
.page-form { margin-top: 48px; max-width: 46em; }
.form-end { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.form-note { font-size: 17px; color: var(--ink); }
.form-note.err { color: var(--ink); padding-left: 12px; border-left: 3px solid var(--accent-line); }
.form .btn:disabled { opacity: 0.6; cursor: wait; }
.pf-filter { padding: 28px 0 0; }
.pf-filter .chip[aria-pressed="true"] .n { color: var(--ground); }
@media (max-width: 820px) {
  .shelf { pointer-events: none; } /* phones: the shelf is a picture; the titles below are the links */
  .pf-filter { padding: 24px var(--gut) 4px; margin: 0 calc(-1 * var(--gut)); }
  .facts.tight { grid-template-columns: minmax(0, 1fr); gap: 2px 0; }
  .facts.tight dd + dt { margin-top: 10px; }
}
/* round 1: subsections in the contents, the share buttons */
.toc li.sub a { padding-left: 36px; grid-template-columns: minmax(0, 1fr); font-size: 17px; }
.toc li.sub a i { display: none; }
.tags button { display: inline-flex; align-items: center; height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: none; cursor: pointer; font-size: 17px; color: var(--ink); }
.tags button:hover { border-color: var(--ink); }
.share { margin-top: 32px; }
.page-cover { padding: 24px 0 0; }
.prose #start { scroll-margin-top: 64px; } /* the drop cap and the line above it stay in view */
/* round 2: on a phone the opening fits the first screen; the reading bar waits until Start reading is passed */
@media (max-width: 820px) {
  .op .lede { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .rbar { transform: translateY(110%); visibility: hidden; transition: transform 0.25s var(--ease), visibility 0s linear 0.25s; }
  .rbar.shown { transform: none; visibility: visible; transition: transform 0.25s var(--ease); }
}
/* CI fix: loading and error states hold a full screen, so the footer stays below the fold until the page is there */
.state-page, .loading-page, .loading-spinner { min-height: 100svh; }
.state-page .acts { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 28px; }
/* the results region while the posts load or after they failed: a screen of height, the page above it stays */
.pending { min-height: 100svh; padding: 40px var(--edge) 0; }
.pending h2 { font: 500 28px/1.25 var(--font-body); }
.pending .acts { margin-top: 24px; }
.pg .pending { padding: 40px 0 0; }

/* ---- read aloud: a lamp you can listen by. One <audio>, three views: the rail, the phone bar, the opener ---- */
.vplay { width: 44px; height: 44px; flex: none; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); cursor: pointer; }
.vplay svg, .listen svg { width: 20px; height: 20px; fill: currentColor; }
.vplay:hover { background: var(--accent-hover); }
.vspeed { min-width: 56px; height: 44px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: none; font-size: 17px; font-variant-numeric: tabular-nums; cursor: pointer; }
.vspeed:hover { border-color: var(--ink); }
.vplay:focus-visible, .vspeed:focus-visible, .voice-seek:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.voice { width: 100%; display: grid; gap: 12px; padding: 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--ground-2); }
.voice-h { font-size: 17px; line-height: 1.35; color: var(--ink-2); }
.voice-row { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px; }
.voice-row:has(.voice-seek) { grid-template-columns: minmax(0, 1fr) auto; }
.voice-t { font-size: 17px; font-variant-numeric: tabular-nums; white-space: nowrap; }
/* the seek track is ruled light, as the reading bar: lit up to where the voice is */
.voice-seek { --track: repeating-linear-gradient(90deg, var(--on) 0 2px, transparent 2px 5px) 0 0 / calc(var(--p, 0) * 100%) 100% no-repeat, repeating-linear-gradient(90deg, var(--off) 0 2px, transparent 2px 5px);
  -webkit-appearance: none; appearance: none; width: 100%; height: 24px; margin: 0; background: none; cursor: pointer; }
.voice-seek::-webkit-slider-runnable-track { height: 8px; background: var(--track); }
.voice-seek::-moz-range-track { height: 8px; background: var(--track); }
.voice-seek::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -5px; border-radius: 50%; background: var(--accent); border: 3px solid var(--ground-2); }
.voice-seek::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); border: 3px solid var(--ground-2); }
.rail-tools .voice { margin-bottom: 6px; }
/* with a player the rail is a column: the contents list scrolls in its own area above the tools, so a focused or
   lit entry is never under the player, and the browser keeps a focused link in view by itself */
@media (min-width: 821px) { /* desktop only: on a phone the rail stays hidden (display: none at 820 and below) */
  .rail:has(.voice) { display: flex; flex-direction: column; max-height: calc(100svh - 32px); }
  .rail:has(.voice) .toc { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; margin-left: -18px; padding-left: 18px; }
  .rail:has(.voice) .rail-tools { flex: none; padding-bottom: 12px; }
}
.op .acts .listen { gap: 10px; }
.op .acts .listen-note { flex-basis: 100%; margin-top: -6px; font-size: 17px; color: var(--ink-2); }
.voice-bar { display: flex; gap: 8px; }
@media (max-width: 820px) {
  /* with the player the bar takes two rows: the minutes left across the top, the buttons under them */
  .rbar:has(.voice-bar) { grid-template-columns: auto auto minmax(0, 1fr); grid-template-areas: "prog prog prog" "toc voice bio"; gap: 8px 10px; }
  .rbar:has(.voice-bar) .prog { grid-area: prog; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px; }
  .rbar:has(.voice-bar) .toc-btn { grid-area: toc; }
  .rbar:has(.voice-bar) .voice-bar { grid-area: voice; }
  .rbar:has(.voice-bar) .pill { grid-area: bio; justify-self: end; }
  body.reading:has(.voice-bar) .foot { padding-bottom: calc(144px + env(safe-area-inset-bottom)); }
  .rbar .toc-btn { padding: 0 12px; }
  .voice-bar .vspeed { min-width: 52px; padding: 0 8px; }
}
/* while the voice plays, the lamp is lit: a steady glow, no loop, only for those who want motion */
@media (prefers-reduced-motion: no-preference) {
  .vplay, .voice, .listen { transition: box-shadow 0.6s var(--ease), background-color 0.6s var(--ease), border-color 0.6s var(--ease); }
  [data-playing] .vplay { box-shadow: 0 0 0 5px color-mix(in oklab, var(--accent) 22%, transparent), 0 0 26px 6px color-mix(in oklab, var(--accent) 28%, transparent); }
  .voice[data-playing] { border-color: color-mix(in oklab, var(--accent) 55%, var(--line)); background: radial-gradient(130% 90% at 0% 0%, color-mix(in oklab, var(--accent) 12%, transparent), transparent 62%), var(--ground-2); }
  .listen[data-playing] { border-color: var(--accent); box-shadow: 0 0 22px 2px color-mix(in oklab, var(--accent) 24%, transparent); }
}
