/* Hallmark · shape: Workbench · genre: editorial · theme: Atelier (deal 1/3, seed woodworker-timber-volume-cubic-3ff0·b424d93e·2026-12-05·r0) · job: try · draw: manual
 * hero: the head over the cut list on a card and the total beside it · nav: edge-aligned, the wordmark and six links, a Menu link on a phone · footer: a row of the pages the bar does not name, over a ruled note and the credit lines · imagery: none, the cut list is the page · signature: the total in light serif figures beside the list it adds up · atelier: limewash, Fraunces in for Sentient (not packaged)
 * axes: light/roman-serif/cool · posture: restrained · copy: verbatim · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R3 V4 · weakest: R, one calculator and its formula; the total carries the look */
/* Hallmark · waive 77 · every page · a calculator and a page on its formula, not a landing strip */
/* Hallmark · waive 44c · every page · the cut list and its total fill the first screen; on the formula page the head stands over its list */
/* Hallmark · waive 79 · the calculator · the space under the list 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(94.5% 0.010 76); --color-paper-2: oklch(91.8% 0.013 74); --color-paper-3: oklch(88% 0.015 72);
  --color-ink: oklch(19% 0.024 52); --color-ink-2: oklch(31% 0.018 54); --color-muted: oklch(47% 0.014 60);
  --color-rule: oklch(81% 0.011 70);
  --color-accent: oklch(41% 0.075 248); --color-accent-ink: oklch(96% 0.008 76); --color-focus: oklch(50% 0.095 248);
  --color-card: oklch(97.6% 0.007 82); --color-card-edge: oklch(86% 0.012 72); --color-pencil: oklch(52% 0.010 62);
  --card-lit: oklch(98.4% 0.006 84); --card-shade: oklch(96.4% 0.008 78); --lit: oklch(99.6% 0.004 85 / 0.9);
  --stain-1: oklch(70% 0.075 14); --stain-2: oklch(66% 0.055 132); --stain-3: oklch(60% 0.080 58); --stain-4: oklch(68% 0.045 206);
  --font-display: "Sentient", Georgia, serif; --font-body: "Hanken Grotesk", system-ui, sans-serif;
  --font-outlier: var(--font-body);
  --radius-card: 0; --radius-pill: 3px; --rule-hair: 1px; --rule-head: 1px;
  --shadow-card: 0 0 0 1px oklch(30% 0.03 55 / 0.05), 0.5px 1px 1px oklch(30% 0.03 55 / 0.08), 3px 8px 14px -6px oklch(30% 0.03 55 / 0.14), 14px 36px 64px -28px oklch(30% 0.03 55 / 0.3);
  --tracking-display: -0.018em; --tracking-statement: -0.022em; --display-weight: 300; --statement-weight: 300; --serif-small: 400;
}

*, *::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: warm con=-6 vib=-10 */
[data-slot] > img { filter: sepia(0.28) saturate(0.89) contrast(0.94); }

:root { --font-display: "Fraunces", Georgia, serif; }

@font-face { font-family: "Fraunces"; src: url("/fonts/fraunces-300.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("/fonts/hanken-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("/fonts/hanken-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: 300; color: var(--color-ink); line-height: 1.02; 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); }
a:hover { color: var(--color-accent); }

.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: 300; font-size: var(--text-xl); color: var(--color-ink); text-decoration: none; }
.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; 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: 2px; text-underline-offset: 0.35em; }

.hero { padding-block: var(--space-2xl) var(--section-gap-s); }
.hero h1 { font-size: clamp(2.8rem, 6.5vw, 5.4rem); max-width: 14ch; }
.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, 7fr) minmax(0, 4fr); gap: var(--space-xl); align-items: start; }
.card { padding: var(--space-lg); border-radius: 4px; background: var(--color-card); box-shadow: var(--shadow-card); display: grid; gap: var(--space-md); min-width: 0; }
.t-wrap { overflow-x: auto; }
.t { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
.cap { margin: 0; font-size: var(--text-sm); color: var(--color-muted); }
.t th, .t td { padding: var(--space-3xs) var(--space-2xs); text-align: left; }
.t thead th { font-size: var(--text-sm); font-weight: 500; color: var(--color-ink); border-bottom: 1px solid var(--color-card-edge); white-space: nowrap; }
.t tbody th { font-weight: 500; color: var(--color-muted); }
.t td input { font: inherit; font-size: var(--text-md); color: var(--color-ink); width: 4.5rem; height: 44px; padding: 0 var(--space-xs); border: 1px solid var(--color-pencil); border-radius: 3px; background: var(--color-paper); box-sizing: border-box; font-variant-numeric: tabular-nums; }
.t td input:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.t td input:disabled { opacity: 0.5; cursor: not-allowed; }
.t td.each { font-weight: 500; color: var(--color-ink); white-space: nowrap; }
.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-lg); color: var(--color-ink); height: 48px; width: 12rem; padding: 0 var(--space-sm); border: 1px solid var(--color-pencil); border-radius: 3px; 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; }

/* the total */
.total { padding: var(--space-lg) 0; border-top: 1px solid var(--color-ink); display: grid; gap: var(--space-2xs); }
.total__k { margin: 0; font-size: var(--text-sm); color: var(--color-muted); }
.total__v { margin: 0; font-family: var(--font-display); font-weight: 300; font-size: clamp(3rem, 6vw, 4.8rem); line-height: 1; color: var(--color-ink); font-variant-numeric: tabular-nums; }
.total__l { margin: var(--space-xs) 0 0; color: var(--color-ink-2); }
.total__c { margin: 0; font-weight: 500; color: var(--color-accent); }

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

.sec { padding-block: var(--section-gap-s); border-top: var(--rule-hair) solid var(--color-rule); }
.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: 64ch; }
.steps li { padding: var(--space-sm) var(--space-md); border-radius: 4px; background: var(--color-card); box-shadow: var(--shadow-card); }
.steps b { color: var(--color-ink); font-weight: 500; }

.foot { border-top: var(--rule-hair) solid var(--color-rule); }
.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) {
  .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-sm); }
  /* the cut list fits a phone: narrower boxes (the CFT column's last digit sat off the side) */
  .t td input { width: 2.75rem; padding: 0 var(--space-3xs); }
  .t th, .t td { padding: var(--space-3xs); }
}

/* ---- the timber book (2026-12-05, #967): the phone menu, crumbs, tables, the forms, the woods, plywood, joints, sources ---- */
.bar__menu, .bar__close, .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-muted); }
.crumbs li + li::before { content: "/"; margin-right: var(--space-xs); color: var(--color-rule); }
.crumbs a { font-weight: 500; color: var(--color-ink-2); }
.ref { font-size: var(--text-xs); font-weight: 500; color: var(--color-muted); white-space: nowrap; }

/* tables: a caption above, figures in tabular numbers, a first column of labels */
.tw { max-width: 100%; }
.tbl { border-collapse: collapse; width: 100%; max-width: 56rem; font-variant-numeric: tabular-nums; font-size: var(--text-sm); }
.tbl caption { caption-side: top; text-align: left; padding-bottom: var(--space-sm); color: var(--color-muted); max-width: 64ch; }
.tbl th, .tbl td { padding: var(--space-xs) var(--space-sm); border-bottom: var(--rule-hair) solid var(--color-rule); text-align: left; vertical-align: baseline; }
.tbl thead th { font-weight: 500; color: var(--color-ink); border-bottom: 1px solid var(--color-ink); white-space: nowrap; }
.tbl tbody th { font-weight: 500; color: var(--color-ink); white-space: nowrap; }
.tbl .num { text-align: right; }
.tbl tbody tr:nth-child(even) { background: var(--color-paper-2); }
.tbl .q { color: var(--color-muted); font-weight: 400; }

/* the forms of the measuring pages: the card of inputs and the total beside it, as on the cut list */
.tool { margin-top: var(--space-lg); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: var(--space-xl); align-items: start; }
.tool__in { gap: var(--space-md); }
.row { display: flex; flex-wrap: wrap; gap: var(--space-sm) var(--space-md); align-items: end; }
.field--s input, .field--s select { font: inherit; font-size: var(--text-md); height: 44px; width: 9rem; padding: 0 var(--space-xs); border: 1px solid var(--color-pencil); border-radius: 3px; background: var(--color-paper); color: var(--color-ink); box-sizing: border-box; }
.field--s select { width: auto; min-width: 6rem; }
.field--s input:focus-visible, .field--s select:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.said { margin: var(--space-xs) 0 0; display: grid; gap: var(--space-xs); }
.said > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-sm); align-items: baseline; padding-bottom: var(--space-2xs); border-bottom: var(--rule-hair) solid var(--color-rule); }
.said dt { color: var(--color-ink-2); }
.said dd { margin: 0; font-family: var(--font-display); font-weight: 300; font-size: var(--text-xl); color: var(--color-ink); font-variant-numeric: tabular-nums; }

/* lists of links and the tiles of the home page */
.links { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2xs); max-width: 48ch; }
.links a { display: inline-flex; min-height: 44px; align-items: center; font-weight: 500; }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 0 var(--gap-columns); }
.tiles li { border-top: 1px solid var(--color-ink); }
.tiles a { display: grid; gap: var(--space-3xs); padding: var(--space-md) 0 var(--space-lg); text-decoration: none; }
.tiles__h { font-family: var(--font-display); font-weight: 300; font-size: var(--text-2xl); color: var(--color-ink); line-height: 1.1; }
.tiles__p { color: var(--color-ink-2); max-width: 34ch; }
.tiles a:hover .tiles__h { color: var(--color-accent); }

/* facts: a term and what the source says, row by row */
.facts { margin: 0; display: grid; max-width: 72ch; }
.facts > div { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: var(--space-2xs) var(--space-lg); padding-block: var(--space-sm); border-bottom: var(--rule-hair) solid var(--color-rule); }
.facts dt { font-weight: 500; color: var(--color-ink); }
.facts dd { margin: 0; }

/* the woods */
.woods { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: var(--space-xl) var(--gap-columns); }
.woods li { display: grid; gap: var(--space-2xs); align-content: start; padding-top: var(--space-sm); border-top: 1px solid var(--color-ink); }
.woods h3 { font-size: var(--text-2xl); font-weight: 300; }
.woods h3 a { text-decoration: none; }
.woods__bot { color: var(--color-muted); }
.woods__kg { color: var(--color-accent); font-weight: 500; }

/* plywood thicknesses */
.chips { display: flex; flex-wrap: wrap; gap: var(--space-xs); max-width: none; }
.chips span { padding: var(--space-2xs) var(--space-sm); border: 1px solid var(--color-card-edge); border-radius: var(--radius-pill); background: var(--color-card); color: var(--color-ink); font-variant-numeric: tabular-nums; }

/* joints, drawn: piece A shaded, piece B light, hidden edges dashed */
.joints { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 26rem)); gap: var(--space-xl) var(--gap-columns); }
.joint { margin: 0; display: grid; gap: var(--space-sm); }
.jd { width: 100%; height: auto; background: var(--color-card); box-shadow: var(--shadow-card); border-radius: 4px; }
.jd rect, .jd path, .jd polygon, .jd line { stroke: var(--color-ink); stroke-width: 1.5; stroke-linejoin: round; }
.jd .a { fill: var(--color-paper-3); }
.jd .b { fill: var(--card-lit); }
.jd .x { fill: none; stroke-dasharray: 4 3; stroke: var(--color-ink-2); }
.joint h3 { font-weight: 300; font-size: var(--text-xl); }
.joint p { margin-top: var(--space-2xs); max-width: 46ch; }

/* 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); border-radius: 4px; background: var(--color-paper-2); }
.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; }

/* the foot: an index of every page */
.foot__index { padding-bottom: var(--space-xs); margin-bottom: var(--space-sm); border-bottom: var(--rule-hair) solid var(--color-rule); }
.foot__index ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 var(--space-lg); }
.foot__index a { display: inline-flex; min-height: 44px; align-items: center; color: var(--color-ink-2); }

@media (max-width: 960px) {
  .tool { 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-radius: var(--radius-pill); border: 1px solid var(--color-ink); color: var(--color-ink); text-decoration: none; font-weight: 500; }
  .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; }
  .facts > div { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .tbl { font-size: var(--text-xs); }
  .tbl th, .tbl td { padding: var(--space-2xs) var(--space-3xs); }
  .tbl thead th { white-space: normal; }
  .tbl .q { display: none; }
  .tbl--wide thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .tbl--wide, .tbl--wide tbody, .tbl--wide tr, .tbl--wide caption { display: block; }
  .tbl--wide tr { padding-block: var(--space-xs); border-bottom: var(--rule-hair) solid var(--color-rule); }
  .tbl--wide tbody tr:nth-child(even) { background: none; }
  .tbl--wide tbody th, .tbl--wide td { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: var(--space-sm); padding: var(--space-3xs) 0; border: 0; text-align: left; white-space: normal; }
  .tbl--wide tbody th { grid-template-columns: minmax(0, 1fr); font-size: var(--text-md); }
  .tbl--wide td::before { content: attr(data-label); font-weight: 500; color: var(--color-muted); }
  .field--s input { width: 7rem; }
  .joints { grid-template-columns: minmax(0, 1fr); }
}
@media print {
  .bar, .foot, .skip, .crumbs, .tool, .links { display: none !important; }
  body { background: none; color: var(--color-ink); }
  .tbl tbody tr:nth-child(even) { background: none; }
}
