/* Hallmark · shape: Workbench · genre: editorial · theme: Broadside (deal 3/3, seed roof-pitch-roof-area-411c·7adc13e9·2026-12-05·r1) · job: try · draw: manual
 * hero: the tall head over the printed sheet of fields, the answers and the side view below it · nav: edge-aligned, the wordmark and two links · footer: a five-point rule over the small print · imagery: none, the roof drawn to scale in ink with the one vermilion slope · signature: the side view that redraws to scale as you type · broadside: bill
 * axes: light/display-condensed/warm · posture: committed · copy: verbatim · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R3 V4 · weakest: R, one calculator and one page of sums; the drawing and the tall capitals carry the bill */
/* Hallmark · waive 77 · every page · a calculator and a page of worked sums, not a landing strip */
/* Hallmark · waive 44c · every page · the side view drawn to scale is the visual; on the sums page the head stands over its lists and one drawing */
/* Hallmark · waive 79 · the calculator · the space under the answers is the margin before the note */
/* Hallmark · dismissed grain · every page · the theme's speck layer is left out: no grain or texture anywhere near text, an owner rule */
: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.028 88); --color-paper-2: oklch(88.5% 0.032 88); --color-paper-3: oklch(85% 0.036 86);
  --color-ink: oklch(18% 0.01 50); --color-ink-2: oklch(30% 0.012 50); --color-muted: oklch(43% 0.02 62);
  --color-rule: oklch(75% 0.028 82);
  --color-accent: oklch(53% 0.19 33); --color-accent-ink: oklch(95.5% 0.018 88); --color-focus: oklch(53% 0.19 33);
  --font-display: "Six Caps", "Impact", sans-serif; --font-display-2: "Bevan", Georgia, serif;
  --font-body: "Archivo Narrow", "Arial Narrow", ui-sans-serif, sans-serif;
  --font-outlier: var(--font-body);
  --radius-card: 0; --radius-pill: 0; --rule-hair: 1px; --rule-bar: 5px; --rule-frame: 3px;
  --shadow-card: none;
  --tracking-display: 0.02em; --display-weight: 400;
  --grain: 0.08;
}

*, *::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) 30%, 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: duotone ink paper con=20 */
[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.2); 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 { --font-outlier: var(--font-body); --color-sheet: var(--color-paper-2); }

@font-face { font-family: "Six Caps"; src: url("/fonts/sixcaps-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Bevan"; src: url("/fonts/bevan-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Archivo Narrow"; src: url("/fonts/archivo-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Archivo Narrow"; src: url("/fonts/archivo-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

body { color: var(--color-ink-2); font-size: 1.125rem; }
h1 { font-family: var(--font-display); font-weight: 400; color: var(--color-ink); line-height: 0.9; letter-spacing: var(--tracking-display); overflow-wrap: break-word; min-width: 0; }
h2 { font-family: var(--font-display-2); font-weight: 400; color: var(--color-ink); line-height: 1.05; letter-spacing: 0; 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-ink); }
a:hover { color: var(--color-accent); text-decoration-color: var(--color-accent); }

.bar { border-bottom: var(--rule-hair) 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-2); font-size: var(--text-xl); color: var(--color-ink); text-decoration: none; line-height: 1; }
.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: 600; 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-thickness: 2px; text-underline-offset: 0.35em; }

.hero { padding-block: var(--space-2xl) var(--section-gap-s); }
.hero h1 { font-size: clamp(4rem, 11vw, 9.5rem); max-width: none; }
.hero .lead { margin-top: var(--space-md); font-size: var(--text-lead); max-width: 44ch; color: var(--color-ink); }

/* the sheets: the pitch in the hero, the plan and one sheet below, each under a five-point rule */
.sheet.sheet--pitch { margin-top: var(--space-xl); gap: var(--space-xs); }
.sec.sec--calc { padding-top: 0; border-top: 0; }
.sheet { background: var(--color-sheet); border-top: var(--rule-bar) solid var(--color-ink); padding: var(--space-lg) var(--space-xl) var(--space-xl); display: grid; gap: var(--space-xl); }
.grp { border: 0; margin: 0; padding: 0; min-width: 0; }
.grp legend { font-family: var(--font-display-2); font-size: var(--text-xl); color: var(--color-ink); padding: 0; margin-bottom: var(--space-md); }
.grid2, .grid3, .grid4 { display: grid; gap: var(--space-lg); }
.grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 44rem; }
.grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 56rem; }
.grid4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.field { display: grid; gap: var(--space-2xs); align-content: start; font-size: var(--text-sm); color: var(--color-ink); }
.field__l { font-weight: 600; }
.field__h { color: var(--color-muted); }
.field input { font-family: var(--font-body); font-size: 1.5rem; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--color-ink); width: 100%; height: 48px; box-sizing: border-box; padding: 0 var(--space-sm); border: 1px solid var(--color-ink); border-radius: 0; background: var(--color-paper); }
.field input:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.field input:disabled, .opt input:disabled { opacity: 0.5; cursor: not-allowed; }
.units { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-lg); margin-bottom: var(--space-md); }
.opt { display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 44px; font-weight: 600; color: var(--color-ink); cursor: pointer; }
.opt input { width: 20px; height: 20px; margin: 0; accent-color: var(--color-ink); }
.opt input:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.say { margin: var(--space-md) 0 0; font-size: var(--text-lg); color: var(--color-ink); max-width: 60ch; }

/* the answers: particulars as rows, the roof area in the one vermilion figure, the drawing beside them */
.answers { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: var(--space-xl); margin-top: var(--space-xl); align-items: start; }
.res { margin: 0; border-top: var(--rule-bar) solid var(--color-ink); }
.res__i { display: grid; grid-template-columns: minmax(0, 9rem) minmax(0, 1fr); gap: 0 var(--space-md); padding-block: var(--space-sm); border-bottom: var(--rule-hair) solid var(--color-rule); align-items: baseline; }
.res dt { font-family: var(--font-display-2); font-size: var(--text-lg); color: var(--color-ink); grid-row: span 2; }
.res dd { margin: 0; }
.res__n { font-size: 2rem; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--color-ink); }
.res__i--lead .res__n { color: var(--color-accent); font-size: 2.6rem; }
.res__s { font-size: var(--text-sm); color: var(--color-muted); }

.view { margin: 0; border: var(--rule-frame) solid var(--color-ink); outline: 1px solid var(--color-ink); outline-offset: -7px; background: var(--color-paper); padding: var(--space-md); }
.view__d { min-height: 120px; }
.view figcaption { font-size: var(--text-sm); color: var(--color-muted); margin-top: var(--space-xs); }
.view--how { margin-top: var(--space-xl); max-width: 40rem; }
.sv { width: 100%; height: auto; }
.sv-roof { fill: none; stroke: var(--color-accent); stroke-width: 5; stroke-linejoin: miter; stroke-linecap: square; }
.sv-plate { stroke: var(--color-ink); stroke-width: 1.5; stroke-dasharray: 6 5; }
.sv-wall { stroke: var(--color-ink); stroke-width: 5; }
.sv-dim { stroke: var(--color-ink); stroke-width: 1.5; stroke-dasharray: 3 4; }
.sv-t { font-family: var(--font-body); font-size: 17px; font-weight: 600; fill: var(--color-ink); }
.sv-t--roof { fill: var(--color-accent); }
.sv-t--deg { font-size: 15px; }

.note { margin-top: var(--space-xl); max-width: 62ch; padding-top: var(--space-sm); border-top: var(--rule-hair) solid var(--color-ink); color: var(--color-ink-2); }

.head { padding-block: var(--space-3xl) var(--space-2xl); }
.head h1 { font-size: clamp(3.6rem, 9vw, 8rem); max-width: none; }
.head .lead { margin-top: var(--space-md); font-size: var(--text-lead); max-width: 56ch; color: var(--color-ink); }

.sec { padding-block: var(--section-gap-s); border-top: var(--rule-bar) 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__p { max-width: 64ch; }
.sec__p b { color: var(--color-ink); }
.sec__note { margin-top: var(--space-lg); max-width: 64ch; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; max-width: 68ch; border-top: var(--rule-hair) solid var(--color-ink); }
.steps li { padding: var(--space-sm) 0; border-bottom: var(--rule-hair) solid var(--color-rule); }
.steps b { color: var(--color-ink); font-weight: 600; }

.foot { border-top: var(--rule-bar) 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: 1000px) {
  .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .answers { 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); }
  .sheet { padding: var(--space-md); }
  .grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-sm); }
  .grid2, .grid4 { gap: var(--space-md) var(--space-sm); }
  .field input { font-size: 1.25rem; padding: 0 var(--space-xs); }
  .res__i { grid-template-columns: minmax(0, 7rem) minmax(0, 1fr); }
  .res__n { font-size: 1.6rem; }
  .res__i--lead .res__n { font-size: 2rem; }
  .view { padding: var(--space-xs); outline-offset: -6px; }
}

/* ---- the roofing guide (2026-12-05): the menu on a phone, crumbs, tables, quoted facts, the index, the register ---- */
.bar__menu, .bar__nav .bar__close { display: none; }
.field select { font-family: var(--font-body); font-size: 1.125rem; font-weight: 600; color: var(--color-ink); width: 100%; height: 48px; box-sizing: border-box; padding: 0 var(--space-sm); border: 1px solid var(--color-ink); border-radius: 0; background: var(--color-paper); }
.field select:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.field--pick + .field__h { margin-top: var(--space-2xs); max-width: 60ch; }
.tbl--num td { white-space: nowrap; }
.tbl td.ok, .tbl td.no { text-align: center; }
.tbl__group th { padding-top: var(--space-md); font-weight: 600; }
.dir__g { font-family: var(--font-body); font-size: var(--text-md); font-weight: 600; line-height: 1.3; margin: var(--space-lg) 0 var(--space-2xs); }
.crumbs { padding-top: var(--space-lg); font-size: var(--text-sm); color: var(--color-muted); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-2xs) var(--space-xs); margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: var(--space-xs); color: var(--color-muted); }
.crumbs a { color: var(--color-ink-2); }
.crumbs + .head { padding-top: var(--space-xl); }
.tbl-wrap { overflow-x: auto; max-width: 100%; border-top: var(--rule-bar) solid var(--color-ink); }
.tbl { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; font-size: var(--text-md); }
.tbl caption { caption-side: bottom; text-align: left; font-size: var(--text-sm); color: var(--color-muted); padding-top: var(--space-xs); max-width: 64ch; }
.tbl th, .tbl td { text-align: left; padding: var(--space-xs) var(--space-md) var(--space-xs) 0; border-bottom: var(--rule-hair) solid var(--color-rule); vertical-align: middle; }
.tbl thead th { font-weight: 600; color: var(--color-ink); font-size: var(--text-sm); vertical-align: bottom; }
.tbl tbody th { font-weight: 600; color: var(--color-ink); white-space: nowrap; }
.tbl .ok { color: var(--color-ink); font-weight: 600; }
.tbl .no { color: var(--color-muted); }
.mini { width: 72px; height: 40px; display: block; }
.mini__run { stroke: var(--color-rule); stroke-width: 1.5; }
.mini__roof { stroke: var(--color-accent); stroke-width: 3; stroke-linecap: square; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; max-width: 70ch; border-top: var(--rule-hair) solid var(--color-ink); }
.facts li { padding: var(--space-sm) 0; border-bottom: var(--rule-hair) solid var(--color-rule); }
.facts b { color: var(--color-ink); font-weight: 600; }
.ref { font-size: var(--text-sm); color: var(--color-muted); text-decoration-color: var(--color-rule); }
.index { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--space-xl); border-top: var(--rule-bar) solid var(--color-ink); }
.index li { padding: var(--space-md) 0; border-bottom: var(--rule-hair) solid var(--color-rule); }
.index a { font-family: var(--font-display-2); font-size: var(--text-lg); color: var(--color-ink); text-decoration: none; }
.index a:hover { color: var(--color-accent); }
.index p { margin: var(--space-2xs) 0 0; font-size: var(--text-sm); color: var(--color-ink-2); max-width: 52ch; }
.sheet + .tbl-wrap, .tbl-wrap + .sec__note, .facts + .sec__note, .tbl-wrap + .sec__p { margin-top: var(--space-lg); }
.sec__p + .tbl-wrap, .sec__p + .facts, .sec__p + .index, .sec__p + .sheet { margin-top: var(--space-lg); }
.register { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-xl); max-width: 70ch; }
.register__claim { margin: 0; color: var(--color-ink); font-weight: 600; }
.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); }
.register blockquote p { margin: 0; }
.register__src { margin: var(--space-xs) 0 0; font-size: var(--text-sm); color: var(--color-muted); max-width: 66ch; }
.dir { list-style: none; margin: 0; padding: 0; display: grid; max-width: 74ch; border-top: var(--rule-bar) solid var(--color-ink); }
.dir li { padding: var(--space-md) 0; border-bottom: var(--rule-hair) solid var(--color-rule); }
.dir__t { margin: 0; font-weight: 600; color: var(--color-ink); }
.dir__m { margin: var(--space-2xs) 0 0; font-size: var(--text-sm); color: var(--color-muted); }
.mins { margin: var(--space-md) 0 0; max-width: 62ch; color: var(--color-ink); }
@media print {
  .bar, .foot, .skip, .crumbs, .sec__note { display: none; }
  body { font-size: 11pt; }
  .head { padding-block: 0 var(--space-md); }
  .sec { border-top: 0; padding-block: var(--space-sm); }
  .tbl th, .tbl td { padding-block: var(--space-3xs); }
}
@media (max-width: 720px) {
  .bar__menu { display: inline-flex; min-height: 44px; align-items: center; padding: 0 var(--space-md); border: var(--rule-hair) solid var(--color-ink); color: var(--color-ink); text-decoration: none; font-weight: 600; }
  .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; }
  .index { grid-template-columns: minmax(0, 1fr); }
  .tbl { font-size: var(--text-sm); }
  .tbl th, .tbl td { padding-right: var(--space-sm); }
}
