/* Hallmark · shape: Stat-Led · genre: playful · theme: Werkstatt (deal 2/3, seed kidly-pocket-zine-maker-children-20f7·6cff9365·2026-11-28·r0) · job: try · draw: 08fb44
 * hero: Stage, the maker at work beside the sheet it makes · nav: edge-aligned · footer: index columns · imagery: the product (the pages and the sheet, drawn live) and diagrams of the fold · signature: the imposed sheet, its top row upside down, the dashed cut with its scissors · werkstatt: putty
 * axes: mid/geometric-sans/cool · posture: full-palette · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S5 R4 V4 · weakest: H, the maker holds a form, a page and a sheet on one screen; the head was taken down a size and the four figures boxed so the eye lands on the sheet first */
:root {
  color-scheme: light;
  --space-3xs: 2px; --space-2xs: 4px; --space-xs: 8px; --space-sm: 12px; --space-md: 16px; --space-lg: 24px; --space-xl: 40px; --space-2xl: 64px; --space-3xl: 96px; --space-4xl: 144px;
  --text-xs: 0.8125rem; --text-sm: 0.875rem; --text-md: 1rem; --text-lg: 1.25rem; --text-xl: 1.5625rem; --text-2xl: 1.953rem; --text-3xl: 2.441rem;
  --text-display-s: clamp(2.25rem, 4vw + 0.5rem, 3.75rem); --text-display: clamp(2.75rem, 5vw + 1rem, 5.25rem);
  --text-section: clamp(2rem, 2.5vw + 1rem, 3.5rem); --text-title: clamp(1.25rem, 0.75vw + 0.875rem, 1.625rem); --text-lead: clamp(1.125rem, 0.35vw + 1rem, 1.375rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1); --ease-in: cubic-bezier(0.7, 0, 0.84, 0); --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-micro: 120ms; --dur-short: 220ms; --dur-long: 420ms;
  --color-error: oklch(52% 0.19 27); --color-success: oklch(50% 0.12 150);
  --container: 1440px; --gutter: 64px; --gap-columns: 32px; --section-gap-s: 120px; --section-gap: 144px; --section-gap-l: 176px;
  --z-base: 1; --z-raised: 10; --z-dropdown: 100; --z-sticky: 200; --z-sticky-nav: 300; --z-modal: 400; --z-toast: 500; --z-tooltip: 600;
  --color-paper: oklch(84% 0.024 82); --color-paper-2: oklch(79.5% 0.028 80); --color-paper-3: oklch(89.5% 0.018 84);
  --color-ink: oklch(18% 0.008 60); --color-ink-2: oklch(27% 0.01 60); --color-muted: oklch(39% 0.014 62);
  --color-rule: oklch(58% 0.022 72);
  --color-accent: oklch(46% 0.2 264); --color-accent-2: oklch(58% 0.205 33); --color-accent-2-deep: oklch(50% 0.19 31); --color-accent-3: oklch(85% 0.165 92);
  --color-accent-ink: oklch(96% 0.012 82); --color-focus: oklch(46% 0.2 264);
  --font-display: "Jost", "Futura", sans-serif; --font-body: "Karla", ui-sans-serif, system-ui, sans-serif;
  --font-outlier: "JetBrains Mono", ui-monospace, monospace;
  --radius-card: 0; --radius-pill: 0; --rule-hair: 1px; --rule-bar: 2px; --rule-box: 3px;
  --shadow-card: none;
  --tracking-display: -0.005em; --display-weight: 700;
}
/* kidly.in: the sheet is printer paper, the one surface lighter than the well, used for the sheet, its pages and the
   drawings of them. The three primaries by their job: a fold is blue, the cut is red, a page is yellow. */
:root {
  --color-sheet: oklch(98.6% 0.006 85);
  --color-fold: var(--color-accent); --color-cut: var(--color-accent-2); --color-cut-deep: var(--color-accent-2-deep); --color-page: var(--color-accent-3);
  --bar-height: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scrollbar-color: var(--color-muted) var(--color-paper); scroll-padding-top: var(--space-3xl); }
body { margin: 0; background: var(--color-paper); color: var(--color-ink); font-family: var(--font-body); font-size: var(--text-md); line-height: 1.55; -webkit-font-smoothing: antialiased; caret-color: var(--color-accent); }
::selection { background: var(--color-accent-3); color: var(--color-ink); }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.16em; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: var(--display-weight, 700); font-synthesis: none; letter-spacing: var(--tracking-display); line-height: 1.05; overflow-wrap: break-word; min-width: 0; text-wrap: balance; }
h1 { max-width: 20ch; font-size: var(--text-display); } h2 { max-width: 30ch; font-size: var(--text-section); } h3 { max-width: 40ch; font-size: var(--text-title); line-height: 1.2; }
.lead { font-size: var(--text-lead); line-height: 1.45; max-width: 52ch; }
p { margin: 0; text-wrap: pretty; }
p:not([class]) { max-width: 65ch; }
img, video { max-width: 100%; height: auto; display: block; }
svg { display: block; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); box-sizing: border-box; }
.num, .figure, td.num { font-variant-numeric: tabular-nums; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[data-slot] { position: relative; overflow: hidden; background: linear-gradient(160deg, var(--color-paper-2, var(--color-paper)), var(--color-paper-3, var(--color-paper))); }
[data-slot] > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
[data-slot]:has(> img) > :not(img):not([data-keep]) { display: none !important; }
@media (max-width: 60rem) { :root { --gutter: 24px; --section-gap-s: 80px; --section-gap: 96px; --section-gap-l: 120px; } }
@media (max-width: 40rem) { :root { --gutter: 16px; --section-gap-s: 56px; --section-gap: 72px; --section-gap-l: 96px; --gap-columns: 16px; } }
@media (prefers-reduced-motion: reduce) { *:not(.keep-motion), *:not(.keep-motion)::before, *:not(.keep-motion)::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; } }
/* photographs: mono */
[data-slot] > img { filter: grayscale(1) contrast(1.18); }

@font-face { font-family: "Jost"; src: url("/fonts/jost-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Karla"; src: url("/fonts/karla-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Karla"; src: url("/fonts/karla-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

body { color: var(--color-ink-2); line-height: 1.5; }
h1, h2, h3 { color: var(--color-ink); text-transform: uppercase; line-height: 1.02; }
a { color: var(--color-ink); text-decoration-thickness: 2px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 3px; }
.lead { color: var(--color-ink-2); }

.skip { position: absolute; left: var(--space-md); top: var(--space-md); z-index: var(--z-modal); background: var(--color-ink); color: var(--color-paper); padding: var(--space-xs) var(--space-md); }
.skip:not(:focus-visible) { width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---- the bar: edge-aligned, the name at one edge and the four pages at the other, an ink rule under it ---- */
.bar { border-bottom: var(--rule-bar) solid var(--color-ink); background: var(--color-paper); }
.bar__in { display: flex; align-items: stretch; justify-content: space-between; gap: var(--space-lg); min-height: var(--bar-height); }
.wordmark { display: inline-flex; align-items: center; gap: var(--space-sm); font-family: var(--font-display); font-weight: 700; font-size: var(--text-xl); line-height: 1; letter-spacing: var(--tracking-display); color: var(--color-ink); text-decoration: none; white-space: nowrap; }
.wordmark__in { color: var(--color-muted); }
.mark { width: 34px; height: 24px; flex-shrink: 0; }
.mark__paper { fill: var(--color-sheet); stroke: var(--color-ink); stroke-width: 2; }
.mark__fold { fill: none; stroke: var(--color-fold); stroke-width: 1; }
.mark__cut { fill: none; stroke: var(--color-cut); stroke-width: 2; }
.bar__nav { display: flex; align-items: stretch; }
.bar__nav a { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding-inline: var(--space-lg); border-left: var(--rule-hair) solid var(--color-rule); border-bottom: var(--rule-box) solid transparent; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background-color var(--dur-micro) var(--ease-out); }
.bar__nav a:last-child { border-right: var(--rule-hair) solid var(--color-rule); }
.bar__nav a:hover { background: var(--color-paper-3); }
.bar__nav a[aria-current="page"] { background: var(--color-paper-3); border-bottom-color: var(--color-ink); }

/* ---- controls: square, an ink rule or an ink fill; capitals, as the heads are ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); min-height: 48px; padding: 0 var(--space-lg); border: var(--rule-bar) solid var(--color-ink); border-radius: var(--radius-pill); background: transparent; color: var(--color-ink); font-family: var(--font-body); font-weight: 600; font-size: var(--text-sm); line-height: 1; letter-spacing: 0.02em; text-transform: uppercase; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.btn:hover { background: var(--color-paper-3); color: var(--color-ink); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
/* the button that holds the file field takes the field's ring and its disabled look (kept apart: a browser that does not know :has drops only these two) */
.btn:has(input:focus-visible) { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.btn:has(input:disabled) { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn[aria-busy="true"] { cursor: progress; }
.btn--primary { background: var(--color-ink); color: var(--color-paper); }
.btn--primary:hover { background: var(--color-ink-2); color: var(--color-paper); }
.btn--quiet { border-color: transparent; padding-inline: var(--space-xs); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.22em; }
.btn--onink { background: var(--color-paper); border-color: var(--color-paper); color: var(--color-ink); }
.btn--onink:hover { background: var(--color-paper-3); border-color: var(--color-paper-3); color: var(--color-ink); }
.btn--onink-quiet { border-color: var(--color-paper); color: var(--color-paper); }
.btn--onink-quiet:hover { background: var(--color-ink-2); color: var(--color-paper); }
.band .btn:focus-visible { outline-color: var(--color-accent-3); }
.btn__meta { font-weight: 400; }
.textbtn { display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none; color: var(--color-ink); font-family: var(--font-body); font-size: var(--text-sm); font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.18em; cursor: pointer; }
.textbtn:hover { text-decoration-thickness: 3px; }
.textbtn:active { transform: translateY(1px); }
.textbtn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.textbtn:disabled { opacity: 0.55; cursor: not-allowed; }

/* ---- the maker: the head, then the form, the page being made and the sheet ---- */
.bench { padding-block: var(--space-xl) var(--space-2xl); }
.bench__in { display: grid; gap: var(--space-xl); }
.bench__head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-lg) var(--gap-columns); align-items: end; }
.bench__say { display: grid; gap: var(--space-sm); }
.bench h1 { font-size: var(--text-display-s); max-width: 24ch; }

/* what a zine takes: four figures in ruled cells, each in the colour of its job */
.facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: var(--rule-box) solid var(--color-ink); }
.facts__cell { display: grid; gap: var(--space-2xs); align-content: end; padding: var(--space-sm); border-left: var(--rule-box) solid var(--color-ink); font-size: var(--text-sm); font-weight: 600; line-height: 1.2; color: var(--color-ink); background: var(--color-sheet); }
.facts__cell:first-child { border-left: 0; }
.facts__cell b { font-family: var(--font-display); font-weight: 700; font-size: var(--text-display-s); line-height: 0.9; font-variant-numeric: tabular-nums; }
.facts__cell--fold { background: var(--color-fold); color: var(--color-accent-ink); }
.facts__cell--cut { background: var(--color-cut-deep); color: var(--color-accent-ink); }
.facts__cell--page { background: var(--color-page); color: var(--color-ink); }

.bench__work { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-xl) var(--gap-columns); align-items: start; }
.maker { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 3fr); grid-template-areas: "tabs leaf" "fields leaf"; grid-template-rows: auto 1fr; gap: var(--space-md) var(--gap-columns); align-items: start; }

/* the eight pages as a ruled strip: the one being made is yellow */
.tabs { grid-area: tabs; margin: 0; padding: 0; border: 0; min-width: 0; }
.tabs legend { padding: 0; margin-bottom: var(--space-xs); font-size: var(--text-sm); font-weight: 600; color: var(--color-ink-2); }
.tabs__grid { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--rule-hair); border: var(--rule-bar) solid var(--color-ink); background: var(--color-ink); }
.tabs input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tabs label { display: flex; align-items: center; justify-content: center; min-height: 48px; padding-inline: var(--space-2xs); background: var(--color-paper-3); color: var(--color-ink); font-size: var(--text-sm); font-weight: 600; white-space: nowrap; cursor: pointer; transition: background-color var(--dur-micro) var(--ease-out); }
.tabs label:hover { background: var(--color-sheet); }
.tabs label:active { transform: translateY(1px); }
.tabs input:checked + label { background: var(--color-page); }
.tabs input:focus-visible + label { outline: 2px solid var(--color-focus); outline-offset: -4px; }
.tabs input:disabled + label { opacity: 0.55; cursor: not-allowed; }

/* the page being made, on printer paper */
.leaf { grid-area: leaf; margin: 0; display: grid; gap: var(--space-xs); }
.leaf__paper { aspect-ratio: 297 / 420; display: grid; place-items: center; overflow: hidden; background: var(--color-sheet); border: var(--rule-bar) solid var(--color-ink); }
.leaf__canvas { display: block; width: 100%; height: 100%; }
.leaf__wait { padding: var(--space-md); font-size: var(--text-sm); color: var(--color-muted); text-align: center; }
figcaption { font-size: var(--text-sm); font-weight: 600; color: var(--color-ink-2); }

.fields { grid-area: fields; display: grid; gap: var(--space-sm); min-width: 0; }
.field { display: grid; gap: var(--space-2xs); min-width: 0; }
.field__label { display: flex; justify-content: space-between; gap: var(--space-sm); font-size: var(--text-sm); font-weight: 600; color: var(--color-ink); }
.field__count { font-weight: 400; color: var(--color-ink-2); font-variant-numeric: tabular-nums; }
.field input, .field textarea { width: 100%; min-height: 48px; padding: var(--space-sm); border: var(--rule-bar) solid var(--color-ink); border-radius: var(--radius-card); background: var(--color-paper-3); color: var(--color-ink); font-family: var(--font-body); font-size: var(--text-md); line-height: 1.4; outline: 2px solid transparent; outline-offset: -5px; transition: background-color var(--dur-micro) var(--ease-out); }
.field textarea { min-height: 112px; resize: vertical; }
.field input:hover, .field textarea:hover { background: var(--color-sheet); }
.field input:focus-visible, .field textarea:focus-visible { outline-color: var(--color-focus); background: var(--color-sheet); }
.field input:disabled, .field textarea:disabled { opacity: 0.55; cursor: not-allowed; }
.field ::placeholder { color: var(--color-muted); opacity: 1; }
.pic, .maker__more, .acts, .go { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm); }
.maker__full { font-size: var(--text-sm); font-weight: 600; color: var(--color-ink); }
.maker__full:empty, .maker__note:not(:has(span:not(:empty))) { display: none; }
.maker__hint, .maker__note, .sheet__stays, .sheet__status { font-size: var(--text-sm); color: var(--color-ink-2); }
.maker__note, .sheet__status { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2xs) var(--space-sm); }
.sheet__status:not(:has(span:not(:empty))) { display: none; }
.nojs { font-size: var(--text-sm); font-weight: 600; color: var(--color-ink); }
.js .nojs { display: none; }

/* the sheet the printer gets: the pages under a plan of the folds and the cut */
.sheet { display: grid; gap: var(--space-sm); min-width: 0; }
.sheet__fig { margin: 0; display: grid; gap: var(--space-xs); }
.sheet__paper { position: relative; aspect-ratio: 297 / 210; overflow: hidden; background: var(--color-sheet); border: var(--rule-bar) solid var(--color-ink); }
.sheet__canvas, .sheet__paper .dg { position: absolute; inset: 0; width: 100%; height: 100%; }
.sheet__paper .dg__paper, .sheet__paper.is-live .dg__names { display: none; }

/* ---- the drawings: paper, ink lines, a fold in blue, the cut in red ---- */
.dg { display: block; width: 100%; height: auto; overflow: visible; }
.dg__paper { fill: var(--color-sheet); stroke: var(--color-ink); stroke-width: 2; stroke-linejoin: miter; vector-effect: non-scaling-stroke; }
.dg__fold { fill: none; stroke: var(--color-fold); stroke-width: 2; stroke-dasharray: 7 6; vector-effect: non-scaling-stroke; }
.dg__cut { fill: none; stroke: var(--color-cut); stroke-width: 3; stroke-dasharray: 9 6; vector-effect: non-scaling-stroke; }
.dg__cut--made { stroke-dasharray: none; }
.dg__scissors circle, .dg__scissors path { fill: none; stroke: var(--color-cut); stroke-width: 2; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.dg__stop { fill: none; stroke: var(--color-cut); stroke-width: 3; vector-effect: non-scaling-stroke; }
.dg__line, .dg__edge, .dg__move, .dg__tick, .dg__frames rect { fill: none; stroke: var(--color-ink); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.dg__edge { stroke-width: 3; }
.dg__frames rect, .dg__tick { stroke-width: 1; }
.dg__head { fill: var(--color-ink); }
.dg text { font-family: var(--font-body); font-weight: 600; fill: var(--color-ink); text-anchor: middle; dominant-baseline: central; }
.dg text.dg__from { text-anchor: start; }
.dg--plan text { font-size: 15px; }
.dg--blank text { font-size: 9px; }
.dg--step text { font-size: 10px; }
.key { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2xs) var(--space-lg); font-size: var(--text-sm); color: var(--color-ink-2); }
.key li { display: inline-flex; align-items: center; gap: var(--space-xs); }
.key__line { width: 34px; height: 8px; flex-shrink: 0; }
.key__line path { fill: none; stroke-width: 3; }
.key__line--fold path { stroke: var(--color-fold); stroke-dasharray: 7 5; }
.key__line--cut path { stroke: var(--color-cut); stroke-dasharray: 8 5; }

/* ---- sections ---- */
.sec { padding-block: var(--section-gap-s); }
.sec--well { background: var(--color-paper-2); }
.sec__head { display: grid; gap: var(--space-md); align-content: start; }
.sec__head--split { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--space-md) var(--gap-columns); align-items: end; margin-bottom: var(--space-2xl); }

/* all eight pages, in reading order */
html:not(.js) .shelf { display: none; }
.shelf { padding-block: var(--space-2xl) 0; }
.shelf__row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: var(--space-md); }
.shelf__page { display: grid; gap: var(--space-xs); color: var(--color-ink); text-decoration: none; }
.shelf__paper { display: block; aspect-ratio: 297 / 420; overflow: hidden; background: var(--color-sheet); border: var(--rule-bar) solid var(--color-ink); }
.shelf__canvas { display: block; width: 100%; height: 100%; }
.shelf__name { justify-self: start; padding: var(--space-2xs) var(--space-xs); font-size: var(--text-sm); font-weight: 600; }
.shelf__page:hover .shelf__name { background: var(--color-paper-3); }
.shelf__page[aria-current="true"] .shelf__name { background: var(--color-page); }
.shelf__page:active { transform: translateY(1px); }
.shelf__page:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; }

/* a head and its rows beside a drawing */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-xl) var(--space-2xl); align-items: center; }
.split__say { display: grid; gap: var(--space-lg); justify-items: start; }
.split__say .rows { justify-self: stretch; }
.split__fig { margin: 0; display: grid; gap: var(--space-sm); min-width: 0; }
.rows { margin: 0; border-top: var(--rule-bar) solid var(--color-ink); }
.rows > div { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--space-2xs) var(--space-lg); align-items: baseline; padding-block: var(--space-md); border-bottom: var(--rule-hair) solid var(--color-rule); }
.rows dt { font-family: var(--font-display); font-weight: 700; font-size: var(--text-title); line-height: 1.1; text-transform: uppercase; color: var(--color-ink); }
.rows dd { margin: 0; max-width: 60ch; }

/* six ideas as an index */
.index { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--space-xl) var(--space-2xl); }
.index__rows { list-style: none; margin: 0; padding: 0; border-top: var(--rule-box) solid var(--color-ink); }
.index__rows li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-xs) var(--space-lg); align-items: center; padding-block: var(--space-md); border-bottom: var(--rule-hair) solid var(--color-rule); }
.index .sec__head { justify-items: start; }

/* the ink band: the blank sheet */
.band { background: var(--color-ink); color: var(--color-paper); padding-block: var(--section-gap-s); }
.band h2, .band .lead { color: var(--color-paper); }
.split--band { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); }
.split--band .dg__paper { stroke: none; }

/* ---- reading pages ---- */
.head { padding-block: var(--space-3xl) var(--space-2xl); border-bottom: var(--rule-bar) solid var(--color-ink); }
.head__in { display: grid; gap: var(--space-md); justify-items: start; }
.byline { font-size: var(--text-sm); color: var(--color-ink-2); }
article h2, .sec--q h2 { font-size: var(--text-3xl); max-width: 22ch; }
.sec--q { padding-block: var(--space-2xl); border-bottom: var(--rule-hair) solid var(--color-rule); }
.qa { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--space-md) var(--space-2xl); align-items: start; }
.qa__a { display: grid; gap: var(--space-lg); }
.answer { font-size: var(--text-lead); line-height: 1.45; max-width: 58ch; color: var(--color-ink); }

/* the five steps: a real list, its numbers in the colour of what the step does */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps__step { counter-increment: step; display: grid; grid-template-columns: auto minmax(0, 5fr) minmax(0, 6fr); gap: var(--space-lg) var(--gap-columns); align-items: start; padding-block: var(--space-xl); border-bottom: var(--rule-hair) solid var(--color-rule); scroll-margin-top: var(--space-xl); }
.steps__step::before { content: counter(step); display: grid; place-items: center; align-self: start; width: var(--space-3xl); aspect-ratio: 1; border: var(--rule-box) solid var(--color-ink); font-family: var(--font-display); font-weight: 700; font-size: var(--text-section); line-height: 1; }
.steps__step--fold::before { background: var(--color-fold); color: var(--color-accent-ink); }
.steps__step--cut::before { background: var(--color-cut-deep); color: var(--color-accent-ink); }
.steps__step--page::before { background: var(--color-page); color: var(--color-ink); }
.steps__say { display: grid; gap: var(--space-sm); }
.steps__say p { font-size: var(--text-lead); line-height: 1.45; max-width: 46ch; color: var(--color-ink); }
.steps__fig { margin: 0; padding: var(--space-md); background: var(--color-paper-3); }

/* an idea and its eight pages, laid out four by two like the sheet */
.idea { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--space-lg) var(--space-2xl); align-items: start; padding-block: var(--space-2xl); border-bottom: var(--rule-hair) solid var(--color-rule); scroll-margin-top: var(--space-xl); }
.idea:last-child { border-bottom: 0; }
.idea__say { display: grid; gap: var(--space-md); justify-items: start; }
.plan { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--rule-hair); border: var(--rule-box) solid var(--color-ink); background: var(--color-ink); }
.plan li { display: grid; align-content: start; gap: var(--space-2xs); min-height: 7.5rem; padding: var(--space-sm); background: var(--color-sheet); min-width: 0; }
.plan__page { font-size: var(--text-xs); font-weight: 600; color: var(--color-muted); }
.plan__title { font-weight: 600; line-height: 1.25; color: var(--color-ink); overflow-wrap: break-word; }
.plan__words { font-size: var(--text-sm); line-height: 1.35; color: var(--color-ink-2); }

/* ---- the foot: index columns under an ink rule ---- */
.foot { border-top: var(--rule-bar) solid var(--color-ink); padding-block: var(--space-2xl) var(--space-xl); }
.foot__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 2fr) minmax(0, 2fr) minmax(0, 3fr); gap: var(--space-xl) var(--gap-columns); align-items: start; }
.foot__lead { display: grid; gap: var(--space-sm); }
.wordmark--foot { font-size: var(--text-display-s); }
.foot__h { margin-bottom: var(--space-xs); font-size: var(--text-sm); font-weight: 600; color: var(--color-ink-2); }
.foot__col ul { list-style: none; margin: 0; padding: 0; display: grid; }
.foot__col a { display: inline-flex; align-items: center; min-height: 44px; }
.foot__fix a { min-height: 0; }
.foot__line { grid-column: 1 / -1; padding-top: var(--space-md); border-top: var(--rule-hair) solid var(--color-rule); font-size: var(--text-sm); color: var(--color-ink-2); max-width: none; }

/* ---- the share card (og-card.html only, never published) ---- */
.og { background: var(--color-paper); }
.og__in { width: 1200px; height: 630px; box-sizing: border-box; padding: var(--space-2xl); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--space-2xl); align-items: center; }
.og__say { display: grid; gap: var(--space-lg); }
.og__name { font-size: var(--text-2xl); }
.og h1 { font-size: 76px; max-width: 10ch; }
.og__facts .facts__cell b { font-size: 52px; }
.og__sheet .dg__paper { stroke-width: 3; }

/* ---- narrower screens: everything in one column, the four pages of the bar across the full width ---- */
@media (max-width: 60rem) {
  .bench__head, .bench__work, .sec__head--split, .split, .split--band, .index, .qa, .idea { grid-template-columns: minmax(0, 1fr); }
  .sec__head--split { align-items: start; }
  .steps__step { grid-template-columns: auto minmax(0, 1fr); }
  .steps__fig { grid-column: 1 / -1; }
  .foot__in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot__lead { grid-column: 1 / -1; }
}
@media (max-width: 40rem) {
  .bar__in { flex-direction: column; gap: 0; min-height: 0; }
  .wordmark { min-height: 56px; }
  .bar__nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-inline: calc(-1 * var(--gutter)); border-top: var(--rule-hair) solid var(--color-rule); }
  .bar__nav a { padding-inline: var(--space-2xs); }
  .bar__nav a:first-child { border-left: 0; }
  .bar__nav a:last-child { border-right: 0; }
  .maker { grid-template-columns: minmax(0, 1fr); grid-template-areas: "tabs" "leaf" "fields"; grid-template-rows: auto; }
  .leaf { grid-template-columns: minmax(0, 13.5rem) minmax(0, 1fr); align-items: end; gap: var(--space-sm); }
  .shelf__row { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-sm); }
  .rows > div { grid-template-columns: minmax(0, 1fr); }
  .plan { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan li { min-height: 5.5rem; }
  .steps__step::before { width: var(--space-2xl); }
  .head { padding-block: var(--space-2xl) var(--space-xl); }
  .foot__in { grid-template-columns: minmax(0, 1fr); }
  article h2, .sec--q h2 { font-size: var(--text-2xl); }
}
