/* Plates — a monograph of interactive figures.
   Light paper by default, a considered dark variant. One accent (vermilion), used for live status,
   plate numbers and the figures' highlights only. */

:root {
  color-scheme: light;
  --paper: #f5f2eb;
  --paper-2: #ece7dd;
  --ink: #111110;
  --ink-2: rgba(17, 17, 16, .76);
  --muted: rgba(17, 17, 16, .62);
  --line: rgba(17, 17, 16, .14);
  --rule: #111110;
  --accent: #b5361d;
  --warm: #cf7a52;
  --hot: #b5361d;
  --pane: rgba(245, 242, 235, .9);
  --plate-mode: neg;
  /* Kepler sheet on paper */
  --k-flat: #efeadf; --k-deep: #b9b0a0; --k-veil: #2b251c; --k-veil-a: .22; --k-check: .055; --k-sheet-a: 1;
  --k-cool: #6d6a63;
  --pc-w-fill: #fbf9f4; --pc-w-line: #111110; --pc-b-fill: #161514; --pc-b-line: #f5f2eb;

  --f-display: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --f-text: "Instrument Sans", "Helvetica Neue", Arial, system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --gut: max(16px, env(safe-area-inset-left, 0px));
  --pad: clamp(16px, 4.2vw, 64px);
  --marg: 188px;
  --col-gap: clamp(28px, 3.6vw, 56px);
  --ease: cubic-bezier(.2, .7, .15, 1);
  --rh-h: 52px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #131210; --paper-2: #1b1a17;
    --ink: #ece8df; --ink-2: rgba(236, 232, 223, .78); --muted: rgba(236, 232, 223, .6); --line: rgba(236, 232, 223, .14); --rule: #ece8df;
    --accent: #ec7a5b; --warm: #d9a066; --hot: #ec7a5b; --pane: rgba(19, 18, 16, .88);
    --plate-mode: pos;
    --k-flat: #1a1916; --k-deep: #040404; --k-veil: #000; --k-veil-a: .5; --k-check: .045; --k-sheet-a: .95; --k-cool: #a8a49b;
    --pc-w-fill: #ece8df; --pc-w-line: #131210; --pc-b-fill: #131210; --pc-b-line: #ece8df;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #131210; --paper-2: #1b1a17;
  --ink: #ece8df; --ink-2: rgba(236, 232, 223, .78); --muted: rgba(236, 232, 223, .6); --line: rgba(236, 232, 223, .14); --rule: #ece8df;
  --accent: #ec7a5b; --warm: #d9a066; --hot: #ec7a5b; --pane: rgba(19, 18, 16, .88);
  --plate-mode: pos;
  --k-flat: #1a1916; --k-deep: #040404; --k-veil: #000; --k-veil-a: .5; --k-check: .045; --k-sheet-a: .95; --k-cool: #a8a49b;
  --pc-w-fill: #ece8df; --pc-w-line: #131210; --pc-b-fill: #131210; --pc-b-line: #ece8df;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--rh-h); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.6 var(--f-text); font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
h1, h2, h3, p, figure, dl, dd, ol, table { margin: 0; }
ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
button { font: inherit; color: inherit; }
::selection { background: color-mix(in srgb, var(--accent) 22%, transparent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
img { display: block; max-width: 100%; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--ink); color: var(--paper); padding: 10px 14px; }
.skip:focus { left: 12px; }

/* ---------- shared type ---------- */
.kicker { font: 500 11px/1.4 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.fig-k { font-family: var(--f-text); font-weight: 600; color: var(--ink); margin-right: .25em; }
.prose { font-size: 17.5px; line-height: 1.62; color: var(--ink-2); max-width: 62ch; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); margin-right: 8px; vertical-align: .08em; }
.dot.live { background: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent); }
.btn {
  display: inline-flex; align-items: center; gap: .45em; min-height: 44px; padding: 0 18px;
  border: 1px solid var(--ink); border-radius: 2px; background: var(--ink); color: var(--paper);
  font: 500 14.5px/1 var(--f-text); text-decoration: none; cursor: pointer; transition: background .25s, color .25s;
}
.btn:hover { background: transparent; color: var(--ink); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--ink); }

/* ---------- running head ---------- */
.rh {
  position: fixed; inset: 0 0 auto 0; z-index: 30; height: var(--rh-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: 0 var(--pad); padding-left: max(var(--pad), var(--gut));
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  -webkit-backdrop-filter: blur(10px) saturate(1.2); backdrop-filter: blur(10px) saturate(1.2);
  border-bottom: 1px solid transparent; transition: border-color .4s;
}
body.scrolled .rh { border-bottom-color: var(--line); }
.rh-name { font: 400 18px/1 var(--f-display); font-variation-settings: "opsz" 24; text-decoration: none; letter-spacing: -.005em; min-height: 44px; display: inline-flex; align-items: center; justify-self: start; }
.rh-now { font: 400 11.5px/1 var(--f-mono); letter-spacing: .08em; color: var(--muted); text-transform: uppercase; opacity: 0; transition: opacity .4s; white-space: nowrap; }
body.scrolled .rh-now { opacity: 1; }
.rh-nav { justify-self: end; display: flex; gap: 2px; }
.rh-nav a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; justify-content: center; padding: 0 10px; text-decoration: none; font: 400 15px/1 var(--f-display); color: var(--muted); transition: color .25s; }
.rh-nav a:hover, .rh-nav a.on { color: var(--ink); }
.rh-nav a.on { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 8px; }
.rh-nav .rh-mail { font: 500 13.5px/1 var(--f-text); color: var(--ink); margin-left: 10px; border: 1px solid var(--line); border-radius: 2px; padding: 0 14px; }
.rh-nav .rh-mail:hover { border-color: var(--ink); }

/* ---------- title page ---------- */
.title { min-height: 100svh; padding: calc(var(--rh-h) + 28px) var(--pad) 48px; display: flex; align-items: center; }
.title-grid { width: 100%; max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 104px); align-items: center; }
.frontis { margin: 0; }
.frontis-img { aspect-ratio: 4 / 5; max-height: min(74svh, 720px); overflow: hidden; background: #0b1530; }
.frontis-img img { width: 100%; height: 100%; object-fit: cover; object-position: 58% 50%; }
.frontis figcaption { margin-top: 12px; font-size: 12.5px; line-height: 1.5; color: var(--muted); max-width: 46ch; }

.title-text { max-width: 640px; }
.title-text .kicker { margin-bottom: 26px; }
.name { font: 340 clamp(64px, 9vw, 150px)/.9 var(--f-display); font-variation-settings: "opsz" 72; letter-spacing: -.028em; margin-left: -.04em; }
.name { white-space: nowrap; }
.name span + span { font-style: italic; font-weight: 300; }
.role { margin-top: 30px; font: 500 16px/1.4 var(--f-text); letter-spacing: .005em; }
.motto { margin-top: 6px; font: italic 400 20px/1.45 var(--f-display); font-variation-settings: "opsz" 20; color: var(--ink-2); }

.status { margin-top: 34px; width: 100%; border-collapse: collapse; border-top: 1.5px solid var(--rule); border-bottom: 1px solid var(--rule); }
.status th, .status td { padding: 11px 0; text-align: left; vertical-align: baseline; border-top: 1px solid var(--line); font-size: 14.5px; line-height: 1.4; }
.status tr:first-child th, .status tr:first-child td { border-top: 0; }
.status th { font-weight: 600; width: 7.6em; padding-right: 14px; }
.status td { color: var(--ink-2); padding-right: 14px; }
.status td.d { font: 400 12.5px/1.4 var(--f-mono); color: var(--ink); text-align: right; white-space: nowrap; padding-right: 0; }

.toc { margin-top: 34px; }
.toc-h { font: 500 11px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.toc a { display: grid; grid-template-columns: 2.2em auto 1fr auto; align-items: baseline; gap: 10px; min-height: 44px; padding: 6px 0; text-decoration: none; }
.toc .n { font: 400 15px/1 var(--f-display); color: var(--accent); font-variant-numeric: lining-nums; }
.toc .t { font: 400 21px/1.2 var(--f-display); font-variation-settings: "opsz" 24; }
.toc .lead { border-bottom: 1px dotted color-mix(in srgb, var(--ink) 35%, transparent); transform: translateY(-4px); }
.toc .s { font: 400 12px/1 var(--f-mono); color: var(--muted); }
.toc a:hover .t { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.toc .toc-end .t { font-size: 17px; color: var(--ink-2); }

/* ---------- plates ---------- */
.plate, .end, .colophon { max-width: 1320px; margin: 0 auto; padding: 0 var(--pad); }
.plate { padding-top: clamp(96px, 16vh, 168px); }
.plate-head { display: grid; grid-template-columns: var(--marg) minmax(0, 1fr); gap: var(--col-gap); border-top: 1.5px solid var(--rule); padding-top: 22px; }
.marg { font-size: 13px; line-height: 1.45; }
.plate-no { font: 400 22px/1 var(--f-display); font-variation-settings: "opsz" 24; color: var(--accent); margin-bottom: 18px; }
.marg dl div { padding: 9px 0; border-top: 1px solid var(--line); }
.marg dt { font: 500 10px/1.3 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.marg dd { color: var(--ink); }
.head-main { max-width: 820px; }
.head-main h2 { margin-top: 10px; font: 340 clamp(48px, 5.8vw, 92px)/.95 var(--f-display); font-variation-settings: "opsz" 72; letter-spacing: -.025em; }
.stand { margin-top: 16px; font: italic 380 clamp(21px, 2vw, 27px)/1.32 var(--f-display); font-variation-settings: "opsz" 28; color: var(--ink); max-width: 30em; }
.head-main .prose { margin-top: 20px; }

/* pinned figure with beats */
.pin { display: grid; grid-template-columns: var(--marg) minmax(260px, 360px) minmax(0, 1fr); gap: var(--col-gap); margin-top: clamp(40px, 7vh, 72px); }
.fig { grid-column: 3; grid-row: 1; position: sticky; top: calc(var(--rh-h) + 12px); height: calc(100svh - var(--rh-h) - 28px); display: flex; flex-direction: column; margin: 0; }
.fig-frame { position: relative; flex: 1 1 auto; min-height: 0; border-top: 1px solid var(--rule); }
.fig-frame .stage { position: absolute; inset: 34px 0 0 0; }
.panel { position: absolute; left: 0; top: 8px; font: italic 400 20px/1 var(--f-display); color: var(--ink); z-index: 2; transition: opacity .3s; }
.fig figcaption { flex: 0 0 auto; padding-top: 12px; border-top: 1px solid var(--line); margin-top: 10px; font-size: 13px; line-height: 1.5; color: var(--muted); max-width: 72ch; }
.beats { grid-column: 2; grid-row: 1; padding: 14vh 0 26vh; }
.beat { min-height: 68svh; display: flex; flex-direction: column; justify-content: center; opacity: .3; transition: opacity .5s var(--ease); }
.beat.on { opacity: 1; }
.bk { font: italic 400 17px/1.3 var(--f-display); color: var(--accent); margin-bottom: 10px; }
.beat h3 { font: 400 28px/1.18 var(--f-display); font-variation-settings: "opsz" 32; letter-spacing: -.01em; margin-bottom: 12px; }
.beat p { font-size: 16.5px; line-height: 1.6; color: var(--ink-2); }
.beat p + p { margin-top: 10px; }
.beat .quiet { font: italic 400 19px/1.45 var(--f-display); color: var(--ink); margin-top: 16px; }
.links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

/* results tables, booktabs style */
.results { display: grid; grid-template-columns: var(--marg) minmax(0, 1fr); gap: var(--col-gap); margin-top: 24px; }
.results .data { grid-column: 2; }
.data { width: 100%; max-width: 880px; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.data caption { caption-side: top; text-align: left; font-size: 13px; color: var(--muted); padding-bottom: 10px; }
.data thead th { font: 500 10.5px/1.3 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); text-align: left; padding: 10px 16px 8px 0; border-bottom: 1px solid var(--rule); }
.data { border-top: 1.5px solid var(--rule); border-bottom: 1.5px solid var(--rule); }
.data tbody th { text-align: left; font-weight: 500; padding: 11px 18px 11px 0; vertical-align: baseline; width: 34%; }
.data tbody td { padding: 11px 16px 11px 0; color: var(--ink-2); vertical-align: baseline; }
.data tbody tr + tr th, .data tbody tr + tr td { border-top: 1px solid var(--line); }
.data tbody.sub th, .data tbody.sub td { border-top: 1px solid var(--rule); }
.data td:not([colspan]) { font-family: var(--f-mono); font-size: 14px; font-variant-numeric: tabular-nums; color: var(--ink); }
.data.text td { font-family: var(--f-text); font-size: 15px; color: var(--ink-2); }
.data td.pending { font-style: italic; }
.data td.pending::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--muted); margin-right: 8px; vertical-align: .05em; }

.addendum { margin: 64px 0 0 calc(var(--marg) + var(--col-gap)); max-width: 720px; padding-top: 18px; border-top: 1px dashed var(--line); }
.addendum h3 { margin: 8px 0 8px; font: 400 26px/1.2 var(--f-display); font-variation-settings: "opsz" 28; }
.addendum p:last-child { font-size: 15.5px; color: var(--ink-2); max-width: 64ch; }
.tag { display: inline-block; vertical-align: .3em; margin-left: 10px; font: 500 10.5px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; padding: 5px 8px; border: 1px solid var(--line); border-radius: 2px; color: var(--muted); }

/* Gambits, compact */
.plate-compact .g-body { display: grid; grid-template-columns: var(--marg) minmax(0, 1fr) minmax(0, 1fr); gap: var(--col-gap); margin-top: 28px; align-items: start; }
.plate-compact .prose { grid-column: 2; }
.plate-compact .spec { grid-column: 3; grid-row: 1 / span 2; }
.plate-compact .g-link { grid-column: 2; }
.spec { width: 100%; border-collapse: collapse; border-top: 1.5px solid var(--rule); border-bottom: 1.5px solid var(--rule); font-size: 15px; }
.spec caption { caption-side: top; text-align: left; font-size: 13px; color: var(--muted); padding-bottom: 10px; }
.spec th { text-align: left; font: 500 10.5px/1.3 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 13px 16px 12px 0; width: 7.5em; vertical-align: baseline; }
.spec td { padding: 11px 0; color: var(--ink); vertical-align: baseline; }
.spec tr + tr th, .spec tr + tr td { border-top: 1px solid var(--line); }

/* ---------- end matter ---------- */
.end { padding-top: clamp(110px, 18vh, 180px); }
.end-head { border-top: 1.5px solid var(--rule); padding-top: 22px; display: grid; grid-template-columns: var(--marg) minmax(0, 1fr); gap: var(--col-gap); }
.end-head h2 { grid-column: 2; font: 340 clamp(38px, 4.2vw, 64px)/1 var(--f-display); font-variation-settings: "opsz" 60; letter-spacing: -.02em; }
.end-head .kicker { padding-top: 8px; }
.end-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--col-gap); margin-top: 48px; margin-left: calc(var(--marg) + var(--col-gap)); }
.end-h { font: 500 11px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-bottom: 12px; border-bottom: 1px solid var(--rule); }
.ledger li { display: grid; grid-template-columns: 4.4em minmax(0, 1fr); gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.ledger time { font: 400 12px/1.7 var(--f-mono); color: var(--ink); font-variant-numeric: tabular-nums; }
.ledger b { color: var(--ink); font-weight: 600; }
.ledger i { font-family: var(--f-display); font-size: 1.06em; }
.ledger.next time { color: var(--accent); }

/* ---------- colophon ---------- */
.colophon { padding-top: clamp(110px, 18vh, 180px); padding-bottom: 72px; }
.col-grid { border-top: 3px double var(--rule); padding-top: 28px; display: grid; grid-template-columns: var(--marg) minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--col-gap); }
.col-main { grid-column: 2; }
.col-line { margin-top: 18px; font: italic 400 22px/1.35 var(--f-display); color: var(--ink-2); }
.mail { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.mail a { font: 360 clamp(22px, 2.5vw, 36px)/1.15 var(--f-display); font-variation-settings: "opsz" 48; letter-spacing: -.015em; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: .16em; overflow-wrap: anywhere; }
.mail a:hover { text-decoration-color: var(--accent); }
.col-notes { font-size: 13px; line-height: 1.55; color: var(--muted); }
.col-notes p + p { margin-top: 10px; }
.col-notes .kicker { margin-bottom: 14px; }
.fin { font: 400 12px/1 var(--f-mono); color: var(--ink); padding-top: 8px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .neg-note { display: none; } }
:root[data-theme="dark"] .neg-note { display: none; }

.pager { display: none; }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .rv { opacity: 0; transform: translateY(12px); transition: opacity .7s var(--ease), transform .8s var(--ease); }
  .rv.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .beat, .rh, .rh-now { transition: none; } }

/* ---------- medium ---------- */
@media (max-width: 1180px) {
  :root { --marg: 150px; }
  .pin { grid-template-columns: minmax(240px, 320px) minmax(0, 1fr); }
  .fig { grid-column: 2; }
  .beats { grid-column: 1; }
  .end-grid { grid-template-columns: 1fr 1fr; }
  .end-also { grid-column: 1 / -1; }
  .plate-compact .g-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .plate-compact .prose, .plate-compact .g-link { grid-column: 1; }
  .plate-compact .spec { grid-column: 2; }
}

/* ---------- phone ---------- */
@media (max-width: 860px) {
  :root { --pad: 20px; --rh-h: 48px; }
  body { font-size: 16.5px; padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
  .rh { grid-template-columns: 1fr auto; padding-right: max(var(--pad), env(safe-area-inset-right, 0px)); }
  .rh-nav { display: none; }
  .rh-name { font-size: 17px; }
  .rh-now { font-size: 10.5px; }

  .title { min-height: 0; padding-top: calc(var(--rh-h) + 30px); padding-bottom: 24px; display: block; }
  .title-grid { grid-template-columns: 1fr; gap: 36px; }
  .title-text { order: 1; }
  .frontis { order: 2; }
  .frontis-img { aspect-ratio: 4 / 3; max-height: none; }
  .title-text .kicker { margin-bottom: 18px; }
  .name { font-size: clamp(56px, 19vw, 92px); }
  .role { margin-top: 22px; font-size: 15px; }
  .motto { font-size: 18px; }
  .status { margin-top: 26px; }
  .status tr { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
  .status tr:first-child { border-top: 0; }
  .status th, .status td { border: 0; padding: 0; }
  .status td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; font-size: 14px; }
  .status th { grid-column: 1; grid-row: 1; width: auto; }
  .status td.d { grid-column: 2; grid-row: 1; }
  .toc { margin-top: 28px; }
  .toc a { min-height: 46px; }
  .toc .t { font-size: 19px; }

  .plate { padding-top: 88px; }
  .plate-head { grid-template-columns: 1fr; gap: 0; }
  .marg { order: 2; margin-top: 22px; }
  .head-main { order: 1; }
  .plate-no { position: absolute; margin: 0; font-size: 18px; }
  .plate-head { position: relative; }
  .plate-head .marg .plate-no { top: 22px; right: 0; }
  .marg dl { display: flex; flex-wrap: wrap; gap: 0 22px; border-top: 1px solid var(--line); }
  .marg dl div { border: 0; padding: 10px 0 0; }
  .head-main h2 { font-size: clamp(44px, 13vw, 64px); }
  .stand { font-size: 20px; }
  .prose { font-size: 16.5px; }

  .pin { display: block; margin-top: 32px; }
  .fig { position: sticky; top: var(--rh-h); z-index: 5; height: auto; background: var(--paper); padding-bottom: 8px; margin: 0 calc(-1 * var(--pad)); padding-left: var(--pad); padding-right: var(--pad); box-shadow: 0 1px 0 var(--line); }
  .fig-frame { flex: none; height: 40svh; min-height: 270px; }
  .pin.tall .fig-frame { height: 48svh; min-height: 330px; }
  .fig-frame .stage { inset: 30px 0 0 0; }
  .fig figcaption { font-size: 11.5px; line-height: 1.4; margin-top: 6px; padding-top: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .beats { padding: 2svh 0 2svh; }
  .beat { min-height: 38svh; justify-content: flex-start; padding-top: 4svh; }
  .beat:last-child { min-height: 30svh; padding-bottom: 6svh; }
  .pin.tall .fig figcaption { display: none; }
  .beat h3 { font-size: 24px; }
  .beat p { font-size: 16px; }

  .results { display: block; margin-top: 12px; }
  .data { font-size: 14.5px; }
  .data tbody th { width: 42%; }
  .data thead th:first-child { width: 42%; }
  .addendum { margin-left: 0; }

  .plate-compact .g-body { display: block; margin-top: 22px; }
  .plate-compact .spec { margin-top: 26px; }
  .plate-compact .g-link { margin-top: 22px; }

  .end-head { grid-template-columns: 1fr; gap: 12px; }
  .end-head h2 { grid-column: 1; }
  .end-grid { grid-template-columns: 1fr; margin-left: 0; gap: 36px; margin-top: 30px; }
  .end-also { grid-column: auto; }
  .col-grid { grid-template-columns: 1fr; gap: 40px; }
  .col-main { grid-column: 1; }

  .pager {
    display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 6px;
    position: fixed; z-index: 40; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    height: 56px; padding: 0 6px; border-radius: 14px; border: 1px solid var(--line);
    background: color-mix(in srgb, var(--paper) 90%, transparent); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
    box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .25);
    touch-action: pan-y;
  }
  .pg-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: transparent; border-radius: 10px; cursor: pointer; padding: 0; }
  .pg-btn svg { width: 20px; height: 20px; }
  .pg-btn:disabled { opacity: .3; }
  .pg-now { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 44px; text-decoration: none; text-align: center; overflow: hidden; }
  .pg-k { font: 500 10px/1.2 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
  .pg-t { font: 400 17px/1.2 var(--f-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .pg-now.swap .pg-t, .pg-now.swap .pg-k { animation: pgIn .45s var(--ease); }
}
@keyframes pgIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (max-width: 380px) {
  .data tbody th, .data thead th:first-child { width: 38%; }
}


/* ================= round 8: quiet life ================= */

/* tailpiece: the night of the frontispiece ends at first light */
.tailpiece { max-width: 1320px; margin: clamp(110px, 18vh, 180px) auto 0; padding: 0 var(--pad); }
.tp-img { aspect-ratio: 2.6 / 1; overflow: hidden; background: #1b1430; margin-left: calc(var(--marg) + var(--col-gap)); }
.tp-img img { width: 100%; height: 100%; object-fit: cover; }
.tailpiece figcaption { margin: 12px 0 0 calc(var(--marg) + var(--col-gap)); font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.tailpiece + .colophon { padding-top: 56px; }

/* rules are drawn, not printed */
.plate-head, .end-head { border-top: 0; position: relative; }
.plate-head::before, .end-head::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1.5px; background: var(--rule); transform-origin: left center; }

@media (prefers-reduced-motion: no-preference) {
  /* the frontispiece develops once, like a print in the tray, then holds still */
  /* the frontispiece develops once it has arrived, out of its own blurred preview, then holds still */
  .js-motion .frontis-img img { opacity: 0; }
  .js-motion .frontis-img img.in { opacity: 1; animation: develop 1.8s cubic-bezier(.25, .6, .2, 1) both, settle 14s cubic-bezier(.1, .5, .2, 1) both; }
  .js-motion.again .frontis-img img.in { animation: arrive .45s ease both; }
  @keyframes develop { from { opacity: 0; filter: brightness(.55) saturate(.6) blur(8px); } 35% { opacity: 1; } to { opacity: 1; filter: none; } }
  @keyframes arrive { from { opacity: 0; } to { opacity: 1; } }
  @keyframes settle { from { transform: scale(1.055); } to { transform: scale(1); } }
  .js-motion .tp-img img { transform: scale(1.04); filter: brightness(.25) saturate(.6); transition: transform 9s cubic-bezier(.1, .5, .2, 1), filter 2.4s cubic-bezier(.25, .6, .2, 1); }
  .js-motion .tailpiece.seen .tp-img img { transform: none; filter: none; }

  .js-motion .plate-head::before, .js-motion .end-head::before { transform: scaleX(0); transition: transform 1.3s cubic-bezier(.6, .05, .2, 1); }
  .js-motion .seen > .plate-head::before, .js-motion .seen > .end-head::before { transform: scaleX(1); }

  /* margin notes fill in, one by one, after the rule */
  .js-motion .plate .plate-no, .js-motion .plate .marg dl > div { opacity: 0; transform: translateY(6px); transition: opacity .7s ease, transform .9s var(--ease); }
  .js-motion .plate.seen .plate-no { opacity: 1; transform: none; transition-delay: .1s; }
  .js-motion .plate.seen .marg dl > div { opacity: 1; transform: none; }
  .js-motion .plate.seen .marg dl > div:nth-child(1) { transition-delay: .15s; }
  .js-motion .plate.seen .marg dl > div:nth-child(2) { transition-delay: .24s; }
  .js-motion .plate.seen .marg dl > div:nth-child(3) { transition-delay: .33s; }
  .js-motion .plate.seen .marg dl > div:nth-child(4) { transition-delay: .42s; }

  /* the live dot breathes, slowly */
  .dot.live { animation: live 3.6s ease-in-out infinite; }
  @keyframes live { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 6%, transparent); } }
}

/* numbers settle into place (JS swaps digits briefly; this keeps width steady) */
.settling { font-variant-numeric: tabular-nums; }

/* phone contents sheet */
.sheet-back { position: fixed; inset: 0; z-index: 44; background: rgba(10, 10, 9, .32); opacity: 0; transition: opacity .35s; }
.sheet { position: fixed; z-index: 45; left: 0; right: 0; bottom: 0; max-height: 80svh; overflow-y: auto;
  padding: 14px max(22px, env(safe-area-inset-right, 0px)) calc(22px + env(safe-area-inset-bottom, 0px)) max(22px, env(safe-area-inset-left, 0px));
  background: var(--paper); border-top: 1.5px solid var(--rule); border-radius: 16px 16px 0 0;
  box-shadow: 0 -20px 50px -20px rgba(0, 0, 0, .3); transform: translateY(104%); transition: transform .5s var(--ease); }
.sheet::before { content: ""; display: block; width: 38px; height: 4px; border-radius: 4px; background: var(--line); margin: 0 auto 14px; }
.sheet-on .sheet { transform: none; }
.sheet-on .sheet-back { opacity: 1; }
.sheet-list a { display: grid; grid-template-columns: 2.2em minmax(0, 1fr) auto; align-items: baseline; gap: 10px; min-height: 52px; padding: 10px 0; text-decoration: none; border-top: 1px solid var(--line); }
.sheet-list .n { font: 400 15px/1 var(--f-display); color: var(--accent); }
.sheet-list .t { font: 400 22px/1.2 var(--f-display); }
.sheet-list .s { font: 400 11.5px/1 var(--f-mono); color: var(--muted); }
.sheet-list a.on .t { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: .22em; text-decoration-thickness: 1px; }
@media (prefers-reduced-motion: reduce) { .sheet, .sheet-back { transition: none; } }

@media (max-width: 1180px) {
  .tp-img, .tailpiece figcaption { margin-left: 0; }
}
@media (max-width: 860px) {
  .tailpiece { margin-top: 96px; }
  .tp-img { aspect-ratio: 1 / 1; margin: 0 calc(-1 * var(--pad)); }
  .tailpiece figcaption { font-size: 11.5px; }
  .tailpiece + .colophon { padding-top: 40px; }
}

/* the 'Now' table names itself, quietly */
.status-cap { caption-side: top; text-align: left; font: 500 11px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-bottom: 10px; }

/* ================= site build: full name in the hero, notes ================= */
.name.two { white-space: normal; font-size: clamp(58px, 7.4vw, 124px); }
.name.two span { display: block; }
.name.two span + span { padding-left: .5em; }
.role { margin-top: 28px; }
.title-text .status { margin-top: 30px; }

.end-notes { margin: 56px 0 0 calc(var(--marg) + var(--col-gap)); max-width: 760px; }
.end-h .end-more { float: right; font: 400 12px/1 var(--f-text); letter-spacing: 0; text-transform: none; color: var(--ink-2); }
.ledger.notes li { grid-template-columns: 7.2em minmax(0, 1fr); }
.ledger.notes a { text-decoration: none; }
.ledger.notes a:hover b { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: .2em; }

.rh.is-flat { border-bottom-color: var(--line); }
.rh.is-flat .rh-now { opacity: 1; }
.notes-page, .note-page { max-width: 1320px; margin: 0 auto; padding: calc(var(--rh-h) + clamp(64px, 12vh, 120px)) var(--pad) 96px; }
.notes-head { display: grid; gap: 10px; margin-left: calc(var(--marg) + var(--col-gap)); max-width: 760px; border-top: 1.5px solid var(--rule); padding-top: 22px; }
.notes-head h1, .note-head h1 { font: 340 clamp(48px, 5.8vw, 92px)/.95 var(--f-display); font-variation-settings: "opsz" 72; letter-spacing: -.025em; }
.notes-list { margin: 48px 0 0 calc(var(--marg) + var(--col-gap)); max-width: 760px; }
.notes-list li { display: grid; grid-template-columns: 8em minmax(0, 1fr); gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.notes-list time { font: 400 12.5px/1.9 var(--f-mono); color: var(--muted); }
.notes-list a { font: 400 26px/1.2 var(--f-display); font-variation-settings: "opsz" 28; text-decoration: none; }
.notes-list a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
.notes-list p { margin-top: 6px; color: var(--ink-2); font-size: 15.5px; }
.notes-empty { margin: 48px 0 0 calc(var(--marg) + var(--col-gap)); font: italic 400 20px/1.4 var(--f-display); color: var(--muted); }
.notes-foot { margin: 40px 0 0 calc(var(--marg) + var(--col-gap)); font-size: 14px; color: var(--muted); }

.note-head { display: grid; grid-template-columns: var(--marg) minmax(0, 1fr); gap: var(--col-gap); border-top: 1.5px solid var(--rule); padding-top: 22px; }
.note-head > div { display: grid; gap: 10px; max-width: 760px; }
.note-body { margin: 44px 0 0 calc(var(--marg) + var(--col-gap)); max-width: 66ch; font: 400 19px/1.66 var(--f-display); font-variation-settings: "opsz" 18; color: var(--ink); }
.note-body > * + * { margin-top: 1.05em; }
.note-body h2, .note-body h3 { font: 500 15px/1.3 var(--f-text); letter-spacing: .01em; margin-top: 2.2em; }
.note-body a { text-decoration-color: var(--accent); }
.note-body blockquote { margin-left: 0; padding-left: 18px; border-left: 2px solid var(--accent); color: var(--ink-2); font-style: italic; }
.note-body code { font: 400 .82em var(--f-mono); background: var(--paper-2); padding: .1em .35em; }
.note-body pre { font: 400 14px/1.55 var(--f-mono); background: var(--paper-2); padding: 16px 18px; overflow-x: auto; }
.note-body pre code { background: none; padding: 0; }
.note-body img { margin: 1.6em 0; }
.note-body ul, .note-body ol { padding-left: 1.2em; }
.note-body ol { list-style: decimal; }
.note-body ul { list-style: disc; }
.note-foot { display: flex; justify-content: space-between; gap: 16px; margin: 64px 0 0 calc(var(--marg) + var(--col-gap)); max-width: 66ch; padding-top: 14px; border-top: 3px double var(--rule); font: 400 13px/1 var(--f-mono); color: var(--muted); }

@media (max-width: 1180px) {
  .end-notes { margin-left: 0; }
}
@media (max-width: 860px) {
  .name.two { font-size: clamp(50px, 15.4vw, 76px); }
  .rh .notes-nav { display: flex; }
  .rh .notes-nav a:not(.rh-mail) { display: none; }
  .notes-page, .note-page { padding-top: calc(var(--rh-h) + 48px); padding-bottom: 64px; }
  .notes-head, .notes-list, .notes-empty, .notes-foot, .note-body, .note-foot { margin-left: 0; }
  .note-head { grid-template-columns: 1fr; gap: 6px; }
  .note-head .marg { order: 2; }
  .notes-list li { grid-template-columns: 1fr; gap: 4px; }
  .notes-list a { font-size: 23px; }
  .note-body { font-size: 18px; }
  .end-notes { margin-top: 40px; }
  .ledger.notes li { grid-template-columns: 1fr; gap: 2px; }
}


/* ================= phone: images belong to the text around them ================= */
@media (max-width: 860px) {
  .title { padding-top: var(--rh-h); }
  .title-grid { gap: 26px; }
  .frontis { order: 0; margin: 0 calc(-1 * var(--pad)); }
  .title-text { order: 1; }
  .frontis-img { aspect-ratio: 16 / 11; max-height: 44svh; }
  .frontis-img img { object-position: 50% 62%; }
  .frontis figcaption { padding: 0 var(--pad); margin-top: 8px; font-size: 11.5px; }
  .tailpiece { margin-top: 88px; }
  .tp-img { aspect-ratio: 4 / 3; }
  .tailpiece figcaption { padding: 0 var(--pad); }
  .tailpiece + .colophon { padding-top: 28px; }
}

/* ================= the night, quietly alive ================= */
/* a small satellite drawn in ink crosses the empty paper between the title page and Plate I */
.plate { position: relative; }
.orbit { position: absolute; top: 0; left: calc(50% - 50vw); width: 100vw; pointer-events: none; transition: opacity 2.6s ease; }
.orbit svg { width: 100%; height: 100%; display: block; overflow: visible; }
.orbit-track { fill: none; stroke: var(--ink); stroke-width: 1; stroke-dasharray: 2 6; opacity: .28; }
.orbit-sat rect, .orbit-sat circle { fill: var(--paper); stroke: var(--ink); stroke-width: .9; }
.orbit-sat path { fill: none; stroke: var(--ink); stroke-width: .7; }
.orbit.done { opacity: 0; }
/* tonight's moon, beside the date */
.moon-line { display: flex; align-items: center; gap: 8px; font: 400 12px/1 var(--f-mono); color: var(--muted); padding-top: 10px; }
.moon-line svg { width: 14px; height: 14px; flex: none; }

@media (max-width: 860px) {
  .results { overflow-x: auto; }
  .data .ph-hide { display: none; }
  .data.numeric thead th { letter-spacing: .06em; padding-right: 10px; }
  .data.numeric td:not([colspan]) { font-size: 13px; padding-right: 10px; }
}

/* figures inside notes: a plate-style image with a quiet caption */
.note-body figure { margin: 2em 0; }
.note-body figure img { margin: 0; width: 100%; height: auto; }
.note-body figcaption { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line); font: 400 12.5px/1.5 var(--f-text); color: var(--muted); }
.note-body figcaption i { font-family: var(--f-display); font-size: 1.08em; }
@media (min-width: 1181px) { .note-body figure { margin-right: -14ch; } }
@media (max-width: 860px) { .rh.is-flat .rh-now { display: none; } }


/* ================= round 9: polish ================= */
.g-link { display: flex; flex-wrap: wrap; gap: 10px; }
.steps { display: none; }

/* desktop: the beats you are not reading stay legible, only quieter */
.beat { opacity: .42; }
.beat.on { opacity: 1; }
@media (min-width: 861px) { .beat p { font-size: 17px; } }

/* desktop nav: numerals only; the plate's name is in the centre label and the tooltip */
.rh-nav .rt { display: none; }
.pin-in { display: contents; }

@media (max-width: 860px) {
  /* home page, phone: the top bar scrolls away with the title page; the pager says where you are */
  .rh:not(.is-flat) { position: absolute; }
  .rh-now { display: none; }
  body { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }

  /* pager: a small capsule that stays put, out of the way on the title page */
  .pager {
    left: 0; right: 0; margin: 0 auto; width: min(330px, calc(100% - 32px));
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    height: 50px; border-radius: 999px; padding: 0 4px; overflow: hidden; gap: 2px;
    background: color-mix(in srgb, var(--paper) 88%, transparent);
    border: 1px solid var(--line);
    box-shadow: 0 8px 26px -14px rgba(0, 0, 0, .34);
    transition: transform .45s var(--ease), opacity .3s;
  }
  body.at-title .pager { transform: translateY(calc(100% + 24px)); opacity: 0; pointer-events: none; }
  .pager:has(:focus-visible) { transform: none; opacity: 1; pointer-events: auto; }
  .pg-btn { width: 42px; height: 42px; border-radius: 50%; transition: background .2s; }
  .pg-btn:active { background: color-mix(in srgb, var(--ink) 8%, transparent); }
  .pg-k { font-size: 9px; letter-spacing: .16em; }
  .pg-t { font-size: 16.5px; margin-top: 1px; }
  .pg-now { padding-bottom: 5px; }
  /* progress: one short segment per section, under the name */
  .pg-prog { position: absolute; left: 50%; transform: translateX(-50%); width: 46%; bottom: 6px; display: flex; gap: 3px; pointer-events: none; }
  .pg-prog i { flex: 1 1 0; height: 2px; border-radius: 2px; background: var(--line); overflow: hidden; }
  .pg-prog b { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left center; }

  /* title page: name and contents arrive in the first screen */
  .frontis-img { aspect-ratio: 16 / 9; max-height: 30svh; }
  .title-grid { gap: 18px; }
  .title-text { display: flex; flex-direction: column; }
  .title-text .kicker { order: 0; margin-bottom: 12px; }
  .title-text .name { order: 1; font-size: clamp(46px, 13.4vw, 64px); }
  .title-text .role { order: 2; margin-top: 16px; }
  .title-text .toc { order: 3; margin-top: 24px; }
  .title-text .status { order: 4; margin-top: 44px; }
  .toc a { min-height: 44px; padding: 4px 0; }
  .toc .t { font-size: 20px; }
  .toc .toc-end a { min-height: 40px; }
  .toc .toc-end .t { font-size: 16.5px; }

  /* figures, both phone modes: in the flow, full caption, a step bar beneath */
  .js-step .pin { margin-top: 30px; }
  .js-step .fig { position: relative; top: auto; height: auto; margin: 0; padding: 0; box-shadow: none; background: none; }
  .js-step .fig figcaption, .js-step .pin.tall .fig figcaption { display: block; -webkit-line-clamp: unset; overflow: visible; font-size: 12px; line-height: 1.45; margin-top: 8px; padding-top: 8px; }
  .js-step .beat .bk { display: none; }
  .js-step .beat h3 { font-size: 23px; margin-bottom: 8px; }
  .js-step .beat .links { margin-top: 16px; }
  .js-step .results { margin-top: 36px; }

  .js-step .steps { display: flex; align-items: center; gap: 2px; margin-top: 14px; border-top: 1px solid var(--rule); padding-top: 6px; position: relative; }
  .st { min-width: 38px; min-height: 40px; border: 0; background: none; padding: 0; cursor: pointer; font: italic 400 18px/1 var(--f-display); color: var(--muted); position: relative; }
  .st[aria-current="step"] { color: var(--ink); }
  .st[aria-current="step"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 1.5px; background: var(--accent); }
  .st-n { margin-left: auto; margin-right: 6px; font: 400 11px/1 var(--f-mono); letter-spacing: .06em; color: var(--muted); }
  .st-skip { display: none; }
  .st-go { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 50%; background: none; cursor: pointer; padding: 0; margin-left: 4px; }
  .st-go svg { width: 18px; height: 18px; }
  .st-go:disabled { opacity: .3; cursor: default; }
  .st-fill { display: none; }

  /* sticky mode: figure, step bar and the current beat hold still while the page scrolls the steps */
  .ph-sticky .pin-in { display: flex; flex-direction: column; position: sticky; top: 8px; background: var(--paper); }
  .ph-sticky .fig-frame, .ph-sticky .pin.tall .fig-frame { height: var(--fig-h, 40svh); min-height: 0; }
  .ph-sticky .st-n { display: none; }
  .ph-sticky .st-skip { margin-left: auto; margin-right: 4px; min-height: 40px; padding: 0 12px; border: 0; background: none; cursor: pointer; font: 500 12.5px/1 var(--f-text); color: var(--ink-2); display: inline-flex; align-items: center; gap: 5px; }
  .ph-sticky .st-fill { display: block; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left center; }
  .ph-sticky .beats { display: grid; padding: 0; margin: 0; }
  .ph-sticky .beat { grid-area: 1 / 1; min-height: 0; padding: 14px 0 6px; justify-content: flex-start; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .35s var(--ease), transform .45s var(--ease), visibility 0s .35s; }
  .ph-sticky .beat.on { opacity: 1; visibility: visible; transform: none; transition: opacity .35s var(--ease), transform .45s var(--ease); }

  /* swipe mode (short phones): the beats are cards beneath the figure */
  .ph-swipe .fig-frame { height: min(40svh, 360px); min-height: 230px; }
  .ph-swipe .pin.tall .fig-frame { height: min(54svh, 470px); min-height: 330px; }
  .ph-swipe .beats {
    display: flex; gap: 16px; margin: 0 calc(-1 * var(--pad));
    padding: 0 var(--pad); scroll-padding: 0 var(--pad);
    overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none;
    /* the next card shows at the edge, fading, so it reads as more to come rather than cut text */
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 44px), transparent calc(100% - 2px));
    mask-image: linear-gradient(to right, #000 calc(100% - 44px), transparent calc(100% - 2px));
  }
  .ph-swipe .beats::-webkit-scrollbar { display: none; }
  .ph-swipe .beats.at-end { -webkit-mask-image: none; mask-image: none; }
  .ph-swipe .beat { flex: 0 0 calc(100% - 26px); min-height: 0; padding: 14px 0 18px; justify-content: flex-start; scroll-snap-align: start; opacity: 1; }
  .ph-swipe .beat:last-child { min-height: 0; padding-bottom: 18px; flex-basis: 100%; }

  /* breathing room between plates */
  .plate { padding-top: 112px; }
  .plate-head { padding-top: 26px; }
  .head-main .prose { margin-top: 18px; }
}
/* phone held sideways: the figure takes the height */
@media (max-width: 860px) and (max-height: 500px) {
  .ph-swipe .fig-frame, .ph-swipe .pin.tall .fig-frame { height: 78svh; min-height: 0; }
}
@media (prefers-reduced-motion: reduce) { .pager, .ph-sticky .beat, .ph-sticky .beat.on { transition: none; transform: none; } }

/* notes: reading time, clearer ways back, sizes that suit a phone */
.notes-list .nl-meta { margin: 0; font-size: 12.5px; }
.nl-meta { display: flex; flex-direction: column; gap: 2px; font: 400 12.5px/1.9 var(--f-mono); color: var(--muted); }
.nl-meta time { line-height: inherit; }
.notes-list li > div p { margin-top: 6px; }
.notes-foot { display: flex; gap: 22px; }
.note-head .marg .kicker { display: flex; flex-direction: column; gap: 6px; }
.rt-min { color: var(--muted); letter-spacing: .1em; }
.nf-links { display: flex; gap: 18px; }
@media (min-width: 861px) { .note-body { font-size: 20px; } }
@media (max-width: 860px) {
  .rh .notes-nav { gap: 0; }
  .rh .notes-nav a:not(.rh-mail) { display: inline-flex; min-width: 0; padding: 0 9px; font-size: 15px; }
  .rh .notes-nav .rh-mail { margin-left: 6px; padding: 0 12px; }
  .notes-head h1 { font-size: clamp(44px, 13vw, 60px); }
  .note-head h1 { font-size: clamp(34px, 10vw, 46px); line-height: 1.02; }
  .note-head .stand { font-size: 19px; }
  .note-head .marg { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line); }
  .note-head .marg .kicker { flex-direction: row; gap: 14px; }
  .note-body { margin-top: 30px; font-size: 18.5px; line-height: 1.62; }
  .note-body figure { margin: 1.6em calc(-1 * var(--pad)); }
  .note-body figcaption { padding-left: var(--pad); padding-right: var(--pad); }
  .nl-meta { flex-direction: row; gap: 12px; }
  .notes-list li { padding: 20px 0; }
  .note-foot { font-size: 12.5px; }
}

/* photographs: the full caption on wide screens, a one-line credit on phones */
.cap-short { display: none; }
@media (max-width: 860px) {
  .frontis figcaption .cap-long, .tailpiece figcaption .cap-long { display: none; }
  .cap-short { display: block; font: 400 10.5px/1.4 var(--f-mono); letter-spacing: .02em; color: var(--muted); text-align: right; }
  .frontis figcaption { margin-top: 6px; }
}

/* notes on the home page: a quiet list of their own, after Record and next */
.notes-sec { max-width: 1320px; margin: 0 auto; padding: 88px var(--pad) 0; }
.notes-in { margin-left: calc(var(--marg) + var(--col-gap)); max-width: 820px; }
.notes-in .end-h .end-more span { display: inline-block; transition: transform .25s var(--ease); }
.notes-in .end-h .end-more:hover span { transform: translateX(3px); }
.note-row { display: grid; grid-template-columns: 7.6em minmax(0, 1fr) auto; gap: 18px; align-items: baseline; padding: 18px 0 19px; border-bottom: 1px solid var(--line); text-decoration: none; }
.nr-meta { display: flex; flex-direction: column; gap: 3px; font: 400 12px/1.5 var(--f-mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.nr-meta time { color: var(--ink); }
.nr-main { display: flex; flex-direction: column; gap: 5px; }
.nr-t { font: 400 23px/1.2 var(--f-display); font-variation-settings: "opsz" 28; letter-spacing: -.005em; color: var(--ink); text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 1px; text-underline-offset: .2em; transition: text-decoration-color .25s; }
.nr-s { font-size: 15px; line-height: 1.55; color: var(--ink-2); max-width: 60ch; }
.nr-go { font: 400 18px/1 var(--f-display); color: var(--muted); transition: transform .3s var(--ease), color .25s; }
.note-row:hover .nr-t { text-decoration-color: var(--accent); }
.note-row:hover .nr-go { transform: translateX(4px); color: var(--accent); }
@media (max-width: 1180px) { .notes-in { margin-left: 0; } }
@media (max-width: 860px) {
  .notes-sec { padding-top: 72px; }
  .note-row { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 14px; padding: 16px 0 17px; }
  .nr-meta { grid-column: 1 / -1; flex-direction: row; gap: 12px; }
  .nr-t { font-size: 21px; }
  .nr-go { align-self: center; }
}

/* FERRITE on phones: one row per file, its saving to the right, the sizes beneath */
@media (max-width: 860px) {
  .data.cards thead { display: none; }
  .data.cards tbody:not(.sub) tr { display: grid; grid-template-columns: auto auto 1fr auto; column-gap: 16px; row-gap: 5px; align-items: baseline; padding: 14px 0; }
  .data.cards tbody:not(.sub) tr + tr { border-top: 1px solid var(--line); }
  .data.cards tbody th, .data.cards tbody td { border: 0 !important; padding: 0; width: auto; }
  .data.cards tbody:not(.sub) th { grid-column: 1 / 4; grid-row: 1; }
  .data.cards tbody:not(.sub) td { grid-row: 2; font-size: 13px; color: var(--ink-2); }
  .data.cards tbody:not(.sub) td::before { content: attr(data-h); margin-right: 6px; font: 500 9.5px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
  .data.cards tbody:not(.sub) td:last-child { grid-column: 4; grid-row: 1 / span 2; align-self: center; text-align: right; font-size: 17px; color: var(--ink); }
  .data.cards tbody:not(.sub) td:last-child::before { display: block; margin: 0 0 4px; }
  .data.cards tbody.sub tr { display: block; padding: 13px 0; border-top: 1px solid var(--line); }
  .data.cards tbody.sub tr:first-child { border-top: 1px solid var(--rule); }
  .data.cards tbody.sub th { display: block; margin-bottom: 4px; font: 500 10px/1.3 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
  .data.cards tbody.sub td { display: block; font-size: 15px; }
}

/* ================= feel: small things that are only noticed when missing ================= */
html { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, .stand, .nr-t, .col-line { text-wrap: balance; }
p, .nr-s, .beat p, .ledger div { text-wrap: pretty; }
main section[id], main footer[id] { scroll-margin-top: var(--rh-h); }
.btn, .st-go, .pg-btn, .st, .st-skip, #copy { transition: background .25s, color .25s, border-color .25s, transform .18s var(--ease); }
.btn:active, .st-go:active, .pg-btn:active, .st:active, .st-skip:active { transform: scale(.96); }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  /* moving between the plates and the notes fades instead of cutting */
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; animation-timing-function: ease; }
}
@media (max-width: 860px) { main section[id], main footer[id] { scroll-margin-top: 0; } }

/* sticky, tighter: for shorter phones, so the figure keeps its room */
.pin-links { display: none; }
@media (max-width: 860px) {
  .ph-tight .beat .links { display: none; }
  .ph-tight .pin-links { display: block; margin-top: 4px; }
  .ph-tight .pin-links .links { margin-top: 0; }
  .ph-tight .js-step .pin, .ph-tight .pin { margin-top: 24px; }
  .ph-tight .fig figcaption { font-size: 11px; line-height: 1.4; margin-top: 6px; padding-top: 6px; }
  .ph-tight .steps { margin-top: 8px; padding-top: 3px; }
  .ph-tight .st, .ph-tight .st-go, .ph-tight .st-skip { min-height: 36px; }
  .ph-tight .st-go { width: 36px; height: 36px; }
  .ph-tight .beat { padding-top: 10px; }
  .ph-tight .beat h3 { font-size: 20px; margin-bottom: 6px; }
  .ph-tight .beat p { font-size: 15px; line-height: 1.5; }
  .ph-tight .beat .quiet { font-size: 16.5px; margin-top: 10px; }
  .ph-tight .beat .links { margin-top: 12px; gap: 8px; }
  .ph-tight .beat .btn { min-height: 38px; padding: 0 14px; font-size: 13.5px; }
}

/* photographs: a blurred preview holds the frame until the picture arrives */
.frontis-img, .tp-img { position: relative; }
.frontis-img::before, .tp-img::before { content: ""; position: absolute; inset: -6%; background: var(--lq) center / cover no-repeat; filter: blur(14px) saturate(1.15); }
.frontis-img picture, .tp-img picture { display: contents; }
.frontis-img img, .tp-img img { position: relative; }
@media (max-width: 860px) { .frontis-img::before { background-position: 50% 62%; } }
