/* Hallmark · shape: Workbench · genre: editorial · theme: Grid (deal 1/3, seed will-fit-sofa-bed-a889·105dbe44·2026-12-05·r2) · job: try · draw: manual
 * hero: the head at poster size and one line over the unit choice, set as a line of words · nav: edge-aligned, the two-line wordmark beside its red square and two links · footer: the note over the credit lines on paper-2 · imagery: none, two drawings to scale · signature: the drawings to scale that redraw as you type, the room from above on paper and the doorway head on across the ultramarine field · fonts: Radio Canada Big and Radio Canada from @fontsource, as the theme names them
 * axes: light/grotesk-sans/cool · posture: full-palette · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R3 V4 · weakest: R, two cards and a page on the rule; the two drawings carry the look */
/* Hallmark · waive 77 · every page · a fitting check and a page on its rule, not a landing strip */
/* Hallmark · waive 44c · every page · the drawing to scale is each card's visual; on the rule page each worked example stands beside its drawing */
/* Hallmark · dismissed 41 · the way in · on the field --draw-ink and --draw-fill are both field-ink for lines and solid faces; a label on a face takes --draw-on-fill, the field blue */
: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.5% 0.005 90); --color-paper-2: oklch(94.2% 0.006 90); --color-paper-3: oklch(90.5% 0.008 90);
  --color-ink: oklch(19% 0.022 266); --color-ink-2: oklch(31% 0.02 266); --color-muted: oklch(47% 0.016 266);
  --color-rule: oklch(87.5% 0.008 90);
  --color-accent: oklch(44% 0.2 266); --color-accent-ink: oklch(97.5% 0.005 90); --color-focus: oklch(46% 0.2 266);
  --color-field: oklch(44% 0.2 266); --color-field-ink: oklch(97.5% 0.005 90);
  --color-mark: oklch(57% 0.215 29); --color-mark-ink: oklch(97.5% 0.005 90);
  --font-display: "Radio Canada Big", ui-sans-serif, system-ui, sans-serif; --font-body: "Radio Canada", ui-sans-serif, system-ui, sans-serif;
  --font-outlier: var(--font-display);
  --radius-card: 0; --radius-pill: 0; --rule-hair: 1px; --shadow-card: none;
  --tracking-display: -0.035em; --display-weight: 700;
}

*, *::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: var(--color-mark); color: var(--color-mark-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 ink paper-2 con=12 */
[data-slot]:has(> img) { isolation: isolate; background: var(--color-paper-2); 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.12); 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-display);
  --draw-ink: var(--color-ink); --draw-fill: var(--color-field); --draw-on-fill: var(--color-field-ink); --draw-over: var(--color-mark); --draw-ground: var(--color-paper);
}

@font-face { font-family: "Radio Canada Big"; src: url("/fonts/rcbig-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Radio Canada Big"; src: url("/fonts/rcbig-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Radio Canada"; src: url("/fonts/rc-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Radio Canada"; src: url("/fonts/rc-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

body { color: var(--color-ink-2); font-size: 1.0625rem; line-height: 1.5; }
h1, h2 { color: var(--color-ink); text-align: start; }
.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: currentColor; text-decoration-thickness: var(--rule-hair); text-underline-offset: 0.28em; transition: color var(--dur-short) var(--ease-out); }
a:hover { color: var(--color-mark); }

/* the bar: the two-line wordmark beside its red square */
.bar__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-xs) var(--space-xl); padding-block: var(--space-lg); }
.wordmark { display: inline-grid; grid-template-columns: auto auto; justify-content: start; align-self: center; column-gap: var(--space-sm); font: var(--display-weight) var(--text-lg)/0.92 var(--font-display); letter-spacing: -0.02em; color: var(--color-ink); text-decoration: none; }
.wordmark::before { content: ""; grid-row: span 2; aspect-ratio: 1; background: var(--color-mark); }
.wordmark span + span { font-weight: 400; }
.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; font-size: var(--text-sm); color: var(--color-muted); }
.bar__nav a:hover { color: var(--color-mark); }
.bar__nav a:active, .units__o:active span { transform: translateY(1px); }
.bar__nav a[aria-current="page"] { color: var(--color-ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.4em; }

/* the hero: the head at poster size, the unit choice as a line of words */
.hero { padding-block: var(--space-lg) var(--space-2xl); }
.hero__in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-lg) var(--gap-columns); align-items: end; }
.hero__t { grid-column: 1 / span 7; }
.hero h1 { font-size: clamp(4.5rem, 10.2vw, 10rem); letter-spacing: -0.045em; line-height: 0.9; max-width: 12ch; }
.hero .lead { margin-top: var(--space-lg); max-width: 34ch; color: var(--color-ink); }
.units { grid-column: 8 / -1; min-width: 0; border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--space-lg); }
.units legend { float: left; width: 100%; padding: 0; margin-bottom: var(--space-2xs); font-size: var(--text-sm); font-weight: 500; color: var(--color-muted); }
.units__o { min-height: 44px; display: inline-flex; align-items: center; cursor: pointer; font: var(--display-weight) var(--text-xl)/1 var(--font-display); letter-spacing: -0.02em; color: var(--color-ink); }
.units__o span { transition: color var(--dur-short) var(--ease-out); }
.units__o:hover span { color: var(--color-mark); }
.units__o input:checked + span { color: var(--color-mark); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.units__o input:focus-visible + span, .units__o:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; }
.units__o:has(input:focus-visible) { outline: 2px solid var(--color-focus); outline-offset: 4px; }

/* the two cards: the figures on the left, the drawing to scale on the right */
.card { padding-block: var(--space-2xl) var(--space-3xl); }
.card--room { padding-top: var(--space-2xl); }
.card__in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-xl) var(--gap-columns); align-items: start; }
.card__text { grid-column: 1 / span 6; }
.card h2 { font-size: var(--text-section); }
.card__ex { margin-top: var(--space-sm); font-size: var(--text-sm); font-weight: 500; color: var(--color-muted); max-width: 46ch; }
.ins { margin-top: var(--space-lg); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-lg) var(--gap-columns); }
.ins .in:last-child { grid-column: 1 / -1; }
.in { display: grid; gap: var(--space-2xs); }
.in__l { font-size: var(--text-sm); font-weight: 500; color: var(--color-muted); }
.in input { font: var(--display-weight) 2rem/1 var(--font-display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--color-ink); width: 100%; height: 52px; padding: 0; border: 0; border-bottom: var(--rule-hair) solid var(--color-muted); border-radius: 0; background: transparent; }
.in input:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; }
.in input:disabled { opacity: 0.5; cursor: not-allowed; }
.verdict { margin-top: var(--space-xl); font: var(--display-weight) var(--text-2xl)/1.1 var(--font-display); letter-spacing: -0.025em; color: var(--color-ink); max-width: 24ch; }
.verdict[data-ok="no"] { color: var(--color-mark); }
.more { margin-top: var(--space-sm); max-width: 52ch; }
.rule { margin-top: var(--space-lg); font-size: var(--text-sm); max-width: 52ch; }
.draw { grid-column: 7 / -1; margin: 0; background: var(--color-paper-2); padding: var(--space-lg); }
.draw svg { width: 100%; height: auto; max-height: 520px; }
.draw--door svg { max-width: 420px; margin-inline: auto; }

/* the ultramarine field: field-ink type, and the drawing straight on the field */
.field { background: var(--color-field); color: var(--color-field-ink); --color-focus: var(--color-field-ink); --draw-ink: var(--color-field-ink); --draw-fill: var(--color-field-ink); --draw-on-fill: var(--color-field); --draw-over: var(--color-field-ink); --draw-ground: transparent; }
.field h2, .field .verdict, .field .in input, .field .verdict[data-ok="no"] { color: var(--color-field-ink); }
.field .card__ex, .field .in__l { color: var(--color-field-ink); }
.field .in input { border-bottom-color: color-mix(in oklab, var(--color-field-ink) 60%, transparent); }
.field a:hover { color: var(--color-field-ink); text-decoration-thickness: 2px; }
.field .draw { background: transparent; padding: 0; }

/* the drawings: colours through the --draw tokens, which the field redefines */
.d-room { fill: var(--draw-ground); stroke: var(--draw-ink); stroke-width: 3; }
.d-zone { fill: var(--draw-fill); fill-opacity: 0.14; stroke: var(--draw-fill); stroke-width: 1.5; stroke-dasharray: 6 4; }
.d-zone--over { fill: var(--draw-over); stroke: var(--draw-over); }
.d-piece { fill: var(--draw-fill); }
.d-floor { stroke: var(--draw-ink); stroke-width: 2; }
.d-door { fill: none; stroke: var(--draw-ink); stroke-width: 4; }
.d-face { fill: var(--draw-fill); fill-opacity: 0.9; }
.d-face--over { fill: var(--draw-over); fill-opacity: 0.85; stroke: var(--draw-over); stroke-width: 2; stroke-dasharray: 6 4; }
.d-label { fill: var(--draw-ink); font: 500 15px var(--font-body); }
.d-label--in, .d-label--face { fill: var(--draw-on-fill); }

/* the page on the rule */
.head { padding-block: var(--space-2xl) var(--space-2xl); }
.head h1 { font-size: var(--text-display); line-height: 0.95; max-width: 16ch; }
.head .lead { margin-top: var(--space-md); max-width: 44ch; color: var(--color-ink); }
.sec { padding-block: var(--space-3xl); }
.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: 60ch; font-size: var(--text-lead); line-height: 1.45; }
.sec__note { margin-top: var(--space-lg); max-width: 64ch; }
.pair { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-xl) var(--gap-columns); align-items: start; }
.pair__text { grid-column: 1 / span 6; display: grid; gap: var(--space-md); align-content: start; }
.pair__text h2 + * { margin-top: var(--space-xs); }
.pair .draw { grid-column: 8 / -1; }
.field .pair__text p, .field h2 { color: var(--color-field-ink); }
.steps { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--space-md); max-width: 60ch; counter-reset: step; }
.steps li { position: relative; padding-left: 3.25rem; }
ol.steps li { counter-increment: step; font-size: var(--text-lead); }
ol.steps li::before { content: counter(step); position: absolute; left: 0; top: -0.12em; font: var(--display-weight) var(--text-2xl)/1 var(--font-display); color: var(--color-field); }
ul.steps li { padding-left: 0; }
.steps b { color: var(--color-ink); font-weight: 500; }

.foot { 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; }

/* the size pages: breadcrumbs, the size tables, the links to the sets, the calls to the fit check */
.crumbs ol { list-style: none; margin: 0 0 var(--space-md); padding: 0; display: flex; flex-wrap: wrap; gap: 0 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-muted); }
.crumbs a { min-height: 44px; display: inline-flex; align-items: center; }
.crumbs [aria-current] { display: inline-flex; align-items: center; min-height: 44px; color: var(--color-ink); }
.tbl-wrap { overflow-x: auto; margin-top: var(--space-lg); max-width: 100%; }
.tbl { border-collapse: collapse; min-width: 34rem; width: 100%; max-width: 72rem; font-variant-numeric: tabular-nums; font-size: var(--text-sm); }
.tbl caption { text-align: start; font-weight: 500; color: var(--color-muted); padding-bottom: var(--space-sm); }
.tbl th, .tbl td { text-align: start; vertical-align: top; padding: var(--space-sm) var(--space-md) var(--space-sm) 0; border-bottom: var(--rule-hair) solid var(--color-rule); }
.tbl thead th { font-weight: 500; color: var(--color-muted); }
.tbl tbody th { font-weight: 500; color: var(--color-ink); }
.tbl a { white-space: nowrap; }
.field .tbl caption, .field .tbl thead th, .field .tbl tbody th { color: var(--color-field-ink); }
.field .tbl th, .field .tbl td { border-bottom-color: color-mix(in oklab, var(--color-field-ink) 35%, transparent); }
.sets { list-style: none; margin: var(--space-md) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2xs) var(--space-lg); font: var(--display-weight) var(--text-lg)/1.2 var(--font-display); letter-spacing: -0.015em; }
.sets a, .sets [aria-current] { min-height: 44px; display: inline-flex; align-items: center; }
.sets [aria-current] { color: var(--color-mark); }
.field .sets [aria-current] { color: var(--color-field-ink); text-decoration: underline; text-decoration-thickness: 2px; }
.sets--list { flex-direction: column; gap: 0; font: 400 var(--text-md)/1.4 var(--font-body); letter-spacing: 0; }
.check { margin-top: var(--space-lg); }
.check__a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; text-decoration-thickness: 2px; }
.check__a::after { content: " \2192"; white-space: pre; }
.draw--wide { margin-top: var(--space-lg); max-width: 72rem; }
.field .draw--wide { padding: 0; }
.steps--plain { margin-top: var(--space-lg); gap: var(--space-xs); }
.steps--plain li { padding-left: 0; }
.sec--sizes { padding-block: var(--space-4xl) var(--space-3xl); }
.sec--more { background: var(--color-paper-2); padding-block: var(--space-3xl); }
.sec__in > .sec__p + .sec__p, .pair__text p + p { margin-top: var(--space-sm); }
.d-out { fill: none; stroke: var(--draw-ink); stroke-width: 1.5; }
.d-out--max { stroke-dasharray: 6 4; }
.d-label--sub { fill: var(--draw-ink); font-size: 13px; opacity: 0.85; }
.d-line { stroke: var(--draw-ink); stroke-width: 1; stroke-dasharray: 3 4; }
.d-seam { stroke: var(--draw-on-fill); stroke-width: 1.5; }

/* the floor plan sheet: millimetres of paper; printed, the svg is 190 mm wide, so 1:50 holds */
.plan { margin: var(--space-lg) 0 0; max-width: 72rem; }
.plan svg { display: block; width: 100%; height: auto; }
.d-cut { fill: var(--draw-ground); stroke: var(--draw-ink); stroke-width: 0.3; }
.d-cut__l { fill: var(--draw-ink); font-family: var(--font-body); font-weight: 500; }
.d-cut__l--sub { font-weight: 400; }
.d-bar { stroke: var(--draw-ink); stroke-width: 0.4; }
@media print {
  .bar, .foot, .crumbs, .sec--more, .skip { display: none; }
  .plan svg { width: 190mm; }
  .sec--plan { padding: 0; }
}

/* the sources: each claim, the quote word for word, where it comes from */
.register { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--space-xl); max-width: 64ch; }
.register__claim { font-weight: 500; color: var(--color-ink); }
.register blockquote { margin: var(--space-sm) 0 var(--space-sm) var(--space-lg); color: var(--color-ink); }
.register__src { font-size: var(--text-sm); color: var(--color-muted); max-width: 58ch; }

@media (max-width: 860px) {
  .card__text, .draw, .pair__text, .pair .draw, .hero__t, .units { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .hero { padding-block: var(--space-lg) var(--space-lg); }
  .card--room { padding-top: var(--space-lg); }
  .units { gap: 0 var(--space-md); }
  .units__o { font-size: var(--text-lg); }
  .card { padding-block: var(--space-xl) var(--space-2xl); }
  .in input { font-size: 1.6rem; }
  .verdict { font-size: var(--text-xl); }
  .draw { padding: var(--space-md); }
  .head { padding-block: var(--space-xl) var(--space-md); }
  .sets { font-size: var(--text-md); gap: 0 var(--space-md); }
  .tbl { min-width: 0; }
  .tbl th, .tbl td { padding-right: var(--space-sm); }
  .tbl tbody th, .tbl thead th:first-child { position: sticky; left: 0; z-index: 1; background: var(--color-paper); }
  .field .tbl tbody th, .field .tbl thead th:first-child { background: var(--color-field); }
}
