/* Hallmark · shape: Workbench · genre: playful · theme: Hum (deal 1/3, seed word-search-puzzle-maker-7c05·eadcce63·2026-12-05·r0) · job: try · draw: manual
 * hero: the head and the form beside the puzzle they make · nav: edge-aligned, the wordmark and two links · footer: a ruled note over the credit lines · imagery: none, the puzzle sheets are the product · signature: the answer key, each word ringed in pear on card stock, on a blue sugar-paper mat · hum: Chillax is not on npm, Fredoka (heads, grids, buttons) and Nunito (reading) stand in; no grain or fibre behind text (owner rule)
 * axes: light/rounded-sans/chromatic-yellow · posture: full-palette · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R3 V4 · weakest: R, one maker and a page on how it places words; the two sheets carry the look */
/* Hallmark · waive 77 · every page · a puzzle maker and a page on how it works, not a landing strip */
/* Hallmark · waive 44c · every page · the form and the puzzle it makes fill the first screen; on the second page the head stands over its list */
/* Hallmark · waive 79 · the maker · the space under the form sits beside the answer key, which prints as page two */
: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(97% 0.012 95); --color-paper-2: oklch(94.5% 0.018 95); --color-paper-3: oklch(91% 0.022 95);
  --color-ink: oklch(20% 0.014 255); --color-ink-2: oklch(29% 0.014 255); --color-muted: oklch(47% 0.014 255);
  --color-rule: oklch(87% 0.016 95);
  --color-accent: oklch(87% 0.175 96); --color-accent-deep: oklch(72% 0.16 92); --color-accent-ink: oklch(20% 0.014 255);
  --color-accent-2: oklch(50% 0.17 250); --color-accent-3: oklch(70% 0.2 22);
  --color-mint: oklch(82% 0.15 152); --color-mint-deep: oklch(48% 0.12 155); --color-focus: oklch(50% 0.17 250);
  --color-card: oklch(98.8% 0.007 95); --color-edge: oklch(83% 0.04 88); --color-fringe: oklch(99.2% 0.006 95);
  --color-kraft: oklch(63% 0.085 62); --color-sand: oklch(77% 0.1 76); --color-sugar: oklch(89% 0.035 236);
  --color-hill-1: oklch(94.5% 0.03 118); --color-hill-2: oklch(91.5% 0.045 135); --color-leaf: oklch(64% 0.15 150);
  --font-display: "Fredoka", ui-rounded, ui-sans-serif, system-ui, sans-serif; --font-body: "Nunito", ui-rounded, ui-sans-serif, system-ui, sans-serif;
  --font-outlier: var(--font-display);
  --radius-card: 24px; --radius-stock: 16px; --radius-input: 14px; --radius-pill: 999px; --rule-hair: 1px;
  --shadow-card: 0 1px 2px oklch(20% 0.014 255 / 0.06), 0 12px 28px -14px oklch(20% 0.014 255 / 0.22);
  --shadow-paper: drop-shadow(0 0 0.6px oklch(20% 0.014 255 / 0.32)) drop-shadow(1.5px 2.5px 1.5px oklch(20% 0.014 255 / 0.1)) drop-shadow(6px 14px 16px oklch(20% 0.014 255 / 0.13));
  --tracking-display: -0.03em; --display-weight: 600;
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1); --ease-snap: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::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: color-mix(in oklab, var(--color-accent) 22%, transparent); 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: natural vib=12 exp=4 */
[data-slot] > img { filter: saturate(1.06) brightness(1.04); }

:root {
  --color-mark: var(--color-accent);
  --color-loud: color-mix(in oklab, var(--color-accent-3) 38%, transparent);
  --color-grow: color-mix(in oklab, var(--color-mint) 70%, transparent);
  --grid-pad: 8px;
}

@font-face { font-family: "Fredoka"; src: url("/fonts/fredoka-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("/fonts/nunito-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("/fonts/nunito-800.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }

body { color: var(--color-ink-2); font-size: 1.0625rem; font-weight: 500; }
b, strong { font-weight: 800; color: var(--color-ink); }
h1, h2 { color: var(--color-ink); line-height: 1.03; }
.num { font-variant-numeric: tabular-nums; }
.skip { position: absolute; left: var(--space-md); top: -100px; background: var(--color-ink); color: var(--color-paper); padding: var(--space-xs) var(--space-md); border-radius: var(--radius-input); z-index: var(--z-modal); }
.skip:focus-visible { top: var(--space-md); }
a { color: var(--color-accent-2); text-decoration-thickness: 2px; }
a:hover { color: var(--color-ink); }
a:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; border-radius: 4px; }

.bar__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2xs) var(--space-xl); padding-block: var(--space-md); }
.wordmark { font-family: var(--font-display); font-weight: 600; font-size: var(--text-xl); color: var(--color-ink); text-decoration: none; letter-spacing: -0.02em; }
.wordmark span { background: var(--color-accent); border-radius: 8px; padding: 0 0.2em; margin-left: 0.04em; }
.bar__nav { display: flex; flex-wrap: wrap; gap: 0 var(--space-lg); }
.bar__nav a { min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; font-family: var(--font-display); font-weight: 600; color: var(--color-ink-2); }
.bar__nav a:active { transform: translateY(1px); }
.bar__nav a[aria-current="page"] { color: var(--color-ink); box-shadow: inset 0 -0.45em 0 var(--color-accent); }

/* the maker: the form beside the sheets it makes */
.work { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-2xl); padding-block: var(--space-xl) var(--section-gap-s); align-items: start; }
.work__side h1 { font-size: clamp(2.6rem, 4.6vw, 4.4rem); max-width: 12ch; }
.work__side .lead { margin-top: var(--space-sm); max-width: 34ch; }
.maker { margin-top: var(--space-xl); display: grid; gap: var(--space-md); }
.field { display: grid; gap: var(--space-2xs); font-family: var(--font-display); font-weight: 600; font-size: var(--text-sm); color: var(--color-ink); }
.field input, .field select, .field textarea { font-family: var(--font-body); font-weight: 500; font-size: var(--text-md); color: var(--color-ink); background: var(--color-card); border: 1px solid var(--color-muted); border-radius: var(--radius-input); min-height: 52px; padding: var(--space-sm) var(--space-md); width: 100%; }
.field textarea { line-height: 1.45; resize: vertical; text-transform: uppercase; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.hint { font-size: var(--text-sm); color: var(--color-muted); margin-top: calc(-1 * var(--space-xs)); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); }
.dirs { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.dirs legend { font-family: var(--font-display); font-weight: 600; font-size: var(--text-sm); color: var(--color-ink); padding: 0; margin-bottom: var(--space-2xs); }
.pill { display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 44px; padding: 0 var(--space-md); border-radius: var(--radius-pill); background: var(--color-card); box-shadow: inset 0 0 0 1px var(--color-edge), 0 3px 0 0 var(--color-edge); font-family: var(--font-display); font-weight: 600; color: var(--color-ink); cursor: pointer; transition: background-color var(--dur-micro) var(--ease-snap), color var(--dur-micro) var(--ease-snap); }
.pill input { width: 18px; height: 18px; margin: 0; accent-color: var(--color-accent); }
.pill input:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; }
.pill:has(input:checked) { background: var(--color-ink); color: var(--color-paper); box-shadow: 0 3px 0 0 var(--color-ink-2); }
.tools { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-bottom: var(--space-lg); }
.btn { --edge: 5px; border: 0; border-radius: var(--radius-stock); min-height: 54px; padding: 0 var(--space-lg); font-family: var(--font-display); font-weight: 600; font-size: var(--text-md); color: var(--color-ink); background: transparent; box-shadow: inset 0 0 0 2px var(--color-ink-2), 0 var(--edge) 0 0 var(--color-edge); cursor: pointer; transition: translate var(--dur-micro) var(--ease-snap), box-shadow var(--dur-micro) var(--ease-snap); }
.btn--primary { background: var(--color-accent); color: var(--color-accent-ink); box-shadow: 0 var(--edge) 0 0 var(--color-accent-deep); transition-timing-function: var(--ease-spring); }
.btn:hover { --edge: 7px; translate: 0 -2px; }
.btn:active { --edge: 1px; translate: 0 4px; }
.btn:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; }
.btn:disabled, .field input:disabled, .field select:disabled, .field textarea:disabled, .pill input:disabled { opacity: 0.5; cursor: not-allowed; }

/* what went in */
.say { min-height: 2.5em; }
.say__h { font-family: var(--font-display); font-weight: 600; font-size: var(--text-lg); color: var(--color-ink); }
.say__h b { background: var(--color-grow); border-radius: 6px; padding: 0 0.25em; }
.notes { margin: var(--space-xs) 0 0; padding: 0; list-style: none; display: grid; gap: var(--space-2xs); font-size: var(--text-sm); max-width: 62ch; }
.notes .out b { background: var(--color-loud); border-radius: 4px; padding: 0 0.2em; }

/* the sheets: card stock on a blue sugar-paper mat */
.sheets { margin-top: var(--space-md); background: var(--color-sugar); border-radius: var(--radius-card); padding: var(--space-lg); display: grid; gap: var(--space-lg); }
.sheet { background: var(--color-card); border-radius: var(--radius-card); padding: var(--space-xl); box-shadow: var(--shadow-card); }
.sheet__h { font-size: var(--text-2xl); max-width: none; }
.sheet__ask { margin-top: var(--space-2xs); color: var(--color-muted); }
.sheet__foot { margin-top: var(--space-lg); font-size: var(--text-xs); color: var(--color-muted); }

.grid { position: relative; isolation: isolate; container-type: inline-size; width: min(100%, calc(var(--n) * 2.6rem)); margin-top: var(--space-md); padding: var(--grid-pad); border: 2px solid var(--color-ink); border-radius: var(--radius-input); font-family: var(--font-display); font-weight: 600; color: var(--color-ink); }
.grid[data-n="10"] { --n: 10; } .grid[data-n="11"] { --n: 11; } .grid[data-n="12"] { --n: 12; } .grid[data-n="13"] { --n: 13; } .grid[data-n="14"] { --n: 14; } .grid[data-n="15"] { --n: 15; }
.grid[data-n="16"] { --n: 16; } .grid[data-n="17"] { --n: 17; } .grid[data-n="18"] { --n: 18; } .grid[data-n="19"] { --n: 19; } .grid[data-n="20"] { --n: 20; }
.grid .row { display: block; white-space: nowrap; line-height: 0; }
.grid .row > span { display: inline-block; position: relative; z-index: 1; width: calc(100cqi / var(--n)); height: calc(100cqi / var(--n)); line-height: calc(100cqi / var(--n)); font-size: calc(56cqi / var(--n)); text-align: center; vertical-align: top; }
.grid .off { color: var(--color-muted); }
.marks { position: absolute; z-index: 0; top: var(--grid-pad); left: var(--grid-pad); width: calc(100% - 2 * var(--grid-pad)); height: calc(100% - 2 * var(--grid-pad)); overflow: visible; }
.mark-out { stroke: var(--color-ink); stroke-width: 0.8; stroke-linecap: round; }
.mark-in { stroke: var(--color-mark); stroke-width: 0.66; stroke-linecap: round; }
.words { margin: var(--space-lg) 0 0; padding: 0; list-style: none; columns: 3 9rem; column-gap: var(--space-lg); font-family: var(--font-display); font-weight: 600; font-size: var(--text-lg); color: var(--color-ink); }
.words li { break-inside: avoid; padding-block: var(--space-3xs); }
.keylist { margin: var(--space-lg) 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: var(--space-2xs) var(--space-lg); font-size: var(--text-sm); }

/* the second page */
.head { padding-block: var(--space-3xl) var(--space-2xl); }
.head h1 { font-size: clamp(2.6rem, 5vw, 4.4rem); max-width: 16ch; }
.head .lead { margin-top: var(--space-md); max-width: 48ch; }
.sec { padding-block: var(--section-gap-s); }
.sec--first { padding-top: var(--space-2xl); }
.sec + .sec { border-top: 2px dashed var(--color-edge); }
.sec h2 { font-size: var(--text-section); }
.sec h2 + * { margin-top: var(--space-lg); }
.sec__note { margin-top: var(--space-lg); max-width: 62ch; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-sm); max-width: 64ch; }
.steps li { padding: var(--space-md) var(--space-lg); background: var(--color-card); border-radius: var(--radius-stock); box-shadow: inset 0 0 0 1px var(--color-rule), 0 4px 0 0 var(--color-edge); }
.pairs { margin-top: var(--space-lg); display: grid; grid-template-columns: repeat(2, minmax(0, 24rem)); gap: var(--space-xl); }
.mini { margin: 0; background: var(--color-card); border-radius: var(--radius-card); padding: var(--space-lg); box-shadow: var(--shadow-card); }
.mini .grid { margin-top: 0; width: 100%; }
.mini figcaption { margin-top: var(--space-sm); font-family: var(--font-display); font-weight: 600; color: var(--color-ink); }

.foot { border-top: 2px dashed var(--color-edge); }
.foot__in { padding-block: var(--space-xl); display: grid; gap: var(--space-xs); font-size: var(--text-sm); }
.foot__note, .foot__line { margin: 0; max-width: 72ch; }

@media (max-width: 960px) {
  .work { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
}
@media (max-width: 600px) {
  .head { padding-block: var(--space-xl) var(--space-lg); }
  .work { padding-top: var(--space-lg); }
  .sheets { padding: var(--space-sm); }
  .sheet { padding: var(--space-md); }
  .pairs { grid-template-columns: minmax(0, 1fr); }
  .words { font-size: var(--text-md); }
}

/* print: the puzzle on page one, the answer key on page two, on white paper with the controls hidden */
@media print {
  @page { size: A4; margin: 12mm; }
  html, body, .sheets, .sheet { background: none !important; box-shadow: none !important; }
  .skip, .bar, .foot, .work__side, .tools, .say, noscript { display: none !important; }
  .work { display: block; padding: 0; }
  .sheets { display: block; margin: 0; padding: 0; }
  .sheet { padding: 0; border-radius: 0; break-inside: avoid; }
  .sheet + .sheet { break-before: page; margin-top: 0; }
  .sheet__h { font-size: 24pt; }
  .sheet__ask { font-size: 12pt; }
  .grid { width: min(100%, calc(var(--n) * 11mm), 150mm); margin-top: 6mm; }
  .sheet--key .grid { width: min(100%, calc(var(--n) * 9mm), 130mm); }
  .words { font-size: 13pt; margin-top: 7mm; columns: 4; }
  .keylist { font-size: 8.5pt; line-height: 1.3; margin-top: 5mm; }
  .sheet__foot { margin-top: 6mm; font-size: 8pt; }
}
