/* rickiwalter.com, "Release Notes" (design rw-s3-v2, 3-4 Oct 2026; ported 16 Oct 2026).
   Home pages only (/ and /de/). The legal and contact pages keep styles.css. */
/* Two inks (pink, blue) on paper, plus the paper's own ink.
   One misregistration motif: the blue plate, always the same vector (--off right, --off down), on numerals, portrait, screenshots and the primary button.
   Voices: Fraunces for the showpieces (numerals, name, titles, pull lines), mono for labels, DM Sans for reading. */
:root {
  --paper: #F4EFE4;
  --ink: #16141A;
  --ink-2: #4F4A56;
  --pink: #FF48B0;
  --pink-text: #B0006A;
  --blue: #0078BF;
  --blue-fill: #8FD0F7;
  --link: #005A91;
  --rule: rgba(22, 20, 26, .2);
  --off: 4px;
  --rail: 64px;
  --gut: 16px;
  --gap: 40px;
  --dots-filter: contrast(18);
  --tint-blend: screen;
  --paper-blend: multiply;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #15131B;
    --ink: #F1ECE2;
    --ink-2: #ABA5B3;
    --pink: #FF7CC6;
    --pink-text: #FF7CC6;
    --blue: #5CB8F0;
    --blue-fill: #5CB8F0;
    --link: #5CB8F0;
    --rule: rgba(241, 236, 226, .22);
    --dots-filter: contrast(18) invert(1);
    --tint-blend: multiply;
    --paper-blend: screen;
  }
}

@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('../fonts/dm-sans-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('../fonts/dm-sans-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 300 900; font-display: swap; src: url('../fonts/fraunces-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 300 900; font-display: swap; src: url('../fonts/fraunces-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; width: 100%; overflow-x: clip; }
body { background-color: var(--paper); color: var(--ink); font-family: 'DM Sans', system-ui, sans-serif; font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

a { color: var(--link); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { color: var(--pink-text); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.mono, .vh, .tag, .lbl, .state, .cap { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
.serif { font-family: 'Fraunces', Georgia, serif; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Buttons: one primary (ink slab with the blue plate at the shared offset), one secondary (mono, outlined). */
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 12px 22px;
  background: var(--ink); color: var(--paper); border: 1px solid var(--ink);
  box-shadow: var(--off) var(--off) 0 var(--blue);
  font: 700 16px/1.2 'DM Sans', sans-serif; text-decoration: none; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}
.btn:hover { color: var(--paper); transform: translate(var(--off), var(--off)); box-shadow: 0 0 0 var(--blue); }
.btn svg { width: 18px; height: 18px; }
.btn-2 {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 14px;
  background: transparent; color: var(--ink); border: 1px solid var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; line-height: 1.3; text-decoration: none; cursor: pointer;
  transition: background-color .18s ease, color .18s ease;
}
.btn-2:hover { background: var(--ink); color: var(--paper); }
.btn-2 svg { width: 16px; height: 16px; }

/* Status chips: filled for the two positive states, outlined for the rest. Category labels are plain bold mono. */
.tag { display: inline-block; padding: 1px 7px; font-size: 12px; line-height: 1.5; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; color: var(--ink); border: 1px solid var(--ink); }
.tag-added { background: var(--blue-fill); border-color: var(--blue-fill); color: #16141A; font-weight: 700; }
.tag-changed { background: var(--pink); border-color: var(--pink); color: #16141A; font-weight: 700; }
.tag-known { border-style: dashed; }
.tag-removed { border-color: var(--ink-2); color: var(--ink-2); }
.lbl { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--ink); }
.state { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }


/* Top bar */
.topbar { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; background: var(--paper); border-bottom: 1px solid var(--ink); }
.wordmark { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 700; font-size: 18px; color: var(--ink); text-decoration: none; }
.wordmark span { display: none; color: var(--ink-2); font-weight: 500; }
/* Layout: the pink rail runs the full height of the page, footer included.
   It is the version indicator: a solid ink block slides to the release in view, and (where the browser can) an ink line fills with reading progress. */
.layout { position: relative; }
.col { position: relative; min-width: 0; }
.rail-col { position: sticky; top: 0; z-index: 40; background: var(--pink); color: #16141A; border-bottom: 1px solid #16141A; }
.rail { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 2px; height: 56px; padding: 0 8px; overflow-x: auto; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail a { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 10px; white-space: nowrap; color: #16141A; text-decoration: none; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; transition: color .3s ease; }
.rail a b { font-size: 14px; font-weight: 700; }
.rail a span { display: none; }
.rail a:hover { color: #16141A; }
.rail a:hover b { text-decoration: underline; text-underline-offset: 4px; }
.rail a.active, .rail a.active:hover { color: #F4EFE4; }
.rail a.active b { text-decoration: none; }
.rail a:focus-visible { outline: 3px solid #16141A; outline-offset: 2px; }
.rail a.active::before { content: ''; position: absolute; inset: 0; z-index: -1; background: #16141A; }
.js .rail a.active::before { display: none; }
.rail-marker { position: absolute; left: 0; top: 0; width: 0; height: 0; background: #16141A; z-index: 0; transition: transform .45s cubic-bezier(.2,.8,.2,1), width .45s cubic-bezier(.2,.8,.2,1), height .45s cubic-bezier(.2,.8,.2,1); }
.rail-progress { display: none; }
.rail-stamp { display: none; }

.main { position: relative; padding-bottom: var(--gap); }
.grain { position: absolute; inset: 0; z-index: 0; background-size: 200px 200px; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* Boxes. Every release is a box in one column, all boxes detached by the same gap.
   A version box carries its numeral on a tab cut from its own top edge, always flush left, always the same lockup.
   The hero box alone carries the print: one halftone ramp, clipped to the frame, coarse at the far edge and thinning toward the numeral. */
.band { position: relative; z-index: 1; padding-top: var(--gap); scroll-margin-top: 56px; }
.wrap { margin-inline: max(var(--gut), calc((100% - 1220px) / 2)); }
.num-row { position: relative; display: flex; align-items: stretch; }
.print { position: relative; flex: 1; min-width: 0; margin: 0 0 -1px -1px; border: 1px solid var(--ink); border-bottom: 0; overflow: hidden; isolation: isolate; }
.print i { position: absolute; inset: 0; }
.print .d1 {
  background:
    radial-gradient(closest-side, #737373 0, #fff 70.7%, transparent 70.7%) 0 0 / var(--cell) var(--cell),
    radial-gradient(closest-side, #737373 0, #fff 70.7%, transparent 70.7%) calc(var(--cell) / 2) calc(var(--cell) / 2) / var(--cell) var(--cell),
    linear-gradient(245deg, #6a6a6a 0%, #8c8c8c 30%, #c4c4c4 68%, #ffffff 96%);
  background-color: #fff; background-blend-mode: multiply; filter: var(--dots-filter);
}
.print .d2 { background: var(--pink); mix-blend-mode: var(--tint-blend); }
.print .d3 { background: var(--paper); mix-blend-mode: var(--paper-blend); }
.print { --cell: 14px; }

/* The numeral lockup: one size, one weight, one tab proportion, the blue plate at the shared offset. */
.num { position: relative; z-index: 2; flex: none; box-sizing: content-box; width: 1.36em; margin: 0 0 -1px; padding: .12em .12em .04em .1em; background: var(--paper); border: 1px solid var(--ink); border-bottom: 0; font-family: 'Fraunces', serif; font-size: clamp(84px, 21vw, 176px); font-variation-settings: "wght" 900, "opsz" 144; font-variant-numeric: lining-nums; line-height: .8; letter-spacing: -0.04em; white-space: nowrap; }
.num-in { position: relative; display: inline-block; isolation: isolate; color: var(--ink); }
.num-shadow { position: absolute; left: 0; top: 0; z-index: -1; color: var(--blue); -webkit-text-stroke: 2px var(--blue); --plate: calc(var(--off) - 1px); transform: translate(var(--plate), var(--plate)); }
.js .num .num-shadow { transform: translate(-12px, -8px); }
.js .num.in .num-shadow { transform: translate(var(--plate), var(--plate)); transition: transform 1.4s cubic-bezier(.2,.8,.2,1); }
@media (hover: hover) { .num.in:hover .num-shadow { transform: translate(calc(var(--plate) + 3px), calc(var(--plate) + 3px)); transition-duration: .3s; } }

.panel { position: relative; z-index: 1; background: var(--paper); border: 1px solid var(--ink); padding: 28px 20px 32px; }
.panel > p, .panel .prose { max-width: 66ch; }

/* Headings: the mono ## line is every panel's heading; Fraunces only for subheads */
.vh { font-size: 16px; font-weight: 700; line-height: 1.4; margin: 0 0 24px; color: var(--ink); }
.vh .md { color: var(--ink-2); font-weight: 400; }
.sub-title { font-family: 'Fraunces', serif; font-size: clamp(30px, 6vw, 44px); line-height: 1.05; letter-spacing: -0.01em; margin: 0 0 14px; font-variation-settings: "wght" 750, "opsz" 144; }
.lede { font-size: 19px; line-height: 1.5; margin: 0 0 20px; max-width: 58ch; }
.lede-it { font-family: 'Fraunces', serif; font-style: italic; font-size: clamp(24px, 3.4vw, 32px); line-height: 1.2; font-variation-settings: "wght" 400, "opsz" 72; margin: 0 0 16px; }

/* Changelog lists: flat, one chip (or one plain label) per line, hanging in its own column */
.log { list-style: none; padding: 0; margin: 0 0 8px; }
.log li { margin: 0 0 14px; }
.log li > .tag, .log li > .lbl { margin-right: 10px; vertical-align: 2px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.dash { list-style: none; padding: 0; margin: 0 0 8px; }
.dash li { position: relative; padding-left: 20px; margin-bottom: 10px; }
.dash li::before { content: '-'; position: absolute; left: 0; color: var(--ink-2); font-family: ui-monospace, monospace; }

/* Hero: the name in Fraunces, one sans line, one mono line, one secondary action */
.hero-grid { display: grid; gap: 32px; }
.name { font-family: 'Fraunces', serif; font-size: clamp(56px, 12vw, 132px); line-height: .9; letter-spacing: -0.03em; font-variation-settings: "wght" 800, "opsz" 144; margin: 0 0 22px; }
.role { font-size: clamp(21px, 2.6vw, 28px); line-height: 1.25; font-weight: 500; margin: 0; }
.cred { margin: 10px 0 28px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.changelog { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--ink); }

/* Portrait: flat black and white print, hairline border, the blue plate at the shared offset. No dots on the face. */
.portrait { margin: 0 var(--off) 0 0; max-width: 280px; }
.portrait-frame { border: 1px solid var(--ink); background: #F4EFE4; box-shadow: var(--off) var(--off) 0 var(--blue); aspect-ratio: 886 / 1200; overflow: hidden; }
.portrait-frame img { display: block; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.cap { display: flex; justify-content: space-between; align-items: center; gap: 4px 12px; margin-top: 14px; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); min-height: 44px; }

/* Builds */
.build { border-top: 1px solid var(--rule); padding-top: 32px; margin-top: 40px; }
.build-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 4px; }
.build-title { font-family: 'Fraunces', serif; font-size: clamp(30px, 6vw, 44px); line-height: 1.05; margin: 12px 0 18px; font-variation-settings: "wght" 750, "opsz" 144; letter-spacing: -0.01em; }
.build-title a { display: inline-block; min-height: 44px; color: inherit; text-decoration-thickness: 2px; text-decoration-color: var(--pink); text-underline-offset: 6px; }
.build p { margin: 0 0 14px; }
.pull { font-family: 'Fraunces', serif; font-style: italic; font-size: clamp(21px, 2.3vw, 25px); line-height: 1.32; font-variation-settings: "wght" 400, "opsz" 48; margin: 22px 0 0; max-width: 34ch; }
.build-grid { display: grid; gap: 32px; }

/* The one screen on the page: a terminal running git log --graph.
   Drawn on an 8px grid: two straight lanes 24px apart, rows of 64px, every node centred on its lane, quarter-circle fork and merge. Always dark, like a terminal. */
.term { margin: 0; background: #0D0C12; color: #F1ECE2; align-self: start; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.term-bar { display: flex; align-items: center; gap: 12px; margin: 0; padding: 12px 16px; border-bottom: 1px solid rgba(241, 236, 226, .2); font-size: 13px; color: #ABA5B3; }
.term-bar b { color: #F1ECE2; font-weight: 700; }
.term-bar .p { color: #FF7CC6; }
.term-body { position: relative; padding: 8px 16px 8px; }
.graph { position: relative; list-style: none; margin: 0; padding: 0; }
.term-body > svg { position: absolute; left: 16px; top: 8px; width: 56px; height: 320px; overflow: visible; }
.graph li { position: relative; display: flex; flex-direction: column; justify-content: center; height: 64px; padding-left: 64px; }
.graph li b { font-size: 13px; line-height: 20px; font-weight: 700; color: #F1ECE2; }
.graph .gsub { font-family: 'DM Sans', system-ui, sans-serif; font-size: 13px; line-height: 18px; color: #ABA5B3; }
.graph .deco { font-weight: 700; color: #F1ECE2; }
.graph .deco i { font-style: normal; color: #5CB8F0; }
.graph .deco u { text-decoration: none; color: #FF7CC6; }
.term-foot { margin: 0; padding: 10px 16px 14px; border-top: 1px solid rgba(241, 236, 226, .2); font-size: 13px; color: #ABA5B3; }
.term-foot .cur { display: inline-block; width: 8px; height: 15px; vertical-align: -2px; background: #F1ECE2; margin-left: 2px; }
@media (prefers-reduced-motion: no-preference) { .term-foot .cur { animation: cur 2.4s ease-in-out infinite; } }
@keyframes cur { 50% { opacity: .25; } }
@media (prefers-color-scheme: dark) { .term { background: #0A090D; box-shadow: 0 0 0 1px rgba(241, 236, 226, .14); } }

/* Screenshots: cropped at a clean content break, equal heights, the blue plate at the shared offset, captions on one baseline.
   On a phone only the phone screenshot shows; the desktop one opens from its caption. */
.proofs { display: grid; gap: 20px; margin: 32px 0 8px; align-items: start; }
.proof { margin: 0; }
.proof-img { display: block; position: relative; border: 1px solid var(--ink); background: #fff; overflow: hidden; cursor: zoom-in; box-shadow: var(--off) var(--off) 0 var(--blue); transition: transform .25s ease, box-shadow .25s ease; }
.proof-img img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.proof-wide .proof-img { aspect-ratio: 2000 / 980; display: none; }
.proof-phone .proof-img { aspect-ratio: 780 / 1560; }
.proof-img:hover { transform: translate(-2px, -2px); box-shadow: calc(var(--off) + 2px) calc(var(--off) + 2px) 0 var(--blue); }
.proof .cap { margin-top: 12px; }
.inspect { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; padding: 0; background: none; border: 0; cursor: zoom-in; font: inherit; letter-spacing: inherit; text-transform: inherit; color: var(--link); text-decoration: underline; text-underline-offset: 4px; }
.inspect:hover { color: var(--pink-text); }
.proof-phone { order: -1; width: 72%; max-width: 250px; justify-self: center; }
.proof-wide .cap { margin-top: 0; padding-top: 8px; border-top: 1px solid var(--rule); }
.issues-h { margin: 8px 0 12px; }
.also { border-top: 1px solid var(--rule); margin-top: 40px; padding-top: 24px; }

/* v4: the review travels as a git trailer */
.panel > p.trailer { max-width: none; }
.trailer { margin: 24px 0 0; padding-top: 20px; border-top: 1px solid var(--rule); }
.trailer .mono { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 6px; }
.trailer q { font-family: 'Fraunces', serif; font-style: italic; font-size: clamp(21px, 2.4vw, 26px); line-height: 1.3; font-variation-settings: "wght" 400, "opsz" 48; quotes: '"' '"'; }

/* Earlier releases: the same numeral lockup at a smaller fixed size, numeral and date stacked left, text right */
.ledger { list-style: none; margin: 0; padding: 0; }
.ledger li { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 22px 0; border-top: 1px solid var(--rule); scroll-margin-top: 80px; }
.ledger li:first-child { border-top: 0; padding-top: 4px; }
.lhead { display: flex; align-items: baseline; gap: 16px; }
.lnum { position: relative; display: inline-block; isolation: isolate; font-family: 'Fraunces', serif; font-size: 52px; line-height: .9; font-variation-settings: "wght" 900, "opsz" 144; font-variant-numeric: lining-nums; letter-spacing: .02em; color: var(--ink); }
.lnum .num-shadow { -webkit-text-stroke: 1px var(--blue); --plate: 3px; }
.ldate { font-family: ui-monospace, monospace; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); }
.ltext { margin: 0; max-width: 66ch; }

/* Off duty: package.json on the left, the log on the right. A listing in print, not a screen. */
.deps-grid { display: grid; gap: 28px; }
.pkg { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; line-height: 1.75; margin: 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--pink); overflow-x: auto; max-width: 100%; color: var(--ink); }
.pkg .k { color: var(--pink-text); }
.pkg .v { color: var(--link); }
.pkg .c { color: var(--ink-2); font-style: italic; }
/* Inline profile links: a 44px tall hit area without moving the line */
.me-link { display: inline-block; padding-block: 9px; margin-block: -9px; }
.pkg-cap { margin: 12px 0 0 21px; font-family: ui-monospace, monospace; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); }

/* Contact form (markup and fields from the live rickiwalter.com/contact/) */
.form-notice { display: none; padding: 16px 20px; border: 1px solid var(--ink); margin-bottom: 32px; }
.form-notice:target { display: block; }
.contact-form { display: grid; gap: 22px; max-width: 760px; margin-top: 28px; }
.form-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.form-field label { font-family: ui-monospace, monospace; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; color: var(--ink-2); }
.form-field input, .form-field textarea { width: 100%; padding: 12px; border: 1px solid var(--ink); background: var(--paper); color: var(--ink); font-family: inherit; font-size: 16px; border-radius: 0; appearance: none; min-height: 48px; transition: border-color .2s ease, outline-color .2s ease; }
.form-field textarea { resize: vertical; min-height: 168px; line-height: 1.6; }
.form-field input:focus, .form-field textarea:focus { border-color: var(--blue); outline: 2px solid var(--pink); outline-offset: 2px; }
.form-hint { font-family: ui-monospace, monospace; font-size: 12px; color: var(--ink-2); }
.form-field-hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-check { display: flex; align-items: center; gap: 12px; font-size: 15px; min-height: 44px; }
/* The input is a 44px target; the visible box stays 22px (an 11px paper ring over a 1px ink ring), and the negative margin keeps the layout. */
.form-check input { appearance: none; -webkit-appearance: none; flex: none; box-sizing: border-box; width: 44px; height: 44px; margin: -11px; border: 0; background: var(--paper) no-repeat center / 16px 16px; box-shadow: inset 0 0 0 11px var(--paper), inset 0 0 0 12px var(--ink); border-radius: 0; cursor: pointer; }
.form-check input:checked { box-shadow: inset 0 0 0 11px var(--paper), inset 0 0 0 12px var(--blue); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3.2L13 4.8' fill='none' stroke='%230078BF' stroke-width='2.4' stroke-linecap='square'/%3E%3C/svg%3E"); }
@media (prefers-color-scheme: dark) { .form-check input:checked { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3.2L13 4.8' fill='none' stroke='%235CB8F0' stroke-width='2.4' stroke-linecap='square'/%3E%3C/svg%3E"); } }
.form-check input:focus-visible { outline: 3px solid var(--blue); outline-offset: -8px; }
.form-submit { justify-self: start; }
.form-status { font-family: ui-monospace, monospace; font-size: 14px; min-height: 1.6em; margin: 0; }
.form-status-success, .form-status-error { border-left: 3px solid var(--blue); padding: 6px 12px; }
.form-status-error { border-left-color: var(--pink-text); }

/* Release assets */
.asset-list { list-style: none; margin: 0; padding: 0; }
.asset-list li + li { border-top: 1px solid var(--rule); }
.asset { display: grid; grid-template-columns: 22px 1fr; gap: 4px 12px; padding: 14px 8px; text-decoration: none; color: var(--ink); align-items: start; }
.asset:hover { background: var(--pink); color: #16141A; }
.asset:focus-visible { outline-offset: -3px; }
.asset svg { width: 20px; height: 20px; margin-top: 2px; }
.asset-name { font-family: ui-monospace, monospace; font-weight: 700; font-size: 15px; word-break: break-all; }
.asset-desc { grid-column: 2; font-size: 14px; }

.footer { position: relative; z-index: 1; padding: 20px 0 40px; border-top: 1px solid var(--ink); background: var(--paper); font-family: ui-monospace, monospace; font-size: 14px; }
.footer-in { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.footer-links { display: flex; gap: 0 20px; flex-wrap: wrap; align-items: center; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
.footer-meta { color: var(--ink-2); font-size: 13px; margin: 0; }
.link-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0; background: none; border: 0; color: var(--link); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.link-btn:hover { color: var(--pink-text); }

dialog.small { background: var(--paper); color: var(--ink); border: 1px solid var(--ink); padding: 24px; max-width: 400px; margin: auto; }
dialog.small::backdrop { background: rgba(0,0,0,.5); }
.sc-toggle { margin: 6px 0 18px; }
kbd { font-family: ui-monospace, monospace; font-size: 13px; padding: 1px 6px; border: 1px solid currentColor; text-decoration: none; display: inline-block; }

/* The press proof viewer: the screenshot comes off the press as two misregistered plates, snaps into register, then the colour proof lands. Always light, like paper. */
.proof-dialog { padding: 0; border: 1px solid #16141A; background: #F4EFE4; color: #16141A; max-width: calc(100vw - 16px); max-height: calc(100vh - 16px); box-shadow: 4px 4px 0 #0078BF; overflow: hidden; }
.proof-dialog::backdrop { background: radial-gradient(circle, rgba(0,120,191,.55) 1.2px, transparent 1.6px) 0 0 / 9px 9px, rgba(244,239,228,.86); }
.proof-sheet { position: relative; padding: 14px 16px 12px; }
.proof-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.proof-status { font-family: ui-monospace, monospace; font-size: 13px; text-transform: uppercase; min-height: 1.4em; margin: 0; }
.proof-status .k { color: #C2187A; }
.proof-actions { display: flex; gap: 8px; }
.proof-actions button { min-height: 44px; font-family: ui-monospace, monospace; font-size: 13px; text-transform: uppercase; font-weight: 700; padding: 6px 14px; background: transparent; color: #16141A; border: 1px solid #16141A; cursor: pointer; }
.proof-actions button.dark { background: #16141A; color: #F4EFE4; }
.proof-actions button:focus-visible { outline: 3px solid #0078BF; outline-offset: 3px; }
.proof-stage { position: relative; margin: 0 auto; background: #fff; outline: 1px solid #16141A; transform-origin: 0 0; }
.proof-stage img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; user-select: none; -webkit-user-drag: none; }
.plate { position: absolute; inset: 0; mix-blend-mode: multiply; transition: transform .6s cubic-bezier(.3,1.7,.5,1); }
.plate img { filter: grayscale(1) contrast(1.7) brightness(1.04); mix-blend-mode: screen; }
.plate-pink { background: #FF48B0; }
.plate-blue { background: #0078BF; }
.proof-stage.is-off .plate-pink { transform: translate(-30px, -20px) rotate(-1.4deg); }
.proof-stage.is-off .plate-blue { transform: translate(28px, 18px) rotate(1.1deg); }
.proof-colour { opacity: 0; transition: opacity .55s ease; }
.proof-stage.is-registered .proof-colour { opacity: 1; }
.proof-cap { font-family: ui-monospace, monospace; font-size: 12px; text-transform: uppercase; color: #4F4A56; margin: 12px 0 0; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* The NFO viewer: the release file in a dark terminal panel, always dark like the git log screen.
   Fit sizes the type in JS so the widest line (78 columns) fills the width; Read sets a fixed larger size and scrolls sideways.
   The font stack carries box-drawing and block glyphs on Apple (SF Mono, Menlo), Windows (Consolas) and Linux (DejaVu);
   "RW NFO Mono" (a 15 KB DejaVu Sans Mono subset, same origin) is only fetched where none of those exist, e.g. Android. */
@font-face { font-family: 'RW NFO Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/rw-nfo-mono.woff') format('woff'); unicode-range: U+0020-007E, U+00A0-00FF, U+2010-2027, U+2500-259F; }
.nfo-dialog {
  --nfo-font: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "DejaVu Sans Mono", "Noto Sans Mono", "RW NFO Mono", monospace;
  --nfo-bg: #0D0C12; --nfo-ink: #F1ECE2; --nfo-ink-2: #ABA5B3; --nfo-pink: #FF7CC6; --nfo-blue: #5CB8F0; --nfo-rule: rgba(241, 236, 226, .2);
  padding: 0; margin: auto; border: 1px solid #16141A; background: var(--nfo-bg); color: var(--nfo-ink);
  width: min(920px, calc(100vw - 48px)); max-width: none;
  height: calc(100vh - 48px); height: min(960px, calc(100dvh - 48px)); max-height: none;
  box-shadow: var(--off) var(--off) 0 var(--blue); overflow: hidden;
  font-family: var(--nfo-font); -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
}
.nfo-dialog[open] { display: flex; flex-direction: column; }
.nfo-dialog [hidden] { display: none !important; }
.nfo-dialog::backdrop { background: radial-gradient(circle, rgba(92, 184, 240, .45) 1.2px, transparent 1.6px) 0 0 / 9px 9px, rgba(13, 12, 18, .82); }
html.nfo-lock, html.nfo-lock body { overflow: hidden; }
.nfo-head { position: relative; flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 8px 16px; border-bottom: 1px solid var(--nfo-rule); overflow: hidden; }
.nfo-title { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
.nfo-title b { color: var(--nfo-pink); }
.nfo-meta { margin: 0; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--nfo-ink-2); white-space: nowrap; }
.nfo-probe { position: absolute; left: 0; top: 0; visibility: hidden; pointer-events: none; white-space: pre; font-family: var(--nfo-font); font-size: 100px; line-height: 1; font-variant-ligatures: none; font-kerning: none; }
.nfo-scroll { position: relative; flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 20px 24px 24px; }
.nfo-scroll:focus-visible { outline: 3px solid var(--nfo-blue); outline-offset: -3px; }
.nfo-art { margin: 0 auto; width: max-content; padding: 0; font-family: var(--nfo-font); font-size: 13px; line-height: 1.19; font-weight: 400; white-space: pre; font-variant-ligatures: none; font-kerning: none; tab-size: 8; color: var(--nfo-ink); }
.nfo-art .nfo-logo { color: var(--nfo-pink); }
.nfo-art .nfo-blk { -webkit-text-stroke: .4px currentColor; }
.nfo-error { margin: 0 0 8px; font-size: 14px; line-height: 1.5; color: var(--nfo-ink); border-left: 3px solid var(--nfo-pink); padding: 4px 12px; }
.nfo-files { position: sticky; left: 0; display: flex; flex-wrap: wrap; gap: 0 28px; margin: 24px 0 0; padding-top: 12px; border-top: 1px solid var(--nfo-rule); font-size: 14px; }
.nfo-files a { display: inline-flex; align-items: center; min-height: 44px; color: var(--nfo-blue); text-decoration: underline; text-underline-offset: 4px; }
.nfo-files a:hover { color: var(--nfo-pink); }
.nfo-bar { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; padding-bottom: max(10px, env(safe-area-inset-bottom)); border-top: 1px solid var(--nfo-rule); }
.nfo-modes { display: inline-flex; border: 1px solid var(--nfo-ink); }
.nfo-modes button, .nfo-close { min-height: 44px; padding: 0 16px; font: 700 13px/1 var(--nfo-font); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.nfo-modes button { min-width: 64px; background: transparent; color: var(--nfo-ink); border: 0; }
.nfo-modes button + button { border-left: 1px solid var(--nfo-ink); }
.nfo-modes button[aria-pressed="true"] { background: var(--nfo-pink); color: #16141A; }
.nfo-close { min-width: 104px; margin-left: auto; background: var(--nfo-ink); color: #16141A; border: 1px solid var(--nfo-ink); box-shadow: 3px 3px 0 var(--nfo-blue); }
.nfo-dialog a:focus-visible, .nfo-dialog button:focus-visible { outline: 3px solid var(--nfo-blue); outline-offset: 4px; }
@media (max-width: 639px) {
  .nfo-dialog { inset: 0; width: 100%; height: 100%; height: 100dvh; margin: 0; border: 0; box-shadow: none; }
  .nfo-scroll { padding: 16px 10px 20px; }
  .nfo-files { padding-left: 6px; }
}
@media (prefers-reduced-motion: no-preference) {
  .nfo-dialog[open] { animation: nfo-in .22s cubic-bezier(.2, .8, .2, 1); }
  .nfo-dialog[open]::backdrop { animation: nfo-fade .22s ease; }
}
@keyframes nfo-in { from { opacity: 0; transform: translateY(10px); } }
@keyframes nfo-fade { from { opacity: 0; } }

@media (min-width: 560px) {
  .wordmark span { display: inline; }
  .log li { display: grid; grid-template-columns: 136px minmax(0, 1fr); align-items: baseline; }
  .log li > .tag, .log li > .lbl { justify-self: start; margin-right: 0; vertical-align: 0; }
  .ledger li { grid-template-columns: 288px minmax(0, 1fr); gap: 4px 24px; align-items: baseline; }
  .lhead { flex-direction: column; align-items: flex-start; gap: 10px; }
}

@media (min-width: 800px) {
  :root { --gut: 48px; --gap: 56px; }
  .topbar { padding: 14px 32px 14px calc(var(--rail) + 32px); border-bottom: 0; }
  .topbar::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: var(--rail); background: var(--pink); }
  .topbar::after { content: ''; position: absolute; left: var(--rail); right: 0; bottom: 0; height: 1px; background: var(--ink); }
  .layout { display: flex; align-items: stretch; }
  .rail-col { position: relative; top: auto; flex: none; width: var(--rail); border-bottom: 0; display: flex; flex-direction: column; }
  .col { flex: 1; }
  .rail { position: sticky; top: 0; height: 100vh; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 4px; padding: 24px 6px 20px; overflow: visible; }
  .rail a { padding: 0; min-height: 48px; }
  .rail a b { font-size: 14px; }
  .rail a span { position: absolute; left: calc(100% + 12px); top: 50%; padding: 5px 9px; background: #16141A; color: #F4EFE4; border: 1px solid var(--pink); font-size: 12px; line-height: 1.3; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; display: none; transform: translate(0, -50%); pointer-events: none; }
  .rail a:hover span, .rail a:focus-visible span { display: block; animation: flyout .18s ease-out; }
  @keyframes flyout { from { opacity: 0; transform: translate(-6px, -50%); } }
  .rail-progress { display: block; position: absolute; top: 0; bottom: 0; right: 0; width: 3px; }
  @supports (animation-timeline: scroll()) {
    .rail-progress::after { content: ''; position: absolute; inset: 0; background: #16141A; transform-origin: 50% 0; transform: scaleY(0); animation: progress linear both; animation-timeline: scroll(root block); }
    @keyframes progress { to { transform: scaleY(1); } }
  }
  .rail-stamp { display: block; margin: auto 0 0; padding: 14px 4px 30px; border-top: 1px solid #16141A; font-family: ui-monospace, monospace; font-size: 12px; line-height: 1.4; text-align: center; color: #16141A; }
  .band { scroll-margin-top: 0; }
  .panel { padding: 48px; }
  .print { --cell: 18px; }
  .proofs { grid-template-columns: minmax(0, 4.08fr) minmax(0, 1fr); gap: 32px; }
  .proof-wide .proof-img { display: block; }
  .proof-wide .cap { margin-top: 12px; padding-top: 0; border-top: 0; }
  .proof-phone { order: 0; width: auto; max-width: none; }
  .contact-form { grid-template-columns: 1fr 1fr; column-gap: 28px; }
  .contact-form > :not(.form-field-name):not(.form-field-email) { grid-column: 1 / -1; }
  .footer { padding-bottom: 48px; }
}
/* Name and portrait side by side only where the name fits its column (at 800px "Walter" ran into the portrait). */
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) 280px; gap: 48px; align-items: center; }
}
@media (min-width: 1180px) {
  .build-grid.split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; }
  .deps-grid { grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 56px; align-items: start; }
}

@media (prefers-reduced-motion: reduce) {
  *, .plate, .proof-colour, .rail-marker, .rail a { transition: none !important; }
  .js .num .num-shadow { transform: translate(var(--plate), var(--plate)); }
  .rail a span { animation: none !important; }
}

/* ---- Added in the port (16 Oct 2026) ---- */

/* Skip link: off screen until focused */
.skip-link { position: absolute; left: 16px; top: 0; transform: translateY(-120%); z-index: 100; padding: 8px 14px; background: var(--ink); color: var(--paper); font-weight: 700; text-decoration: none; }
.skip-link:focus { transform: none; }

/* Top bar actions: language switch plus the issue button */
.top-actions { display: flex; align-items: center; gap: 8px; }
.lang-switch { display: inline-flex; align-items: center; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; }
.lang-switch a, .lang-switch span[aria-current] { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 6px; }
.lang-switch span[aria-current] { font-weight: 700; color: var(--ink); }
.lang-switch a { color: var(--link); }

/* JS turns the .NFO links into buttons: same look as the link versions */
button.btn-2 { font-weight: 400; }
button.asset { width: 100%; background: none; border: 0; font: inherit; text-align: left; cursor: pointer; }

/* package.json: the comment belongs to the line under it; a visually hidden copy carries the meaning */
.pkg { tab-size: 2; }
@media (max-width: 380px) { .pkg { font-size: 13px; } }

/* The proof viewer's two plain actions (links styled as its buttons) */
.proof-actions { flex-wrap: wrap; }
.proof-actions a { display: inline-flex; align-items: center; min-height: 44px; font-family: ui-monospace, monospace; font-size: 13px; text-transform: uppercase; font-weight: 700; padding: 6px 14px; color: #16141A; border: 1px solid #16141A; text-decoration: none; }
.proof-actions a:hover { background: #16141A; color: #F4EFE4; }
.proof-actions a:focus-visible { outline: 3px solid #0078BF; outline-offset: 3px; }
.proof-actions button.dark:hover { background: #F4EFE4; color: #16141A; }

/* Footer language line */
.footer-links .sep { color: var(--ink-2); }

/* Small spacing that lived in inline styles in the design */
.ws-cta { margin: 24px 0 0; }
#close-shortcuts { margin-top: 16px; }
.pkg-fig { margin: 0; }

/* Phone top bar: name, the other language and the issue button on one line.
   The current language stays in the markup for screen readers, out of sight below 560px. */
.wordmark, .topbar .btn-2 { white-space: nowrap; }
@media (max-width: 559px) {
  .topbar { padding-inline: 12px; }
  .top-actions { gap: 4px; }
  .lang-switch span[aria-current] { position: absolute; width: 1px; height: 1px; min-width: 0; min-height: 0; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .topbar .btn-2 { padding-inline: 10px; }
}
#v5 .btn-2 { text-align: left; }

/* Portrait Easter egg (assets/js/portrait-egg.js, 16 Oct 2026): the portrait opens the press-proof pop-up and Ricki
   assembles out of green Matrix code. While the egg is in the code the pop-up turns black and green (.mx). */
.egg-trigger { cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; }
@media (hover: hover) { .egg-trigger:hover { transform: translate(-2px, -2px); box-shadow: calc(var(--off) + 2px) calc(var(--off) + 2px) 0 var(--blue); } }
.egg-trigger:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.egg-dialog { transition: background-color .6s ease, border-color .6s ease, box-shadow .6s ease, color .6s ease; }
.egg-dialog .proof-stage { overflow: hidden; transition: outline-color .6s ease; }
.egg-dialog .proof-colour, .egg-dialog .plate img { object-fit: cover; }
.egg-dialog .proof-colour { filter: grayscale(1); }
.egg-dialog .proof-actions button { white-space: nowrap; transition: background-color .6s ease, color .6s ease, border-color .6s ease; }
.egg-dialog .proof-status, .egg-dialog .proof-cap { transition: color .6s ease; }
.egg-layer { position: absolute; inset: 0; pointer-events: none; }
.mx-canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.egg-dialog.mx { background: #000; border-color: #0a3d14; color: #00ff41; box-shadow: 4px 4px 0 #063d12; }
.egg-dialog.mx .proof-status { color: #22d14a; }
.egg-dialog.mx .proof-status .k { color: #b9ffc4; }
.egg-dialog.mx .proof-cap { color: #1f8a3a; }
.egg-dialog.mx .proof-stage { outline-color: #0a3d14; background: #000; }
.egg-dialog.mx .proof-actions button { background: transparent; color: #00ff41; border-color: #0d6b25; }
.egg-dialog.mx .proof-actions button.dark { background: #00ff41; color: #000; border-color: #00ff41; }
.egg-dialog.mx .proof-actions button:hover { background: #0a3d14; color: #b9ffc4; }
.egg-dialog.mx .proof-actions button.dark:hover { background: #b9ffc4; color: #000; }
.egg-dialog.mx .proof-actions button:focus-visible { outline-color: #00ff41; }
/* On phones the status gets its own line, so a shorter or longer status never re-flows the bar and moves the stage. */
@media (max-width: 479px) { .egg-dialog .proof-status { flex: 1 1 100%; } }
@media (prefers-reduced-motion: reduce) {
  .egg-trigger, .egg-dialog, .egg-dialog * { transition: none !important; }
  .egg-trigger:hover { transform: none; }
}
