/*
  Seam and Seal. Hallmark self-critique stamp (pre-emit):
  - slop test: no centred hero over three feature cards; home is a drafting-bench plate beside a ruled task register; inner pages are numbered sheets with a sticky margin plate.
  - tokens only: colour, type and spacing come from tokens.css; no inline colours; roman headings; mono for labels only.
  - differentiation: right-edge tool tabs and a parts-organiser drawer (no top link row), pegboard footer, cutting-mat grid ground, hatch-filled outline numerals, stitched dashed rules, chamfered buttons, drafting plates in two inks.
  - responsive: checked at 320, 375, 414, 768; minmax(0,1fr) grids; tables scroll inside their own region; no horizontal page scroll.
*/
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--bar-h) + 1rem); }
html.drawer-open { overflow: hidden; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: 1.62;
  color: var(--ink);
  background-color: var(--mat);
  background-image:
    linear-gradient(var(--mat-line-strong) 1px, transparent 1px),
    linear-gradient(90deg, var(--mat-line-strong) 1px, transparent 1px),
    linear-gradient(var(--mat-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--mat-line) 1px, transparent 1px);
  background-size: calc(var(--grid) * 4) calc(var(--grid) * 4), calc(var(--grid) * 4) calc(var(--grid) * 4), var(--grid) var(--grid), var(--grid) var(--grid);
  overflow-x: clip;
}
img, svg { max-width: 100%; }
a { color: var(--teal); text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: var(--teal-soft); }
a:hover { text-decoration-color: var(--chalk-ink); background: var(--chalk-soft); }
:focus-visible { outline: 3px dashed var(--chalk-ink); outline-offset: 3px; }
.bar :focus-visible, .drawer :focus-visible, .peg :focus-visible, .tabs :focus-visible { outline-color: var(--chalk-soft); }
.skip { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--sheet); color: var(--ink); padding: var(--s-3) var(--s-4); border: var(--hard) solid var(--ink); }
.skip:focus { left: var(--s-3); top: var(--s-3); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.wrap { max-width: 76rem; margin-inline: auto; padding-inline: var(--s-4); }
@media (min-width: 56rem) { .wrap { padding-inline: var(--s-5) calc(var(--s-5) + var(--edge)); } }

/* ---------- top bar ---------- */
.bar { position: sticky; top: 0; z-index: 30; background: var(--night); color: var(--night-ink); border-bottom: var(--hard) solid var(--ink); }
.bar__in { max-width: 80rem; margin-inline: auto; padding-inline: var(--s-4); height: var(--bar-h); display: flex; align-items: center; gap: var(--s-4); }
.brandlink { display: inline-flex; align-items: center; gap: var(--s-2); color: var(--night-ink); text-decoration: none; flex: none; }
.brandlink:hover { background: transparent; }
.mark { width: 2.3rem; height: auto; }
.mk-a { fill: var(--night-ink); }
.mk-b { fill: none; stroke: var(--night); stroke-width: 1.5; stroke-dasharray: 3 2; }
.mk-c { fill: none; stroke: var(--chalk); stroke-width: 2.2; stroke-linecap: round; }
.brandlink__name { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; letter-spacing: -0.01em; }
.bar__here { margin: 0 0 0 auto; display: flex; align-items: baseline; gap: var(--s-2); min-width: 0; font-family: var(--font-mono); font-size: var(--text-xs); color: var(--night-dim); text-transform: uppercase; letter-spacing: 0.08em; }
.bar__no { color: var(--chalk-soft); font-weight: 700; flex: none; }
.bar__t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar__sheets { flex: none; border: var(--hard) solid var(--night-ink); background: var(--sheet); color: var(--ink); font-family: var(--font-display); font-weight: 700; font-size: var(--text-sm); padding: 0.5rem 0.9rem; min-height: 2.5rem; cursor: pointer; clip-path: polygon(0 0, calc(100% - 0.55rem) 0, 100% 0.55rem, 100% 100%, 0.55rem 100%, 0 calc(100% - 0.55rem)); }
.bar__sheets:hover { background: var(--chalk-soft); }
@media (max-width: 40rem) { .bar__t { display: none; } .bar__here { margin-left: auto; } }
@media (min-width: 56rem) { .bar__sheets { display: none; } .bar__here { margin-right: var(--edge); } }

/* ---------- edge tabs ---------- */
.tabs { display: none; }
@media (min-width: 56rem) {
  .tabs { display: flex; flex-direction: column; gap: 3px; position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 40; }
  .tab { writing-mode: vertical-rl; padding: 1.1rem 0.6rem; background: var(--night); color: var(--night-ink); font-family: var(--font-mono); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.14em; text-decoration: none; border: var(--hard) solid var(--ink); border-right: 0; border-radius: 0.55rem 0 0 0.55rem; text-align: center; }
  .tab:hover, .tab[aria-expanded="true"] { background: var(--chalk-ink); color: var(--sheet); }
}

/* ---------- parts drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 60; visibility: hidden; opacity: 0; background: color-mix(in oklab, var(--night) 62%, transparent); transition: opacity 0.2s, visibility 0s 0.25s; }
.drawer.is-open { visibility: visible; opacity: 1; transition: opacity 0.2s; }
.drawer__in { position: absolute; top: 0; left: 0; right: 0; max-height: 92vh; overflow: auto; background: var(--night); color: var(--night-ink); padding: var(--s-4) var(--s-4) var(--s-6); border-bottom: 4px solid var(--chalk); transform: translateY(-102%); transition: transform 0.25s ease-out; }
.drawer.is-open .drawer__in { transform: none; }
.drawer__top { max-width: 76rem; margin: 0 auto var(--s-4); display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); }
.drawer__h { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: var(--text-lg); }
.drawer__h span { display: block; font-family: var(--font-mono); font-weight: 400; font-size: var(--text-xs); color: var(--night-dim); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 0.2rem; }
.drawer__x { font-family: var(--font-mono); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.12em; background: transparent; color: var(--night-ink); border: var(--hard) solid var(--night-3); padding: 0.6rem 0.9rem; min-height: 2.5rem; cursor: pointer; }
.drawer__x:hover { border-color: var(--chalk); }
.drawer__sub { max-width: 76rem; margin: var(--s-5) auto var(--s-3); font-family: var(--font-mono); font-size: var(--text-xs); color: var(--night-dim); text-transform: uppercase; letter-spacing: 0.14em; }
.trays { list-style: none; margin: 0 auto; padding: 0; max-width: 76rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 11.5rem), 1fr)); gap: var(--s-2); }
.tray { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto 1fr; gap: 0.15rem var(--s-2); min-height: 5.6rem; padding: var(--s-3); background: var(--night-2); border: var(--hard) solid var(--night-3); border-radius: 0.4rem; color: var(--night-ink); text-decoration: none; }
.tray:hover { background: var(--night-3); border-color: var(--chalk); }
.tray[aria-current="page"] { border-color: var(--chalk); box-shadow: inset 0 0 0 2px var(--chalk); }
.tray__no { font-family: var(--font-display); font-weight: 800; font-size: var(--text-xl); line-height: 1; color: var(--chalk-soft); }
.tray__k { font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--night-dim); align-self: start; }
.tray__t { grid-column: 1 / -1; align-self: end; font-family: var(--font-display); font-weight: 600; font-size: var(--text-sm); line-height: 1.25; }
.trays--info .tray { min-height: 4rem; }

/* ---------- breadcrumbs ---------- */
.crumbs { padding-top: var(--s-4); }
.crumbs ol { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; font-family: var(--font-mono); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.1em; }
.crumbs li + li::before { content: "/"; margin: 0 0.6rem; color: var(--ink-dim); }
.crumbs a { color: var(--ink); }

/* ---------- home: bench ---------- */
.bench { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-6); padding-top: var(--s-6); align-items: center; }
@media (min-width: 60rem) { .bench { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: var(--s-7); padding-top: var(--s-7); } }
.eyebrow { margin: 0 0 var(--s-3); font-family: var(--font-mono); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.16em; color: var(--chalk-ink); display: flex; align-items: center; gap: var(--s-2); }
.eyebrow::before { content: ""; width: 0.8rem; height: 0.8rem; border: 2px solid var(--chalk-ink); background: repeating-linear-gradient(45deg, var(--chalk) 0 2px, transparent 2px 4px); }
.bench h1 { font-family: var(--font-display); font-weight: 800; font-size: var(--text-2xl); line-height: 1.03; letter-spacing: -0.025em; margin: 0 0 var(--s-4); text-wrap: balance; }
.lede { font-size: var(--text-lg); line-height: 1.5; max-width: 34rem; margin: 0 0 var(--s-5); }
.jobs { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); max-width: 32rem; }
.job { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--s-3); background: var(--sheet); border: var(--hard) solid var(--ink); box-shadow: 4px 4px 0 var(--mat-deep); padding: var(--s-2) var(--s-4) var(--s-2) var(--s-2); text-decoration: none; color: var(--ink); min-height: 3.5rem; }
.job:hover { background: var(--chalk-soft); box-shadow: 4px 4px 0 var(--chalk); }
.job__n { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; background: var(--ink); color: var(--sheet); font-family: var(--font-mono); font-weight: 700; }
.job__t { font-family: var(--font-display); font-weight: 700; font-size: 1rem; }
.job__s { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--ink-dim); text-transform: uppercase; letter-spacing: 0.08em; }
.bench__plate { position: relative; margin: 0; background: var(--sheet); border: var(--hard) solid var(--ink); box-shadow: 8px 8px 0 var(--mat-deep); padding: var(--s-4) var(--s-4) var(--s-3); }
.bench__plate::before, .sheet::before { content: ""; position: absolute; top: -0.85rem; left: 1.6rem; width: 4.6rem; height: 1.5rem; background: var(--chalk-soft); border: 1px dashed var(--chalk-ink); opacity: 0.92; transform: rotate(-3deg); }
.bench__plate figcaption, .plate__fig figcaption { margin-top: var(--s-3); padding-top: var(--s-2); border-top: 2px dashed var(--ink-dim); font-family: var(--font-mono); font-size: var(--text-xs); line-height: 1.5; color: var(--ink-dim); }

/* ---------- home: register ---------- */
.register { margin-top: var(--s-8); }
.register > * { position: relative; }
.register { background: var(--sheet); border: var(--hard) solid var(--ink); box-shadow: 6px 6px 0 var(--mat-deep); padding: var(--s-5) var(--s-4); max-width: calc(76rem - 2 * var(--s-4)); }
@media (min-width: 56rem) { .register { margin-inline: var(--s-5) calc(var(--s-5) + var(--edge)); } }
@media (min-width: 80rem) { .register { margin-inline: auto; } }
.register__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3); }
.register h2, .legend h2 { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: var(--text-xl); letter-spacing: -0.015em; }
.filters { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.filter { font-family: var(--font-mono); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.1em; padding: 0.45rem 0.8rem; min-height: 2.5rem; border: var(--hard) solid var(--ink); background: var(--sheet); color: var(--ink); cursor: pointer; }
.filter:hover { background: var(--chalk-soft); }
.filter.is-on { background: var(--ink); color: var(--sheet); }
.rows { list-style: none; margin: var(--s-4) 0 0; padding: 0; }
.row { border-top: 2px dashed var(--ink-dim); }
.row[hidden] { display: none; }
.row__a { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr) auto; gap: var(--s-3); align-items: center; padding: var(--s-3) var(--s-2); color: var(--ink); text-decoration: none; }
.row__a:hover { background: var(--chalk-soft); }
.row__no { font-family: var(--font-display); font-weight: 800; font-size: var(--text-lg); color: var(--chalk-ink); }
.row__main { display: grid; gap: 0.1rem; min-width: 0; }
.row__t { font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; line-height: 1.25; }
.row__s { font-size: var(--text-sm); color: var(--ink-dim); line-height: 1.4; }
.row__k { font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; padding: 0.25rem 0.5rem; border: 1px solid var(--ink); }
.row__k--explain { background: var(--teal-soft); }
.row__k--task { background: var(--chalk-soft); }
.row__k--check { background: var(--sheet-3); }
.row__m { display: none; font-family: var(--font-mono); font-size: var(--text-xs); color: var(--ink-dim); min-width: 4.5ch; text-align: right; }
@media (min-width: 40rem) { .row__a { grid-template-columns: 3rem minmax(0, 1fr) 5.5rem 4.5rem; } .row__m { display: block; } .row__k { text-align: center; } }

/* ---------- home: legend ---------- */
.legend { margin-top: var(--s-8); margin-bottom: var(--s-8); }
.legend h2 { margin-bottom: var(--s-4); }
.legend__grid { display: grid; gap: var(--s-4); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 52rem) { .legend__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.legend__c { background: var(--sheet); border-left: 6px solid var(--ink); padding: var(--s-4); }
.legend__n { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 2.6rem; line-height: 1; color: transparent; -webkit-text-stroke: 2px var(--ink); background: repeating-linear-gradient(135deg, var(--chalk) 0 2px, transparent 2px 6px); -webkit-background-clip: text; background-clip: text; }
.legend__c h3 { margin: var(--s-2) 0 var(--s-2); font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
.legend__c p:last-child { margin: 0; font-size: var(--text-sm); }
.legend__note { margin: var(--s-5) 0 0; padding: var(--s-3) var(--s-4); background: var(--sheet); border: 2px dashed var(--ink-dim); font-size: var(--text-sm); }

/* ---------- sheet (article) ---------- */
.sheet { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-5); background: var(--sheet); border: var(--hard) solid var(--ink); box-shadow: 6px 6px 0 var(--mat-deep); padding: var(--s-5) var(--s-4) var(--s-6); margin: var(--s-5) 0 var(--s-8); }
.sheet::after { content: ""; position: absolute; top: -0.85rem; right: 2.2rem; width: 3.6rem; height: 1.5rem; background: var(--teal-soft); border: 1px dashed var(--teal); opacity: 0.92; transform: rotate(2.5deg); }
@media (min-width: 64rem) {
  .sheet { grid-template-columns: minmax(0, 1fr) 20.5rem; grid-template-areas: "head plate" "prose plate" "next next"; column-gap: var(--s-7); padding: var(--s-6) var(--s-6) var(--s-7); }
  .sheet__head { grid-area: head; }
  .plate { grid-area: plate; align-self: start; position: sticky; top: calc(var(--bar-h) + 1rem); }
  .prose { grid-area: prose; }
  .nextup { grid-area: next; }
}
.sheet__head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s-4); align-items: end; }
.sheet__no { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(3.6rem, 15vw, 7.4rem); line-height: 0.78; letter-spacing: -0.04em; color: transparent; -webkit-text-stroke: 2px var(--ink); background: repeating-linear-gradient(135deg, var(--chalk) 0 2px, transparent 2px 7px); -webkit-background-clip: text; background-clip: text; padding-bottom: 0.05em; }
.sheet--info .sheet__no { font-size: clamp(3.6rem, 14vw, 6rem); }
.sheet__kind { margin: 0; font-family: var(--font-mono); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.15em; color: var(--chalk-ink); }
.sheet h1 { margin: 0.25rem 0 var(--s-3); font-family: var(--font-display); font-weight: 700; font-size: var(--text-xl); line-height: 1.1; letter-spacing: -0.015em; text-wrap: balance; }
.sheet__dek { margin: 0; font-size: var(--text-md); color: var(--ink-dim); line-height: 1.5; grid-column: 1 / -1; padding-top: var(--s-3); border-top: 2px dashed var(--ink-dim); }
.plate__fig { margin: 0; background: var(--sheet-2); border: var(--hard) solid var(--ink); padding: var(--s-3); }
.fig { display: block; width: 100%; height: auto; }
.glance { margin: var(--s-4) 0 0; border: var(--hard) solid var(--ink); background: var(--sheet); }
.glance div { display: grid; grid-template-columns: 5.4rem minmax(0, 1fr); gap: var(--s-2); padding: 0.45rem var(--s-3); border-top: 1px dotted var(--ink-dim); }
.glance div:first-child { border-top: 0; }
.glance dt { font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-dim); padding-top: 0.2rem; }
.glance dd { margin: 0; font-size: var(--text-sm); line-height: 1.4; }
.clauses { margin-top: var(--s-4); border: var(--hard) solid var(--ink); background: var(--sheet); }
.clauses summary { cursor: pointer; padding: var(--s-3); font-family: var(--font-mono); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.12em; }
.clauses ol { list-style: none; margin: 0; padding: 0 var(--s-3) var(--s-3); counter-reset: cl; }
.clauses li { counter-increment: cl; border-top: 1px dotted var(--ink-dim); }
.clauses a { display: grid; grid-template-columns: 3.1rem minmax(0, 1fr); gap: var(--s-2); padding: 0.4rem 0; font-size: var(--text-sm); line-height: 1.35; text-decoration: none; color: var(--ink); }
.clauses a::before { content: var(--no) "." counter(cl); font-family: var(--font-mono); font-size: 0.72rem; color: var(--chalk-ink); padding-top: 0.15rem; }
.clauses a:hover { background: var(--chalk-soft); }

/* prose */
.prose { max-width: 40rem; min-width: 0; counter-reset: clause; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 1.05em; }
.prose h2 { margin: var(--s-7) 0 var(--s-3); font-family: var(--font-display); font-weight: 700; font-size: var(--text-lg); line-height: 1.2; letter-spacing: -0.01em; }
.prose h2::before { content: var(--no) "." counter(clause); counter-increment: clause; display: block; margin-bottom: 0.3rem; font-family: var(--font-mono); font-weight: 700; font-size: var(--text-xs); letter-spacing: 0.14em; color: var(--chalk-ink); }
.sheet--info .prose h2::before { content: "Clause " counter(clause); }
.prose h3 { margin: var(--s-5) 0 var(--s-2); font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.prose a[target="_blank"]::after { content: "\2197"; font-family: var(--font-mono); font-size: 0.78em; margin-left: 0.12em; text-decoration: none; display: inline-block; }
.prose ul { list-style: none; padding: 0; margin: 0 0 1.2em; }
.prose ul > li { position: relative; padding-left: 1.7rem; margin-bottom: 0.45em; }
.prose ul > li::before { content: ""; position: absolute; left: 0.2rem; top: 0.62em; width: 0.62rem; height: 0.62rem; border: 2px solid var(--chalk-ink); background: repeating-linear-gradient(45deg, var(--chalk) 0 2px, transparent 2px 4px); }
.prose ol { list-style: none; padding: 0; margin: 0 0 1.2em; counter-reset: ol; }
.prose ol > li { position: relative; padding-left: 2.1rem; margin-bottom: 0.5em; counter-increment: ol; }
.prose ol > li::before { content: counter(ol) "."; position: absolute; left: 0; top: 0; font-family: var(--font-mono); font-weight: 700; font-size: 0.9rem; color: var(--chalk-ink); }
.prose ol.steps { counter-reset: step; margin: var(--s-4) 0 var(--s-5); }
.prose ol.steps > li { counter-increment: step; padding-left: 3.4rem; min-height: 2.4rem; margin-bottom: var(--s-4); }
.prose ol.steps > li::before { content: counter(step); width: 2.3rem; height: 2.3rem; display: grid; place-items: center; border: 2px solid var(--ink); background: var(--sheet-2); box-shadow: 3px 3px 0 var(--chalk); font-size: 1rem; color: var(--ink); }
.prose ol.steps > li:not(:last-child)::after { content: ""; position: absolute; left: 1.15rem; top: 2.7rem; bottom: -1rem; border-left: 2px dashed var(--ink-dim); }
.prose blockquote { margin: 1.4em 0; padding: var(--s-3) var(--s-4); background: var(--chalk-soft); border-left: 4px dashed var(--chalk-ink); }
.prose blockquote::before { content: "Quoted"; display: block; font-family: var(--font-mono); font-weight: 700; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--chalk-ink); margin-bottom: 0.2rem; }
.prose blockquote p { margin: 0; }
.prose p.asat { font-family: var(--font-mono); font-size: 0.84rem; line-height: 1.55; background: var(--teal-soft); border-left: 6px solid var(--teal); padding: var(--s-3) var(--s-4); }
.notice { margin: 0 0 var(--s-5); padding: var(--s-3) var(--s-4); background: var(--chalk-soft); border-left: 6px solid var(--chalk-ink); font-size: var(--text-sm); }
.notice p { margin: 0; }
.tablewrap { overflow-x: auto; margin: var(--s-4) 0 var(--s-5); border: var(--hard) solid var(--ink); background: var(--sheet); }
table.data { width: 100%; min-width: 30rem; border-collapse: collapse; font-size: var(--text-sm); line-height: 1.4; }
table.data caption { text-align: left; padding: var(--s-2) var(--s-3); font-family: var(--font-mono); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.1em; background: var(--sheet-2); border-bottom: var(--hard) solid var(--ink); }
table.data th { text-align: left; padding: var(--s-2) var(--s-3); font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; background: repeating-linear-gradient(135deg, var(--sheet-3) 0 3px, var(--sheet-2) 3px 7px); border-bottom: 1px solid var(--ink); }
table.data td { padding: var(--s-2) var(--s-3); vertical-align: top; border-top: 1px dotted var(--ink-dim); }
table.data tbody tr:first-child td { border-top: 0; }
.faq { margin-top: var(--s-6); }
.faq-item { border-top: 2px dashed var(--ink-dim); padding: var(--s-3) 0; }
.faq-item h3 { margin: 0 0 var(--s-2); display: flex; gap: var(--s-2); align-items: baseline; font-size: 1rem; }
.faq-item h3::before { content: "Q"; flex: none; display: inline-grid; place-items: center; width: 1.5rem; height: 1.5rem; background: var(--ink); color: var(--sheet); font-family: var(--font-mono); font-size: 0.75rem; }
.faq-item p { margin: 0; font-size: var(--text-sm); }
.prose aside.sources { margin-top: var(--s-7); padding-top: var(--s-4); border-top: 6px double var(--ink); }
.prose aside.sources h2::before { content: "Reference shelf"; counter-increment: none; }
.prose aside.sources ul { counter-reset: ref; }
.prose aside.sources li { counter-increment: ref; padding-left: 2.6rem; font-size: var(--text-sm); line-height: 1.45; margin-bottom: 0.7em; }
.prose aside.sources li::before { content: "R" counter(ref); border: 0; background: transparent; width: auto; height: auto; top: 0.05em; left: 0; font-family: var(--font-mono); font-weight: 700; font-size: 0.78rem; color: var(--chalk-ink); }
.form { display: grid; gap: var(--s-4); max-width: 34rem; margin-bottom: var(--s-5); }
.form label { display: grid; gap: 0.3rem; font-family: var(--font-mono); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.08em; }
.form input, .form textarea { font: inherit; font-family: var(--font-body); font-size: 1rem; text-transform: none; letter-spacing: 0; padding: 0.65rem 0.75rem; border: var(--hard) solid var(--ink); background: var(--sheet); color: var(--ink); border-radius: 0; min-height: 2.75rem; }
.form textarea { min-height: 9rem; }
.btn { justify-self: start; font-family: var(--font-display); font-weight: 700; font-size: 1rem; padding: 0.8rem 1.4rem; min-height: 3rem; border: 0; background: var(--ink); color: var(--sheet); cursor: pointer; clip-path: polygon(0 0, calc(100% - 0.7rem) 0, 100% 0.7rem, 100% 100%, 0.7rem 100%, 0 calc(100% - 0.7rem)); }
.btn:hover { background: var(--chalk-ink); }

/* next on the bench */
.nextup { margin-top: var(--s-4); padding-top: var(--s-5); border-top: 2px dashed var(--ink-dim); }
.nextup__h { margin: 0 0 var(--s-3); font-family: var(--font-mono); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.14em; color: var(--chalk-ink); }
.nextup ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 44rem) { .nextup ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.nextup a { display: grid; grid-template-columns: auto 1fr; gap: 0.1rem var(--s-3); padding: var(--s-3); height: 100%; background: var(--sheet-2); border: var(--hard) solid var(--ink); color: var(--ink); text-decoration: none; }
.nextup a:hover { background: var(--chalk-soft); box-shadow: 4px 4px 0 var(--chalk); }
.nextup__no { grid-row: 1 / 3; font-family: var(--font-display); font-weight: 800; font-size: var(--text-xl); line-height: 1; color: var(--chalk-ink); }
.nextup__t { font-family: var(--font-display); font-weight: 700; font-size: 1rem; }
.nextup__s { font-size: var(--text-sm); color: var(--ink-dim); line-height: 1.4; }

/* 404 */
.lost { margin: var(--s-7) 0 var(--s-8); background: var(--sheet); border: var(--hard) solid var(--ink); box-shadow: 6px 6px 0 var(--mat-deep); padding: var(--s-6) var(--s-5); }
.lost__no { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(4rem, 20vw, 9rem); line-height: 0.8; color: transparent; -webkit-text-stroke: 2px var(--ink); background: repeating-linear-gradient(135deg, var(--chalk) 0 2px, transparent 2px 7px); -webkit-background-clip: text; background-clip: text; }
.lost h1 { font-family: var(--font-display); font-size: var(--text-xl); margin: var(--s-4) 0 var(--s-3); }

/* ---------- pegboard footer ---------- */
.peg { position: relative; background-color: var(--night); background-image: radial-gradient(circle, oklch(14% 0.02 215) 0 2.2px, var(--night-3) 2.5px 3.3px, transparent 3.6px); background-size: 1.75rem 1.75rem; color: var(--night-ink); padding: var(--s-7) 0 var(--s-5); border-top: 4px solid var(--ink); }
.peg__in { max-width: 76rem; margin-inline: auto; padding-inline: var(--s-4); display: grid; gap: var(--s-6); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 56rem) { .peg__in { grid-template-columns: 17rem minmax(0, 1fr); gap: var(--s-7); padding-inline: var(--s-5) calc(var(--s-5) + var(--edge)); } }
.peg__stamp { align-self: start; background: var(--night-2); border: 3px dashed var(--chalk); padding: var(--s-4); transform: rotate(-1.2deg); }
.peg__stamp p { margin: 0 0 var(--s-2); font-size: var(--text-sm); line-height: 1.5; }
.peg__stamp p:last-child { margin: 0; }
.peg__stamp .peg__brand { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--chalk-soft); }
.peg__lab { margin: 0 0 var(--s-4); display: inline-block; background: var(--night); padding: 0.1rem 0.6rem 0.1rem 0; font-family: var(--font-mono); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.16em; color: var(--night-dim); }
.hooks { list-style: none; margin: 0 0 var(--s-6); padding: var(--s-3) 0 0; display: flex; flex-wrap: wrap; gap: var(--s-4) var(--s-3); }
.hooks li { position: relative; }
.hooks li::before { content: ""; position: absolute; left: 0.95rem; top: -0.75rem; width: 2px; height: 0.9rem; background: var(--night-dim); }
.hooks li:nth-child(3n + 1) { transform: rotate(-0.9deg); }
.hooks li:nth-child(3n + 2) { transform: rotate(0.7deg); }
.tag { position: relative; display: inline-flex; align-items: baseline; gap: 0.5rem; min-height: 2.5rem; padding: 0.55rem 0.9rem 0.55rem 2rem; background: var(--sheet); color: var(--ink); border-radius: 0.3rem; font-family: var(--font-display); font-weight: 600; font-size: var(--text-sm); line-height: 1.2; text-decoration: none; }
.tag::before { content: ""; position: absolute; left: 0.6rem; top: 50%; width: 0.7rem; height: 0.7rem; margin-top: -0.35rem; border-radius: 50%; background: var(--night); border: 2px solid var(--ink-dim); }
.tag:hover { background: var(--chalk-soft); }
.tag__no { font-family: var(--font-mono); font-weight: 700; font-size: 0.75rem; color: var(--chalk-ink); }
.peg__fine { max-width: 76rem; margin: var(--s-5) auto 0; padding: var(--s-4) var(--s-4) 0; border-top: 2px dashed var(--night-3); font-size: var(--text-sm); line-height: 1.55; color: var(--night-dim); background: var(--night); }
@media (min-width: 56rem) { .peg__fine { padding-inline: var(--s-5); margin-inline: auto; } }

/* ---------- drafting plates ---------- */
.fig .l { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.fig .d { fill: none; stroke: var(--ink-dim); stroke-width: 1; stroke-linecap: round; }
.fig .k { fill: none; stroke: var(--ink-dim); stroke-width: 1; stroke-dasharray: 7 3 1.5 3; }
.fig .c { fill: none; stroke: var(--chalk-ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fig .cf { fill: var(--chalk); stroke: var(--ink); stroke-width: 1.2; }
.fig .hf { fill: url(#hatch); stroke: var(--ink); stroke-width: 1.6; stroke-linejoin: round; }
.fig .df { fill: url(#dots); stroke: var(--ink); stroke-width: 1.4; stroke-linejoin: round; }
.fig .wf { fill: var(--sheet); stroke: var(--ink); stroke-width: 1.6; stroke-linejoin: round; }
.fig .t { font-family: var(--font-mono); font-size: 11px; fill: var(--ink-dim); }
.fig .tl { font-family: var(--font-mono); font-size: 13px; fill: var(--ink); }
.fig .tb { font-family: var(--font-mono); font-size: 11px; font-weight: 700; fill: var(--ink); }
.fig .n { font-family: var(--font-mono); font-size: 11px; font-weight: 700; fill: var(--ink); }
.hl { stroke: var(--ink-dim); stroke-width: 1.1; fill: none; }
.dl { fill: var(--ink-dim); }

@media (prefers-reduced-motion: reduce) {
  .drawer, .drawer__in { transition: none; }
  html { scroll-behavior: auto; }
}
@media (max-width: 26rem) {
  .sheet { padding-inline: var(--s-3); }
  .register { padding-inline: var(--s-3); }
}
