/*
 * RNA's page is a magazine, printed and laid on Xtalsoft's night.
 *
 * - The ground is the site's own (ground.css): dithered pool, tape grain, haze and scanlines lie
 *   under the pages, never over them. The pages are paper, with only a faint tooth.
 * - The paper is printed in black and one spot ink, a violet cut from the homepage's light. The
 *   eight splice colours appear only as small marks: a dot beside its number, a badge chip, the
 *   tape. They are RNA's identity colours in the module's order, and the tokens are the app's
 *   dark theme (RNA's visual design plan, 4.2 and 4.3). Accent, the app's cyan, is kept for the
 *   download: its outline, its arrow and its version.
 * - Type is the house's: Bricolage Grotesque for names and headlines, the system sans for labels,
 *   and Georgia (one of 1996's core fonts for the web) for the article's text.
 */
:root {
  color-scheme: dark;
  /* The app's own ground, kept for the pictures of the app. */
  --bg: #0c0f11;
  /* The homepage's ground and light: the page sits in its night. */
  --night: #020205;
  --glow: 133, 143, 250;
  --text: #f0f2f4;
  --text-2: #b3b8be;
  --text-3: #8d9399;
  --accent: #54d0ec;
  --on-accent: #04191e;
  --id-1: #356ddc; --id-2: #84f1c4; --id-3: #3dc74e; --id-4: #ffe64b;
  --id-5: #fd9330; --id-6: #e43c3e; --id-7: #f89dc9; --id-8: #f7f7f7;

  --paper: #ebe4d5;
  --ink: #1a171d;
  --ink-2: #4b4550;
  /* The spot ink: violet, the homepage's own light and the glow on the neon initials. The owner
     chose it on 2026-11-27 over a teal cut from RNA's cyan (#08718f) and variant 48's rose
     (#9c4257). --spot-light is the same ink for dark ground (the marker on a dark capture). */
  --spot: #4a3fc0;
  --spot-rgb: 74, 63, 192;
  --spot-light: #aaa6ff;

  --display: "Bricolage Grotesque", system-ui, -apple-system, sans-serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
  --edge: clamp(20px, 2.6vw, 40px);
  /* The sheet's width. At 1160 the conversation on page 2 has room for two columns of text; the
     owner chose it on 2026-11-27 over 1080, which set it in one. */
  --sheet: 1160px;
  --page-pad: clamp(20px, 4.4vw, 56px);
}
/* The house face, opened up to its heaviest weight for headlines. */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-grotesque-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body { margin: 0; background: var(--night); color: var(--text); font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button { font: inherit; color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: #9a5cff; color: #fff; }
[hidden] { display: none !important; }
code { font: .9em/1 var(--mono); }
.skip { position: fixed; top: -80px; left: var(--edge); z-index: 10; padding: 10px 14px; border-radius: 6px; background: var(--text); color: var(--night); }
.skip:focus { top: 12px; }

/* Xtalsoft's name, at the top left where the homepage's header sits and again at the foot: the way
   back to the homepage. */
.masthead { padding: 26px var(--edge) 0; }
.brand { color: #f2f0ec; font: 500 21px/1.2 var(--display); letter-spacing: -.045em; text-decoration: none; }
.brand:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }

.label { margin: 0; color: var(--text-3); font: 500 11px/1.5 var(--sans); letter-spacing: .08em; text-transform: uppercase; }

/* ---- The magazine: pages lying on the night, each its own sheet. ---- */
.mag { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(36px, 5vw, 64px); width: min(var(--sheet), 100% - 2 * var(--edge)); margin: clamp(28px, 4vw, 48px) auto 0; }
.page { position: relative; overflow: hidden; box-shadow: 0 0 0 1px rgba(0, 0, 0, .6), 0 30px 80px -24px rgba(0, 0, 0, .9), 0 0 120px rgba(var(--glow), .07); }

/* Paper: cream stock with a faint tooth, lit a little from the top left by the room's blue light. */
.paper {
  padding: 0 var(--page-pad) clamp(36px, 5vw, 60px);
  background-color: var(--paper);
  background-image:
    radial-gradient(1100px 700px at 0 0, rgba(var(--glow), .09), transparent 70%),
    linear-gradient(170deg, transparent 55%, rgba(60, 40, 20, .05)),
    url("/rna/paper.png");
  background-size: auto, auto, 160px 160px;
  color: var(--ink);
  font: 17px/1.62 var(--serif);
}
.paper ::selection { background: rgba(var(--spot-rgb), .25); color: var(--ink); }
.paper a:focus-visible, .paper button:focus-visible { outline-color: var(--spot); }
.paper .label { color: var(--ink-2); }

/* A running head: the section on the left, the page's number on the right, between two rules. */
.running { display: flex; justify-content: space-between; margin: 0 0 clamp(28px, 4vw, 44px); padding: 22px 0 8px; border-bottom: 1px solid var(--ink); box-shadow: 0 3px 0 -2px var(--paper), 0 4px 0 -1px var(--ink); font: 600 11px/1.5 var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.running span:last-child { font-variant-numeric: tabular-nums; }

.kicker { margin: 0 0 10px; color: var(--spot); font: 700 11px/1.5 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.kicker a { text-decoration: none; }
.kicker a:hover { text-decoration: underline; }
/* Headlines: Bricolage at its heaviest, in capitals; the turn of the line is Georgia's italic, in the spot ink. */
.hed { margin: 0 0 clamp(22px, 3vw, 34px); font: 800 clamp(40px, 5.6vw, 74px)/.9 var(--display); letter-spacing: -.035em; text-transform: uppercase; text-wrap: balance; }
.hed em { display: inline-block; color: var(--spot); font: italic 400 .9em/1 var(--serif); letter-spacing: -.025em; text-transform: none; }
/* The standfirst: /rna/'s own opening, with a drop cap in the spot ink. */
.standfirst { margin: 0 0 26px; padding-bottom: 22px; border-bottom: 1px solid rgba(26, 23, 29, .3); font-size: 1.16em; line-height: 1.5; }
.standfirst::first-letter { float: left; margin: .06em .09em 0 -.02em; color: var(--spot); font: 800 3.5em/.74 var(--display); }
.jump { margin: 22px 0 0; font: 700 11px/1.5 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.jump a { color: var(--spot); text-decoration: none; }
.jump a::after { content: " →"; }
.jump a:hover { text-decoration: underline; }

/* ---- Page 1: the cover ---- */
.cover { display: grid; grid-template-rows: 1fr auto; min-height: min(770px, 62vw); background: #150f1c; color: #f4f0e8; isolation: isolate; }
.cover-photo { position: absolute; z-index: -2; inset: 0; display: block; overflow: hidden; }
/* The cover and the desk are shown as a 256-colour screen would have shown them: the 216 colours
   a browser kept, by the homepage's ordered dither (tools/art/magazine.py). A picture is one image pixel
   to a cell. It is shown at exactly twice that size, never scaled to fit, so a cell is two CSS
   pixels as the homepage's are; the cover crops it from the left instead. */
.cover-photo img { position: absolute; left: calc(100% - 1320px); top: calc((100% - 880px) / 2); width: 1320px; height: 880px; max-width: none; object-fit: fill; image-rendering: pixelated; }
/* The left of the picture is dark room already; a wash makes it a place to set type. */
.cover::before { content: ""; position: absolute; z-index: -1; inset: 0; background: radial-gradient(ellipse at 0 0, rgba(var(--glow), .22), transparent 45%), linear-gradient(90deg, rgba(21, 15, 28, .92) 0, rgba(21, 15, 28, .6) 30%, rgba(21, 15, 28, 0) 56%); }
.cover-copy { align-self: center; width: min(100%, 560px); padding: 34px 0 22px var(--page-pad); }

/* The acrostic: the initials are RNA's neon, the rest is ink. Together they say the name once. */
.title { margin: 0 0 18px; color: #f6f2ea; font: 600 clamp(48px, 7.2vw, 92px)/.9 var(--display); letter-spacing: -.035em; text-transform: uppercase; text-shadow: 0 2px 24px rgba(10, 6, 16, .55); }
.title .line { display: block; }
/* The face's letters are built from overlapping shapes, and an outline drawn over a see-through
   fill shows every one of them: the A's bar came out as a box. So the fill is solid, the dim
   violet the see-through one made on the cover, and it is painted over the outline's inner half. */
.title b { font-weight: 600; color: rgba(var(--glow), .2); -webkit-text-fill-color: #2f2b55; -webkit-text-stroke: .04em #eef0ff; paint-order: stroke fill; letter-spacing: -.02em; text-shadow: 0 0 .18em rgba(var(--glow), .45); }
/* Without an outline to draw, or when the reader's own colours are forced, the initials are plain ink. */
@supports not (-webkit-text-stroke: 1px #fff) { .title b { color: #dfe2f6; -webkit-text-fill-color: #dfe2f6; } }
/* With the haze, a tired tape's colour ghosts: red a hair to the left, cyan a hair to the right. */
.ground-haze .title b { text-shadow: -.008em 0 rgba(255, 70, 110, .12), .008em 0 rgba(70, 220, 255, .12), 0 0 .18em rgba(var(--glow), .45); }
@media (forced-colors: active) { .title b, .ground-haze .title b { color: CanvasText; -webkit-text-fill-color: CanvasText; -webkit-text-stroke: 0; text-shadow: none; } }

/* The tape, as on /rna/: eight pads of uneven length in the module's order, each one sounds. */
.tape { display: flex; gap: 3px; width: min(100%, 470px); }
.splice { position: relative; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; }
.splice::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; border-radius: 1px; background: var(--c); transition: height .12s ease-out, box-shadow .12s ease-out; }
.splice:hover::before, .splice:focus-visible::before, .splice[data-playing]::before { height: 12px; }
.splice[data-playing]::before { box-shadow: 0 0 16px color-mix(in srgb, var(--c) 70%, transparent); }
.splice[data-playing]::after { content: ""; position: absolute; top: -3px; left: 0; width: 2px; height: 15px; background: var(--text); animation: playhead var(--seconds, 1s) linear forwards; }
@keyframes playhead { to { left: calc(100% - 2px); } }
.splice:nth-child(1) { flex: 66; --c: var(--id-1); } .splice:nth-child(2) { flex: 24; --c: var(--id-2); }
.splice:nth-child(3) { flex: 46; --c: var(--id-3); } .splice:nth-child(4) { flex: 62; --c: var(--id-4); }
.splice:nth-child(5) { flex: 20; --c: var(--id-5); } .splice:nth-child(6) { flex: 50; --c: var(--id-6); }
.splice:nth-child(7) { flex: 30; --c: var(--id-7); } .splice:nth-child(8) { flex: 34; --c: var(--id-8); }
.tape-note { width: min(100%, 470px); margin: 0; text-align: right; }
.tape-note .label { color: #a9a3b8; }

.deck { margin: 10px 0 20px; color: #f1ecf6; font: 600 clamp(20px, 2.2vw, 27px)/1.15 var(--display); letter-spacing: -.03em; }

/* The download: a quiet panel with RNA's accent on its outline, its arrow and its version, as the
   page it replaced had it. The owner found the filled, shadowed button loud (2026-11-28). */

.installer { display: grid; grid-template-columns: 32px minmax(0, 1fr); align-items: start; gap: 0 14px; width: fit-content; max-width: 100%; padding: 12px 20px 13px 14px; border: 1px solid #456b74; border-radius: 4px; background: #102025; color: #b3b8be; text-decoration: none; transition: border-color .12s ease-out, background-color .12s ease-out; }

/* The icon stands beside every line of the control, however many the build leaves it with. */
.installer img { grid-row: 1 / span 4; width: 32px; height: 32px; margin-top: 2px; }
.installer > span { grid-column: 2; }
.installer-title { color: #cef3f8; font: 600 18px/1.35 var(--display); letter-spacing: -.01em; }
.installer-title::after { content: "  ↓" / ""; color: var(--accent); }
.installer-version, .installer-detail { font: 500 12.5px/1.4 var(--sans); font-variant-numeric: tabular-nums; }
.installer-version { color: var(--accent); }
.installer[href]:hover { border-color: var(--accent); background: #162b31; }
/* Until the build selects an installer the control is a button that does nothing, and says so
   beneath itself: unlit, with no shadow to press. */
button.installer { font: inherit; text-align: left; }
.installer:disabled { border-color: #456b74; background: #102025; color: #b3b8be; -webkit-text-fill-color: currentColor; box-shadow: none; cursor: default; opacity: 1; }
.installer:disabled .installer-title { color: #cef3f8; }
.installer:disabled .installer-title::after { content: none; }
.get .facts { margin: 12px 0 0; color: #ddd7e6; }
.installer:focus-visible { outline-color: #fff; }
.facts { margin: 18px 0 0; max-width: 27rem; color: #c9c2d6; font: 13px/1.5 var(--sans); }

/* Cover lines that are links: each goes to the page it names. */
.cover-lines { display: flex; flex-wrap: wrap; gap: 6px 26px; padding: 13px var(--page-pad) 14px; background: rgba(8, 6, 12, .78); border-top: 1px solid rgba(255, 255, 255, .12); font: 600 12px/1.4 var(--sans); letter-spacing: .06em; text-transform: uppercase; }
.cover-lines a { color: #e9e4f2; text-decoration: none; }
.cover-lines a:hover { text-decoration: underline; text-underline-offset: .25em; }
.cover-lines b { margin-right: .5em; color: var(--accent); font-variant-numeric: tabular-nums; }
/* The photo credit runs up the cover's right edge, as magazines set them. */
.credit { position: absolute; right: 10px; bottom: 64px; margin: 0; color: rgba(255, 255, 255, .55); font: 500 9px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; writing-mode: vertical-rl; transform: rotate(180deg); }

/* ---- Page 2: the conversation ---- */
.talk-grid { display: grid; grid-template-columns: minmax(0, 330px) minmax(0, 1fr); gap: clamp(28px, 4vw, 52px); }
.crt { margin: 0; }
/* The desk is 330 by 220 at every width, so its dithered versions keep whole cells. Where the
   column is narrower than that, it is cropped at the sides. */
.crt { overflow: hidden; }
.crt-frame { position: relative; overflow: hidden; width: 330px; margin-inline: min(0px, (100% - 330px) / 2); border-radius: 3px; box-shadow: 0 1px 0 rgba(255, 255, 255, .5), 0 12px 28px -14px rgba(0, 0, 0, .55); }
.crt-desk { display: block; width: 100%; height: auto; image-rendering: pixelated; }
/* The tube: the app's own capture, cropped (never stretched) to the screen, with the scanlines,
   the curve and the phosphor glow a tube really has. */
.crt-screen { position: absolute; left: 30.6%; top: 7.7%; width: 39.1%; height: 41%; overflow: hidden; border-radius: 7% / 9%; background: #0b0d10; box-shadow: 0 0 14px rgba(150, 175, 255, .45); }
.crt-screen img { width: 100%; height: 100%; object-fit: cover; object-position: 42% 50%; transform: scale(1.18); transform-origin: 42% 46%; filter: brightness(1.12) saturate(1.1) blur(.25px); }
.crt-screen::before, .crt-screen::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.crt-screen::before { z-index: 1; background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, .32) 0 1px, transparent 1px 3px); }
.crt-screen::after { z-index: 2; border-radius: inherit; background: radial-gradient(ellipse at 50% 50%, transparent 52%, rgba(0, 0, 0, .55) 100%), linear-gradient(155deg, rgba(255, 255, 255, .16), transparent 38%); }
.crt figcaption, .fig figcaption { color: var(--ink-2); font: 13.5px/1.5 var(--sans); }
.crt figcaption { padding-top: 10px; text-wrap: balance; }
/* A pull quote, lifted word for word from the conversation beside it. */
.pull { margin: clamp(28px, 4vw, 44px) 0 0; padding: 16px 0 0; border-top: 3px solid var(--ink); }
.pull p { margin: 0; color: var(--spot); font: italic 400 clamp(24px, 2.4vw, 30px)/1.18 var(--serif); letter-spacing: -.015em; text-wrap: balance; }
.pull p::before { content: "“"; }
.pull p::after { content: "”"; }

.qa { columns: 2 18rem; column-gap: clamp(24px, 3vw, 40px); column-rule: 1px solid rgba(26, 23, 29, .22); }
.q { break-inside: avoid; clear: left; margin: 0 0 22px; }
/* Page 3 keeps one column, because its cable lies in the text. */
.around-main .qa { columns: 1; max-width: 37rem; }
.q h3 { display: grid; grid-template-columns: 11px 1.1em minmax(0, 1fr); align-items: baseline; gap: 0 9px; margin: 0 0 6px; font: 700 16.5px/1.3 var(--display); letter-spacing: -.01em; }
.q p { margin: 0; }
.q code { font-size: .86em; }
/* A dot is a splice, beside its number. On paper each dot gets a keyline, so the white and the
   yellow still print. */
.dot { align-self: start; margin-top: .3em; width: 11px; height: 11px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1.5px var(--ink); }
.n { color: var(--ink-2); font: 500 13px/1 var(--sans); font-variant-numeric: tabular-nums; }
.q[data-n="1"] { --c: var(--id-1); } .q[data-n="2"] { --c: var(--id-2); } .q[data-n="3"] { --c: var(--id-3); } .q[data-n="4"] { --c: var(--id-4); }
.q[data-n="5"] { --c: var(--id-5); } .q[data-n="6"] { --c: var(--id-6); } .q[data-n="7"] { --c: var(--id-7); } .q[data-n="8"] { --c: var(--id-8); }
.sd-card { float: left; width: 92px; height: auto; margin: 2px 18px 6px -6px; transform: rotate(-7deg); filter: drop-shadow(3px 4px 0 rgba(0, 0, 0, .2)); }
/* The patch cable lies in the text, and the text goes round it (tools/art/magazine.py draws both
   the cable and the shape). Printed like the page: a black keyline and the spot ink. */
.cable { float: right; width: 138px; height: auto; margin: 4px -8px 10px 0; shape-outside: polygon(34.0% 0.0%, 36.0% 13.8%, 43.6% 18.8%, 54.2% 23.8%, 51.9% 28.7%, 39.6% 33.8%, 20.2% 38.8%, 2.8% 43.8%, 3.2% 48.8%, 24.3% 53.8%, 49.9% 58.8%, 62.8% 63.7%, 61.7% 68.8%, 53.9% 73.8%, 40.6% 78.8%, 35.3% 83.8%, 34.0% 100.0%, 100% 100%, 100% 0); }
.cable path, .cable rect { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.cable .k { stroke: var(--ink); stroke-width: 1.8; }
.cable .w { stroke-width: 11; }
.cable .b { stroke: var(--spot); stroke-width: 7.4; }
.cable .h { stroke: #fff; stroke-opacity: .42; stroke-width: 1.5; }
.cable .s { stroke: rgba(40, 25, 10, .16); stroke-width: 11; }
.cable .f { fill: var(--ink); }
.cable .b2 { fill: var(--spot); }
.cable .p2 { fill: #f4f0e6; }

/* Figures: the app's own captures, clean, in a hairline frame. */
.fig { margin: 0; }
.fig-1 { margin-top: clamp(30px, 4vw, 48px); }
.shot { position: relative; overflow: hidden; aspect-ratio: 1470 / 956; border: 1px solid var(--ink); border-radius: 6px; background: var(--bg); box-shadow: 0 14px 30px -18px rgba(0, 0, 0, .6); }
.shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.shot:has([data-shot="light"]:not([hidden])) { background: #f1f4f6; }
.zoom { position: absolute; inset: 0; display: block; cursor: zoom-in; }
.shot .marker { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; color: var(--spot-light); pointer-events: none; }
.shot:has([data-shot="light"]:not([hidden])) .marker { color: var(--spot); }
.fig figcaption { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: baseline; gap: 0 14px; padding-top: 10px; }
.fig figcaption .label { color: var(--ink); font-weight: 700; }
.seg { display: inline-flex; gap: 2px; align-self: center; padding: 2px; border: 1px solid var(--ink); border-radius: 5px; }
.seg button { min-height: 24px; padding: 0 11px; border: 0; border-radius: 3px; background: none; color: var(--ink-2); font: 500 12.5px/1 var(--sans); cursor: pointer; }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

/* Figures 2 to 5 are strips: one band of each capture, the part its caption is about, across the
   whole sheet, so the app's own text can be read. --y0 and --h are the band's top and height as
   fractions of the capture; every strip drops the project sidebar at the left (--x0, --w). The
   capture itself is not redrawn or retouched, and the strip opens the whole of it. */
.strip { --x0: .158; --w: .842; }
.strip-find { --y0: .389; --h: .431; }
.strip-slots { --y0: .054; --h: .2465; }
.strip-contents { --y0: .2945; --h: .5175; }
.strip-settings { --y0: .054; --h: .315; }
.strip .zoom { position: relative; inset: auto; overflow: hidden; width: 100%; aspect-ratio: calc(1470 * var(--w)) / calc(956 * var(--h)); }
.strip .shot { aspect-ratio: auto; }
.strip .shot img { inset: auto; left: calc(var(--x0) / var(--w) * -100%); top: calc(var(--y0) / var(--h) * -100%); width: calc(100% / var(--w)); height: calc(100% / var(--h)); max-width: none; object-fit: fill; }

/* ---- Page 3: the rest, the coupon and the pictures ---- */
.around-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 350px); gap: clamp(28px, 4vw, 52px); align-items: start; }
.figs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 34px; margin-top: clamp(30px, 4vw, 44px); padding-top: clamp(26px, 3.5vw, 36px); border-top: 1px solid var(--ink); }

/* The coupon: cut along the dashes. A halftone screen of the spot ink, as a two-colour page
   would print a tint. Everything on it is true. */
.coupon { position: relative; padding: 26px 24px 20px; border: 2px dashed var(--ink); background: radial-gradient(circle, rgba(var(--spot-rgb), .24) 1.15px, transparent 1.5px) 0 0 / 5px 5px, #f2ede2; }
.coupon::before { content: "✂" / ""; position: absolute; top: -.85em; left: 16px; padding: 0 4px; background: var(--paper); font: 22px/1 var(--sans); }
.coupon-kicker { margin: 0 0 6px; font: 700 10.5px/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.coupon-hed { margin: 0 0 16px; font: 800 clamp(48px, 5.4vw, 66px)/.86 var(--display); letter-spacing: -.04em; text-transform: uppercase; }
.coupon-hed em { color: var(--spot); font: italic 400 .92em/1 var(--serif); letter-spacing: -.03em; text-transform: none; }
.coupon-form { display: grid; gap: 7px; margin: 0 0 18px; }
.coupon-form div { display: grid; grid-template-columns: 5.2em minmax(0, 1fr); align-items: baseline; gap: 8px; }
.coupon-form dt { font: 700 10.5px/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.coupon-form dd { margin: 0; padding: 0 2px 1px; border-bottom: 1px solid rgba(26, 23, 29, .55); color: var(--spot); font: italic 17px/1.3 var(--serif); }
.coupon-send { display: block; padding: 11px 14px; border: 2px solid var(--ink); background: var(--paper); color: var(--ink); font: 700 14px/1.2 var(--display); letter-spacing: .02em; text-align: center; text-decoration: none; text-transform: uppercase; }
.coupon-send::after { content: "  ↓" / ""; }
.coupon-send:hover { background: var(--ink); color: var(--paper); }
.coupon-fine { margin: 10px 0 0; color: var(--ink-2); font: 12px/1.45 var(--sans); }

/* A badge is 88 by 31, the size they always were: a word on a chip of one identity colour and a
   dark plate beside it. They sit beneath the coupon, the page's second way to the installer. */
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.badges li { display: flex; width: 88px; height: 31px; border: 1px solid #000; background: #15171a; box-shadow: inset 1px 1px 0 rgba(255, 255, 255, .4), inset -1px -1px 0 rgba(0, 0, 0, .7), 2px 2px 0 rgba(0, 0, 0, .18); color: #eef0ff; font: 700 9px/1.15 var(--sans); letter-spacing: .05em; text-transform: uppercase; }
.badges b, .badges span { display: grid; place-items: center; text-align: center; }
.badges b { flex: none; margin: 2px 0 2px 2px; padding: 0 5px; background: var(--c); color: #0b0c10; font-weight: 800; }
.badges span { flex: 1; }
.badges li:nth-child(1) { --c: var(--id-1); } .badges li:nth-child(1) b { color: #fff; }
.badges li:nth-child(2) { --c: var(--id-3); } .badges li:nth-child(3) { --c: var(--id-2); }
.badges li:nth-child(4) { --c: var(--id-4); } .badges li:nth-child(5) { --c: var(--id-7); }
.badges .reel-badge { border: 0; box-shadow: 2px 2px 0 rgba(0, 0, 0, .18); }
.reel-badge img { display: block; image-rendering: pixelated; }
.badges li:last-child { flex: none; width: auto; padding-inline: 7px; white-space: nowrap; background: linear-gradient(#23265f, #0f1030); }

/* ---- Page 4: the back page, set as classifieds ---- */
.back-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 52px); align-items: start; }
/* A column's head: reversed out of a black bar, as a classifieds column's is. */
.col-head { margin: 0 0 4px; padding: 7px 12px 6px; background: var(--ink); color: var(--paper); font: 800 15px/1.2 var(--display); letter-spacing: .06em; text-transform: uppercase; }
/* Each note is its own small ad: a rule, a pointing hand, and its first words in bold. */
.notes { margin: 0; padding: 0; list-style: none; font-size: 15.5px; line-height: 1.5; }
.notes li { position: relative; padding: 13px 0 14px 34px; border-bottom: 1px solid var(--ink); }
.notes li::before { content: "☛" / ""; position: absolute; left: 0; top: 9px; color: var(--spot); font: 22px/1.3 var(--sans); }
.notes b { font: 700 .82em/1 var(--sans); letter-spacing: .05em; text-transform: uppercase; }
.box { margin-top: 12px; padding: 12px 14px 14px; border: 1px solid var(--ink); font-size: 14.5px; line-height: 1.5; }
.box p { margin: 0; }
.box a { color: var(--spot); text-underline-offset: .18em; }
.box-head { margin: 0 0 8px !important; padding-bottom: 5px; border-bottom: 3px double var(--ink); font: 700 11px/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.box-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 12px; }
/* Magpie's own pixel bird, at twice its sixteen pixels. */
.bird { float: left; width: 32px; height: 32px; margin: 3px 10px 2px 0; image-rendering: pixelated; }
/* The puzzle gets the big box: a halftone screen of the spot ink behind the picture. */
.puzzle { background: radial-gradient(circle, rgba(var(--spot-rgb), .2) 1.15px, transparent 1.5px) 0 0 / 5px 5px, #f2ede2; }
.stereo { margin: 0; }
.stereo img { display: block; width: 100%; height: auto; border: 1px solid var(--ink); }
.stereo figcaption { padding-top: 9px; color: var(--ink); font: 13.5px/1.5 var(--sans); }

/* ---- The foot, back on the night ---- */
.foot { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; width: min(var(--sheet), 100% - 2 * var(--edge)); margin: clamp(36px, 5vw, 64px) auto 0; padding: 26px 0 44px; border-top: 1px dashed #44484d; }
.signoff { margin: 0; color: var(--text); font: 500 21px/1.2 var(--display); letter-spacing: -.045em; }
.gesture { display: inline-block; margin-left: .12em; font-size: .86em; letter-spacing: 0; transform-origin: 55% 85%; transition: transform .45s cubic-bezier(.3, 1.7, .5, 1); }
.signoff:hover .gesture { transform: rotate(-14deg) scale(1.08); }

/* ---- Narrow ---- */
@media (max-width: 860px) {
  .talk-grid, .around-grid, .back-grid { grid-template-columns: minmax(0, 1fr); }
  .talk-side { max-width: 420px; }
  .coupon-col { max-width: 420px; }
  .cable { display: none; }
}
@media (max-width: 700px) {
  body { font-size: 16px; }
  .paper { font-size: 16px; }
  /* The cover stacks: the picture on top, the type beneath it on the same dark stock. */
  .cover { display: flex; flex-direction: column; min-height: 0; }
  .cover-photo { order: -1; position: relative; inset: auto; z-index: auto; aspect-ratio: 3 / 2; }
  .cover-photo img { left: calc((100% - 680px) * .91); top: calc((100% - 454px) * .68); width: 680px; height: 454px; }
  .cover::before { display: none; }
  .credit { order: -1; position: static; padding: 6px var(--page-pad) 0; color: rgba(255, 255, 255, .5); text-align: right; writing-mode: horizontal-tb; transform: none; }
  .cover-copy { width: auto; padding: 18px var(--page-pad) 26px; }
  .title { font-size: clamp(44px, 13vw, 64px); }
  .cover-lines { gap: 8px 18px; font-size: 11px; }
  .installer { width: 100%; }

  .box-row { grid-template-columns: minmax(0, 1fr); }
  .installer-version, .installer-detail { font-size: 12px; }
  .talk-side { order: 2; }
  .strip .shot { overflow-x: auto; }
  .strip .zoom { width: 860px; }
  .strip .label::after { content: " · swipe"; }
  .fig figcaption { grid-template-columns: auto minmax(0, 1fr); }
  .fig figcaption .seg { grid-column: 1 / -1; justify-self: start; margin-top: 8px; }
  .qa { columns: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .splice::before, .gesture, .installer { transition: none; }
  .splice[data-playing]::after { animation: none; display: none; }
}
