/* Hallmark · shape: Workbench · genre: editorial · theme: Carnival (deal 3/3, seed wraps-how-much-gift-9673·dfeec2d5·2026-12-05·r0) · job: try · draw: manual
 * hero: the head over the sizes and the card that answers · nav: edge-aligned, the wordmark and two links · footer: a ruled note over the credit lines · imagery: none, the cut piece drawn with its folds · signature: the piece of paper to cut, yellow on the card, folds dashed, redrawn as you type · carnival: tinted paper
 * axes: light/display-heavy/chromatic-yellow · posture: restrained · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R3 V4 · weakest: R, one calculator and a page on its measures; the drawn piece carries the look */
/* Hallmark · waive 77 · every page · a calculator and a page on how it measures, not a landing strip */
/* Hallmark · waive 44c · every page · the card stands beside the sizes it answers; on the measures page the head stands over its list */
/* Hallmark · waive 79 · the calculator · the space under the card is the margin before the footer */
: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(92% 0.045 50); --color-paper-2: oklch(88% 0.050 45); --color-paper-3: oklch(82% 0.060 40);
  --color-ink: oklch(18% 0.080 20); --color-ink-2: oklch(28% 0.060 25); --color-muted: oklch(42% 0.050 30);
  --color-rule: oklch(40% 0.21 25); --color-accent: oklch(86% 0.18 95); --color-accent-2: oklch(40% 0.21 25);
  --color-accent-ink: oklch(18% 0.080 20); --color-focus: oklch(40% 0.21 25);
  --font-display: "Big Shoulders Display", Impact, sans-serif; --font-body: "Golos Text", system-ui, sans-serif;
  --font-outlier: var(--font-body);
  --radius-card: 2px; --radius-pill: 2px; --rule-hair: 1px; --rule-bar: 2px; --shadow-card: 4px 4px 0 var(--color-ink);
  --tracking-display: 0.015em; --display-weight: 800;
}

*, *::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=20 con=10 */
[data-slot] > img { filter: saturate(1.1) contrast(1.1); }

@font-face { font-family: "Big Shoulders Display"; src: url("/fonts/big-shoulders-800.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Golos Text"; src: url("/fonts/golos-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Golos Text"; src: url("/fonts/golos-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

body { color: var(--color-ink-2); }
h1, h2 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; color: var(--color-ink); line-height: 1; overflow-wrap: break-word; min-width: 0; }
.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-2); text-decoration-thickness: 2px; }
a:hover { color: var(--color-accent-2); }

.bar { border-bottom: 2px solid var(--color-ink); }
.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-weight: 800; font-size: var(--text-2xl); text-transform: uppercase; color: var(--color-ink); text-decoration: none; line-height: 1; }
.wordmark span { color: var(--color-accent-2); }
.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; 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-2); text-decoration-thickness: 3px; text-underline-offset: 0.35em; }

.hero { padding-block: var(--space-2xl) var(--section-gap-s); }
.hero h1 { font-size: clamp(3.4rem, 8vw, 7rem); max-width: 12ch; }
.hero .lead { margin-top: var(--space-sm); font-size: var(--text-lead); max-width: 44ch; }

.calc { margin-top: var(--space-xl); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-xl); align-items: start; }
.calc__in { display: grid; gap: var(--space-lg); align-content: start; }
.row { display: flex; flex-wrap: wrap; gap: var(--space-md); }
.field { display: grid; gap: var(--space-3xs); font-weight: 500; font-size: var(--text-sm); color: var(--color-ink); }
.field input { font: inherit; font-size: var(--text-xl); color: var(--color-ink); height: 52px; width: 8rem; padding: 0 var(--space-sm); border: 2px solid var(--color-ink); border-radius: 0; background: var(--color-paper); box-sizing: border-box; }
.field input:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.field input:disabled { opacity: 0.5; cursor: not-allowed; }
.calc[data-shape="box"] .for-tube, .calc[data-shape="tube"] .for-box { display: none; }
.kinds { margin: 0; padding: 0; border: 0; display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-lg); }
.kinds legend { padding: 0; margin-bottom: var(--space-xs); font-weight: 500; font-size: var(--text-sm); color: var(--color-ink); float: left; width: 100%; }
.kinds label { display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 44px; color: var(--color-ink); font-size: var(--text-lg); }
.kinds input { width: 22px; height: 22px; accent-color: var(--color-accent-2); }
.kinds input:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }

/* the card: the piece to cut, drawn */
.card { padding: var(--space-lg) var(--space-xl); background: var(--color-paper-2); border: 2px solid var(--color-ink); box-shadow: var(--shadow-card); display: grid; gap: var(--space-2xs); }
.card__k { margin: 0; font-size: var(--text-sm); color: var(--color-ink-2); }
.card__v { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(2.6rem, 5vw, 4rem); line-height: 1; text-transform: uppercase; color: var(--color-ink); }
.card__fit { margin: 0; font-weight: 500; color: var(--color-ink); }
.card__draw svg { display: block; width: 100%; max-width: 26rem; height: auto; max-height: 17rem; margin-block: var(--space-xs); }
.card__draw .paper { fill: var(--color-accent); stroke: var(--color-ink); stroke-width: 2; }
.card__draw .fold { stroke: var(--color-ink); stroke-width: 1.5; stroke-dasharray: 5 4; }
.card__draw .dim { fill: var(--color-ink); font-family: var(--font-body); font-size: 15px; font-weight: 500; }
.card__rb { margin: 0; color: var(--color-ink-2); }

.head { padding-block: var(--space-3xl) var(--space-2xl); }
.head h1 { font-size: clamp(3rem, 6.5vw, 5.6rem); max-width: 16ch; }
.head .lead { margin-top: var(--space-md); font-size: var(--text-lead); max-width: 56ch; }

.sec { padding-block: var(--section-gap-s); border-top: 2px solid var(--color-ink); }
.sec--first { padding-top: var(--space-2xl); }
.sec h2 { font-size: var(--text-section); }
.sec h2 + * { margin-top: var(--space-lg); }
.sec__note { margin-top: var(--space-lg); max-width: 64ch; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-sm); max-width: 66ch; }
.steps li { padding: var(--space-sm) var(--space-md); background: var(--color-paper-2); border: 2px solid var(--color-ink); }
.steps b { color: var(--color-ink); font-weight: 500; }

.foot { border-top: 2px solid var(--color-ink); }
.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: 860px) {
  .calc { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .head { padding-block: var(--space-xl) var(--space-lg); }
  .hero { padding-top: var(--space-xl); }
  .card { padding: var(--space-md); }
  .field input { width: 7rem; }
}

/* ---- the food site (2026-12-05, #967): the menu on a phone, crumbs, the board, the recipe, the card, the folds, the calculator ---- */
.bar__menu, .bar__nav .bar__close { display: none; }
.crumbs ol { list-style: none; margin: 0 0 var(--space-md); padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2xs) var(--space-xs); font-size: var(--text-sm); color: var(--color-ink-2); }
.crumbs li + li::before { content: "/"; margin-right: var(--space-xs); color: var(--color-muted); }
.crumbs a { font-weight: 500; }
.hero__note { margin-top: var(--space-lg); font-size: var(--text-sm); max-width: 64ch; }
.ref { font-size: var(--text-sm); font-weight: 500; white-space: nowrap; }

.meta { margin: var(--space-lg) 0 0; display: flex; flex-wrap: wrap; gap: var(--space-sm) var(--space-xl); }
.meta div { display: grid; gap: var(--space-3xs); }
.meta dt { font-size: var(--text-sm); color: var(--color-muted); }
.meta dd { margin: 0; font-weight: 500; color: var(--color-ink); font-size: var(--text-lg); }

/* the board: a ruled list of wraps, like a menu */
.board { width: 100%; max-width: 64rem; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.board caption { text-align: left; caption-side: bottom; padding-top: var(--space-sm); font-size: var(--text-sm); color: var(--color-muted); }
.board th, .board td { text-align: left; padding: var(--space-sm) var(--space-md) var(--space-sm) 0; border-bottom: var(--rule-hair) solid var(--color-ink); vertical-align: baseline; }
.board thead th { font-size: var(--text-sm); font-weight: 500; color: var(--color-muted); border-bottom: var(--rule-bar) solid var(--color-ink); }
.board tbody th { font-weight: 500; font-size: var(--text-lg); color: var(--color-ink); line-height: 1.3; }
.board tbody th a { text-decoration: none; }
.board tbody th a:hover { text-decoration: underline; }
.board .n { text-align: right; }
.board--wide { max-width: 72rem; }

.strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-lg); max-width: 72rem; }
.strip li { display: grid; gap: var(--space-2xs); align-content: start; padding-top: var(--space-sm); border-top: var(--rule-bar) solid var(--color-ink); }
.strip a { font-weight: 500; font-size: var(--text-lg); }
.strip span { color: var(--color-ink-2); }

/* a recipe: the list of what goes in beside the card of what one wrap gives */
.recipe { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: var(--space-xl); align-items: start; }
.ing { width: 100%; max-width: 40rem; border-collapse: collapse; }
.ing caption { text-align: left; caption-side: bottom; padding-top: var(--space-sm); font-size: var(--text-sm); color: var(--color-muted); }
.ing td, .ing th { padding: var(--space-sm) var(--space-md) var(--space-sm) 0; border-bottom: var(--rule-hair) solid var(--color-paper-3); text-align: left; }
.ing .n { text-align: right; white-space: nowrap; font-weight: 500; color: var(--color-ink); }
.ing__part th { padding-top: var(--space-md); font-weight: 500; color: var(--color-ink); border-bottom: var(--rule-hair) solid var(--color-ink); }

.nut { padding: var(--space-lg) var(--space-xl); background: var(--color-paper-2); border: var(--rule-bar) solid var(--color-ink); box-shadow: var(--shadow-card); display: grid; gap: var(--space-2xs); align-content: start; position: sticky; top: var(--space-lg); }
.nut__k { margin: calc(-1 * var(--space-lg)) calc(-1 * var(--space-xl)) var(--space-xs); padding: var(--space-xs) var(--space-xl); background: var(--color-accent); border-bottom: var(--rule-bar) solid var(--color-ink); font-size: var(--text-sm); font-weight: 500; color: var(--color-ink); }
.nut__v { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(2.6rem, 5vw, 4rem); line-height: 1; text-transform: uppercase; color: var(--color-ink); }
.nut__list { margin: var(--space-sm) 0 0; display: grid; gap: 0; }
.nut__list div { display: flex; justify-content: space-between; gap: var(--space-md); padding: var(--space-2xs) 0; border-bottom: var(--rule-hair) solid var(--color-ink); }
.nut__list dt { color: var(--color-ink); }
.nut__list dd { margin: 0; font-weight: 500; color: var(--color-ink); }
.nut__src { margin: var(--space-sm) 0 0; font-size: var(--text-sm); color: var(--color-ink); }

.method { margin: 0; padding-left: var(--space-lg); display: grid; gap: var(--space-md); max-width: 52ch; font-size: var(--text-lg); }
.method li::marker { font-weight: 500; color: var(--color-accent-2); }
.said { margin: 0; padding-left: var(--space-lg); display: grid; gap: var(--space-sm); max-width: 52ch; font-size: var(--text-lg); }
.sec--read p { font-size: var(--text-lg); max-width: 52ch; }

/* the folds: one drawing a step */
.folds { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); gap: var(--space-xl) var(--space-lg); max-width: 72rem; }
.folds figure { margin: 0; display: grid; gap: var(--space-xs); }
.folds svg { width: 100%; height: auto; background: var(--color-paper-2); border: var(--rule-bar) solid var(--color-ink); }
.folds figcaption { color: var(--color-ink-2); }
.folds__n { display: inline-flex; align-items: center; justify-content: center; min-width: var(--space-lg); height: var(--space-lg); margin-right: var(--space-2xs); background: var(--color-ink); color: var(--color-paper); font-weight: 500; font-size: var(--text-sm); }
.folds .bread { fill: var(--color-accent); stroke: var(--color-ink); stroke-width: 2; }
.folds .flap { fill: var(--color-paper-3); stroke: var(--color-ink); stroke-width: 2; }
.folds .egg { fill: var(--color-paper); stroke: var(--color-ink); stroke-width: 1.5; stroke-dasharray: 4 3; }
.folds .filling { fill: var(--color-accent-2); stroke: var(--color-ink); stroke-width: 1.5; }
.folds .sleeve { fill: var(--color-paper); stroke: var(--color-ink); stroke-width: 2; }
.folds .arrow { fill: none; stroke: var(--color-ink); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.folds .cut { stroke: var(--color-ink); stroke-width: 2; stroke-dasharray: 6 4; }
.folds .seam { stroke: var(--color-ink); stroke-width: 1.5; }

/* the calculator of a wrap */
.kc { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: var(--space-xl); align-items: start; }
.kc__in { display: grid; gap: var(--space-lg); }
.kc__pick { display: grid; gap: var(--space-3xs); font-weight: 500; font-size: var(--text-sm); color: var(--color-ink); max-width: 24rem; }
.kc__pick select { font: inherit; font-size: var(--text-lg); color: var(--color-ink); min-height: 48px; padding: 0 var(--space-sm); border: var(--rule-bar) solid var(--color-ink); border-radius: 0; background: var(--color-paper); }
.kc__g { margin: 0; padding: 0; border: 0; }
.kc__g legend { padding: 0; margin-bottom: var(--space-xs); font-weight: 500; color: var(--color-ink); }
.kc__row { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 10.5rem), 1fr)); gap: var(--space-sm); }
.kc__f { display: grid; gap: var(--space-3xs); font-size: var(--text-sm); color: var(--color-ink-2); }
.kc__in .kc__in, .kc__f .kc__in { display: flex; align-items: center; gap: var(--space-2xs); }
.kc__f input { font: inherit; font-size: var(--text-lg); color: var(--color-ink); height: 44px; width: 6.5rem; padding: 0 var(--space-xs); border: var(--rule-bar) solid var(--color-ink); border-radius: 0; background: var(--color-paper); box-sizing: border-box; }
.kc__f input:focus-visible, .kc__pick select:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.kc__f input:disabled, .kc__pick select:disabled { background: var(--color-paper-3); color: var(--color-muted); cursor: not-allowed; }

/* the register of sources */
.register { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-xl); max-width: 68ch; }
.register__claim { margin: 0; color: var(--color-ink); font-weight: 500; }
.register blockquote { margin: var(--space-xs) 0 0; padding: var(--space-sm) var(--space-md); background: var(--color-paper-2); border-left: var(--rule-bar) solid var(--color-ink); overflow-wrap: anywhere; }
.register blockquote p { margin: 0; }
.register__src { margin: var(--space-xs) 0 0; font-size: var(--text-sm); color: var(--color-muted); max-width: 64ch; }

@media (max-width: 960px) {
  .recipe, .kc { grid-template-columns: minmax(0, 1fr); }
  .nut { position: static; }
  .kc .nut { order: -1; }
  .strip { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .bar__menu { display: inline-flex; min-height: 44px; align-items: center; padding: 0 var(--space-md); border: var(--rule-bar) solid var(--color-ink); color: var(--color-ink); text-decoration: none; font-weight: 500; }
  .bar__menu:active { transform: translateY(1px); }
  .bar__nav { display: none; width: 100%; flex-direction: column; gap: 0; }
  .bar__nav:target { display: flex; }
  .bar__in:has(.bar__nav:target) .bar__menu { display: none; }
  .bar__nav:target .bar__close { display: inline-flex; }
  .board thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .board, .board tbody, .board tr { display: block; }
  .board tr { padding-block: var(--space-sm); border-bottom: var(--rule-hair) solid var(--color-ink); }
  .board tbody th, .board td { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: var(--space-sm); padding: var(--space-3xs) 0; border: 0; text-align: left; }
  .board tbody th { grid-template-columns: minmax(0, 1fr); font-size: var(--text-xl); }
  .board .n { text-align: left; }
  .board td::before { content: attr(data-label); font-size: var(--text-sm); color: var(--color-muted); }
  .board caption { display: block; }
  .nut { padding: var(--space-md); }
  .nut__k { margin: calc(-1 * var(--space-md)) calc(-1 * var(--space-md)) var(--space-xs); padding: var(--space-xs) var(--space-md); }
}
