/* DevPulse · brand guidelines
   A book of A4 landscape pages (297 x 210 mm). In the browser every page is a fixed-ratio box
   with container-type: inline-size and everything inside is sized in cqi, so the screen and
   the PDF are the same layout at a different scale. One family: JetBrains Mono, served from
   ./fonts so print never waits on the network. Artifact styles (posters, feeds, the night,
   merch) are copied from the ASCII v3 concept (in git history); the book frame comes last. */

@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/JetBrainsMono-latin-var.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: block;
}

:root {
  --paper: #F1EEE6;
  --ink: #141318;
  --cobalt: #3341D6;
  --apricot: #EE9A62;
  --signal: #E5412B;
  --haze: #DAD5C8;
  --graphite: #5F5B54;   /* secondary text on paper, 5.6:1 */
  --fog: #A9A59B;        /* secondary text on ink, 7.4:1 */
  --desk: #E3DED2;
  --desk-night: #1F1E25;
  --card: #FBFAF6;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  /* depth ramp, paper: light is warm (amber → rose), shadow is violet/cobalt, the edge is ink.
     Each step holds the night step's contrast (2.4 to 15.9:1), so detail reads on both grounds. */
  --r1: #DC8833; --r2: #CF742C; --r3: #B9663B; --r4: #AB4C5E; --r5: #843E74;
  --r6: #54369E; --r7: #342D91; --r8: #20235A; --r9: #141318;
  --dot: #C9C3B4;
  /* the wordmark's pulse: one ramp step a letter, cobalt to terracotta (every step ≥3:1 on paper) */
  --wp1: #3341D6; --wp2: #5B48B8; --wp3: #8E4F9C; --wp4: #B85A78; --wp5: #D06A55;
  --wm-base: var(--ink);
  --line: color-mix(in srgb, var(--ink) 16%, transparent);
  --sc-line: var(--line);
}

/* night: the ramp flips, light is warm, shadow recedes into cobalt */
.g-night, .page--night, .tote, .stk--orb, .tee__print, .pin {
  --r1: #3B44B8; --r2: #5B51B8; --r3: #825DAC; --r4: #B6668B; --r5: #D77C73;
  --r6: #EA8F64; --r7: #F0A979; --r8: #F2CEAF; --r9: #F1EEE6;
  --dot: #2C2B33;
  /* on night the pulse starts in warm light and recedes into violet (every step ≥3:1 on ink) */
  --wp1: #F0A979; --wp2: #EA8F64; --wp3: #D77C73; --wp4: #B6668B; --wp5: #825DAC;
  --wm-base: var(--paper);
}
.page--night { --line: color-mix(in srgb, var(--paper) 18%, transparent); --sc-line: var(--line); }

html {
  background: var(--desk);
  color: var(--ink);
  scrollbar-color: var(--ink) var(--haze);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font: 400 16px/24px var(--mono);
  font-variant-numeric: tabular-nums;
  caret-color: var(--signal);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
/* honest ASCII: `->` stays two characters, `::` stays two dots */
*, *::before, *::after { font-variant-ligatures: none !important; font-feature-settings: "calt" 0, "liga" 0 !important; }
::selection { background: var(--cobalt); color: var(--paper); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
a { color: inherit; text-underline-offset: 0.28em; text-decoration-thickness: 1px; }
code { font: inherit; color: var(--cobalt); }
.page--night code { color: var(--apricot); }
.tnum { font-variant-numeric: tabular-nums; }
.live { color: var(--signal); font-weight: 800; font-style: normal; }
.pr { color: var(--cobalt); }
.g-night .pr, .page--night .pr { color: var(--apricot); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; margin: 0; padding: 0; }

/* ---------- the wordmark ----------
   The logo is the word. dev takes the ground's text colour; the five letters of pulse carry
   the pulse ramp (--wp1..5), night grounds swap in the night steps. That is the still: print,
   PDF, reduced motion and every static use. On screen .wm--travel lets a pulse run through
   the word letter by letter (2.8 s, 90 ms a letter) over an ink word. */
.wm { font-family: var(--mono); font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; line-height: 1; }
.wm > span:nth-child(4) { color: var(--wp1); }
.wm > span:nth-child(5) { color: var(--wp2); }
.wm > span:nth-child(6) { color: var(--wp3); }
.wm > span:nth-child(7) { color: var(--wp4); }
.wm > span:nth-child(8) { color: var(--wp5); }
@keyframes wm-pulse {
  0% { color: var(--wm-base); }
  6% { color: var(--wp1); }
  14% { color: var(--wp3); }
  24% { color: var(--wp5); }
  42%, 100% { color: var(--wm-base); }
}
@media screen and (prefers-reduced-motion: no-preference) {
  .wm.wm--travel > span { animation: wm-pulse 2.8s var(--ease) infinite both; animation-delay: calc(var(--i) * 90ms); }
  .wm--travel.is-paused > span { animation-play-state: paused; }
}
/* one moment of the travelling pulse, held: --t is the time into the loop */
.wm.wm--frame > span { animation: wm-pulse 2.8s var(--ease) infinite both paused; animation-delay: calc(var(--i) * 90ms - var(--t, 0s)); }
/* one colour: last, so it wins over every treatment */
.wm.wm--mono > span:nth-child(n) { color: inherit; animation: none; }

/* ---------- the pulse: rings of characters, the brand graphic ---------- */
.pulse { display: block; }
.art.pulse--line { display: inline-block; vertical-align: -0.24em; font-size: 1em; height: 1.2em; width: calc(var(--cols) * 0.6em); }

/* ---------- copied from the ASCII v3 concept: ascii art ---------- */
.art {
  margin: 0;
  font-family: var(--mono);
  font-size: calc(var(--aw, 100cqi) / var(--cols, 80) / 0.6);
  line-height: 1.2;
  height: calc(var(--rows, 0) * 1.2em);
  letter-spacing: 0;
  white-space: pre;
  overflow: hidden;
  color: var(--r9);
  font-variant-ligatures: none;
  font-feature-settings: "calt" 0, "liga" 0;
}
.art .a0 { color: var(--dot); }
.art .a1 { font-weight: 300; color: var(--r1); }
.art .a2 { font-weight: 300; color: var(--r2); }
.art .a3 { font-weight: 400; color: var(--r3); }
.art .a4 { font-weight: 400; color: var(--r4); }
.art .a5 { font-weight: 500; color: var(--r5); }
.art .a6 { font-weight: 600; color: var(--r6); }
.art .a7 { font-weight: 700; color: var(--r7); }
.art .a8 { font-weight: 800; color: var(--r8); }
.art .a9 { font-weight: 800; color: var(--r9); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; margin: 0; padding: 0; }


/* ---------- copied from the ASCII v3 concept: boxes, corners, bars, icons ---------- */
.sc-artifact { container-type: inline-size; }
.box { position: relative; container-type: inline-size; overflow: hidden; width: 100%; box-sizing: border-box; }
.sq { aspect-ratio: 1; } .r21 { aspect-ratio: 2 / 1; } .r32 { aspect-ratio: 3 / 2; } .r43 { aspect-ratio: 4 / 3; }
.r41 { aspect-ratio: 4 / 1; } .r52 { aspect-ratio: 5 / 2; } .r169 { aspect-ratio: 16 / 9; } .r72 { aspect-ratio: 7 / 2; }
.r56 { aspect-ratio: 5 / 6; } .r12 { aspect-ratio: 1 / 2; } .r23 { aspect-ratio: 2 / 3; }
.poster { aspect-ratio: 1 / 1.4142; } .story { aspect-ratio: 9 / 16; }

.g-paper { background: var(--paper); color: var(--ink); }
.g-night { background: var(--ink); color: var(--paper); }
.g-cobalt { background: var(--cobalt); color: var(--paper); }
.g-apricot { background: var(--apricot); color: var(--ink); }
.g-signal { background: var(--signal); color: var(--ink); }
/* cobalt, apricot and signal grounds carry the wordmark in one colour */
.g-cobalt, .g-apricot, .g-signal {
  --wp1: currentColor; --wp2: currentColor; --wp3: currentColor; --wp4: currentColor; --wp5: currentColor;
}
.g-desk { background: var(--desk); }
.box.g-paper { outline: 1px solid var(--sc-line); outline-offset: -1px; }
.sec--night .box.g-night { outline: 1px solid color-mix(in srgb, var(--paper) 18%, transparent); outline-offset: -1px; }

.corner {
  position: absolute; z-index: 2;
  font: 500 clamp(8px, 1.9cqi, 12px)/1.2 var(--mono);
  white-space: nowrap;
}
.tl { top: 4cqi; left: 4cqi; } .tr { top: 4cqi; right: 4cqi; }
.bl { bottom: 4cqi; left: 4cqi; } .br { bottom: 4cqi; right: 4cqi; }
.on-night { color: var(--paper); }
.chip { background: var(--paper); color: var(--ink); padding: 0.5cqi 1.2cqi; }

/* bracket progress bars: [■■■■░░░░] */
.bar { --n: 16; display: inline-flex; align-items: center; white-space: nowrap; }
.bar::before { content: "["; }
.bar::after { content: "]"; }
.bar i { display: block; flex: none; width: calc(var(--n) * 1ch); height: 0.78em; }
.bar svg { display: block; width: 100%; height: 100%; }
.bar rect { fill: currentColor; }
.bar path { fill: none; stroke: currentColor; stroke-width: 1; stroke-dasharray: 1 1; }
.bar path.o { stroke-dashoffset: 1; }

/* cell grids (book.js draws the lines; 1 unit = 0.1 em): under the text, over the ground */
[data-cells] { position: relative; isolation: isolate; }
.cells { position: absolute; left: 0; top: 0; z-index: -1; pointer-events: none; }
.cells path { fill: none; stroke: color-mix(in srgb, var(--cobalt) 26%, transparent); stroke-width: 0.7; }
.cells rect { fill: color-mix(in srgb, var(--apricot) 45%, transparent); }

/* pixel icons */
[data-icon] { display: block; }
[data-icon] svg { display: block; width: 100%; height: 100%; }


/* ---------- copied from the ASCII v3 concept: posters, feeds, the night, merch ---------- */
/* ---------- posters ---------- */
.p-prog { display: flex; flex-direction: column; padding: 11cqi 6cqi 5cqi; }
.p-prog .corner { top: 4.4cqi; font-size: 1.8cqi; }
.p-prog .corner.tl { left: 6cqi; font-weight: 800; } .p-prog .corner.tr { right: 6cqi; }
/* the evening's shape, large and cropped by the right edge, written in the evening's log */
/* the box is padded 6% a side and cqi measures its content box (88% of it): divide to run edge to edge */
.p-prog__num { position: absolute; left: 0; top: 3cqi; --aw: calc(100cqi / 0.88); z-index: 0; }
/* the terminal's ground runs into the side padding too, so the full-bleed shape stops at its top edge */
.p-prog .term { margin: auto calc(-6cqi / 0.88) 0; padding: 0 calc(6cqi / 0.88); }
.p-prog__meta { position: absolute; left: 6cqi; top: 8cqi; margin: 0; padding: 0.4cqi 1cqi 0.4cqi 0; font: 500 1.6cqi/1.4 var(--mono); color: var(--graphite); }
.term { margin-top: auto; font: 500 2.25cqi/1.6 var(--mono); }
.term p { margin: 0; }
.term__cmd { font-weight: 700; }
.term__out { color: var(--graphite); margin-bottom: 2.4cqi !important; }
.term__out span { white-space: nowrap; }
.prog { border-top: 1px solid var(--sc-line); margin-bottom: 2.4cqi; }
.prog__row {
  display: grid; grid-template-columns: 7ch 4.6cqi 9ch minmax(0, 1fr); align-items: center;
  gap: 0 2cqi; padding: 1.2cqi 0; border-bottom: 1px solid var(--sc-line);
}
.prog__row > i { width: 4.6cqi; height: 4.6cqi; }
.prog__row b { font-size: 3.6cqi; font-weight: 800; letter-spacing: -0.02em; }
.prog__row .bar { justify-self: end; font-weight: 700; }
.prog__row:last-child .bar { color: var(--signal); }
.prog__talk {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 2ch;
  padding: 0.8cqi 0 0.8cqi calc(7ch + 6.6cqi);
  border-bottom: 1px solid var(--sc-line);
}
.prog__talk span:first-child { font-weight: 700; color: var(--cobalt); }


.p-night { padding: 8cqi 6cqi 4.6cqi; }
.p-night__top { position: relative; z-index: 1; }
.p-night__cmd { margin: 0 0 3cqi; font: 600 2.2cqi/1 var(--mono); }
.p-night .p-title { font-size: 10.4cqi; }
.p-night .art { position: absolute; left: 0; bottom: 0; --aw: calc(100cqi / 0.88); }
.p-night__side {
  position: absolute; left: 6cqi; bottom: 12cqi; z-index: 1;
  font: 500 2.1cqi/1.5 var(--mono);
  background: var(--ink); padding: 1.2cqi 1.6cqi 1.2cqi 0;
}
.p-night__side p { margin: 0; }
.p-night__side b { font-weight: 800; }
.p-night .p-foot { position: absolute; left: 6cqi; right: 6cqi; bottom: 4.6cqi; z-index: 1; margin: 0; }
.p-night .p-foot span { background: var(--ink); padding: 0.6cqi 0; }

/* ---------- social ---------- */
.s-post { padding: 6cqi; }
.s-post__no { margin: 0; display: flex; justify-content: space-between; font: 600 2.6cqi/1 var(--mono); }
.s-post__no span:first-child { font-weight: 800; }
.s-post__title { position: relative; z-index: 1; margin: 5cqi 0 0; max-width: 64cqi; font: 800 8.2cqi/1 var(--mono); letter-spacing: -0.035em; }
.s-post__who { position: absolute; left: 6cqi; bottom: 6cqi; font: 500 2.6cqi/1.5 var(--mono); }
.s-post__who p { margin: 0; }
.s-post__who b { font-weight: 800; }
.s-post__who .cmd { color: var(--apricot); margin-top: 1.4cqi; }
.s-post--paper .s-post__who .cmd { color: var(--cobalt); }
.s-post--paper .s-post__no > span + span { color: var(--graphite); }

.s-story { display: flex; flex-direction: column; padding: 7cqi 6cqi; }
.s-story p { margin: 0; }
.s-story__top { display: flex; justify-content: space-between; font: 800 3.4cqi/1 var(--mono); }
.s-story__top > span + span { font-weight: 500; color: var(--graphite); }
.s-story__title { margin-top: 3cqi !important; font: 800 8.6cqi/0.98 var(--mono); letter-spacing: -0.035em; }
.s-story__who { margin-top: 3.4cqi !important; font: 500 3.2cqi/1.4 var(--mono); }
.s-story__who b { font-weight: 800; }
.s-story__when { font: 500 3.2cqi/1.4 var(--mono); color: var(--graphite); }
.s-story__cta { margin-top: 4cqi !important; font: 700 3.6cqi/1 var(--mono); border-top: 1px solid var(--sc-line); padding-top: 3.4cqi; }
.s-story__cta .pulse--line { margin: 0 0 0 1ch; }

.s-event { display: grid; grid-template-columns: 42fr 58fr; gap: 3cqi; padding: 5cqi; }
.s-event__copy { display: flex; flex-direction: column; min-width: 0; }
.s-event__wm { margin: 0; font-size: 3.2cqi; }
.s-event__title { margin: auto 0 0; font: 800 6.2cqi/1 var(--mono); letter-spacing: -0.035em; }
.s-event__tag { margin: 1.6cqi 0 0; font: 700 2.4cqi/1.2 var(--mono); color: var(--cobalt); }
.s-event__meta { margin: 2.6cqi 0 0; font: 500 1.8cqi/1.5 var(--mono); }
.s-event__duo { display: grid; grid-template-columns: 1fr 1fr; gap: 2cqi; align-self: end; }
.s-event__ph { position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
.s-event__duo p { margin: 1.2cqi 0 0; font: 500 1.5cqi/1.4 var(--mono); }
.s-event__duo b { font-weight: 800; }

/* ---------- the night ---------- */
.badge-box { aspect-ratio: 3 / 4.3; }
.lanyard {
  position: absolute; left: 50%; top: 0; transform: translateX(-50%);
  width: 13cqi; height: 23cqi;
  background: var(--cobalt); color: var(--paper);
  overflow: hidden;
}
.lanyard span { display: block; writing-mode: vertical-rl; margin: 0 auto; font: 800 3.2cqi/13cqi var(--mono); white-space: nowrap; letter-spacing: 0.04em; }
.lanyard::after {
  content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 7cqi; height: 3.2cqi; background: var(--haze);
}
.badge {
  position: absolute; left: 11cqi; right: 11cqi; top: 22cqi; bottom: 6cqi;
  background: var(--card); color: var(--ink);
  padding: 9cqi 6cqi 5.4cqi;
  display: flex; flex-direction: column; align-items: flex-start;
}
.badge p { margin: 0; }
.badge__slot { position: absolute; top: 3cqi; left: 50%; transform: translateX(-50%); width: 16cqi; height: 2.4cqi; border-radius: 1.2cqi; background: var(--desk); }
.badge__cmd { font: 600 3.2cqi/1 var(--mono); }
.badge__name { margin-top: 3cqi !important; font: 800 10cqi/0.95 var(--mono); letter-spacing: -0.035em; }
.badge__role { margin-top: 2.4cqi !important; font: 500 3.2cqi/1.2 var(--mono); color: var(--graphite); }
.badge__tag { margin-top: 2.4cqi !important; background: var(--signal); color: var(--ink); font: 800 3cqi/1 var(--mono); padding: 1cqi 1.6cqi; }
.badge__strip { --aw: 62cqi; margin-top: 3cqi !important; }
.badge__row { margin-top: auto; width: 100%; display: flex; align-items: flex-end; justify-content: space-between; gap: 3cqi; }
.badge__pic { position: relative; width: 30cqi; aspect-ratio: 4 / 5; overflow: hidden; }
.badge__ev { text-align: right; font: 600 2.8cqi/1.35 var(--mono); }
.badge__ev .art { --aw: 18cqi; width: calc(var(--cols) * 0.6em); margin: 0 0 1.6cqi auto; }

.slide { padding: 5cqi 6cqi; }
.slide p { margin: 0; }
.slide__top { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 2ch; font: 500 1.6cqi/1 var(--mono); color: var(--fog); }
.slide__title { position: relative; z-index: 1; margin-top: 8cqi !important; max-width: 52cqi; font: 800 6.6cqi/1 var(--mono); letter-spacing: -0.035em; }
.slide__who { position: relative; z-index: 1; margin-top: 3cqi !important; display: flex; gap: 2ch; font: 500 2cqi/1 var(--mono); }
.slide__who b { font-weight: 800; }
.slide__who span { color: var(--fog); }
.slide__foot { position: absolute; left: 6cqi; bottom: 5cqi; display: flex; align-items: center; gap: 3ch; font: 500 1.6cqi/1 var(--mono); color: var(--fog); }
.slide__foot .wm { font-size: 2.6cqi; color: var(--paper); }
.slide__foot .pulse--line { position: static; }

.band {
  position: absolute; left: 4cqi; right: 4cqi; top: 50%; transform: translateY(-50%);
  height: 11cqi;
  display: grid; grid-template-columns: 9cqi auto minmax(0, 1fr) auto; align-items: center; gap: 2.4cqi;
  padding-right: 3cqi;
  background: var(--apricot); color: var(--ink);
}
.band__tab { align-self: stretch; background: color-mix(in srgb, var(--paper) 70%, var(--apricot)); border-right: 0.35cqi dashed var(--ink); }
.band__wave { --aw: 26cqi; }
.band__wave span { color: var(--ink) !important; }
.band__txt { margin: 0; display: flex; gap: 2.6ch; white-space: nowrap; overflow: hidden; font: 600 1.5cqi/1 var(--mono); }
.band__txt b { font-weight: 800; }
.band__id { margin: 0; font: 800 1.6cqi/1 var(--mono); }

.sign { display: flex; flex-direction: column; justify-content: center; padding: 6cqi 8cqi; }
.sign p { margin: 0; }
.sign__pwd { margin-bottom: 3cqi !important; font: 500 3.4cqi/1 var(--mono); }
.sign__pwd span { color: var(--fog); }
.sign__row {
  display: flex; justify-content: space-between; align-items: center; gap: 4cqi;
  padding: 2.4cqi 0; border-top: 0.4cqi solid color-mix(in srgb, var(--paper) 22%, transparent);
  font: 800 8cqi/1.1 var(--mono); letter-spacing: -0.03em;
}
.sign__row i { width: 10cqi; aspect-ratio: 1; color: var(--apricot); flex: none; }

/* ---------- merch ---------- */
.tote__handles { position: absolute; left: 20cqi; top: 2cqi; width: 60cqi; height: 24cqi; fill: none; stroke: var(--ink); stroke-width: 3.4; }
.tote {
  position: absolute; left: 14cqi; right: 14cqi; top: 24cqi; bottom: 7cqi;
  background: var(--ink); color: var(--paper);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3cqi;
}
.tote p { margin: 0; }
.tote .art { --aw: 66cqi; }
.tote__t { font: 800 4.6cqi/1 var(--mono); letter-spacing: -0.03em; }
.tote__s { font-size: 3.4cqi; }

.stk { position: absolute; outline: 1.4cqi solid var(--card); }
.stk--pulse { left: 9cqi; top: 9cqi; width: 30cqi; aspect-ratio: 1; border-radius: 6.6cqi; display: grid; place-items: center; }
.stk--pulse .art { --aw: 24cqi; width: calc(var(--cols) * 0.6em); }
.stk--word { left: 47cqi; top: 11cqi; background: var(--cobalt); color: var(--paper); padding: 3.4cqi 3.4cqi 3cqi; }
.stk--word .wm { font-size: 6.4cqi; display: block; }
.stk--orb {
  left: 8cqi; top: 48cqi; width: 40cqi; aspect-ratio: 1; border-radius: 50%;
  background: var(--ink); color: var(--paper);
  display: grid; place-items: center; align-content: center; gap: 1cqi;
}
.stk--orb .art { --aw: 26cqi; }
.stk--orb span { font: 700 2cqi/1 var(--mono); color: var(--apricot); }
.stk--ship { left: 54cqi; top: 34cqi; width: 38cqi; box-sizing: border-box; padding: 3cqi; background: var(--apricot); color: var(--ink); display: grid; gap: 1.6cqi; }
.stk--ship .bar { font: 700 2cqi/1 var(--mono); }
.stk--ship .bar i { width: calc(var(--n) * 1ch); }
.stk--ship b { font: 800 4.4cqi/1 var(--mono); letter-spacing: -0.03em; }
.stk--prompt { left: 55cqi; top: 66cqi; background: var(--paper); color: var(--ink); padding: 2.6cqi 3cqi; font: 800 3.4cqi/1 var(--mono); border-radius: 6cqi; display: flex; align-items: baseline; }

.tee { position: absolute; left: 6cqi; top: 6cqi; width: 88cqi; height: 88cqi; fill: var(--ink); }
.tee-box { aspect-ratio: 5 / 6; }
/* the print fills about two thirds of the body; the vane sits a fifth of the body below the neckline */
.tee__print {
  position: absolute; left: 50%; top: 32cqi; transform: translateX(-50%);
  display: grid; justify-items: center; gap: 0.6cqi;
  color: var(--paper);
}
.tee__print .art { --aw: 16cqi; margin-bottom: 1.6cqi; }
.tee__print p { margin: 0; font: 800 2.6cqi/1 var(--mono); white-space: nowrap; }
.tee__print p.tnum { font-weight: 500; font-size: 1.8cqi; color: var(--apricot); }
.pins { display: flex; align-items: center; justify-content: center; gap: 7cqi; padding-bottom: 4cqi; }
.pin {
  width: 22cqi; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; box-sizing: border-box;
  background: var(--ink); color: var(--paper); border: 1.2cqi solid #C9C3B4;
}
.pin--shape .art { --aw: 15cqi; width: calc(var(--cols) * 0.6em); }


/* ---------- event shape behind a poster: cropped by the edge, everything else in front ---------- */
.knock { --kg: var(--paper); }
.knock.g-night { --kg: var(--ink); }
.p-shape {
  position: absolute; left: var(--sx); top: var(--sy); z-index: 0;
  --aw: var(--sw); width: calc(var(--cols) * 0.6em);
  pointer-events: none;
}
/* one cool hue, so the shape never reads as part of a (warm) portrait; density gives it depth */
.p-shape span { color: var(--cobalt) !important; }
.g-night .p-shape span { color: #6B62C8 !important; }
.p-shape .a1, .p-shape .a2, .p-shape .a3 { opacity: 0.55; }
:where(.knock) > :where(:not(.p-shape)) { position: relative; z-index: 1; }
.knock .corner, .knock .s-post__title, .knock .s-post__no, .knock .s-post__who, .knock .s-story > p,
.knock .p-night__side, .knock .s-event__copy > *, .knock .s-event__duo p, .knock .term, .knock .p-prog__meta,
.knock .xp-poster__t, .knock .xp-poster__who, .knock .xp-poster__foot { background: var(--kg); }

.conf-strip .art { position: absolute; inset: 0; --aw: 100cqi; }
.conf-strip p { margin: 0; }
.conf-strip__cmd { position: absolute; left: 6cqi; top: 5cqi; background: var(--paper); padding: 0.6cqi 1.4cqi 0.6cqi 0; font: 600 2cqi/1 var(--mono); }
.conf-strip__t { position: absolute; left: 6cqi; bottom: 12cqi; background: var(--paper); padding: 1.4cqi 2cqi 1cqi 0; font: 800 12cqi/0.92 var(--mono); letter-spacing: -0.035em; }
.conf-strip__m { position: absolute; left: 6cqi; bottom: 5cqi; display: flex; gap: 3ch; background: var(--paper); padding: 0.6cqi 1.6cqi 0.6cqi 0; font: 600 2.2cqi/1 var(--mono); }
.r23 .receipt {
  --z: 2cqi; width: 50cqi; padding: 6cqi 3.3cqi; font-size: 2.08cqi;
}
.r23 .receipt .receipt__wm { font-size: 4.4cqi; margin-bottom: 2.6cqi; }
.r23 .receipt__h { font-size: 2.64cqi; }
.r23 .receipt__rule { margin: 1.05cqi 0 !important; }
.r23 .receipt__code { height: 7.3cqi; margin: 3.3cqi 0 1.3cqi; }


/* =====================================================================
   The book: pages, chrome, type, and one block per page
   ===================================================================== */
.book { display: grid; justify-items: center; gap: 40px; padding: 20px 24px 64px; }
.page {
  position: relative; box-sizing: border-box;
  width: min(100%, 1400px); aspect-ratio: 297 / 210;
  container-type: inline-size; overflow: hidden;
  background: var(--paper); color: var(--ink);
  scroll-margin-top: 24px;
}
/* everything inherits a size from the page, so line boxes (struts) scale with it too */
.page > :where(:not(.art)) { font-size: 1cqi; line-height: 1.5;
}
.page--night { background: var(--ink); color: var(--paper); --desk: var(--desk-night); }
.page p { margin: 0; }

/* running head and foot */
.pg-head, .pg-foot {
  position: absolute; left: 4.6cqi; right: 4.6cqi; z-index: 3;
  display: flex; justify-content: space-between; gap: 2ch;
  font: 500 0.78cqi/1 var(--mono); color: var(--graphite);
}
.pg-head { top: 2.6cqi; padding-bottom: 0.9cqi; border-bottom: 0.08cqi solid var(--line); }
.pg-head span:first-child { color: var(--ink); font-weight: 700; }
.pg-foot { bottom: 2.4cqi; padding-top: 0.9cqi; border-top: 0.08cqi solid var(--line); }
.page--night .pg-head, .page--night .pg-foot { color: var(--fog); }
.page--night .pg-head span:first-child { color: var(--paper); }

/* the body: 12 columns, children place themselves with style="--c: a / b" */
.pg-body {
  position: absolute; inset: 6.8cqi 4.6cqi 6.2cqi;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 1.6cqi; row-gap: 2cqi; align-content: start; align-items: start;
}
.pg-body > * { grid-column: var(--c, 1 / -1); min-width: 0; }

/* type, all in cqi of the page */
.h { margin: 0; font: 800 3.1cqi/1.04 var(--mono); letter-spacing: -0.035em; text-wrap: balance; max-width: 20ch; }
.h--xl { font-size: 6.4cqi; line-height: 0.96; max-width: none; }
.lead { margin-top: 2cqi !important; font: 500 1.4cqi/1.45 var(--mono); letter-spacing: -0.01em; max-width: 40ch; text-wrap: pretty; }
.p { margin-top: 1.4cqi !important; font: 400 1cqi/1.62 var(--mono); max-width: 64ch; text-wrap: pretty; }
.pg-body > .p { margin-top: 0 !important; align-self: end; }
.lbl { margin: 0 0 1cqi !important; font: 500 0.82cqi/1.3 var(--mono); color: var(--graphite); }
.page--night .lbl, .page--night .cap, .g-night .lbl { color: var(--fog); }
.fig { margin: 0; min-width: 0; }
.cap { display: block; margin-top: 0.9cqi; font: 400 0.82cqi/1.45 var(--mono); color: var(--graphite); }
.cap b { color: var(--ink); font-weight: 700; }
.page--night .cap b { color: var(--paper); }
.sample {
  display: inline-block; margin-left: 0.6ch; padding: 0.12em 0.5em 0.1em;
  border: 0.08cqi solid currentColor; color: var(--graphite);
  font: 500 0.78em/1.2 var(--mono); vertical-align: 0.1em; white-space: nowrap;
}
.page--night .sample { color: var(--fog); }

/* what / when / how: every page answers the same three questions */
.www { display: grid; grid-template-columns: 5ch minmax(0, 1fr); gap: 0.9cqi 1.2ch; margin: 2.2cqi 0 0; font: 400 0.98cqi/1.58 var(--mono); }
.www dt { color: var(--cobalt); font-weight: 600; }
.www dt::after { content: ":"; }
.www dd { margin: 0; text-wrap: pretty; }
.page--night .www dt { color: var(--apricot); }

.rules { list-style: none; margin: 2.2cqi 0 0; padding: 0; border-top: 0.08cqi solid var(--line); font: 400 0.95cqi/1.55 var(--mono); }
.rules li { padding: 0.9cqi 0; border-bottom: 0.08cqi solid var(--line); text-wrap: pretty; }
.rules b { font-weight: 800; }

.tbl { width: 100%; border-collapse: collapse; font: 400 0.9cqi/1.4 var(--mono); }
.tbl th { text-align: left; font-weight: 500; color: var(--graphite); padding: 0 1ch 0.6cqi 0; }
.tbl td { padding: 0.7cqi 1ch 0.7cqi 0; border-top: 0.08cqi solid var(--line); vertical-align: top; }
.tbl td:first-child { font-weight: 700; }

.plus { list-style: none; margin: 0; padding: 0; font: 400 0.92cqi/1.6 var(--mono); }
.plus li::before { content: "+ "; color: var(--cobalt); font-weight: 700; }

/* boxes inside the book: corners sized to the box, never in px */
:where(.page) .corner { font-size: 1.6cqi; }
.r31 { aspect-ratio: 3 / 1; }

/* ---------- 01 cover ---------- */
.cover__top { position: absolute; left: 4.6cqi; top: 4.4cqi; }
.cover__cmd { font: 500 1.05cqi/1 var(--mono); color: var(--graphite); }
.cover__h { margin: 1.8cqi 0 0; font: 800 4.6cqi/1 var(--mono); letter-spacing: -0.035em; }
.cover__v { margin-top: 1.4cqi !important; font: 500 1.05cqi/1 var(--mono); color: var(--graphite); }
.cover__tag { position: absolute; right: 4.6cqi; top: 4.4cqi; font: 700 1.6cqi/1.2 var(--mono); letter-spacing: -0.02em; }
.cover__mark { position: absolute; left: 4.6cqi; right: 0; bottom: 6.4cqi; font-size: 15.5cqi; }
.cover__mark .wm { line-height: 0.78; }

/* ---------- 02 contents ---------- */
.who { display: grid; grid-template-columns: 11ch minmax(0, 1fr); margin: 2.4cqi 0 0; font: 400 0.95cqi/1.5 var(--mono); border-top: 0.08cqi solid var(--line); }
.who dt, .who dd { margin: 0; padding: 0.7cqi 0; border-bottom: 0.08cqi solid var(--line); }
.who dt { font-weight: 700; }
.toc { font: 500 1.02cqi/1.72 var(--mono); }
.toc__cmd { margin-bottom: 0.6cqi !important; font-weight: 700; }
.toc__l { display: flex; align-items: baseline; gap: 1ch; text-decoration: none; }
.toc__t { white-space: pre; }
.toc__tree { color: var(--graphite); font-weight: 400; }
.toc__l--sec b { font-weight: 800; }
.toc__dots { flex: 1; min-width: 2ch; border-bottom: 0.1cqi dotted color-mix(in srgb, var(--ink) 40%, transparent); transform: translateY(-0.32em); }
.toc__l:hover .toc__t, .toc__l:focus-visible .toc__t { text-decoration: underline; }

/* ---------- 03 hello ---------- */
.hello-r { display: grid; gap: 4cqi; padding-top: 0.6cqi; }
.who--wide { grid-template-columns: 12ch minmax(0, 1fr); margin-top: 0; }
.log { font: 500 0.95cqi/1.9 var(--mono); border-top: 0.08cqi solid var(--line); padding-top: 0.6cqi; }
.log p { display: grid; grid-template-columns: 10ch 15ch minmax(0, 1fr); white-space: nowrap; }
.log p > * { overflow: hidden; text-overflow: ellipsis; }
.log time { color: var(--graphite); }
.log b { font-weight: 800; }

/* ---------- 04 principles ---------- */
.idea { font-size: 2.6cqi; max-width: none; }
.idea3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6cqi; margin-top: 0.4cqi; }
.idea3__f { margin: 0; }
.idea3__art { container-type: inline-size; height: 18cqi; display: grid; place-items: center; outline: 0.08cqi solid var(--line); outline-offset: -0.08cqi; overflow: hidden; }
.idea3__art .art { --aw: 62cqi; }
.idea3__ramp { font: 800 3.6cqi/1 var(--mono); grid-auto-flow: column; justify-content: center; gap: 0.32em; }
.idea3__ramp span:nth-child(1) { color: var(--r1); font-weight: 300; }
.idea3__ramp span:nth-child(2) { color: var(--r2); font-weight: 300; }
.idea3__ramp span:nth-child(3) { color: var(--r3); font-weight: 400; }
.idea3__ramp span:nth-child(4) { color: var(--r4); font-weight: 400; }
.idea3__ramp span:nth-child(5) { color: var(--r5); font-weight: 500; }
.idea3__ramp span:nth-child(6) { color: var(--r6); font-weight: 600; }
.idea3__ramp span:nth-child(7) { color: var(--r7); font-weight: 700; }
.idea3__ramp span:nth-child(8) { color: var(--r8); font-weight: 800; }
.idea3__ramp span:nth-child(9) { color: var(--r9); font-weight: 800; }
/* text set on its visible cells: each line starts on a cell, every glyph fills one */
.idea3__grid { justify-items: start; align-content: center; padding: 0 2.4em; font: 600 1.45cqi/1.2em var(--mono); }
.idea3__grid .cells { top: -0.8em; }
.idea3__grid .cells path { stroke: color-mix(in srgb, var(--cobalt) 30%, transparent); stroke-width: 0.6; }
.idea3__grid span { display: block; white-space: pre; line-height: 1.2em; }
.idea3__grid span:first-child { font-weight: 800; }
.idea3__f figcaption { margin-top: 1cqi; font: 400 0.95cqi/1.55 var(--mono); max-width: 46ch; }
.idea3__f figcaption b { font-weight: 800; }
.principles { list-style: none; margin: 1.4cqi 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.6cqi; }
.principles li { border-top: 0.16cqi solid var(--ink); padding-top: 1.1cqi; }
.principles span { display: block; font: 800 1.8cqi/1 var(--mono); color: var(--graphite); }
.principles b { display: block; margin: 1cqi 0 0.6cqi; font: 800 1.3cqi/1.2 var(--mono); letter-spacing: -0.02em; }
.principles p { font: 400 0.95cqi/1.55 var(--mono); text-wrap: pretty; }

/* ---------- section openers ---------- */
.page--opener .op__num { position: absolute; right: 4.6cqi; top: 7.6cqi; --aw: 54cqi; }
.op__txt { position: absolute; left: 4.6cqi; bottom: 7.6cqi; max-width: 38cqi; }
.op__h { margin: 0; font: 800 5.6cqi/1 var(--mono); letter-spacing: -0.035em; text-wrap: balance; }
.op__list { margin-top: 1.8cqi !important; font: 500 1.05cqi/1.6 var(--mono); color: var(--fog); }
.op__line { margin-top: 2.2cqi !important; font: 500 1.3cqi/1 var(--mono); }

/* ---------- 06 wordmark ---------- */
.decide { margin-top: 2.4cqi; padding-top: 1.2cqi; border-top: 0.16cqi solid var(--ink); font: 400 0.98cqi/1.58 var(--mono); }
.decide b { font-weight: 800; }
.decide i { font-style: normal; font-weight: 700; }
.wmk { display: grid; gap: 1.6cqi; }
.wmk__live { display: grid; place-items: center; }
.wmk__live .wm { font-size: 13cqi; }
.film { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.8cqi; }
.film li { display: grid; justify-items: center; gap: 0.9cqi; padding: 1.5cqi 0 0.9cqi; outline: 0.08cqi solid var(--line); outline-offset: -0.08cqi; }
.film .wm { font-size: 1.5cqi; }
.film li > span:last-child { font: 500 0.75cqi/1 var(--mono); color: var(--graphite); }
.wmk__stills { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6cqi; }
.wmk__still { display: grid; place-items: center; }
.wmk__still .wm { font-size: 13cqi; }
.wmk .corner { font-size: 1.5cqi; }
.wmk__still .corner { font-size: 2.6cqi; }

/* ---------- 07 construction ---------- */
.con__p { align-self: end; }
.con__svg { display: block; width: 100%; height: auto; margin-top: 0.6cqi; }
.cs__clear { fill: none; stroke: var(--cobalt); stroke-width: 0.3; stroke-dasharray: 1.2 1.2; }
.cs__cell { fill: color-mix(in srgb, var(--apricot) 18%, transparent); stroke: var(--apricot); stroke-width: 0.25; }
.cs__xband { fill: color-mix(in srgb, var(--cobalt) 6%, transparent); }
.cs__grid { fill: none; stroke: var(--apricot); stroke-width: 0.3; }
.cs__guide { fill: none; stroke: var(--apricot); stroke-width: 0.25; }
.cs__dim { fill: none; stroke: var(--cobalt); stroke-width: 0.3; }
.cs__t text { font: 500 3.2px var(--mono); fill: var(--cobalt); }
.cs__n text { font: 500 3.2px var(--mono); fill: var(--graphite); }
.cs__n text:nth-child(1), .cs__n text:nth-child(5), .cs__n text:nth-child(9) { font-weight: 800; fill: var(--ink); }
.cs__wm { font-family: var(--mono); font-weight: 800; }

/* ---------- 08 clear space and sizes ---------- */
.sz { display: grid; grid-template-columns: 1fr 1fr; gap: 2cqi 2.4cqi; }
.sz__cbox { aspect-ratio: 1.62; display: grid; place-items: center; }
.sz__zone { position: relative; font-size: 13cqi; padding: 1.3em 0.58em; outline: 0.25cqi dashed var(--cobalt); }
.sz__zone::before { content: ""; position: absolute; left: 0; top: 0; width: 0.58em; height: 1.2em; background: color-mix(in srgb, var(--apricot) 22%, transparent); }
.sz__zone .wm { position: relative; }
/* the ladder is measured against the page, so its box is not a size container */
.sz__lbox { container-type: normal; display: grid; align-content: center; padding: 2.2cqi 2.6cqi; box-sizing: border-box; }
.ladder { display: grid; gap: 1.25cqi; }
.ladder div { display: flex; align-items: baseline; gap: 1.4cqi; white-space: nowrap; }
.ladder > div > span:not(.ico) { font: 500 0.75cqi/1 var(--mono); color: var(--graphite); }
.ladder .wm { margin: 0; }
.sz__when { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6cqi; }

/* ---------- 09 colour versions ---------- */
.cv { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 1.4cqi 1.2cqi; }
.cv > .fig { grid-column: span 2; }
.cv > .cv__a { grid-column: span 5; }
.cv__t { aspect-ratio: 1.55; display: grid; place-items: center; }
.cv__t .wm { font-size: 11cqi; }
.cv__t--s { aspect-ratio: 0.95; }
.cv__t--s .wm { font-size: 15cqi; }

/* ---------- 10 don'ts ---------- */
.dont { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.2cqi 1.6cqi; margin-top: 1cqi; }
.dont__t { aspect-ratio: 1.06; display: grid; place-items: center; }
.dont__t .wm, .dont__t > p { margin: 0; font-size: 12cqi; }
.strike { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; }
.strike path { fill: none; stroke: var(--signal); stroke-width: 0.9cqi; vector-effect: non-scaling-stroke; stroke-linecap: square; }
.dont__sym { display: flex; align-items: center; gap: 0.18em; font-size: 10cqi !important; }
.dont__sym svg { width: 0.9em; height: 0.9em; fill: var(--ink); color: var(--ink); flex: none; }
.dont__sym .wm { font-size: 1em !important; }
.dont__serif { font: 700 12cqi/1 Georgia, "Times New Roman", serif !important; letter-spacing: 0; }
.dont__stretch { font-size: 9cqi !important; transform: scaleX(1.45) skewX(-10deg); }
.dont__fx > span { color: transparent !important; -webkit-text-stroke: 0.3cqi var(--ink); text-shadow: 0.8cqi 0.8cqi 0 rgba(20, 19, 24, 0.3); }
.dont__photo { background: var(--ink); }
.dont__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; }
.dont__photo .wm { position: relative; }
.dont__off > span:nth-child(4) { color: #23B26B; }
.dont__off > span:nth-child(5) { color: #E8C21B; }
.dont__off > span:nth-child(6) { color: #18A6C9; }
.dont__off > span:nth-child(7) { color: #E040A0; }
.dont__off > span:nth-child(8) { color: #86C232; }
.dont__sig > span { color: var(--signal) !important; }
.dont__lock { display: flex; align-items: center; gap: 0.2em; font-size: 9cqi !important; }
.dont__lock .art { --aw: 30cqi; width: calc(var(--cols) * 0.6em); flex: none; }
.dont__lock .wm { font-size: 1em; }

/* ---------- 12 palette ---------- */
.pal { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.2cqi; margin-top: 0.6cqi; }
.pal__s {
  height: 25cqi; box-sizing: border-box; padding: 1.2cqi;
  display: flex; flex-direction: column; justify-content: space-between;
  background: var(--c); color: var(--t);
  outline: 0.08cqi solid var(--line); outline-offset: -0.08cqi;
}
.pal__s b { font: 800 1.5cqi/1 var(--mono); letter-spacing: -0.02em; }
.pal__s i { font: 700 1.5cqi/1 var(--mono); font-style: normal; letter-spacing: 0.1em; }
.pal__c p { margin-top: 0.9cqi !important; font: 400 0.88cqi/1.5 var(--mono); text-wrap: pretty; }
.pal__c p.tnum { display: grid; }
.pal__c code { color: var(--ink); font-weight: 700; }
.pal__c p.tnum span { color: var(--graphite); }
.pal2 { display: flex; flex-wrap: wrap; align-items: center; gap: 1cqi 3cqi; padding-top: 1.2cqi; border-top: 0.08cqi solid var(--line); font: 400 0.88cqi/1.4 var(--mono); }
.pal2 .lbl { margin: 0 !important; }
.pal2 i { display: inline-block; width: 1.4cqi; height: 1.4cqi; margin-right: 0.8ch; vertical-align: -0.3em; background: var(--c); outline: 0.08cqi solid var(--line); outline-offset: -0.08cqi; }
.pal2 code { color: var(--graphite); }

/* ---------- 13 depth ramp ---------- */
.dr { display: grid; gap: 1.2cqi; }
.dr__row { padding: 1.2cqi 1.4cqi 1.3cqi; }
.dr__row.g-paper { outline: 0.08cqi solid var(--line); outline-offset: -0.08cqi; }
.ramp { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); }
.ramp li { display: grid; gap: 0.35cqi; }
.ramp b { font: var(--w) 3.4cqi/1 var(--mono); color: var(--k); }
.ramp span { font: 500 0.75cqi/1 var(--mono); color: var(--graphite); }
.ramp code { font: 500 0.75cqi/1 var(--mono); color: var(--ink); }
.g-night .ramp span { color: var(--fog); }
.g-night .ramp code { color: var(--paper); }
.dr__demo { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1.2cqi; align-items: stretch; }
.dr__sph { container-type: inline-size; display: grid; place-items: center; padding: 1cqi 0; }
.dr__sph.g-paper { outline: 0.08cqi solid var(--line); outline-offset: -0.08cqi; }
.dr__sph .art { --aw: 88cqi; }
.dr__wp { align-self: center; padding-left: 0.6cqi; }
.dr__chips { display: flex; align-items: center; gap: 0.3cqi; margin-bottom: 0.7cqi !important; font: 500 0.8cqi/1 var(--mono); color: var(--graphite); }
.dr__chips i { width: 2.4cqi; height: 1.5cqi; background: var(--c); }
.dr__chips span { margin-left: 0.8cqi; }
.dr__chips:nth-of-type(3) { background: var(--ink); padding: 0.5cqi; width: max-content; }

/* ---------- 14 typography ---------- */
.ty-spec { margin-top: 2.4cqi !important; font: 800 1.2cqi/1 var(--mono); color: var(--graphite); }
.ty-ab { margin-top: 1cqi !important; font: 500 1.55cqi/1.4 var(--mono); }
.ty-w { list-style: none; margin: 1.6cqi 0 0; padding: 0; border-top: 0.08cqi solid var(--line); }
.ty-w li { padding: 0.5cqi 0; border-bottom: 0.08cqi solid var(--line); font: var(--w) 1.5cqi/1.3 var(--mono); letter-spacing: -0.02em; }
.ty-w span { display: inline-block; width: 6ch; font: 500 0.75cqi/1 var(--mono); color: var(--graphite); letter-spacing: 0; vertical-align: 0.2em; }
.ty-r { border-top: 0.08cqi solid var(--line); }
.ty-row { display: grid; grid-template-columns: 13cqi minmax(0, 1fr); gap: 1.6cqi; align-items: baseline; padding: 1.1cqi 0; border-bottom: 0.08cqi solid var(--line); }
.ty-row .lbl { margin: 0 !important; font-size: 0.75cqi; }
.ty-d { font: 800 3.1cqi/1 var(--mono); letter-spacing: -0.035em; text-wrap: balance; }
.ty-t { font: 700 1.9cqi/1.15 var(--mono); letter-spacing: -0.02em; }
.ty-s { font: 700 1.45cqi/1.3 var(--mono); letter-spacing: -0.02em; max-width: 34ch; }
.ty-b { font: 400 1cqi/1.6 var(--mono); max-width: 62ch; }
.ty-l2 { font: 500 0.92cqi/1.6 var(--mono); }
.ty-l2 time { color: var(--graphite); }
.ty-lb { font: 500 0.85cqi/1.4 var(--mono); }
.ty-rules { list-style: none; margin: 1.4cqi 0 0; padding: 0; font: 400 0.92cqi/1.7 var(--mono); }
.ty-rules b { font-weight: 800; }

/* ---------- 15 character grid ---------- */
.cg__box { width: 40cqi; aspect-ratio: 0.8; display: grid; place-items: center; }
.cg__art { --aw: 86cqi; outline: 0.07em solid color-mix(in srgb, var(--cobalt) 26%, transparent); }
.cg .corner { font-size: 2.2cqi; }
.cg__tbl { margin-top: 2.4cqi; }

/* ---------- 17 pulse graphic ---------- */
.pk { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.6cqi; margin-top: 0.6cqi; }
.pk__t { aspect-ratio: 1; display: grid; place-items: center; }
.pk__t > .art { --aw: 88cqi; width: calc(var(--cols) * 0.6em); }
.pk__t > .art[data-kind="broadcast"] { --aw: 72cqi; }
.pk__out { display: block; }
.pk__out .wm { position: absolute; left: 7cqi; top: 50%; transform: translateY(-50%); font-size: 9cqi; }
.pk__out > .art { position: absolute; left: calc(7cqi + 9cqi * 4.84); right: 0; top: 18%; bottom: 18%; width: auto; height: auto; font-size: 1.9cqi; }
.pk__line { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; place-items: initial; padding: 0 9%; }
.pk__line > p { font: 600 5.2cqi/1.7 var(--mono); }
.pk-spec { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.6cqi; margin-top: 1cqi; padding-top: 1.2cqi; border-top: 0.08cqi solid var(--line); font: 400 0.92cqi/1.55 var(--mono); }
.pk-spec i { font-style: normal; font-weight: 700; }
.pk-spec b { font-weight: 800; }
/* export and download keys: browser only */
.export { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6cqi; margin-top: 0.7cqi !important; font: 500 0.78cqi/1 var(--mono); color: var(--graphite); }
.export span { margin-right: 0.4cqi; }
.export button, .export a {
  font: 700 0.78cqi/1 var(--mono); color: var(--ink); background: transparent; cursor: pointer; text-decoration: none;
  border: 0.08cqi solid var(--ink); border-radius: 0; padding: 0.45cqi 0.9cqi;
  transition: background-color 200ms var(--ease), color 200ms var(--ease);
}
.export button:hover, .export a:hover { background: var(--ink); color: var(--paper); }
.export button:disabled { cursor: progress; opacity: 0.6; }
.export--set span { min-width: 5ch; }
.export--set + .export--set { margin-top: 0.5cqi !important; }
.export--all { margin-top: 2.2cqi !important; }
.export__n { margin-top: 0.7cqi !important; font: 400 0.78cqi/1.45 var(--mono); color: var(--graphite); text-wrap: pretty; }
.export__n code { color: var(--graphite); }

/* ---------- icons ---------- */
.ic { display: grid; gap: 1.6cqi; }
.ic__set { list-style: none; margin: 0; padding: 1.6cqi 1.2cqi; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 1.4cqi 0.6cqi; outline: 0.08cqi solid var(--line); outline-offset: -0.08cqi; }
.ic__set li { display: grid; justify-items: center; gap: 0.35cqi; min-width: 0; }
.ic__set i { display: block; width: 3cqi; height: 3cqi; margin-bottom: 0.4cqi; }
.ic__set b { font: 700 0.85cqi/1.2 var(--mono); }
.ic__set code { font: 500 0.66cqi/1.2 var(--mono); color: var(--graphite); }
.ic__use { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6cqi; }
.ic__use .box { container-type: normal; padding: 1.2cqi 1.6cqi; }
.ic__use i { display: block; width: 1.2em; height: 1.2em; flex: none; }
.ic__prog p { display: grid; grid-template-columns: 6ch 1.2em minmax(0, 1fr); gap: 0 1.2ch; align-items: center; font: 600 1.05cqi/2.1 var(--mono); }
.ic__prog time { color: var(--graphite); font-weight: 500; }
.ic__prog b { font-weight: 800; }
.ic__sign p { display: flex; justify-content: space-between; align-items: center; font: 800 1.05cqi/2.1 var(--mono); }
.ic__sign i { color: var(--apricot); }
.ic__line p { display: flex; align-items: center; gap: 0.6em; font: 500 1.05cqi/2.1 var(--mono); }
.ic__tbl { font-size: 0.8cqi; }
.ic__tbl td:last-child { color: var(--graphite); }

/* ---------- 18 event shapes ---------- */
.shp { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4cqi 1.4cqi; padding: 2cqi; }
.shp__c { container-type: inline-size; min-width: 0; }
.shp__c .art { --aw: 100cqi; }
.shp__k { margin-top: 0.6cqi !important; font: 700 0.9cqi/1.2 var(--mono); }
.shp__m { margin-top: 0.3cqi !important; font: 400 0.7cqi/1.4 var(--mono); color: var(--fog); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.shp-col { display: grid; gap: 1.4cqi; }
.lab { background: var(--ink); color: var(--paper); padding: 1.3cqi 1.8cqi; font: 500 0.82cqi/1.8 var(--mono); }
.lab__h { margin-bottom: 0.3cqi !important; }
.lab__h b { font-weight: 800; }
.lab code, .lab .pr { color: var(--apricot); }
.lab i { font-style: normal; color: var(--fog); margin-left: 1.4ch; }

/* ---------- speaker photos ----------
   .ph-full fills its box (object-fit: cover, --op sets the focus); .ph-cut is a cut-out that
   stands on the box's bottom edge: --x is its centre, --w its width, --b how far the edge cuts
   into it (negative: the edge crops the body so two speakers can share one head size). */
.ph-full { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--op, 50% 30%); display: block; }
.ph-cut { position: absolute; bottom: var(--b, 0); left: var(--x, 50%); width: var(--w, 90%); height: auto; max-width: none; transform: translateX(-50%); display: block; z-index: 1; }
.ph-r { display: grid; gap: 1.6cqi; }
.ph3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6cqi; }
.ph-box { aspect-ratio: 4 / 5; }
.ph-box.g-paper, .ph-box:not([class*="g-"]) { outline: 0.08cqi solid var(--line); outline-offset: -0.08cqi; }
/* guides drawn over the photo: dashed cobalt (apricot on ink) with a chip label */
.gd { position: absolute; left: 0; right: 0; top: var(--y); z-index: 3; border-top: 0.6cqi dashed var(--cobalt); }
.gd i { position: absolute; left: 4cqi; top: 1.6cqi; padding: 0.8cqi 1.6cqi; background: var(--paper); color: var(--cobalt); font: 600 3.8cqi/1 var(--mono); font-style: normal; white-space: nowrap; }
.gd--b { top: auto; bottom: 0; border-top: 0; border-bottom: 1.4cqi solid var(--cobalt); }
.gd--b i { top: auto; bottom: 3cqi; }
.g-night .gd, .gd--n { border-color: var(--apricot); }
.g-night .gd i { background: var(--ink); color: var(--apricot); }
.ph-dir__t { position: absolute; z-index: 2; right: 6%; top: 34%; width: 38%; font: 800 7cqi/1.02 var(--mono); letter-spacing: -0.035em; }
.ph-dir__a { position: absolute; z-index: 2; right: 30%; top: 22%; width: 8cqi; height: 8cqi; color: var(--apricot); }
.ph-dir__a i, .ph-dir__a svg { display: block; width: 100%; height: 100%; }
.ph-tbl { font-size: 0.85cqi; }
.ph-tbl td:first-child { width: 9ch; }
.ph-note { font: 400 0.85cqi/1.5 var(--mono); color: var(--graphite); max-width: 90ch; }

/* examples */
.xp-poster p, .xp-story p, .xp-head p, .xp-post p, .xp-card p { margin: 0; }
.xp-poster .corner { top: 4.4cqi; font-size: 1.8cqi; }
.xp-poster .corner.tl { left: 6cqi; font-weight: 800; } .xp-poster .corner.tr { right: 6cqi; }
.xp-poster--r .xp-poster__who, .xp-poster--r .xp-poster__foot { left: auto; right: 6cqi; text-align: right; }
.xp-poster__t { position: absolute; z-index: 2; left: 6cqi; right: 6cqi; top: 13cqi; font: 800 9.6cqi/0.98 var(--mono); letter-spacing: -0.035em; text-wrap: balance; }
.xp-poster__who { position: absolute; z-index: 2; left: 6cqi; top: 54cqi; font: 500 2.4cqi/1.4 var(--mono); }
.xp-poster__who b { font-weight: 800; }
.xp-poster__foot { position: absolute; z-index: 2; left: 6cqi; bottom: 5cqi; font: 600 2.1cqi/1.45 var(--mono); }
.xp-story__ph { position: absolute; left: 0; right: 0; top: 0; height: 54%; overflow: hidden; }
.xp-story__c { position: absolute; left: 7cqi; right: 7cqi; top: 54%; bottom: 7cqi; display: flex; flex-direction: column; padding-top: 6cqi; }
.xp-story__c .wm { font-size: 5cqi; }
.xp-story__t { margin-top: 5cqi !important; font: 800 9cqi/0.98 var(--mono); letter-spacing: -0.035em; }
.xp-story__who { margin-top: 4cqi !important; font: 500 3.6cqi/1.4 var(--mono); }
.xp-story__who b { font-weight: 800; }
.xp-story__when { font: 500 3.4cqi/1.4 var(--mono); color: var(--graphite); }
.xp-story__cta { margin-top: auto !important; padding-top: 3.4cqi; border-top: 1px solid var(--line); font: 700 3.8cqi/1 var(--mono); }
.xp-story__cta .pulse--line { margin-left: 1ch; }
.xp-r { display: grid; gap: 1.6cqi; }
.xp-r2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6cqi; }
.xp-head__c { position: absolute; z-index: 2; left: 5cqi; top: 5cqi; bottom: 5cqi; width: 40cqi; display: flex; flex-direction: column; }
.xp-head__c .wm { font-size: 3cqi; }
.xp-head__t { margin-top: auto !important; font: 800 6.4cqi/1 var(--mono); letter-spacing: -0.035em; }
.xp-head__l { margin-top: 1.8cqi !important; font: 500 1.75cqi/1.4 var(--mono); }
.xp-head__l b { font-weight: 800; }
.xp-head__m { margin-top: 2.2cqi !important; font: 500 1.7cqi/1.4 var(--mono); color: var(--graphite); }
.xp-post .ph-cut { z-index: 1; }
.xp-post__no { position: absolute; z-index: 2; right: 6cqi; top: 6cqi; width: 46cqi; }
.xp-post__no .wm { font-size: 5cqi; }
.xp-post__t { position: absolute; z-index: 2; right: 6cqi; top: 18cqi; width: 46cqi; font: 800 8cqi/1 var(--mono); letter-spacing: -0.035em; }
.xp-post__m { position: absolute; z-index: 2; right: 6cqi; bottom: 6cqi; width: 38cqi; font: 500 3.4cqi/1.45 var(--mono); }
.xp-post__m b { font-weight: 800; }
.xp-card { aspect-ratio: 1 / 1.1; padding: 6%; }
.xp-card__ph { position: relative; aspect-ratio: 5 / 4; overflow: hidden; }
.xp-card__n { margin-top: 5cqi !important; font: 800 6.4cqi/1.05 var(--mono); letter-spacing: -0.03em; }
.xp-card__s { margin-top: 1.6cqi !important; font: 500 3.4cqi/1.35 var(--mono); color: var(--cobalt); overflow-wrap: anywhere; }
.xp-card__m { margin-top: 2.4cqi !important; display: flex; align-items: center; gap: 1ch; font: 500 3.6cqi/1 var(--mono); color: var(--graphite); }
.xp-card__m i { display: block; width: 1.2em; height: 1.2em; }

/* photo don'ts (sample portraits only) */
.dont__t.pd { overflow: hidden; aspect-ratio: 1.14; }
.pd__circle { width: 54%; aspect-ratio: 1; border-radius: 50%; object-fit: cover; object-position: 50% 25%; }
.pd__over { position: absolute; z-index: 2; left: 8%; right: 8%; top: 22%; margin: 0; font: 800 12cqi/1 var(--mono) !important; letter-spacing: -0.035em; color: var(--ink); }
.pd__tint::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, var(--cobalt), var(--apricot)); mix-blend-mode: color; }
.pd__shadow { filter: drop-shadow(0 0 0 #fff) drop-shadow(1.2cqi 0 0 #fff) drop-shadow(-1.2cqi 0 0 #fff) drop-shadow(0 -1.2cqi 0 #fff) drop-shadow(3cqi 3cqi 4cqi rgba(0, 0, 0, 0.55)); }
.pd__stretch { transform: translateX(-50%) scaleX(1.7); }

/* ---------- 21 poster anatomy ---------- */
.legend { list-style: none; margin: 2.2cqi 0 1cqi; padding: 0; counter-reset: k; font: 400 0.95cqi/1.5 var(--mono); }
.legend li { counter-increment: k; position: relative; padding: 0.7cqi 0 0.7cqi 3cqi; border-bottom: 0.08cqi solid var(--line); }
.legend li::before { content: counter(k); position: absolute; left: 0; top: 0.75cqi; width: 1.9cqi; height: 1.9cqi; display: grid; place-items: center; background: var(--ink); color: var(--paper); font: 700 0.95cqi/1 var(--mono); }
.legend b { font-weight: 800; }
.an__wrap .poster { position: relative; }
.mk {
  position: absolute; left: var(--x); top: var(--y); z-index: 6;
  width: 4.6cqi; height: 4.6cqi; display: grid; place-items: center;
  background: var(--ink); color: var(--paper); font: 700 2.6cqi/1 var(--mono);
  outline: 0.6cqi solid var(--paper);
}

/* ---------- avatar ---------- */
.av { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.2cqi 1.6cqi; align-content: start; }
.av__t img { display: block; width: 100%; height: 100%; }
.av__tbl { grid-column: 1 / -1; }

/* ---------- icon (the ripple) ---------- */
.ic { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr); gap: 2.2cqi 1.6cqi; align-content: start; }
.ic__con svg { display: block; width: 100%; height: auto; }
.ic__axis { fill: none; stroke: var(--cobalt); stroke-width: 0.3; stroke-dasharray: 1.2 1.2; }
.ic__pxb { display: grid; place-items: center; }
.ic__pxw { position: relative; width: 84%; aspect-ratio: 1; }
.ic__pxw img, .ic__pxw svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ic__pxw img, .ic__lad img { image-rendering: pixelated; }
.ic__pxw path { fill: none; stroke: color-mix(in srgb, var(--fog) 55%, transparent); stroke-width: 0.03; }
/* the ladder is measured against the page (1 cqi = 14 px on a 1400 px page), so its box is not a size container */
.ic__lad .box { container-type: normal; display: flex; align-items: flex-end; gap: 2.6cqi; padding: 2.4cqi 2.6cqi 2cqi; }
.ic__lad .box > div { display: grid; justify-items: start; gap: 0.9cqi; }
.ic__lad img { display: block; width: calc(var(--px) * 1cqi / 14); height: auto; }
.ic__lad .ic__ios { border-radius: 22.37%; }
.ic__lad span { font: 500 0.75cqi/1 var(--mono); color: var(--graphite); white-space: nowrap; }
.ic__tbl { align-self: start; }
.ic__tbl td:first-child { font-weight: 500; color: var(--cobalt); }
.ic__tbl code { white-space: nowrap; }

.icr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.2cqi 1.6cqi; align-content: start; }
.icr__t { display: grid; place-items: center; }
.icr__t > img { display: block; width: 74%; }
.icr__crop img, .icr__crop svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.icr__out { fill: color-mix(in srgb, var(--desk) 82%, transparent); fill-rule: evenodd; }
.icr__ring { fill: none; stroke: var(--apricot); stroke-width: 0.35; stroke-dasharray: 1.4 1; }
.icr__safe { fill: none; stroke: var(--fog); stroke-width: 0.3; stroke-dasharray: 0.5 0.8; }
.icr__print { grid-column: span 2; }
.icr__print .box { display: flex; align-items: center; justify-content: center; gap: 9cqi; }
.icr__print .corner { font-size: 2.2cqi; color: var(--graphite); }
.icr__stk, .icr__pin { display: grid; place-items: center; border-radius: 50%; }
.icr__stk { width: 38cqi; aspect-ratio: 1; background: var(--card); }
.icr__stk img { width: 92.5%; display: block; }
.icr__pin { width: 23.75cqi; aspect-ratio: 1; }
.icr__pin img { width: 100%; display: block; }

/* ---------- 23 on the night ---------- */
.nt__b { grid-row: span 2; }

/* ---------- 24 merch ---------- */
.me__t { grid-row: span 2; }
.me__pins { aspect-ratio: 1 / 2.05; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.me__pins .pin + .pin { margin-top: 12%; }
.me__pins .pin { width: 62cqi; border-width: 3.4cqi; }
/* the Peperbus icon, square: the pin is masked from it later. On the icon's grid (tools/peperbus):
   33 cells across (one cell = 62cqi / 37, so the square spans the other pins' face), the 21-cell
   tower centred and standing on the bottom edge */
.me__pins .pin--tower { width: calc(62cqi * 33 / 37); border: 0; border-radius: 0; align-content: end; }
.me__pins .pin--tower i { display: block; width: calc(62cqi * 21 / 37); color: var(--apricot); }
.me__pins .pin--tower svg { display: block; width: 100%; height: auto; }
.me__pins .pin--pulse .art { --aw: 34cqi; width: calc(var(--cols) * 0.6em); }
.me__pins .pin--shape .art { --aw: 42cqi; }

/* ---------- 26 voice ---------- */
.vrules { list-style: none; margin: 2.2cqi 0 0; padding: 0; border-top: 0.08cqi solid var(--line); font: 400 0.95cqi/1.55 var(--mono); }
.vrules li { padding: 0.9cqi 0; border-bottom: 0.08cqi solid var(--line); }
.vrules b { font-weight: 800; }
.vrules .ex { display: block; margin-top: 0.4cqi; font: 700 1.2cqi/1.3 var(--mono); letter-spacing: -0.01em; }
.diff { background: var(--ink); color: var(--paper); padding: 2.4cqi 2.8cqi; font: 500 1.02cqi/1.8 var(--mono); }
.diff .pr { color: var(--apricot); }
.diff__cmd { margin-bottom: 1cqi !important; font-weight: 700; }
.diff__h { margin-top: 1cqi; color: #8E86E0; }
.diff__m { color: var(--fog); text-decoration: line-through; text-decoration-thickness: 0.08cqi; }
.diff__m::before { content: "- "; text-decoration: none; display: inline-block; white-space: pre; }
.diff__p { font-weight: 700; }
.diff__p::before { content: "+ "; color: var(--apricot); }

/* ---------- 27 partners ---------- */
.pa { display: grid; grid-template-columns: 1fr 1fr; gap: 2.2cqi 1.6cqi; }
.pa > .fig:first-child { grid-column: 1 / -1; }
.pa__svg { display: block; width: 100%; height: auto; }
.pa__rule { stroke: var(--ink); stroke-width: 0.3; }
.pa__lbl { font: 500 4.4px var(--mono); fill: var(--graphite); }
.pa__logo { fill: none; stroke: var(--graphite); stroke-width: 0.3; stroke-dasharray: 1.2 1.2; }
.pa__ph { font: 500 3.2px var(--mono); fill: var(--graphite); }
.pa__foot { position: absolute; left: 5cqi; right: 5cqi; bottom: 6cqi; display: flex; align-items: center; gap: 3cqi; font: 500 2.4cqi/1 var(--mono); }
.pa__foot .wm { font-size: 6cqi; }
.pa__meta { flex: 1; color: var(--graphite); white-space: nowrap; }
.pa__slide .pa__meta { color: var(--fog); }
.pa__with { display: flex; align-items: center; gap: 2cqi; padding-left: 3cqi; border-left: 0.3cqi solid var(--line); color: var(--graphite); }
.pa__slide .pa__with { color: var(--fog); }
.pa__ph-box { display: inline-grid; place-items: center; height: 7.2cqi; width: 15cqi; border: 0.3cqi dashed currentColor; font-size: 1.7cqi; }
.pa .corner { font-size: 2.4cqi; }

/* ---------- 28 checklist ---------- */
.steps { list-style: none; margin: 2.2cqi 0 0; padding: 0; border-top: 0.08cqi solid var(--line); }
.steps li { display: grid; grid-template-columns: 4.6cqi minmax(0, 1fr); padding: 1.1cqi 0; border-bottom: 0.08cqi solid var(--line); }
.steps__b { font: 700 1.25cqi/1.2 var(--mono); color: var(--cobalt); }
.steps b { font: 800 1.25cqi/1.2 var(--mono); letter-spacing: -0.02em; }
.steps p { margin-top: 0.4cqi !important; font: 400 0.95cqi/1.55 var(--mono); max-width: 70ch; }

/* ---------- 29 back cover ---------- */
.back__pulse { position: absolute; right: 4.6cqi; top: 6cqi; --aw: 38cqi; width: calc(var(--cols) * 0.6em); }
.back__made { position: absolute; left: 4.6cqi; top: 5.4cqi; font: 800 4.2cqi/1 var(--mono); letter-spacing: -0.035em; }
.back__bottom { position: absolute; left: 4.6cqi; right: 4.6cqi; bottom: 5.4cqi; display: flex; justify-content: space-between; align-items: flex-end; gap: 4cqi; }
.back__bottom .wm { font-size: 10cqi; line-height: 0.8; }
.back__c { display: grid; grid-template-columns: 8ch minmax(0, 1fr); gap: 0.5cqi 1ch; margin: 0; font: 400 0.95cqi/1.4 var(--mono); }
.back__c dt { color: var(--fog); }
.back__c dd { margin: 0; }

/* ---------- copied artifacts inside the book ----------
   In the concept pages every artifact's figure was a size container, so a box's own padding in cqi
   meant "of the box". Here figures are not containers, so box-level spacing is restated in %
   of the box's width: the same numbers, resolved against the right thing. */
.p-prog { padding: 11% 6% 5%; }
.p-night { padding: 8% 6% 4.6%; }
.s-post { padding: 6%; }
.s-story { padding: 7% 6%; }
.s-event { padding: 5%; column-gap: 3.3%; }
.slide { padding: 5% 6%; }
.sign { padding: 6% 8%; }

/* ---------- browser controls ---------- */
/* a slim toolbar in the desk margin above the page stack: in flow, so it never covers a page */
.book-ctl {
  box-sizing: border-box; width: min(100% - 48px, 1400px); margin: 20px auto 0;
  display: flex; align-items: center; gap: 16px;
  font: 500 12px/1 var(--mono); color: var(--graphite);
}
.book-ctl__t { margin-right: auto; color: var(--ink); font-weight: 700; }
.key {
  font: 700 13px/1 var(--mono); color: var(--ink); background: transparent;
  border: 1px solid var(--ink); border-radius: 0; padding: 0 14px; min-height: 40px; cursor: pointer;
  transition: background-color 200ms var(--ease), color 200ms var(--ease);
}
.key:hover { background: var(--ink); color: var(--paper); }
.key:disabled { cursor: progress; opacity: 0.6; }

@media (max-width: 700px) {
  .book { gap: 16px; padding: 12px 12px 32px; }
  .book-ctl { width: calc(100% - 24px); margin-top: 12px; flex-wrap: wrap; gap: 10px 14px; }
  .book-ctl__t { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .key { transition: none; }
}

/* ---------- print: one page per A4 landscape sheet, backgrounds on, every animation at its still ---------- */
@page { size: A4 landscape; margin: 0; }
@media print {
  html, body { background: none; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .book-ctl, .export { display: none; }
  .export__n { margin-top: 2.2cqi !important; }
  .book { display: block; padding: 0; }
  .page { width: 297mm; height: 210mm; aspect-ratio: auto; break-after: page; break-inside: avoid; }
  .page:last-child { break-after: auto; }
}
