/* Hallmark · shape: Workbench · genre: modern-minimal · theme: Cobalt (deal 3/3, seed steel-pipe-box-section-49ab·baa94905·2026-12-05·r0) · job: try · draw: manual
 * hero: the head over the inputs and the cut plate that answers · nav: edge-aligned, the wordmark and three links · footer: a ruled note over the credit lines · imagery: the section itself, drawn in proportion from the inputs · signature: the pipe's cross-section redrawn as you type, over the total at display size · field: none, the owner allows no texture behind text
 * axes: light/grotesk-sans/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 page and a table; the drawn section carries the look */
/* Hallmark · dismissed 46a · the calculator and the table page · 7,750 to 8,050 kg/m3 and CHS 200 x 10 are inside quoted sentences, checked word for word against the saved pages; every other figure is worked out from the sizes */
/* Hallmark · waive 44c · every page · the plate stands beside the inputs it answers; on the table and sources pages the head stands over its table or list */
/* Hallmark · dismissed 58 · the table page · the table is figures a reader scans, and the method under it is four short lines */
/* Hallmark · waive 77 · every page · a calculator, a table of its sums and the quotes it rests on, not a landing strip */
: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(98.6% 0.005 250); --color-paper-2: oklch(96.2% 0.008 252); --color-paper-3: oklch(93% 0.011 252);
  --color-ink: oklch(21% 0.028 262); --color-ink-2: oklch(36% 0.022 260); --color-muted: oklch(50% 0.018 258);
  --color-rule: oklch(90% 0.009 252); --color-rule-2: oklch(83% 0.012 252);
  --color-graphite: oklch(21% 0.024 262); --color-graphite-2: oklch(26.5% 0.026 262); --color-graphite-ink: oklch(93% 0.010 250); --color-graphite-muted: oklch(69% 0.022 256);
  --color-accent: oklch(52% 0.19 258); --color-accent-2: oklch(76% 0.13 254); --color-accent-wash: oklch(95% 0.028 256); --color-accent-ink: oklch(98.6% 0.005 250); --color-focus: oklch(52% 0.19 258);
  --color-accent-deep: oklch(43% 0.2 262); --color-accent-edge: oklch(39% 0.16 260);
  --color-glyph-1: oklch(89% 0.025 254); --color-glyph-2: oklch(81% 0.045 255); --color-glyph-3: oklch(70% 0.085 256); --color-glyph-4: oklch(60% 0.13 257);
  --color-graphite-glyph-1: oklch(33% 0.03 262); --color-graphite-glyph-2: oklch(41% 0.05 260); --color-graphite-glyph-3: oklch(53% 0.1 258);
  --color-key-face: oklch(99.4% 0.003 250); --color-key-edge: oklch(80% 0.016 254);
  --font-display: "Familjen Grotesk", system-ui, sans-serif; --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --font-outlier: "JetBrains Mono", ui-monospace, monospace;
  --radius-card: 8px; --radius-input: 6px; --radius-pill: 999px;
  --cell-w: 8px; --cell-h: 16px; --cut: 8px; --cut-l: 16px;
  --rule-hair: 1px; --shadow-card: 0 1px 2px oklch(21% 0.028 262 / 0.06);
  --shadow-key: 0 3px 0 0 var(--color-key-edge), 0 6px 8px -4px oklch(21% 0.028 262 / 0.28), inset 0 1px 0 oklch(100% 0 0 / 0.9);
  --shadow-key-accent: 0 3px 0 0 var(--color-accent-edge), 0 6px 8px -4px oklch(30% 0.12 260 / 0.45), inset 0 1px 0 oklch(100% 0 0 / 0.22);
  --shadow-key-press: inset 0 1px 2px oklch(21% 0.028 262 / 0.14);
  --tracking-display: -0.028em; --display-weight: 600;
}

*, *::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 graphite paper */
[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-graphite); mix-blend-mode: lighten; pointer-events: none; }

@font-face { font-family: "Familjen Grotesk"; src: url("/fonts/familjen-grotesk-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Familjen Grotesk"; src: url("/fonts/familjen-grotesk-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/fonts/ibm-plex-sans-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/fonts/ibm-plex-sans-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/fonts/jetbrains-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, h3 { color: var(--color-ink); }
.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); text-underline-offset: 0.2em; }
a:hover { color: var(--color-accent); text-decoration-color: var(--color-accent); }
a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }

.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: 600; font-size: var(--text-xl); letter-spacing: var(--tracking-display); 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-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-accent); text-decoration-thickness: 2px; text-underline-offset: 0.4em; }

.hero { padding-block: var(--space-2xl) var(--section-gap-s); }
.hero h1 { font-size: var(--text-display-s); line-height: 1.02; max-width: 16ch; }
.hero .lead { margin-top: var(--space-sm); max-width: 44ch; }

/* the calculator: inputs on the left, the plate that answers on the right */
.calc { margin-top: var(--space-xl); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-xl); align-items: start; }
.calc__in { display: grid; gap: var(--space-lg); align-content: start; }
.row { display: grid; grid-template-columns: repeat(3, minmax(0, 10.5rem)); gap: var(--space-md) var(--space-lg); align-items: end; }
.row .note { grid-column: span 2; }
.field { display: grid; gap: var(--space-2xs); min-width: 0; font-family: var(--font-display); font-weight: 500; font-size: var(--text-sm); color: var(--color-muted); }
.field input { font: 400 var(--text-lg)/1 var(--font-outlier); color: var(--color-ink); height: 52px; padding: 0 var(--space-sm); border: var(--rule-hair) solid var(--color-muted); border-radius: var(--radius-input); background: var(--color-paper); width: 100%; min-width: 0; }
.field input:hover { border-color: var(--color-ink-2); }
.field input:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; border-color: var(--color-accent); }
.field input:disabled { opacity: 0.5; cursor: not-allowed; }
@supports (corner-shape: bevel) { .field input { border-radius: var(--cut) 3px; corner-shape: bevel round bevel round; } }

/* the shape: two keys on a sunken tray, the chosen one pressed */
.keys { margin: 0; padding: var(--space-2xs); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-card); background: var(--color-paper-3); display: inline-flex; flex-wrap: wrap; gap: var(--space-2xs); justify-self: start; }
.keys legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.key { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-md); border-radius: var(--radius-input); font-family: var(--font-display); font-weight: 500; color: var(--color-ink-2); cursor: pointer; transition: background-color var(--dur-micro) var(--ease-out), box-shadow var(--dur-micro) var(--ease-out); }
.key input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.key:hover { color: var(--color-ink); }
.key:has(input:checked) { background: var(--color-key-face); color: var(--color-ink); box-shadow: var(--shadow-key); }
.key:has(input:focus-visible) { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.calc:has(input[value="box"]:checked) .only-round, .calc:has(input[value="round"]:checked) .only-box { display: none; }

.note { max-width: 34ch; font-size: var(--text-sm); color: var(--color-muted); padding-bottom: var(--space-xs); }
.note__warn { color: var(--color-error); }
.ref { color: var(--color-muted); }

/* the plate: the section drawn in proportion, the total under it */
.plate { padding: var(--space-xl); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-card); background: var(--color-paper-2); box-shadow: var(--shadow-card); display: grid; gap: var(--space-2xs); justify-items: start; }
@supports (corner-shape: bevel) { .plate { border-radius: var(--cut-l) 4px var(--cut-l) 4px; corner-shape: bevel round bevel round; } }
.fig { width: 168px; height: 168px; margin-bottom: var(--space-xs); }
.fig path { fill: var(--color-ink-2); stroke: var(--color-ink); stroke-width: 0.6; }
.plate__size { font-family: var(--font-outlier); font-size: var(--text-sm); color: var(--color-muted); margin-bottom: var(--space-md); }
.plate__k { font-family: var(--font-display); font-weight: 500; font-size: var(--text-sm); color: var(--color-muted); }
.plate__v { font-family: var(--font-display); font-weight: 600; font-size: clamp(3rem, 6vw, 4.75rem); line-height: 1; letter-spacing: var(--tracking-display); color: var(--color-ink); }
.plate__l { margin-top: var(--space-2xs); color: var(--color-ink-2); }
.plate__c { font-family: var(--font-display); font-weight: 600; font-size: var(--text-xl); color: var(--color-accent); margin-top: var(--space-xs); }
.plate__n { margin-top: var(--space-md); padding-top: var(--space-sm); border-top: var(--rule-hair) solid var(--color-rule); font-size: var(--text-sm); color: var(--color-ink-2); max-width: 40ch; }

.head { padding-block: var(--space-3xl) var(--space-2xl); }
.head h1 { font-size: var(--text-display-s); line-height: 1.02; 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); }
.sec--first { padding-top: var(--space-2xl); }
.sec h2 { font-size: var(--text-section); line-height: 1.02; }
.sec h2 + * { margin-top: var(--space-lg); }
.sec__note { margin-top: var(--space-lg); max-width: 64ch; }

/* the table: ruled, figures in mono, the quoted size on the cobalt wash */
.t-wrap { margin-top: var(--space-lg); overflow-x: auto; max-width: 100%; border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-card); }
.t-wrap:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.t { border-collapse: collapse; width: 100%; min-width: 34rem; font-size: var(--text-md); }
.t caption { caption-side: bottom; text-align: left; padding: var(--space-sm) var(--space-md); font-size: var(--text-sm); color: var(--color-muted); border-top: var(--rule-hair) solid var(--color-rule); }
.t th, .t td { padding: var(--space-xs) var(--space-md); border-bottom: var(--rule-hair) solid var(--color-rule); text-align: right; }
.t thead th { font-family: var(--font-display); font-weight: 500; font-size: var(--text-sm); color: var(--color-muted); background: var(--color-paper-2); }
.t thead th.t__group { text-align: left; }
.t thead tr:last-child th:first-child { text-align: left; }
.t thead td { background: var(--color-paper-2); border-bottom: 0; }
.t tbody th { font-family: var(--font-outlier); font-weight: 400; color: var(--color-ink); text-align: left; }
.t tbody td { font-family: var(--font-outlier); color: var(--color-ink-2); }
.t tbody tr:last-child th, .t tbody tr:last-child td { border-bottom: 0; }
.t td.t__mark { background: var(--color-accent-wash); color: var(--color-accent-deep); box-shadow: inset 0 0 0 1px var(--color-accent); }

.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); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-input); background: var(--color-paper-2); }
.steps b { color: var(--color-ink); font-weight: 500; }

.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-left: 2px solid var(--color-accent); 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; }

.foot { border-top: var(--rule-hair) solid var(--color-rule); background: var(--color-paper-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: 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); }
  .plate { padding: var(--space-lg); }
  .calc { margin-top: var(--space-lg); }
  .calc__in { gap: var(--space-md); }
  .row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-sm); }
  .field { font-size: var(--text-xs); }
  .field input { height: 48px; font-size: var(--text-md); padding: 0 var(--space-xs); }
  .fig { width: 128px; height: 128px; }
  /* the table: one card an outside diameter, each figure labelled with its wall (the table hid the thicker walls off the side) */
  .t-wrap { overflow-x: visible; border: 0; border-radius: 0; }
  .t { display: block; min-width: 0; }
  .t caption { display: block; padding: 0 0 var(--space-sm); border-top: 0; }
  .t thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .t tbody { display: grid; gap: var(--space-xs); }
  .t tbody tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2xs) var(--space-xs); padding: var(--space-sm) var(--space-xs); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-card); background: var(--color-paper-2); }
  .t tbody th { grid-column: 1 / -1; padding: 0 var(--space-xs) var(--space-2xs); border: 0; }
  .t tbody th::after { content: " mm outside, kg a metre"; font-family: var(--font-body); font-size: var(--text-sm); color: var(--color-muted); }
  .t tbody td { display: grid; padding: var(--space-2xs) var(--space-xs); border: 0; text-align: left; }
  .t tbody td:empty { display: none; }
  .t tbody td::before { content: attr(data-label); font-family: var(--font-body); font-size: var(--text-sm); color: var(--color-muted); }
  .t td.t__mark { border-radius: var(--radius-input); }
}
@media (prefers-reduced-motion: reduce) {
  .key { transition: none; }
}
