/* MyToteRack site: Garage daylight (D274, docs/DESIGN.md) on the structure of look A (D127). 10 Nov 2026: the
   tokens, the type, sentence case, 4 px corners, no shadows; the home page's own blocks (hm-) and the dark
   scheme (D276) are not redone yet. Fonts: Barlow (text, numbers), Barlow Semi Condensed (headings), Big
   Shoulders Display (the wordmark only). What follows describes look A, where it still holds.
   Look A, "Workshop" (D127, 20 Oct 2026; mock-up web-proto/site-designs/a-workshop.html).
   The black of the tote, the yellow of its lid as the one accent, a spruce 2x4 as the rail the designs
   stand on. Big Shoulders Display (headings, prices, buttons), Source Sans 3 (text), DM Mono (numbers).
   Phone first, 16 px gutters at the narrowest, light and dark from the system setting (data-theme on
   <html> forces one).

   Every page loads this file. The builder pages add market.css on top (classes mk-…) and read the
   tokens below, so the token names (--accent, --surface, --line…) and the structure classes (.card,
   .btn, .btn-primary, .inp, .field, .notice, .badge, .grid, .price…) are a contract: rename nothing.
   The designer (designer/index.html, generated by tools/site_sync.mjs) loads this file before its own
   <style>, so its own rules win; the look-A typography of buttons and headings is scoped to the site's
   own pages (:where(body:not(.page-designer))) so the designer keeps its own buttons, and the home
   page's classes are prefixed hm-. */

:root {
  /* the bar: header, hero, footer, dark blocks (the same in light and dark) */
  --bar: #111111; --bar-2: #1b1b1a; --bar-3: #232322; --bar-line: #2e2e2c;
  --bar-ink: #f4f3ef; --bar-muted: #b3b3ad; --bar-dim: #8e8e88;
  /* the lid: the one accent */
  --accent: #F5BD02; --accent-hi: #FFCF2E; --accent-ink: #111111;
  /* the 2x4 and the plywood */
  --wood: #C99A5B; --wood-dark: #8a6230; --ply: #dcbc8c;
  /* the page (--fig: the panel behind a rack drawing, light enough for black totes in both schemes) */
  --ground: #EEEDE9; --surface: #ffffff; --surface-2: #f4f3ef; --ink: #1A1A18; --ink-2: #34352f; --muted: #5A5B57;
  --line: #CFCEC8; --line-strong: #8f8e88; --ph: #d7d8d2; --fig: #d7d8d2; --sel: rgba(245, 189, 2, 0.2);
  --focus: #1A1A18;
  --error: #a8231b; --warn: #7d5200; --ok: #2e7d32; --info: #33566d;
  --error-bg: #fbe9e7; --warn-bg: #fff3d1; --info-bg: #e8f0f5; --ok-bg: #e6f2e7;
  --shadow: none;
  --radius: 4px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1180px;
  --f-head: "Barlow Semi Condensed", "Arial Narrow", sans-serif;
  --f-logo: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --f-text: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-num: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.16, .84, .24, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #0b0b0b; --surface: #171717; --surface-2: #1f1f1e; --ink: #efeeea; --ink-2: #d6d5d0; --muted: #a8a9a4;
    --line: #2c2c2b; --line-strong: #5d5d59; --ph: #1d1d1c; --fig: #5a5a55; --sel: rgba(245, 189, 2, 0.14);
    --focus: #F5BD02;
    --error: #ff9a8f; --warn: #ffd06b; --ok: #86c98a; --info: #9cc4dd;
    --error-bg: #3a1e1b; --warn-bg: #362c12; --info-bg: #1a2a35; --ok-bg: #1c2e1e;
    --shadow: none; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #0b0b0b; --surface: #171717; --surface-2: #1f1f1e; --ink: #efeeea; --ink-2: #d6d5d0; --muted: #a8a9a4;
  --line: #2c2c2b; --line-strong: #5d5d59; --ph: #1d1d1c; --fig: #5a5a55; --sel: rgba(245, 189, 2, 0.14);
  --focus: #F5BD02;
  --error: #ff9a8f; --warn: #ffd06b; --ok: #86c98a; --info: #9cc4dd;
  --error-bg: #3a1e1b; --warn-bg: #362c12; --info-bg: #1a2a35; --ok-bg: #1c2e1e;
  --shadow: none; color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bar); scrollbar-color: var(--line-strong) var(--ground); }   /* below a short page's footer: the footer's colour */
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--f-text); font-size: 18px; line-height: 1.5; overflow-x: hidden; caret-color: var(--accent); }
::selection { background: var(--accent); color: var(--accent-ink); }
h1, h2, h3, h4 { font-family: var(--f-head); font-weight: 700; letter-spacing: 0; margin: 0; line-height: 1.1; }
:where(body:not(.page-designer)) :is(h1, h2, h3) { font-weight: 700; line-height: 1.1; text-wrap: balance; }
:where(body:not(.page-designer)) h1 { line-height: 1.02; letter-spacing: -0.01em; }
:where(body:not(.page-designer)) h3 { line-height: 1.2; }
:where(body:not(.page-designer)) h4 { font-size: 17px; font-weight: 600; }
img, svg { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-underline-offset: 0.2em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
/* on the bar the focus ring is the lid's yellow; on yellow it is black */
.site-header, .site-footer, .hm-hero, .hm-join, .site-toast { --focus: var(--accent); }
.hm-find, .btn-primary, .price-tag, .site-banner, .site-skip { --focus: #111111; }
[hidden] { display: none !important; }
.num { font-family: var(--f-num); font-variant-numeric: tabular-nums; }
.inp.mono, .mk-num, .money-inp .inp, .code-big { font-variant-numeric: tabular-nums; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header (Site.header): the black bar ---------- */
/* Markup (site.js): .site-skip, .site-header-in > .site-logo > img.site-logo-mark, button.site-lang, nav.site-nav > a.site-nav-link…
   (the last link is Sign in, or the signed-in user's name with .site-nav-user). */
.site-header { background: var(--bar); color: var(--bar-ink); font-family: var(--f-text); font-size: 15.5px; line-height: 1.3; border-bottom: 4px solid var(--accent); }
.page-home .site-header { border-bottom: 1px solid var(--bar-line); }   /* the home page's hero continues the bar; the 2x4 closes it */
.site-header-in { max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 10px var(--gutter); display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; min-height: 64px; }
.site-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--bar-ink); text-decoration: none; min-width: 0; margin-right: auto; border-radius: 4px; }
.site-logo-mark { flex: none; width: auto; height: 24px; border-radius: 3px; }
.site-logo-tile { flex: none; width: 32px; height: 32px; display: block; }   /* D199: the yellow tile beside the wordmark text */   /* logo D, the wordmark (img/logo-d.png): 24 px high on phones, 28 px from 820 px */
.site-logo-text { font: 800 27px/1 var(--f-logo); letter-spacing: 0.01em; white-space: nowrap; }
.site-logo-text b { color: var(--accent); font-weight: 800; }
.site-lang { order: 2; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #3a3a37; background: transparent; color: var(--bar-ink); border-radius: 4px; min-height: 36px; min-width: 44px; padding: 0 12px; font: 600 14.5px/1 var(--f-text); cursor: pointer; }
.site-lang:hover { border-color: var(--accent); }
.site-nav { order: 3; flex: 1 1 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 18px; padding-bottom: 2px; }
.site-nav-link { display: inline-flex; align-items: center; gap: 8px; color: var(--bar-muted); text-decoration: none; font-weight: 600; font-size: 15px; padding: 6px 0; min-height: 36px; border-bottom: 2px solid transparent; }
.site-nav-link:hover { color: var(--bar-ink); border-bottom-color: var(--accent); }
.site-nav-link[aria-current="page"] { color: var(--bar-ink); border-bottom-color: var(--accent); }
/* Sign in / the user: a small outlined button at the end of the bar */
.site-nav-link:last-child { margin-left: auto; padding: 0 12px; border: 1px solid #3a3a37; border-radius: 4px; color: var(--bar-ink); font-size: 14.5px; }
.site-nav-link:last-child:hover, .site-nav-link:last-child[aria-current="page"] { border-color: var(--accent); }
.site-nav-user span:last-child { max-width: 14ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-avatar { width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: inline-flex; align-items: center; justify-content: center; font: 800 14px var(--f-head); flex: none; }
.site-skip { position: absolute; left: 8px; top: -60px; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; border-radius: 4px; z-index: 100; font-weight: 700; }
.site-skip:focus { top: 8px; }
@media (min-width: 820px) {
  .site-header-in { flex-wrap: nowrap; gap: 10px 28px; min-height: 68px; }
  .site-logo { margin-right: 0; }
  .site-logo-mark { height: 28px; }
  .site-nav { order: 1; flex: 1 1 auto; gap: 4px 24px; padding: 0; }
  .site-nav-link { font-size: 15.5px; }
  .site-lang { order: 2; }
}

/* ---------- example-data banner (Site.banner) ---------- */
.site-banner { position: sticky; top: 0; z-index: 40; background: var(--accent); color: #111111; font: 600 14px/1.35 var(--f-text); padding: 7px var(--gutter); text-align: center; border-bottom: 2px solid #111111; }

/* ---------- footer (Site.footer): the bar again ---------- */
/* 25 Oct 2026: the statistics consent bar (Law 25) */
.site-consent { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 90; max-width: 720px; margin: 0 auto; background: var(--bar); color: var(--bar-ink); border: 1px solid #55554f; border-radius: 12px; padding: 12px 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; box-shadow: 0 8px 30px rgba(0, 0, 0, .35); font: 15px/1.45 var(--f-text); }
.site-consent p { margin: 0; flex: 1 1 280px; }
.has-consent body { padding-bottom: var(--consent-h, 150px); }
.site-consent .link { color: var(--accent); }
.site-consent .row { display: flex; gap: 8px; margin-left: auto; }
.legal-consent { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 8px 0 0; }
.site-footer { margin-top: 64px; background: var(--bar); color: var(--bar-muted); font: 15px/1.5 var(--f-text); }
.page-home .site-footer { margin-top: 0; }
.site-footer-in { max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 36px var(--gutter) 40px; display: grid; gap: 18px 32px; }
.site-footer-brand .site-logo-text { color: var(--bar-ink); font-size: 27px; }
.site-footer-brand p { margin: 6px 0 0; max-width: 520px; }
.site-footer-nav { display: flex; flex-wrap: wrap; gap: 4px 22px; align-content: start; }
.site-footer-nav a { color: var(--bar-ink); font-weight: 600; text-decoration: none; padding: 6px 0; }
.site-footer-nav a:hover, .site-footer-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.site-footer-preview { margin: 0; font-size: 14px; padding: 10px 12px; border: 1px dashed #55554f; border-radius: 4px; color: var(--bar-muted); }
@media (min-width: 820px) { .site-footer-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: start; } .site-footer-nav { justify-content: flex-end; } .site-footer-preview { grid-column: 1 / -1; } }

/* ---------- page layout ---------- */
.site-main { max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 32px var(--gutter) 8px; min-width: 0; }
.site-main.narrow { max-width: calc(720px + 2 * var(--gutter)); }
.page-head { margin: 4px 0 26px; }
.page-head h1 { font-size: clamp(40px, 9vw, 64px); }
/* the yellow bar under a page title is gone: yellow is the lid, the main button and the header's rule only (docs/DESIGN.md) */
.page-head p { margin: 14px 0 0; }
.lead { font-size: clamp(19px, 1.8vw, 21px); line-height: 1.45; max-width: 31em; margin: 0; color: var(--ink-2); }
.section { margin: 44px 0 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; margin: 0 0 14px; }
.section-head h2, .section > h2 { font-size: clamp(28px, 6vw, 36px); }
.section > h2 { margin: 0 0 14px; }
.stack { display: grid; gap: 14px; min-width: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 14px; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: start; }
@media (min-width: 860px) { .grid-2 { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; } }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.muted { color: var(--muted); }
.small { font-size: 15px; }
.link { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.link:hover { text-decoration-thickness: 3px; }

/* ---------- cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; min-width: 0; }
@media (min-width: 620px) { .card { padding: 20px 22px; } }
/* descendants only inside the site's own pages (.site-main), so the designer's cards keep their look */
.site-main .card h2 { font-size: 30px; margin: 0 0 12px; }
.site-main .card h3 { font-size: 21px; margin: 18px 0 8px; }
.site-main .card p { margin: 8px 0; }

/* ---------- buttons ---------- */
/* The shape for every page (the designer included); the look-A face below for the site's own pages. */
.btn { border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); border-radius: 4px; padding: 8px 14px; min-height: 42px; cursor: pointer; font-weight: 700; font-size: 15px; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-align: center; }
.btn:disabled { opacity: 0.45; cursor: default; }
:where(body:not(.page-designer)) .btn { min-height: 46px; padding: 6px 18px; border: 2px solid var(--ink); background: transparent; color: var(--ink); font: 600 16px/1.15 var(--f-text); transition: background-color .18s, border-color .18s, transform .18s var(--ease); }
:where(body:not(.page-designer)) .btn:hover:not(:disabled) { background: var(--surface-2); }
.btn-primary, :where(body:not(.page-designer)) .btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover:not(:disabled), :where(body:not(.page-designer)) .btn-primary:hover:not(:disabled) { background: var(--accent-hi); border-color: var(--accent-hi); transform: translateY(-2px); }
.btn-dark, :where(body:not(.page-designer)) .btn-dark { background: var(--ink); border-color: var(--ink); color: var(--ground); }
.btn-dark:hover:not(:disabled), :where(body:not(.page-designer)) .btn-dark:hover:not(:disabled) { background: var(--ink); opacity: 0.88; }
.btn-ghost { background: transparent; }
:where(body:not(.page-designer)) .btn-ghost { border-color: transparent; }
.btn-danger, :where(body:not(.page-designer)) .btn-danger { background: var(--error); border-color: var(--error); color: #fff; }
.btn-danger:hover:not(:disabled), :where(body:not(.page-designer)) .btn-danger:hover:not(:disabled) { background: var(--error); filter: brightness(1.08); }
.btn-danger-quiet:hover:not(:disabled) { border-color: var(--error); color: var(--error); }
.btn-small, :where(body:not(.page-designer)) .btn-small { min-height: 36px; padding: 4px 12px; border-width: 1px; border-color: var(--line-strong); font: 600 14.5px/1.1 var(--f-text); text-transform: none; letter-spacing: 0; }
:where(body:not(.page-designer)) .btn-small:hover:not(:disabled) { border-color: var(--ink); background: transparent; }
.btn-big, :where(body:not(.page-designer)) .btn-big { min-height: 52px; font-size: 18px; padding: 8px 24px; }
.btn-block { width: 100%; }
.btn .ic { width: 20px; height: 20px; flex: none; }

/* ---------- prices ---------- */
.price { font: 700 21px/1.1 var(--f-head); white-space: nowrap; font-variant-numeric: tabular-nums; }
.price-big { font: 700 44px/1 var(--f-head); font-variant-numeric: tabular-nums; }
.price-tag { display: inline-block; background: var(--accent); color: var(--accent-ink); border-radius: 3px; padding: 4px 8px 3px; }
.price-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 10px; border-top: 1px solid var(--line); padding-top: 10px; margin-top: auto; }

/* ---------- design cards (Your designs on the home page; the four standards are hm-bay) ---------- */
.design-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); display: flex; flex-direction: column; min-width: 0; color: var(--ink); text-decoration: none; overflow: hidden; transition: transform .18s var(--ease), border-color .18s; }
.design-card:hover, .design-card:focus-within { border-color: var(--ink); transform: translateY(-2px); }
.design-card .sketch { height: 158px; background: var(--fig); border-bottom: 1px solid var(--line); padding: 12px 14px 0; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; }
.design-card .sketch svg { max-height: 100%; width: 100%; display: block; }
.design-card .card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1 1 auto; }
.design-card h3 { font: 700 24px/1.2 var(--f-head); margin: 0; overflow-wrap: anywhere; }
.design-card h3 a { color: inherit; text-decoration: none; }
.design-card h3 a::after { content: ""; position: absolute; inset: 0; }   /* the whole card is the link */
.design-card h3 a:focus-visible { outline: none; }
.design-card:has(h3 a:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }
.design-card .card-sub { color: var(--muted); font-size: 15px; line-height: 1.35; }
.design-card .card-when { font: 13px var(--f-num); color: var(--muted); }
.design-card .card-acts { display: flex; gap: 8px; margin-top: 6px; position: relative; z-index: 1; }
.design-card .card-acts .btn { flex: 1; }
.design-card .tagline { position: absolute; top: 12px; right: 12px; z-index: 1; }
@media (prefers-reduced-motion: reduce) { .design-card:hover, .design-card:focus-within { transform: none; } }

/* ---------- forms ---------- */
.field { display: grid; gap: 6px; margin: 12px 0; min-width: 0; }
.label { font-size: 15px; color: var(--ink); font-weight: 700; }
.help { font-size: 14px; color: var(--muted); }
.inp { font: 500 16.5px var(--f-text); padding: 8px 12px; border: 2px solid var(--line-strong); border-radius: 4px; background: var(--surface); color: var(--ink); width: 100%; min-height: 46px; min-width: 0; caret-color: var(--ink); }
.inp::placeholder { color: var(--muted); opacity: 0.85; }
.inp:hover { border-color: var(--ink); }
.inp:focus-visible { border-color: var(--ink); outline-offset: 1px; }
.inp.mono { font-family: var(--f-num); font-size: 15.5px; }
.inp[readonly] { color: var(--muted); background: var(--surface-2); }
.inp[aria-invalid="true"] { border-color: var(--error); }
textarea.inp { min-height: 96px; line-height: 1.45; resize: vertical; }
select.inp { padding-right: 32px; }
.form-error { color: var(--error); font-size: 15px; font-weight: 600; margin: 4px 0 0; }
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 16px; }
@media (min-width: 620px) { .form-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .form-grid .full { grid-column: 1 / -1; } }
.form-grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); gap: 0 14px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { font: 700 20px var(--f-head); padding: 0; margin: 18px 0 4px; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); }
.search-box { position: relative; flex: 1 1 220px; max-width: 420px; }
.search-box .inp { padding-right: 40px; }
.search-box .clear { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; width: 34px; height: 34px; border-radius: 4px; cursor: pointer; font-size: 22px; line-height: 1; color: var(--muted); }
.search-box .clear:hover { color: var(--ink); }
.segmented { display: inline-flex; border: 2px solid var(--ink); border-radius: 4px; overflow: hidden; }
.segmented button { border: 0; background: transparent; padding: 6px 14px; min-height: 42px; cursor: pointer; font-weight: 600; font-size: 15px; color: var(--ink); }
.segmented button + button { border-left: 2px solid var(--ink); }
.segmented button:hover:not([aria-pressed="true"]) { background: var(--surface-2); }
.segmented button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }

/* ---------- notices ---------- */
.notice { border-radius: 4px; padding: 11px 14px; background: var(--info-bg); color: var(--info); font-size: 16px; margin: 12px 0; border-left: 4px solid currentColor; }
.notice.ok { background: var(--ok-bg); color: var(--ok); }
.notice.warn { background: var(--warn-bg); color: var(--warn); }
.notice.error { background: var(--error-bg); color: var(--error); }
.demo-box { border: 2px dashed var(--line-strong); border-radius: var(--radius); padding: 16px; background: var(--surface-2); margin: 14px 0; }
.demo-box h3, .site-main .demo-box h3 { margin: 0 0 6px; font: 700 21px/1.2 var(--f-head); }
.badge { display: inline-block; font: 700 12.5px/1.2 var(--f-text); border: 1px solid currentColor; border-radius: 3px; padding: 3px 8px; white-space: nowrap; }
.badge.ok { color: var(--ok); }
.badge.demo { color: var(--error); background: var(--error-bg); }
.empty { color: var(--muted); padding: 22px; border: 2px dashed var(--line-strong); border-radius: var(--radius); text-align: center; grid-column: 1 / -1; }

/* ---------- lists ---------- */
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.list-item { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px 14px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.list-item .title { font-weight: 700; overflow-wrap: anywhere; }
.list-item .meta { color: var(--muted); font-size: 15px; }
.list-item .acts { display: flex; flex-wrap: wrap; gap: 6px; }
@media (min-width: 620px) { .list-item { grid-template-columns: minmax(0, 1fr) auto; } .list-item .acts { justify-content: flex-end; } }
/* ticks: a black check on a small yellow lid */
.ticks { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.2em; width: 19px; height: 19px; border-radius: 3px; background: var(--accent); }
.ticks li::after { content: ""; position: absolute; left: 5px; top: calc(0.2em + 5px); width: 9px; height: 5px; border-left: 2.5px solid #111; border-bottom: 2.5px solid #111; transform: rotate(-45deg); }
/* steps: the big number over a yellow bar (the home page's "How it works") */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 0 28px; }
.steps li { counter-increment: step; border-top: 3px solid var(--ink); padding: 22px 0 18px; min-width: 0; color: var(--muted); }
.steps li::before { content: counter(step); display: block; width: max-content; min-width: 58px; font: 700 60px/.85 var(--f-head); color: var(--ink); padding-bottom: 22px; margin-bottom: 16px; background: linear-gradient(var(--accent), var(--accent)) left bottom / 58px 9px no-repeat; }
.steps b { display: block; font: 700 24px/1.2 var(--f-head); color: var(--ink); margin-bottom: 8px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* ---------- long text: FAQ and legal ---------- */
.prose { max-width: calc(760px + 2 * var(--gutter)); }
.prose p, .prose li { line-height: 1.6; }
.prose h2 { font-size: clamp(26px, 3.4vw, 34px); margin: 40px 0 12px; }
.prose ul { padding-left: 1.2em; }
.prose li { margin: 4px 0; }
.toc { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 12px 0 0; padding: 0; list-style: none; }
.toc a { font-weight: 600; }
.faq details { border-top: 1px solid var(--line); margin: 0; }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 48px 16px 0; font-weight: 700; font-size: 18px; position: relative; border-radius: 2px; }
.faq summary:hover { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 4px; font: 500 20px/1 var(--f-num); color: var(--ink); }
.faq details[open] summary::after { content: "\2212"; background: var(--accent); border-color: var(--accent); color: #111; }
.faq details > p { margin: 0; padding: 0 48px 18px 0; color: var(--muted); }

/* ---------- toast and modal (Site.toast, Site.confirm) ---------- */
.site-toast { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%) translateY(20px); background: #111; color: #f4f3ef; border-left: 4px solid var(--accent); padding: 11px 16px; border-radius: 4px; font: 16px/1.35 var(--f-text); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: calc(100% - 32px); z-index: 90; }
.site-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.site-modal-back { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6); z-index: 80; display: flex; align-items: center; justify-content: center; padding: 16px; }
.site-modal { background: var(--surface); color: var(--ink); border-radius: var(--radius); width: min(480px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 22px; box-shadow: 0 16px 50px rgba(0, 0, 0, 0.35); border-top: 6px solid var(--accent); font-family: var(--f-text); }
.site-modal h2 { font-size: 30px; margin: 0 0 10px; }
.site-modal p { margin: 0; }
.site-modal-acts { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; margin-top: 18px; }

/* ---------- the wood rail: a spruce 2x4 the designs stand on (CSS only) ---------- */
.wood-rail { position: relative; height: 30px;
  background:
    linear-gradient(180deg, rgba(255,240,210,.55) 0, rgba(255,240,210,0) 3px, rgba(0,0,0,0) 25px, rgba(60,35,5,.35) 30px),
    linear-gradient(179.2deg, transparent 0 14%, rgba(120,78,28,.22) 15%, transparent 16.5% 37%, rgba(120,78,28,.16) 38%, transparent 39% 58%, rgba(255,235,195,.22) 59.5%, transparent 61% 79%, rgba(120,78,28,.2) 80%, transparent 81.5%),
    linear-gradient(180.6deg, transparent 0 24%, rgba(120,78,28,.14) 25%, transparent 26.5% 66%, rgba(120,78,28,.18) 67%, transparent 68%),
    linear-gradient(90deg, rgba(0,0,0,.05), rgba(255,255,255,.06) 30%, rgba(0,0,0,.04) 55%, rgba(255,255,255,.05) 80%, rgba(0,0,0,.06)),
    var(--wood); }
.wood-rail .stamp { position: absolute; top: 50%; right: max(6%, 24px); transform: translateY(-50%); font: 500 11px/1 var(--f-num); letter-spacing: 0.24em; color: rgba(52,30,4,.55); white-space: nowrap; }
@media (max-width: 1080px) { .wood-rail { height: 22px; } .wood-rail .stamp { display: none; } }

/* ---------- the rack drawings (home page bays; mock-up A) ---------- */
.rk { overflow: visible; }
.rk .w { fill: var(--wood); stroke: var(--wood-dark); stroke-width: .25; }
.rk .ply { fill: var(--ply); stroke: var(--wood-dark); stroke-width: .25; }
.rk .tb { fill: #050505; stroke: #4b4b47; stroke-width: .35; }
.rk .th { fill: #2b2b29; }
.rk .tl { fill: var(--accent); }
.rk .gh { fill: none; stroke: #77776f; stroke-width: .45; stroke-dasharray: 1.6 1.1; }
.rk .plus { stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; }
.rk .tt { transform-box: fill-box; transform-origin: 50% 50%; transition: transform .45s var(--ease), filter .45s var(--ease); }

/* ---------- home page (index.html): hm- ---------- */
.hm-in { width: min(var(--max), calc(100% - 2 * var(--gutter))); margin-left: auto; margin-right: auto; }
.hm-sec { padding: clamp(56px, 8vw, 100px) 0; }
.hm-sec h2 { font-size: clamp(28px, 4vw, 36px); }

/* hero: the line, the postal code, then the five bays standing on the 2x4 */
.hm-hero { background: var(--bar); color: var(--bar-ink); padding-top: clamp(30px, 4.4vw, 52px); }
.hm-top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px 48px; align-items: end; }
.hm-hero h1 { font-size: clamp(40px, 5.6vw, 64px); line-height: 1.02; }
.hm-hero h1 .hl { color: var(--accent); }
.hm-lead { font-size: clamp(19px, 1.9vw, 23px); line-height: 1.35; color: #d3d3cd; max-width: 30ch; margin: 0; }
@media (min-width: 861px) { .hm-top { grid-template-columns: minmax(0, 2.3fr) minmax(0, 1.2fr); } }

/* the postal code (D129): no built price before it */
.hm-pc { margin-top: 18px; }
/* 25 Oct 2026: Fit my wall, under the four designs */
.hm-fit { margin-top: 22px; border: 1px solid #55554f; border-left: 4px solid var(--accent); border-radius: 12px; padding: 16px; display: grid; gap: 10px; color: var(--bar-ink); }
.hm-fit-h { margin: 0; font-family: var(--f-head); font-size: 24px; }
.hm-fit-sub { margin: 0; color: var(--bar-dim); font-size: 15px; max-width: 60ch; }
.hm-fit-in { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; align-items: end; }
.hm-fit-in label { display: grid; gap: 5px; font-weight: 600; font-size: 14.5px; }
.hm-fit-in .inp { height: 46px; border: 2px solid #55554f; background: #fff; color: #111; font: 600 17px var(--f-text); }
.hm-fit-in .inp:hover, .hm-fit-in .inp:focus-visible { border-color: var(--accent); }
.hm-fit-in small { color: var(--bar-dim); font-weight: 400; font-size: 13px; line-height: 1.3; height: 1.3em; }
.hm-fit-res { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; min-height: 46px; }
.hm-fit-res .big { font-family: var(--f-head); font-size: 22px; }
.hm-fit-res .size { color: var(--bar-dim); font-size: 14.5px; }
.hm-fit-res .note { margin: 0; color: var(--bar-dim); flex-basis: 100%; }
.hm-fit-res .hm-pr { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.hm-pc label { display: block; font-weight: 600; font-size: 15.5px; line-height: 1.35; color: var(--bar-ink); margin-bottom: 8px; max-width: 34ch; }
.hm-pc .row { flex-wrap: nowrap; gap: 6px; }
.hm-pc .inp { flex: 1 1 120px; height: 48px; min-height: 48px; border: 2px solid #55554f; background: #fff; color: #111; font: 600 18px var(--f-text); text-transform: uppercase; caret-color: #111; }
.hm-pc .inp::placeholder { color: #6b6a62; font-weight: 400; text-transform: none; }
.hm-pc .inp:hover, .hm-pc .inp:focus-visible { border-color: var(--accent); }
.hm-pc .btn { flex: none; min-height: 48px; }
.hm-pc .help { display: block; margin-top: 6px; color: var(--bar-dim); font-size: 14px; }
.hm-pc .hm-pc-err { display: block; margin-top: 8px; color: #ffb4aa; font-weight: 600; font-size: 15px; }
.hm-pc-set { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 16px; color: var(--bar-muted); }
.hm-pc-set b { color: var(--bar-ink); font: 500 17px var(--f-num); letter-spacing: 0.02em; }
.hm-pc-set .btn-small { border-color: #3a3a37; color: var(--bar-ink); min-height: 34px; }
.hm-pc-set .btn-small:hover:not(:disabled) { border-color: var(--accent); }

/* the bays: Start from scratch and the four standard designs */
.hm-bays { list-style: none; padding: 0; margin: clamp(28px, 4vw, 44px) 0 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.hm-bay { position: relative; display: flex; flex-wrap: wrap; gap: 0 14px; height: 100%; text-decoration: none; color: var(--bar-ink); background: var(--bar-2); border: 1px solid var(--bar-line); border-radius: var(--radius); padding: 14px; transition: transform .38s var(--ease), border-color .2s, background-color .2s; }
.hm-bay:hover { border-color: var(--accent); background: var(--bar-3); }
.hm-bay:focus-visible { outline-offset: 4px; }
.hm-fig { display: flex; align-items: flex-end; justify-content: center; width: 92px; height: 108px; flex: none; }
.hm-fig .rk { height: 100%; width: auto; max-width: 100%; aspect-ratio: var(--w) / var(--h); }
.hm-txt { flex: 1 1 140px; min-width: 0; }
.hm-nm { display: block; font: 700 24px/1.15 var(--f-head); }
.hm-sub { display: block; margin-top: 6px; font-size: 15px; line-height: 1.35; color: var(--bar-muted); }
.hm-size { display: block; margin-top: 8px; font: 600 14px/1.3 var(--f-text); color: var(--bar-dim); font-variant-numeric: tabular-nums; }
.hm-pr { flex: 1 1 100%; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--bar-line); display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; }
.hm-pr .k { font-size: 14px; line-height: 1.25; color: var(--bar-muted); }
.hm-pr .k small { display: block; font-size: 13px; color: var(--bar-dim); }
.hm-pr .v { font: 700 23px/1 var(--f-head); justify-self: end; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hm-pr .v.y { background: var(--accent); color: var(--accent-ink); padding: 4px 8px 3px; border-radius: 3px; }
.hm-pr .note { grid-column: 1 / -1; font-size: 14px; color: var(--bar-muted); line-height: 1.35; }
.hm-pr .note.ask { color: var(--bar-ink); }
.hm-pr .note.ask::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 2px; background: var(--accent); vertical-align: 1px; }
.hm-bay.scratch { background: transparent; border-style: dashed; border-color: #55554f; }
.hm-bay.scratch:hover { border-color: var(--accent); border-style: solid; background: var(--bar-2); }
.hm-bay.scratch .hm-pr { border-top-style: dashed; }
.hm-bay:hover .pull, .hm-bay:focus-visible .pull { transform: translateY(1.4px) scale(1.09); filter: drop-shadow(0 1.2px 1px rgba(0,0,0,.7)); }
.hm-hero .wood-rail { margin-top: 20px; }
@media (min-width: 641px) { .hm-bays { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1081px) {
  .hm-bays { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
  .hm-bay { flex-direction: column; flex-wrap: nowrap; gap: 0; border-bottom: 0; border-radius: var(--radius) var(--radius) 0 0; padding: 0 14px 16px; }
  .hm-bay:hover, .hm-bay:focus-visible { transform: translateY(-2px); }
  .hm-fig { width: auto; height: 158px; padding: 16px 0 0; margin: 0 -14px 14px; border-bottom: 1px solid var(--bar-line); }
  .hm-fig .rk { max-width: calc(100% - 20px); }
  .hm-txt { flex: 0 0 auto; margin-bottom: 14px; }
  .hm-sub { min-height: 2.7em; }
  .hm-pr { flex: 0 0 auto; margin-top: auto; }
  .hm-hero .wood-rail { margin-top: 0; }
}

/* your designs */
.hm-yours { padding-bottom: 0; }
.hm-yours .hm-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 14px 24px; margin-bottom: 18px; }
.hm-yours .yours-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* how it works */
.hm-steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: minmax(0, 1fr); border-top: 3px solid var(--ink); }
.hm-steps li { padding: 26px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.hm-steps .n { display: block; font: 700 64px/.85 var(--f-head); }
.hm-steps .n::after { content: ""; display: block; width: 58px; height: 9px; margin-top: 14px; background: var(--accent); border-radius: 2px; }
.hm-steps h3 { font-size: 29px; font-weight: 800; margin: 22px 0 10px; }
.hm-steps p { color: var(--muted); max-width: 36ch; margin: 0; }
@media (min-width: 861px) {
  .hm-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hm-steps li { padding: 28px 32px 0 0; border-bottom: 0; }
  .hm-steps li + li { padding-left: 32px; border-left: 1px solid var(--line); }
  .hm-steps .n { font-size: 104px; }
}

/* the real rack: the placeholder for Gabriel's photo */
.hm-real { background: var(--surface); }
.hm-real .hm-in { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
@media (min-width: 861px) { .hm-real .hm-in { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } }
.hm-real-fig { margin: 0; display: grid; gap: 10px; }
.hm-real-art { background: var(--fig, var(--ph)); border-radius: var(--radius); padding: 8% 10% 0; display: flex; align-items: flex-end; justify-content: center; aspect-ratio: 4 / 3; max-width: 100%; }
.hm-real-art .rk { height: 100%; width: auto; max-width: 100%; aspect-ratio: var(--w) / var(--h); display: block; }
.hm-real-fig figcaption { color: var(--muted); font-size: 15px; }
.hm-ph { margin: 0; aspect-ratio: 4 / 3; background: var(--ph); border: 2px dashed var(--line-strong); border-radius: var(--radius); display: grid; place-content: center; justify-items: center; text-align: center; padding: 28px; gap: 10px; }
.hm-ph .ic { width: 44px; height: 44px; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hm-ph strong { font: 700 30px/1.1 var(--f-head); }
.hm-ph span { color: var(--muted); max-width: 38ch; font-size: 16px; }
.hm-real h2 { font-size: clamp(28px, 4vw, 36px); margin-bottom: 18px; }
.hm-real p { color: var(--muted); max-width: 46ch; margin: 0; }
.hm-real p + p { margin-top: 14px; }
.hm-facts { margin: 22px 0 0; padding: 16px 0 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 18px; border-top: 1px solid var(--line); font-size: 15.5px; }
.hm-facts dt { font-weight: 700; }
.hm-facts dd { margin: 0; color: var(--muted); }

/* find a builder / become a builder */
.hm-duo { display: grid; grid-template-columns: minmax(0, 1fr); }
.hm-find, .hm-join { padding: clamp(28px, 4.5vw, 56px); min-width: 0; }
.hm-find { background: var(--accent); color: var(--accent-ink); border-radius: var(--radius) var(--radius) 0 0; }
.hm-join { background: var(--bar); color: var(--bar-ink); border-radius: 0 0 var(--radius) var(--radius); }
@media (min-width: 861px) {
  .hm-duo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-find { border-radius: var(--radius) 0 0 var(--radius); }
  .hm-join { border-radius: 0 var(--radius) var(--radius) 0; }
}
.hm-duo h2 { font-size: clamp(28px, 4vw, 36px); margin-bottom: 14px; }
.hm-find p { max-width: 40ch; font-size: 18px; margin: 0; }
.hm-find form { margin-top: 26px; }
.hm-find label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.hm-find .row { gap: 8px; }
.hm-find .inp { flex: 1 1 180px; height: 54px; border: 2px solid #111; background: #fff; color: #111; font: 600 19px var(--f-text); text-transform: uppercase; caret-color: #111; }
.hm-find .inp::placeholder { color: #6b6a62; font-weight: 400; text-transform: none; }
.hm-find .btn { min-height: 54px; background: #111; border-color: #111; color: #fff; }
.hm-find .btn:hover:not(:disabled) { background: #2b2b29; border-color: #2b2b29; }
.hm-find .hm-find-err { margin: 10px 0 0; font-weight: 700; font-size: 15px; color: #6e1009; }
.hm-terms { list-style: none; margin: 8px 0 28px; padding: 0; }
.hm-terms li { padding: 12px 0; border-top: 1px solid var(--bar-line); color: var(--bar-muted); }
.hm-terms li:last-child { border-bottom: 1px solid var(--bar-line); }
.hm-terms b { color: var(--bar-ink); font-weight: 700; }
.hm-join .btn-primary:hover:not(:disabled) { border-color: var(--accent-hi); }
.hm-creators { margin: 20px 0 0; font-size: 15.5px; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .hm-bay, .rk .tt, .design-card, .btn { transition: none !important; }
  .hm-bay:hover, .hm-bay:focus-visible { transform: none !important; }
}

/* ---------- the designer page (designer/index.html, generated by tools/site_sync.mjs) ---------- */
/* Its own top bar becomes a slim toolbar under the site header: the site has the logo, the language
   button and the links; the designer keeps Designs, Undo and the units. Its home screen is the site's
   home page. */
.page-designer .site-header { border-bottom-width: 1px; border-bottom-color: var(--bar-line); }
.page-designer .bar { background: var(--surface); color: var(--ink); border-bottom: 1px solid var(--line); padding: 6px 16px; justify-content: flex-end; }
.page-designer .bar .brand, .page-designer #b-lang, .page-designer .bar a.btn { display: none; }
.page-designer .bar .btn { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.page-designer .bar .seg { border-color: var(--line-strong); }
.page-designer .bar .seg button + button { border-left-color: var(--line); }
.page-designer #home { display: none; }
.page-designer .site-footer { margin-top: 0; }

/* ---------- "Message me" on faq.html (honeypot field: never shown, bots fill it) ---------- */
.contact { margin-top: 8px; }
.contact .card { margin-top: 12px; }
.contact .form-grid .field { align-content: start; }
.hp-field { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
