@font-face { font-family: "Besley"; src: url("../fonts/besley-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Besley"; src: url("../fonts/besley-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("../fonts/hanken-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("../fonts/hanken-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("../fonts/hanken-400i.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --board: #eceeea;   /* plasterboard */
  --paper: #fbfbf9;
  --ink: #23292d;     /* graphite */
  --soft: #545d63;
  --chalk: #1c5aa6;   /* chalk-line blue, the one accent */
  --chalk-deep: #154682;
  --chalk-tint: #dfe8f2;
  --ply: #d9be8e;
  --tape: #f2c531;
  --line: #c8cbc6;
  --brick: #9c2f1c;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--board); color: var(--ink); font: 400 18px/1.55 "Hanken Grotesk", system-ui, sans-serif; }
h1, h2, h3 { font-family: "Besley", Georgia, serif; font-weight: 700; line-height: 1.12; margin: 0; color: var(--ink); text-wrap: balance; }
h2 { font-size: clamp(30px, 4.2vw, 46px); }
h3 { font-size: 22px; font-weight: 500; }
p { margin: 0 0 1em; }
a { color: var(--chalk-deep); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--chalk); outline-offset: 2px; border-radius: 2px; }
.wrap { width: min(100%, var(--wrap)); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 8px 14px; z-index: 5; }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* The board: real birch ply, with the sign written straight on it. */
.board { background: var(--ply) url("../img/ply.webp") center / cover; position: relative; }
.board-edge { height: 12px; background: repeating-linear-gradient(to bottom, #e8d3a8 0 2px, #b28e58 2px 3px, #dcc595 3px 5px, #a98551 5px 6px); box-shadow: 0 3px 5px rgba(50, 40, 20, .18); position: relative; z-index: 1; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 22px/1 "Besley", Georgia, serif; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand svg { width: 28px; height: 28px; flex: none; }
.topnav { display: flex; gap: 22px; font-weight: 600; font-size: 16px; }
.topnav a { color: var(--ink); text-decoration: none; padding: 8px 0; white-space: nowrap; }
.topnav a:hover { text-decoration: underline; }
.screw { position: absolute; width: 13px; height: 13px; border-radius: 50%; background: radial-gradient(circle at 38% 34%, #d7d7d0, #85857d 70%); box-shadow: 0 1px 1px rgba(40, 30, 10, .5), inset 0 0 0 .5px rgba(0,0,0,.25); }
.screw::after { content: ""; position: absolute; inset: 5.5px 2px; background: #4c4c45; transform: rotate(var(--r, 30deg)); }

.hero { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); padding-block: clamp(20px, 4vw, 52px) 0; align-items: end; }
.hero-text { padding-bottom: clamp(36px, 6vw, 84px); align-self: center; }
.hero h1 { text-wrap: wrap; font-size: clamp(40px, 4.6vw, 62px); line-height: 1.06; }
.hero h1 span { display: block; text-wrap: wrap; }
.hero h1 span + span { margin-top: .18em; }
.hero-sub { font-size: clamp(19px, 1.9vw, 22px); line-height: 1.42; margin: 22px 0 28px; color: #2b2a22; }
.hero-note { font-size: 16px; margin: 14px 0 0; color: #3a372b; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 12px 26px; font: 600 18px/1.2 "Hanken Grotesk", sans-serif; border-radius: 3px; border: 2px solid var(--chalk); background: var(--chalk); color: #fff; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--chalk-deep); border-color: var(--chalk-deep); color: #fff; }
.btn-quiet { background: transparent; color: var(--chalk-deep); }
.btn-quiet:hover { background: var(--chalk-tint); color: var(--chalk-deep); border-color: var(--chalk-deep); }
.btn[disabled], .btn[aria-disabled="true"] { background: #e3e4df; border-color: #c4c6c0; color: #4d5358; cursor: not-allowed; }
.stack { position: relative; margin-bottom: -46px; z-index: 2; }
.stack .under { position: absolute; width: 92%; left: 13%; top: 30px; filter: brightness(.985); }
.stack .over { position: relative; width: 92%; }
.stack .sheet { box-shadow: 0 1px 1px rgba(40,30,10,.25), 0 14px 26px rgba(55,40,15,.26); }
.stack-clip { position: absolute; z-index: 3; top: -9px; left: 38%; width: 92px; height: 24px; background: linear-gradient(#55595b, #2c3032); border-radius: 3px 3px 1px 1px; box-shadow: 0 2px 3px rgba(0,0,0,.35); }
.sample-tag { position: absolute; z-index: 3; left: 0; top: -34px; font-size: 15px; color: #3a372b; }

.chalk { display: block; width: 100%; height: 20px; color: var(--chalk); opacity: .75; }
.chalk line { stroke: currentColor; stroke-width: 2.2; stroke-dasharray: 2600; stroke-dashoffset: 0; filter: url(#chalkdust); animation: snap .55s cubic-bezier(.2, .9, .2, 1) .2s backwards; }
@keyframes snap { from { stroke-dashoffset: 2600; } }
@media (prefers-reduced-motion: reduce) { .chalk line { animation: none; } html { scroll-behavior: auto; } * { transition: none !important; } }

section.block { padding-block: clamp(52px, 8vw, 96px); }
section.first { padding-top: clamp(84px, 11vw, 130px); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(26px, 5vw, 72px); align-items: start; }
.lead { font-size: clamp(19px, 1.8vw, 21px); line-height: 1.45; }
.source { font-size: 15px; color: var(--soft); }
.reason { padding-block: 16px; border-top: 1px solid var(--line); }
.reason:first-child { border-top: 0; padding-top: 0; }
.reason h3 { margin-bottom: 6px; }
.reason p { margin: 0; }

/* Scale bar: 14 days against the extended period, drawn to scale. */
.scale { margin-top: 34px; }
.scale-bar { display: flex; height: 30px; }
.scale-14 { flex: 14 0 0; background: var(--tape); min-width: 6px; }
.scale-ext { flex: 365 0 0; background: repeating-linear-gradient(90deg, #e9d48a 0 2px, #f5e9bb 2px 26px); border: 1px solid #cfbb70; border-left: 0; }
.scale-labels { display: flex; justify-content: space-between; gap: 16px; font-size: 15px; margin-top: 6px; }

/* The tape */
.tool { background: var(--paper); border: 1px solid var(--line); padding: clamp(18px, 3vw, 32px); border-radius: 3px; }
.tool-controls { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px 22px; margin-bottom: 22px; }
.tape { display: grid; grid-template-columns: repeat(15, minmax(0, 1fr)); background: var(--tape); border: 1px solid #b99417; border-radius: 2px; box-shadow: 0 2px 3px rgba(60, 50, 10, .2); }
.tick-cell { position: relative; text-align: center; height: 62px; padding-top: 24px; font-weight: 600; font-size: 15px; line-height: 1.2; color: #24211a; background: linear-gradient(#24211a, #24211a) left top / 1px 16px no-repeat; font-variant-numeric: tabular-nums; }
.tick-cell:first-child { background: none; }
.tick-cell.we { background-color: #e7b81f; }
.tick-cell.zero, .tick-cell.end { background-color: #24211a; color: var(--tape); }
.tape-days { display: flex; justify-content: space-between; font-size: 15px; color: var(--soft); margin-top: 6px; gap: 12px; }
.results { margin: 22px 0 0; display: grid; gap: 0; }
.results > div { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr); gap: 4px 20px; padding-block: 11px; border-top: 1px solid var(--line); }
.results dt { color: var(--soft); }
.results dd { margin: 0; font-weight: 600; }
.results .ref { display: block; font-weight: 400; font-size: 15px; color: var(--soft); }
.results .big dd { font: 500 23px/1.2 "Besley", Georgia, serif; }
.placeholder-note { background: var(--chalk-tint); padding: 12px 14px; margin-top: 14px; font-size: 16px; }

/* Gallery of real sheets */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2.4vw, 30px); margin-top: 38px; }
.gallery figure { margin: 0; }
.gallery .sheet { box-shadow: 0 1px 2px rgba(35, 41, 45, .22), 0 8px 18px rgba(35, 41, 45, .1); }
.gallery figcaption { margin-top: 14px; font-size: 16px; line-height: 1.4; }
.gallery figcaption b { display: block; font: 500 19px/1.25 "Besley", Georgia, serif; margin-bottom: 3px; }

.limits { columns: 2; column-gap: 48px; margin: 26px 0 0; padding: 0; list-style: none; }
.limits li { break-inside: avoid; padding: 0 0 14px; }
.price-row { display: flex; flex-wrap: wrap; gap: 20px 44px; align-items: center; justify-content: space-between; border-top: 3px solid var(--ink); padding-top: 26px; }
.price { font: 700 clamp(46px, 7vw, 72px)/1 "Besley", Georgia, serif; }
.price-copy { flex: 1 1 320px; margin: 0; }

footer.site { background: #dfe2dd; padding-block: 34px; font-size: 15.5px; color: #3e464b; margin-top: 24px; }
footer.site a { color: inherit; }
.footgrid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px 40px; }
.footlinks { display: flex; flex-wrap: wrap; gap: 8px 20px; align-content: flex-start; justify-content: flex-end; }

/* Plain pages */
.page { padding-block: clamp(36px, 6vw, 64px); }
.page h1 { font-size: clamp(36px, 5vw, 56px); margin-bottom: 18px; }
.page h2 { font-size: clamp(25px, 3vw, 31px); margin: 40px 0 10px; }
.page-grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 3fr); gap: 40px; }
.rule { border-top: 1px solid var(--line); padding-block: 18px; }
.rule h3 { margin-bottom: 6px; }
.rule details { margin-top: 6px; font-size: 16px; }
.rule summary { cursor: pointer; color: var(--chalk-deep); font-weight: 600; padding: 4px 0; }
.rule blockquote { margin: 8px 0 0; padding: 8px 0 8px 14px; border-left: 3px solid var(--line); }

/* The form */
.make { display: grid; grid-template-columns: minmax(0, 1fr) 372px; gap: clamp(26px, 4vw, 56px); padding-block: clamp(24px, 4vw, 44px); align-items: start; }
.make-head { padding-top: clamp(24px, 4vw, 40px); }
.make-head h1 { font-size: clamp(34px, 4.8vw, 52px); }
.make-head p { margin: 10px 0 0; }
fieldset { border: 0; padding: 0; margin: 0 0 12px; min-width: 0; }
.step { background: var(--paper); border: 1px solid var(--line); border-radius: 3px; padding: clamp(18px, 3vw, 28px); margin-bottom: 18px; }
.step > legend, .step-h { font: 700 25px/1.2 "Besley", Georgia, serif; padding: 0; float: left; width: 100%; margin-bottom: 14px; }
.step > legend + * { clear: both; }
.step-n { color: var(--chalk); margin-right: 8px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.f { display: block; margin-bottom: 16px; min-width: 0; }
.f > span, .flabel { display: block; font-weight: 600; margin-bottom: 5px; font-size: 16.5px; line-height: 1.3; }
.f small, .hint { display: block; font-weight: 400; color: var(--soft); font-size: 15px; line-height: 1.4; }
input[type=text], input[type=email], input[type=tel], input[type=date], input[type=number], textarea, select {
  width: 100%; min-height: 48px; padding: 11px 12px; font: 400 17px/1.35 "Hanken Grotesk", sans-serif; color: var(--ink);
  background: #fff; border: 1.5px solid #8d9499; border-radius: 3px;
}
textarea { min-height: 94px; resize: vertical; }
input:focus-visible, textarea:focus-visible, select:focus-visible { border-color: var(--chalk); }
.invalid input, .invalid textarea, .invalid select, input.invalid, textarea.invalid { border-color: var(--brick); }
.err { display: block; color: var(--brick); font-size: 15.5px; font-weight: 600; margin-top: 5px; }
.choice { display: flex; gap: 11px; align-items: flex-start; padding: 12px 13px; border: 1.5px solid var(--line); border-radius: 3px; margin-bottom: 9px; cursor: pointer; background: #fff; }
.choice:has(input:checked) { border-color: var(--chalk); background: #f3f7fb; }
.choice input { width: 21px; height: 21px; margin: 2px 0 0; flex: none; accent-color: var(--chalk); }
.choice b { font-weight: 600; display: block; line-height: 1.3; }
.choice small { color: var(--soft); font-size: 15px; display: block; line-height: 1.4; margin-top: 3px; }
.line-row { display: grid; grid-template-columns: minmax(0, 1fr) 72px 110px 44px; gap: 8px; margin-bottom: 8px; align-items: start; }
.line-row button { min-height: 48px; background: none; border: 1.5px solid var(--line); border-radius: 3px; cursor: pointer; font-size: 20px; color: var(--soft); }
.link-btn { background: none; border: 0; color: var(--chalk-deep); font: 600 16.5px "Hanken Grotesk", sans-serif; padding: 10px 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.statute-q { font-size: 15.5px; border-left: 3px solid var(--line); padding: 2px 0 2px 12px; margin: 4px 0 12px; color: #3c4348; }
.warn { background: #fbf2d5; border-left: 4px solid var(--tape); padding: 12px 14px; font-size: 16px; margin: 10px 0 14px; }
.inks { display: flex; gap: 10px; flex-wrap: wrap; }
.ink-opt { display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); padding: 8px 12px; border-radius: 3px; min-height: 44px; cursor: pointer; background: #fff; font-size: 16px; }
.ink-opt:has(input:checked) { border-color: var(--chalk); }
.ink-swatch { width: 18px; height: 18px; border-radius: 2px; }
.ink-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ink-opt:has(input:focus-visible) { outline: 3px solid var(--chalk); outline-offset: 2px; }
.more { margin-top: 2px; }
.more summary { cursor: pointer; font-weight: 600; color: var(--chalk-deep); padding: 8px 0 12px; }
.side { position: sticky; top: 16px; }
.side h2 { font-size: 22px; font-weight: 500; margin-bottom: 12px; }
.side .tape { margin-top: 2px; }
.side .tick-cell { font-size: 12px; height: 52px; padding-top: 22px; }
.side-preview { margin-top: 18px; }
.side-preview .sheet { box-shadow: 0 1px 2px rgba(35,41,45,.25), 0 8px 18px rgba(35,41,45,.12); }
.actions-form { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; margin-top: 4px; }
.errsum { background: #f9e7e3; border-left: 4px solid var(--brick); padding: 12px 15px; margin-bottom: 14px; }
.errsum:focus-visible { outline-offset: 3px; }

/* The pack view */
.pack-layout { display: grid; grid-template-columns: minmax(0, 1fr) 372px; gap: clamp(26px, 4vw, 56px); padding-block: clamp(24px, 4vw, 44px); align-items: start; }
.pack-sheets { display: grid; gap: 24px; }
.pack-sheets .sheet { box-shadow: 0 1px 2px rgba(35,41,45,.28), 0 10px 22px rgba(35,41,45,.14); }
.buy { background: var(--paper); border: 1px solid var(--line); padding: 20px; border-radius: 3px; margin-bottom: 18px; }
.buy h2 { font-size: 24px; margin-bottom: 10px; }
.buy .btn { width: 100%; margin-top: 10px; }
.soon { display: block; background: var(--chalk-tint); color: var(--chalk-deep); font-weight: 600; padding: 12px 14px; border-radius: 3px; margin-top: 10px; text-align: center; }
.checklist { list-style: none; margin: 0; padding: 0; font-size: 16.5px; }
.checklist li { padding: 10px 0; border-top: 1px solid var(--line); }
.measure { position: absolute; left: -9999px; top: 0; width: 794px; visibility: hidden; }
.status { min-height: 1.5em; font-size: 15.5px; color: var(--soft); margin: 8px 0 0; }

.side .results > div, .pack-side .results > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
.pack-side .tick-cell { font-size: 12px; height: 52px; padding-top: 22px; }
.side .tape-days span:nth-child(2), .pack-side .tape-days span:nth-child(2) { display: none; }

[hidden] { display: none !important; }

@media (max-width: 980px) {
  .hero, .split, .make, .pack-layout, .page-grid, .footgrid { grid-template-columns: minmax(0, 1fr); }
  .stack { max-width: 520px; margin-inline: auto; width: 100%; }
  .side { position: static; order: -1; }
  .side-preview { display: none; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .limits { columns: 1; }
  .footlinks { justify-content: flex-start; }
  .pack-side { display: contents; }
  .pack-side > * { order: 2; margin-bottom: 0; }
  .pack-sheets { order: 1; }
  .pack-side > .buy-main { order: 0; }
  .pack-layout { gap: 20px; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .topnav { gap: 14px; font-size: 15px; }
  .brand { font-size: 18px; gap: 8px; }
  .brand img { width: 24px; height: 24px; }
  .grid2 { grid-template-columns: minmax(0, 1fr); }
  .results > div { grid-template-columns: minmax(0, 1fr); }
  .line-row { grid-template-columns: 72px minmax(0, 1fr) 48px; gap: 6px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
  .line-row input[name="line.d"] { grid-column: 1 / -1; }
  .tick-cell { font-size: 12px; height: 54px; }
  .tape-days span:nth-child(2) { display: none; }
  .btn { width: 100%; }
  .stack .under { display: none; }
  .stack .over { width: 100%; }
}
@media print {
  body { background: #fff; }
  body > *:not(main), .no-print, .pack-side, header, footer.site { display: none !important; }
  .pack-layout { display: block; padding: 0; }
  .pack-sheets { display: block; }
  main { display: block !important; }
}
