/* Hallmark · shape: Workbench · genre: editorial · theme: Specimen (deal 3/3, seed fill-in-the-blanks-worksheet-maker-teachers-3705·fa05fc06·2026-12-05·r0) · job: try · draw: manual
 * hero: the head over the desk, the passage beside its words to tap · nav: edge-aligned, the wordmark and two links · footer: a ruled note over the credit lines · imagery: none, the worksheet itself on white paper · signature: the passage set as words to tap, and the two A4 sheets it makes side by side
 * axes: light/high-contrast-serif/cool · posture: restrained · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R3 V4 · weakest: R, one maker and one worked example; the two sheets of paper carry the look */
/* Hallmark · waive 77 · every page · a worksheet maker and one worked example, not a landing strip: the maker is two working sections, the example four short steps */
/* Hallmark · waive 59 · the maker · the head sits close over the desk it opens, so the passage and its words to tap share the first screen */
/* Hallmark · waive 44c · every page · on the maker the desk under the head is the first screen's visual, the passage beside its words to tap; on the how-to page the head stands over the passage it starts from */
: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(96.5% 0.016 82); --color-paper-2: oklch(93.5% 0.02 80); --color-paper-3: oklch(89% 0.024 78);
  --color-ink: oklch(17% 0.012 60); --color-ink-2: oklch(28% 0.014 60); --color-muted: oklch(49% 0.014 65);
  --color-rule: oklch(80% 0.018 75); --color-rule-2: oklch(66% 0.02 72);
  --color-accent: oklch(45% 0.18 262); --color-accent-ink: oklch(97% 0.012 82); --color-focus: oklch(50% 0.18 262);
  --color-guide: oklch(55% 0.16 262 / 0.5);
  --font-display: "Bodoni Moda", ui-serif, Georgia, serif; --font-body: "Geist", ui-sans-serif, system-ui, sans-serif;
  --font-outlier: "Geist Mono", ui-monospace, monospace;
  --radius-card: 0; --radius-pill: 0; --rule-hair: 1px;
  --shadow-card: none;
  --tracking-display: -0.02em; --display-weight: 400; --display-optical: 96;
}

*, *::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: duotone ink paper con=8 */
[data-slot]:has(> img) { isolation: isolate; background: var(--color-paper); outline: 1px solid color-mix(in oklab, var(--color-ink) 8%, transparent); outline-offset: -1px; }
[data-slot] > img { z-index: 0; filter: grayscale(1) contrast(1.08); mix-blend-mode: multiply; }
[data-slot]:has(> img)::before { content: ""; position: absolute; inset: 0; z-index: 1; background: var(--color-ink); mix-blend-mode: lighten; pointer-events: none; }

:root {
  --color-sheet: oklch(99.4% 0.004 82);   /* the worksheet on screen: whiter than the oat, as a printed page is */
  --font-outlier: "Geist Mono", ui-monospace, monospace;
}

@font-face { font-family: "Bodoni Moda"; src: url("/fonts/bodoni-opsz.woff2") format("woff2-variations"), url("/fonts/bodoni-opsz.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/fonts/geist-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/fonts/geist-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/fonts/geist-mono-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

body { color: var(--color-ink-2); font-size: 1.0625rem; }
h1, h2 { font-family: var(--font-display); font-weight: 400; font-variation-settings: "opsz" 96; color: var(--color-ink); line-height: 1.02; letter-spacing: var(--tracking-display); }
.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); z-index: var(--z-modal); }
.skip:focus-visible { top: var(--space-md); }
a { color: var(--color-ink); text-decoration-color: var(--color-accent); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

.bar { border-bottom: var(--rule-hair) solid var(--color-rule-2); }
.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-sm); }
.wordmark { font-family: var(--font-display); font-variation-settings: "opsz" 96; font-size: var(--text-2xl); line-height: 1; color: var(--color-ink); text-decoration: none; letter-spacing: -0.01em; }
.wordmark span { color: var(--color-accent); }
.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-weight: 500; font-size: var(--text-sm); color: var(--color-ink-2); }
.bar__nav a:active { transform: translateY(1px); }
.bar__nav a[aria-current="page"] { color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-accent); text-decoration-thickness: 1px; text-underline-offset: 0.4em; }

.hero { padding-block: var(--space-xl); }
.hero h1 { font-size: clamp(2.6rem, 4.6vw + 0.4rem, 4.9rem); max-width: 15ch; }
.hero .lead { margin-top: var(--space-md); max-width: 44ch; }

/* the desk: the passage and the choices on the left, its words to tap on the right */
.desk-sec { padding-bottom: var(--section-gap-s); }
.desk { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--space-xl) var(--space-2xl); }
.desk__set { display: grid; gap: var(--space-lg); align-content: start; }
.field { display: grid; gap: var(--space-xs); }
.field__label, .group legend, .desk__h { font-weight: 500; font-size: var(--text-sm); color: var(--color-ink); }
.field__hint { font-size: var(--text-sm); color: var(--color-muted); }
.field__hint .is-over { color: var(--color-error); }
textarea, .field input { width: 100%; font: inherit; font-size: var(--text-md); line-height: 1.55; color: var(--color-ink); background: var(--color-sheet); border: var(--rule-hair) solid var(--color-muted); border-radius: 0; padding: var(--space-sm) var(--space-md); }
textarea { resize: vertical; min-height: 10rem; }
.field input { min-height: 48px; }
textarea:focus-visible, .field input:focus-visible, .n:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.group { border: 0; margin: 0; padding: 0; display: grid; gap: var(--space-2xs); }
.group legend { padding: 0; margin-bottom: var(--space-2xs); }
.opt { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs); min-height: 44px; }
.opt input[type="radio"], .opt input[type="checkbox"] { width: 20px; height: 20px; margin: 0; accent-color: var(--color-ink); }
.opt input[type="radio"]:focus-visible, .opt input[type="checkbox"]:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.opt label { cursor: pointer; }
.n { width: 4.6em; min-height: 44px; font-family: var(--font-outlier); font-size: var(--text-md); text-align: center; color: var(--color-ink); background: var(--color-sheet); border: var(--rule-hair) solid var(--color-muted); border-radius: 0; padding: 0 var(--space-2xs); }
.n:disabled { background: var(--color-paper-2); color: var(--color-muted); border-color: var(--color-rule); cursor: not-allowed; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 var(--space-lg); font: inherit; font-weight: 500; font-size: var(--text-md); color: var(--color-accent-ink); background: var(--color-ink); border: var(--rule-hair) solid var(--color-ink); border-radius: 0; cursor: pointer; }
.btn--line { color: var(--color-ink); background: transparent; }
.btn--small { min-height: 44px; padding: 0 var(--space-md); font-size: var(--text-sm); }
.btn:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.btn:disabled { background: var(--color-paper-2); color: var(--color-muted); border-color: var(--color-rule-2); cursor: not-allowed; }

.desk__board { display: grid; gap: var(--space-sm); align-content: start; }
.board { background: var(--color-sheet); border: var(--rule-hair) solid var(--color-rule); padding: var(--space-md) var(--space-lg); font-size: var(--text-lg); color: var(--color-ink); max-height: 34rem; overflow-y: auto; }
.board p { max-width: none; line-height: 2.5; }
.board p + p { margin-top: var(--space-sm); }
.w { display: inline-block; min-height: 44px; line-height: 44px; margin: 0; padding: 0 0.08em; font: inherit; color: inherit; background: transparent; border: 0; border-bottom: var(--rule-hair) dotted var(--color-rule-2); border-radius: 0; cursor: pointer; }
.w:hover { border-bottom: var(--rule-hair) solid var(--color-ink); }
.w[aria-pressed="true"] { background: var(--color-ink); color: var(--color-accent-ink); border-bottom-color: var(--color-ink); }
.w:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 1px; }
.board__empty { color: var(--color-muted); }
.say { font-size: var(--text-md); color: var(--color-ink); max-width: 62ch; }

/* the two sheets: the worksheet and its key, as they print */
.out { padding-block: var(--space-2xl) var(--section-gap-s); border-top: var(--rule-hair) solid var(--color-rule-2); }
.out__bar { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--space-md) var(--space-xl); margin-bottom: var(--space-xl); }
.out__h { flex-basis: 100%; font-size: var(--text-display-s); max-width: 18ch; }
.out__set { display: flex; flex-wrap: wrap; align-items: end; gap: var(--space-sm) var(--space-xl); }
.field--title { min-width: 16rem; }
.field--title input { min-height: 44px; }
.out__do { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.out__copied { flex-basis: 100%; min-height: 1.5em; font-size: var(--text-sm); color: var(--color-ink); }
.papers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xl); align-items: start; }
.paper { aspect-ratio: 210 / 297; background: var(--color-sheet); border: var(--rule-hair) solid var(--color-rule); padding: 7% 7.5%; font-size: 0.9375rem; color: var(--color-ink); }
.paper__title { font-family: var(--font-display); font-size: 1.9em; line-height: 1.1; color: var(--color-ink); }
.paper__sub { margin-top: 0.4em; color: var(--color-muted); font-size: 0.9em; }
.paper__lines { display: flex; flex-wrap: wrap; gap: 0.6em 2em; margin-top: 1.2em; }
.paper__line { display: inline-flex; align-items: baseline; gap: 0.5em; }
.rule { display: inline-block; width: 8em; border-bottom: var(--rule-hair) solid var(--color-ink); }
.rule--long { width: 14em; }
.paper__bank { margin-top: 1.4em; border: var(--rule-hair) solid var(--color-ink); padding: 0.7em 1em; }
.paper__label { font-weight: 500; font-size: 0.85em; color: var(--color-ink); }
.bank { list-style: none; margin: 0.35em 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.3em 1.6em; }
.paper__text { margin-top: 1.4em; }
.paper__text p { max-width: none; line-height: 2.35; }
.paper__text p + p { margin-top: 0.6em; }
[data-density="mid"] .paper__text { font-size: 0.92em; }
[data-density="mid"] .paper__text p { line-height: 2.1; }
[data-density="dense"] .paper__text { font-size: 0.84em; }
[data-density="dense"] .paper__text p { line-height: 1.9; }
[data-density="tight"] .paper__text { font-size: 0.78em; }
[data-density="tight"] .paper__text p { line-height: 1.7; }
[data-density="tight"] .blank { width: 5.5em; }
.blank { display: inline-block; position: relative; width: 6.5em; height: 1.1em; vertical-align: -0.25em; border-bottom: var(--rule-hair) solid var(--color-ink); }
.blank__n { position: absolute; left: 0.1em; bottom: 0.15em; font-family: var(--font-outlier); font-size: 0.62em; line-height: 1; color: var(--color-muted); }
.keys { margin: 1em 0 0; padding-left: 1.8em; line-height: 1.9; }
.keys li::marker { font-family: var(--font-outlier); color: var(--color-muted); }
.keys--cols { columns: 2; column-gap: 2em; }
.keys--many { columns: 3; font-size: 0.85em; line-height: 1.6; }
.keys--lots { columns: 4; font-size: 0.75em; line-height: 1.45; }
.paper__empty { color: var(--color-muted); }

/* the reading pages */
.head { padding-block: var(--space-3xl) var(--space-2xl); }
.head h1 { font-size: clamp(2.4rem, 5vw, 4.4rem); max-width: 18ch; }
.head .lead { margin-top: var(--space-md); max-width: 56ch; }
.sec { padding-block: var(--section-gap-s); border-top: var(--rule-hair) solid var(--color-rule-2); }
.sec--first { padding-top: var(--space-2xl); }
.sec:last-child { padding-bottom: var(--section-gap-s); }
.sec h2 { font-size: var(--text-section); }
.sec h2 + * { margin-top: var(--space-lg); }
.sec__note { margin-top: var(--space-md); max-width: 64ch; color: var(--color-muted); font-size: var(--text-sm); }
.passage { max-width: 60ch; background: var(--color-paper-2); border: var(--rule-hair) solid var(--color-rule); padding: var(--space-lg) var(--space-xl); font-size: var(--text-lead); color: var(--color-ink); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; max-width: 64ch; border-top: var(--rule-hair) solid var(--color-rule); }
.steps li { padding: var(--space-sm) 0; border-bottom: var(--rule-hair) solid var(--color-rule); }
.steps b { color: var(--color-ink); font-weight: 500; }
.papers--example { max-width: 1100px; }

.foot { border-top: var(--rule-hair) solid var(--color-rule-2); }
.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) {
  .desk { grid-template-columns: minmax(0, 1fr); }
  .board { max-height: 26rem; }
}
@media (max-width: 720px) {
  .papers { grid-template-columns: minmax(0, 1fr); }
  .paper { padding: 8% 7%; }
}
@media (max-width: 600px) {
  .hero { padding-block: var(--space-xl) var(--space-lg); }
  .head { padding-block: var(--space-xl) var(--space-lg); }
  .board { padding: var(--space-sm) var(--space-md); font-size: var(--text-md); }
  .passage { padding: var(--space-md); font-size: var(--text-md); }
  .rule--long { width: 10em; }
}

/* printed: the worksheet on one A4 page, the key on the next; nothing else */
@media print {
  @page { size: A4; margin: 12mm; }
  html, body { background: none; }
  .skip, .bar, .foot, .hero, .desk-sec, .out__bar, .head, .sec:not(:has(.papers)) { display: none !important; }
  .sec:has(.papers) h2 { display: none; }
  .container, .out, .sec { padding: 0 !important; margin: 0 !important; max-width: none !important; border: 0 !important; }
  .papers { display: block; }
  .paper { aspect-ratio: auto; border: 0; padding: 0; background: none; font-size: 12.5pt; break-inside: auto; }
  .paper--key { break-before: page; }
  .paper__title { font-size: 22pt; }
  .paper__text p { line-height: 2.3; orphans: 3; widows: 3; }
  [data-density="mid"] .paper__text { font-size: 11pt; }
  [data-density="mid"] .paper__text p { line-height: 2.05; }
  [data-density="dense"] .paper__text { font-size: 10pt; }
  [data-density="dense"] .paper__text p { line-height: 1.8; }
  [data-density="tight"] .paper__text { font-size: 9pt; }
  [data-density="tight"] .paper__text p { line-height: 1.65; }
  [data-density="mid"] .paper__bank { font-size: 11pt; }
  [data-density="dense"] .paper__bank { font-size: 10pt; }
  [data-density="tight"] .paper__bank { font-size: 9pt; }
  .blank__n { color: var(--color-ink); }
  .paper__bank { break-inside: avoid; }
}
