/* Hallmark · shape: Workbench · genre: editorial · theme: Editorial (deal 3/3, seed curtain-fabric-calculator-rail-6d3c·bfeb0467·2026-12-05·r1) · job: try · draw: manual
 * hero: the condensed head over the order form on its paper well and the spec sheet that answers it · nav: edge-aligned, the wordmark and two links · footer: a heavy ink rule over the note and the credit lines · imagery: none, the fabric widths drawn to scale · signature: the fabric widths laid flat under the rail, the pair's dashed parting line, redrawn as you type · fonts: Bricolage Grotesque (variable, wdth 75) and Source Serif 4 from @fontsource
 * axes: light/display-condensed/chromatic-green · posture: restrained · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R4 V4 · weakest: H, the form holds eight boxes; labels are one or two words and the sum's working sits in small type under each answer */
/* Hallmark · waive 77 · every page · a calculator and a page that works its sum, not a landing strip */
/* Hallmark · waive 59 · the calculator · the headline and the form it introduces are one block; 40px parts them, 120px and more parts every other section */
/* Hallmark · waive 44c · every page · the drawing of the widths is the visual: under the sheet on the calculator, beside each step on how it works */
: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.007 86); --color-paper-2: oklch(94% 0.010 86); --color-paper-3: oklch(91% 0.012 84);
  --color-ink: oklch(16% 0.012 280); --color-ink-2: oklch(29% 0.011 280); --color-muted: oklch(48% 0.010 75);
  --color-rule: oklch(85% 0.009 85); --color-rule-2: oklch(64% 0.010 80);
  --color-accent: oklch(49% 0.130 152); --color-accent-ink: oklch(98% 0.005 88); --color-focus: oklch(52% 0.135 152);
  --font-display: "Bricolage Grotesque", ui-sans-serif, sans-serif; --font-body: "Source Serif 4", ui-serif, Georgia, serif;
  --radius-card: 0; --radius-pill: 0; --rule-hair: 1px; --rule-heavy: 4px; --shadow-card: none;
  --tracking-display: -0.012em; --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); }
: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 sat=-10 con=4 */
[data-slot] > img { filter: saturate(0.9) contrast(1.04); }

:root {
  --font-outlier: var(--font-display);
  --color-band: oklch(78% 0.010 80);
  --color-spare: oklch(90.5% 0.012 84);
}

@font-face { font-family: "Bricolage Grotesque"; src: url("/fonts/bricolage.woff2") format("woff2"); font-weight: 200 800; font-stretch: 75% 100%; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("/fonts/source-serif-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

body { color: var(--color-ink-2); font-size: 1.125rem; font-variant-numeric: oldstyle-nums; }
h1, h2 { font-weight: var(--display-weight); font-variation-settings: "wdth" 75; color: var(--color-ink); font-variant-numeric: lining-nums; }
.num { font-variant-numeric: lining-nums 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-rule-2); transition: text-decoration-color var(--dur-short) var(--ease-out); }
a:hover { text-decoration-color: var(--color-accent); }

/* the bar */
.bar { border-bottom: var(--rule-hair) solid var(--color-rule); }
.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-variation-settings: "wdth" 75; font-size: var(--text-2xl); letter-spacing: var(--tracking-display); color: var(--color-ink); text-decoration: none; line-height: 1; }
.wordmark span { color: var(--color-muted); }
.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: 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-ink); text-decoration-thickness: 2px; text-underline-offset: 0.35em; }

/* the hero */
.hero { padding-block: var(--space-xl) var(--space-xl); }
.hero h1 { font-size: clamp(2.9rem, 6.6vw, 6rem); line-height: 0.92; max-width: 17ch; }
.hero .lead { margin-top: var(--space-md); color: var(--color-ink); max-width: 60ch; }

/* the order form and the spec sheet */
.work { padding-bottom: var(--section-gap-s); }
.work__in { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: var(--space-xl) var(--space-2xl); align-items: start; }
.order { background: var(--color-paper-2); border-top: var(--rule-hair) solid var(--color-rule-2); padding: var(--space-lg) var(--space-lg) var(--space-xl); }
.order__note { font-size: var(--text-md); color: var(--color-ink); }
.order__segs { display: flex; flex-wrap: wrap; gap: var(--space-md) var(--space-xl); margin-top: var(--space-lg); }
.seg { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: end; gap: 0; min-width: 0; }
.seg legend { padding: 0; margin-bottom: var(--space-2xs); font-family: var(--font-display); font-weight: 500; font-size: var(--text-sm); color: var(--color-muted); }
.seg label { position: relative; display: inline-flex; }
.seg input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.seg span { display: inline-flex; align-items: center; min-height: 48px; padding: 0 var(--space-md); border: var(--rule-hair) solid var(--color-ink); background: var(--color-paper); color: var(--color-ink); font-family: var(--font-display); font-weight: 500; }
.seg label + label span { border-left: 0; }
.seg input:checked + span { background: var(--color-ink); color: var(--color-paper); }
.seg input:focus-visible + span { outline: 3px solid var(--color-focus); outline-offset: 2px; position: relative; z-index: var(--z-base); }
.order__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-md) var(--space-lg); margin-top: var(--space-lg); }
.field { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-2xs); min-width: 0; }
.field__l { font-family: var(--font-display); font-weight: 500; font-size: var(--text-sm); color: var(--color-ink); }
.box { display: flex; align-items: center; height: 52px; min-width: 0; border: var(--rule-hair) solid var(--color-muted); background: var(--color-paper); }
.box:focus-within { border-color: var(--color-ink); }
.box i { font-style: normal; font-family: var(--font-display); font-weight: 500; font-size: var(--text-sm); color: var(--color-muted); padding: 0 var(--space-sm); white-space: nowrap; }
.box i:first-child { padding-right: 0; }
.field input { flex: 1 1 0; width: 100%; min-width: 0; height: 100%; padding: 0 0 0 var(--space-sm); border: 0; border-radius: 0; background: transparent; color: var(--color-ink); font-family: var(--font-display); font-weight: 800; font-variation-settings: "wdth" 75; font-size: 1.6rem; font-variant-numeric: lining-nums tabular-nums; }
.field input:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 0; }
.field input:disabled { opacity: 0.5; cursor: not-allowed; }

.spec { border-top: var(--rule-heavy) solid var(--color-ink); padding-top: var(--space-md); }
.spec__label { font-family: var(--font-display); font-weight: 500; color: var(--color-ink); }
.spec__big { margin-top: var(--space-2xs); font-family: var(--font-display); font-weight: 800; font-variation-settings: "wdth" 75; font-size: clamp(3.4rem, 5vw + 1rem, 6rem); line-height: 0.92; letter-spacing: var(--tracking-display); color: var(--color-ink); overflow-wrap: anywhere; }
.spec__blank { display: none; margin-top: var(--space-md); font-size: var(--text-lg); color: var(--color-ink); }
.spec.is-blank .spec__blank { display: block; }
.spec.is-blank .spec__big, .spec.is-blank .spec__t { opacity: 0.25; }
.spec__t { width: 100%; margin-top: var(--space-lg); border-collapse: collapse; }
.spec__t th, .spec__t td { padding: var(--space-sm) 0; border-top: var(--rule-hair) solid var(--color-rule); vertical-align: baseline; }
.spec__t tr:first-child th, .spec__t tr:first-child td { border-top-color: var(--color-rule-2); }
.spec__t th { text-align: left; font-family: var(--font-display); font-weight: 500; color: var(--color-ink); padding-right: var(--space-md); }
.spec__t th small { display: block; margin-top: var(--space-3xs); font-family: var(--font-body); font-weight: 400; font-size: var(--text-sm); color: var(--color-muted); font-variant-numeric: lining-nums; }
.spec__t td { text-align: right; font-family: var(--font-display); font-weight: 800; font-variation-settings: "wdth" 75; font-size: var(--text-xl); color: var(--color-ink); font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }

/* the drawing: the widths laid flat under the rail; the script redefines nothing, the classes take the tokens */
.draw { margin: 0; grid-column: 1 / -1; }
.draw__pic { border-top: var(--rule-hair) solid var(--color-rule-2); padding-top: var(--space-md); }
.dw { width: 100%; height: auto; max-height: 360px; }
.dw-cloth { fill: var(--color-paper); }
.dw-band { fill: var(--color-band); }
.dw-spare { fill: var(--color-spare); }
.dw-w { fill: none; stroke: var(--color-ink); stroke-width: 1.5; }
.dw-rep { stroke: var(--color-rule-2); stroke-width: 1; }
.dw-need { stroke: var(--color-ink-2); stroke-width: 2; }
.dw-cut { stroke: var(--color-ink); stroke-width: 2.5; stroke-dasharray: 7 5; }
.dw-rail { stroke: var(--color-ink); stroke-width: 5; }
.dw-end { fill: var(--color-ink); }
.key { list-style: none; margin: var(--space-sm) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2xs) var(--space-lg); font-family: var(--font-display); font-weight: 500; font-size: var(--text-sm); color: var(--color-muted); }
.key li { display: inline-flex; align-items: center; gap: var(--space-xs); }
.key__sw { display: inline-block; width: 22px; height: 14px; border: var(--rule-hair) solid var(--color-ink); }
.key__sw--band { background: var(--color-band); }
.key__sw--spare { background: var(--color-spare); }
.key__cut { width: 10px; height: 18px; }
.draw__cap { margin-top: var(--space-xs); font-size: var(--text-sm); color: var(--color-muted); max-width: 52ch; }

/* sections */
.head { padding-block: var(--space-3xl) var(--space-2xl); }
.head h1 { font-size: clamp(2.6rem, 5.4vw, 4.8rem); line-height: 0.95; max-width: 16ch; }
.head .lead { margin-top: var(--space-md); color: var(--color-ink); max-width: 48ch; }
.sec { padding-block: var(--section-gap-s); border-top: var(--rule-heavy) solid var(--color-ink); }
.sec--first { padding-top: var(--space-2xl); }
.sec h2 { font-size: var(--text-display-s); line-height: 1; }
.sec h2 + * { margin-top: var(--space-lg); }
.sec__note { margin-top: var(--space-lg); max-width: 64ch; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-xl) var(--space-2xl); align-items: start; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; max-width: 62ch; }
.steps li { counter-increment: step; position: relative; padding: var(--space-sm) 0 var(--space-sm) 2.2rem; border-top: var(--rule-hair) solid var(--color-rule); }
.steps li::before { content: counter(step); position: absolute; left: 0; top: var(--space-sm); font-family: var(--font-display); font-weight: 800; font-variation-settings: "wdth" 75; color: var(--color-ink); font-variant-numeric: lining-nums; }
.draw--side { grid-column: auto; }
.steps b { color: var(--color-ink); font-family: var(--font-display); font-weight: 500; }
.terms { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--space-2xl); max-width: 1080px; }
.terms div { padding: var(--space-md) 0; border-top: var(--rule-hair) solid var(--color-rule); }
.terms dt { font-family: var(--font-display); font-weight: 800; font-variation-settings: "wdth" 75; font-size: var(--text-xl); color: var(--color-ink); line-height: 1.1; }
.terms dd { margin: var(--space-2xs) 0 0; max-width: 40ch; }

/* the foot */
.foot { border-top: var(--rule-heavy) 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: 900px) {
  .work__in, .split { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .hero { padding-top: var(--space-xl); }
  .head { padding-block: var(--space-xl) var(--space-lg); }
  .order { padding: var(--space-md) var(--space-md) var(--space-lg); }
  .order__grid { gap: var(--space-sm) var(--space-md); }
  .seg span { padding: 0 var(--space-sm); }
  .terms { grid-template-columns: minmax(0, 1fr); }
}
