/* =========================================================
   Hearth Home · site-2026.css
   Shared foundation of the 2026 redesign: tokens, base, type, buttons, forms kit, image utilities, header, menu, basket
   sheet, footer and the product tile / row. Every page links this file first, then home-2026.css or inner-2026.css.

   BRAND: "the lamp-lit room". Oat paper (--bg) and warm charcoal ink (--ink), ONE action colour: moss (--brand, white text on it),
   a second voice in clay (--clay, text and rules only), walnut (--walnut) for the dark bands with brass (--brass) as the
   highlight on them. Display: Young Serif (one weight). Text: Hanken Grotesk (variable). Both self-hosted.
   Do not use a generic accent variable name: this theme uses brand-specific names (--brand, --clay, --brass, --walnut).

   CONTRAST (WCAG 2.x relative luminance)
     ink on bg 14.2:1 · on surface 15.7:1 · on surface-2 12.7:1 · ink-soft on bg 9.8:1 · muted on bg 6.7:1 · on surface-3 5.2:1
     white on brand 8.2:1 · on brand-hover 10.9:1 · brand on bg 7.2:1 · clay on bg 5.4:1 · on surface 6.0:1 · on clay-tint 4.5:1
     on dark: white on walnut 14.6:1 · walnut-dim on walnut 9.9:1 · on walnut-2 8.2:1 · brass on walnut 7.1:1 · on walnut-2 5.9:1
     non-text: control-line on bg 5.6:1 · on surface 6.2:1 · on surface-2 5.0:1

   NO MOTION: no transitions, animations, keyframes, smooth scrolling or hover lifts anywhere. Hover is an instant colour change;
   the focus ring stays. (document.getAnimations().length is 0 at rest.)
   The global rule at the end of this file enforces it.

   READABILITY (standing rules): nothing under 14px; body 16 -> 17; small 15 -> 16; meta 14 -> 15; tap targets >= 44px;
   spacing on a 4px scale (--s-1..--s-10); figures use tabular-nums; paragraphs cap at 66ch.
   ========================================================= */
@font-face { font-family: "Young Serif"; src: url("../assets/fonts/young-serif-latin-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("../assets/fonts/hanken-grotesk-latin-wght.woff2") format("woff2"); font-weight: 300 800; font-style: normal; font-display: swap; }
/* Metric-matched fallbacks measured from the shipped woff2 files (average advance, hhea): the swap barely moves anything. */
@font-face { font-family: "Young Serif Fallback"; src: local("Georgia"), local("Times New Roman"); size-adjust: 106%; ascent-override: 98.7%; descent-override: 34.5%; line-gap-override: 0%; }
@font-face { font-family: "Hanken Fallback"; src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("Helvetica"); size-adjust: 101%; ascent-override: 99%; descent-override: 30%; line-gap-override: 0%; }

:root {
  /* neutrals: oat paper */
  --bg: #f5f0e6;
  --surface: #fffcf6;
  --surface-2: #ece4d4;
  --surface-3: #dfd3bc;
  --line: #ddd2bd;
  --line-strong: #c5b69a;
  --control-line: #6a5e4c;
  --ink: #26201a;
  --ink-soft: #433a2f;
  --muted: #5c5243;
  /* action: moss. text on it is white */
  --brand: #3f5530;
  --brand-hover: #2f4224;
  --brand-tint: #e0e6cf;
  --on-ink-accent: #dcae60;
  /* second voice: clay (rules, eyebrows, numerals; never a button fill) */
  --clay: #9c4a28;
  --clay-tint: #f0d9c6;
  --clay-soft: #e7c6ad;
  /* olive wash for the garden and the makers */
  --olive-tint: #e3e7d2;
  /* dark bands: walnut */
  --walnut: #34261c;
  --walnut-2: #43332a;
  --walnut-3: #5a4638;
  --walnut-deep: #251a12;
  --walnut-line: #6f5a4a;
  --walnut-dim: #e0d3bf;
  --walnut-edge: #a8967c;
  --brass: #dcae60;
  --brass-hover: #e8c27f;
  /* semantics */
  --danger: #a3262f;
  --danger-night: #ffb4b0;
  --success: #2c6a3a;
  --focus: #1f3d8a;

  /* type */
  --font-display: "Young Serif", "Young Serif Fallback", Georgia, "Times New Roman", serif;
  --font-text: "Hanken Grotesk", "Hanken Fallback", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --t-display: clamp(2.5rem, 1.4rem + 4.4vw, 4.75rem);
  --t-h2: clamp(1.75rem, 1.2rem + 2.2vw, 2.875rem);
  --t-h3: clamp(1.25rem, 1.12rem + .5vw, 1.5rem);
  --t-lede: clamp(1.0625rem, 1rem + .3vw, 1.25rem);
  --t-body: clamp(1rem, .98rem + .1vw, 1.0625rem);
  --t-small: 1rem;
  --t-meta: 1rem;
  --lh-body: 1.6;
  --lh-small: 1.5;
  --lh-head: 1.1;
  --track-label: .06em;
  --measure: 66ch;

  /* spacing: 4px scale */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;

  /* shape: crisp, a little architectural. Small radii, arches only where the page asks for one */
  --r-control: 6px;
  --r-card: 0;
  --r-panel: 0;
  --r-pill: 999px;
  --shadow-overlay: 0 24px 64px -16px rgba(38, 32, 26, .45);

  /* layout */
  --max: 1280px;
  --margin: clamp(20px, 4vw, 56px);
  --header-h: 72px;
  --section: clamp(56px, 36px + 5vw, 112px);

  /* imagery tokens (see .img-fade / .img-frame below) */
  --img-grade: contrast(1.02) saturate(1.03);
  --img-radius: 0;
  --img-ring: rgb(38 32 26 / .14);
  --img-shadow: none;
  --on-ink: #fff;
  --brand-ink: var(--brand);
  --clay-ink: var(--clay);
  --img-ph: var(--surface-2);
  color-scheme: light;
}

/* ---------- dark theme: html[data-theme="dark"], set by the inline head script from localStorage or prefers-color-scheme ---------- */
html[data-theme="dark"] {
  --bg: #1b1612; --surface: #241d17; --surface-2: #2d251d; --surface-3: #3b3026;
  --line: #3b3126; --line-strong: #54473a; --control-line: #b5a78f;
  --ink: #f3ece0; --ink-soft: #ddd3c1; --muted: #bdb09a;
  --brand-hover: #2f4224; --brand-tint: #2f3a25; --brand-ink: #b9d29c;
  --clay: #e1a07c; --clay-ink: #e1a07c; --clay-tint: #3c2b20; --clay-soft: #5a3d2c; --olive-tint: #262b1d;
  --walnut: #2b2018; --walnut-2: #362a20; --walnut-3: #4a3a2c; --walnut-deep: #140f0b; --walnut-line: #5c4a3b;
  --danger: #ff9d97; --success: #8fd19e; --focus: #9db8ff;
  --on-ink: #1b1612; --on-ink-accent: #1b1612;
  --img-ring: rgb(255 255 255 / .12); --img-grade: contrast(1.02) saturate(1.02) brightness(.94);
  --field-bg: #241d17; --field-bg-focus: #2d251d; --field-line: #8b7e69; --field-line-hover: #c9bba2; --ctl-line: #968973;
  --field-danger-bg: #3a1f1d;
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + var(--s-4)); background: var(--walnut-deep); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 var(--t-body)/var(--lh-body) var(--font-text);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd, table, fieldset, blockquote { margin: 0; }
:where(ul[role="list"], ol[role="list"]) { list-style: none; padding: 0; margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible, .site-footer :focus-visible, .dispatch :focus-visible { outline-color: var(--brass); }
::selection { background: var(--brass); color: var(--walnut); }
main:focus { outline: none; }
.wrap { width: 100%; max-width: calc(var(--max) + var(--margin) * 2); margin-inline: auto; padding-inline: var(--margin); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: var(--s-4); top: -80px; z-index: 100; background: var(--brass); color: var(--walnut); font-weight: 700; padding: var(--s-3) var(--s-4); border-radius: var(--r-control); }
.skip-link:focus { top: var(--s-3); }
.num { font-variant-numeric: tabular-nums; }
:where(p) { max-width: var(--measure); text-wrap: pretty; }
:where(li, dd, figcaption, summary, blockquote) { text-wrap: pretty; }
:where(h1, h2, h3, h4, .h3, .display, .h2) { text-wrap: balance; }
html:not(.js) [data-needs-js] { display: none !important; }
.noscript { margin: 0; max-width: none; padding: var(--s-3) var(--margin); background: var(--clay-tint); color: var(--ink); font-size: var(--t-small); text-align: center; }

/* ---------- type ---------- */
.meta { font: 600 var(--t-meta)/1.4 var(--font-text); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--muted); }
.on-dark .meta { color: var(--walnut-dim); }
.eyebrow { display: inline-flex; align-items: center; gap: var(--s-3); font: 700 var(--t-meta)/1.3 var(--font-text); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--clay); }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; flex: none; }
.on-dark .eyebrow { color: var(--brass); }
.display { font: 400 var(--t-display)/1.02 var(--font-display); letter-spacing: -.02em; }
.h2 { font: 400 var(--t-h2)/var(--lh-head) var(--font-display); letter-spacing: -.015em; }
.h3 { font: 400 var(--t-h3)/1.2 var(--font-display); letter-spacing: -.005em; }
:is(.display, .h2, .h3) em { font-style: normal; color: var(--clay); }
.on-dark :is(.display, .h2, .h3) em { color: var(--brass); }
.lede { font-size: var(--t-lede); line-height: 1.55; color: var(--ink-soft); max-width: 54ch; text-wrap: pretty; }
.on-dark .lede { color: var(--walnut-dim); }
.fine { font-size: var(--t-small); line-height: var(--lh-small); color: var(--muted); }
.on-dark .fine { color: var(--walnut-dim); }
.credit { margin-top: var(--s-2); font: 500 var(--t-meta)/1.4 var(--font-text); color: var(--muted); max-width: none; }
.on-dark .credit { color: var(--walnut-dim); }
.label { font: 600 var(--t-small)/1.3 var(--font-text); color: var(--ink); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 48px; padding: 0 var(--s-5); border-radius: var(--r-control);
  border: 2px solid transparent; font: 650 var(--t-small)/1.2 var(--font-text);
  text-decoration: none; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); }
.on-dark .btn-primary, html[data-theme="dark"] .btn-primary { --btn-fill: #4f6b3b; background: var(--btn-fill); }
.on-dark .btn-primary:hover, html[data-theme="dark"] .btn-primary:hover { background: #3f5530; }
.btn-ink { background: var(--ink); color: var(--on-ink); }
.btn-ink:hover { background: var(--ink-soft); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--ctl-line); border-width: 1.5px; }
.btn-line:hover { border-color: var(--control-line); background: var(--surface); }
.on-dark .btn-line { color: #fff; border-color: var(--walnut-edge); }
.on-dark .btn-line:hover { border-color: #fff; background: transparent; }
.btn-sm { min-height: 44px; padding: 0 var(--s-4); }
.btn-lg { min-height: 56px; padding: 0 var(--s-6); font-size: var(--t-body); }
.btn-block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; font-weight: 650; color: var(--ink); text-decoration: underline; text-decoration-color: var(--clay); text-underline-offset: 5px; text-decoration-thickness: 2px; }
.link-arrow svg { width: 18px; height: 18px; flex: none; }
.link-arrow:hover { text-decoration-color: var(--ink); text-decoration-thickness: 3px; }
.on-dark .link-arrow { color: #fff; text-decoration-color: var(--brass); }
.on-dark .link-arrow:hover { text-decoration-color: #fff; }
.btn:disabled, .btn[aria-disabled="true"] { background: var(--surface-2); color: var(--muted); border-color: var(--line-strong); cursor: not-allowed; }
.btn[aria-busy="true"] { pointer-events: none; }
.btn[aria-busy="true"]::before { content: ""; width: 16px; height: 16px; flex: none; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; }
.btn[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.heart-btn .ico { width: 20px; height: 20px; }
.heart-btn[aria-pressed="true"] .heart-shape, .tile__save[aria-pressed="true"] .heart-shape { fill: currentColor; }
.heart-btn[aria-pressed="true"] { color: #fff; }

/* ---------- small shared pieces ---------- */
.ico { width: 22px; height: 22px; flex: none; }
.tag { display: inline-flex; align-items: center; min-height: 28px; padding: var(--s-1) var(--s-3); border-radius: var(--r-pill); background: var(--brand-tint); color: var(--ink); font: 700 var(--t-meta)/1.2 var(--font-text); letter-spacing: .02em; white-space: nowrap; }
.demo-tag { display: inline-flex; align-items: center; min-height: 28px; padding: var(--s-1) var(--s-3); border-radius: var(--r-control); border: 1.5px dashed var(--control-line); background: var(--surface); color: var(--ink); font: 600 var(--t-meta)/1.3 var(--font-text); }
.on-dark .demo-tag { background: transparent; color: var(--walnut-dim); border-color: var(--walnut-edge); }
.note { padding: var(--s-4) var(--s-5); background: var(--surface); border: 1px solid var(--line-strong); border-left: 6px solid var(--clay); border-radius: var(--r-control); font-size: var(--t-small); line-height: var(--lh-small); color: var(--ink-soft); }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--ctl-line); background: transparent; color: var(--ink); flex: none; padding: 0; text-decoration: none; }
.icon-btn:hover { border-color: var(--field-line-hover); background: var(--surface-2); }
.icon-btn .ico { width: 22px; height: 22px; }
.icon-btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--brass); }
.empty { padding: var(--s-6) var(--s-5); border: 2px dashed var(--line-strong); border-radius: var(--r-panel); color: var(--ink-soft); background: var(--surface); max-width: none; }
.empty h2, .empty h3 { margin-bottom: var(--s-2); }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--ctl-line); border-radius: var(--r-control); background: var(--surface); }
.qty button { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: transparent; border-radius: var(--r-control); padding: 0; }
.qty button:hover { background: var(--surface-2); }
.qty .ico { width: 18px; height: 18px; }
.qty output, .qty span { min-width: 40px; text-align: center; font: 700 var(--t-body)/1 var(--font-text); font-variant-numeric: tabular-nums; }
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chip { min-height: 44px; padding: 0 var(--s-4); border-radius: var(--r-pill); border: 1.5px solid var(--ctl-line); background: transparent; font: 600 var(--t-small)/1 var(--font-text); }
.chip:hover { border-color: var(--control-line); background: var(--surface); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }

/* =========================================================
   FORMS · reusable component layer (plain CSS, no build step)
   ---------------------------------------------------------
   Markup contract (see forms-demo.html for every state):
     .field            stacked label + control + .field-hint / .field-error
     .field--float     floating-label variant (input needs placeholder=" ")
     .input-group      input with .affix prefix/suffix (£, m, kW)
     select            native <select>; styled closed state everywhere,
                       styled popup where `appearance: base-select` exists
     .check / .switch  checkbox + radio / toggle (label wraps the input)
     input[type=range] + <output> readout, .seg segmented radio group
     .btn[aria-busy]   loading, .btn:disabled
   Validation: :user-invalid / :user-valid (after interaction),
   [aria-invalid="true"] or .field[data-invalid] for server-side errors.
   Targets >= 44px, input text >= 16px (no iOS zoom). Soft hairline fields (see the FORMS REFINEMENT tokens) with a documented 1.4.11 trade-off; checkbox, radio, switch and outline buttons keep a 3:1 line.
   Customizable-select pattern informed by Open Props UI (MIT, github.com/argyleink/open-props).
   ========================================================= */
/* FORMS REFINEMENT (soft fields). Tokens for every form control; hairlines are deliberately lighter than --control-line.
   --field-bg         #faf6ec  gentle fill (lighter than bg, darker than surface): reads as a field on bg and on white cards; goes to --surface on focus
   --field-line       #a09378  1px hairline at rest: 2.7:1 on bg, 3.0:1 on surface, 2.4:1 on surface-2
   --field-line-hover #6a5e4c  = --control-line, 5.6:1 on bg (instant swap on hover, no transition)
   --ctl-line         #857a66  3:1 line (3.7:1 on bg, 4.1:1 on surface) for controls with NO fill or other boundary: checkbox, radio, switch,
                          range track, outline buttons, icon buttons, chips
   WCAG 1.4.11 TRADE-OFF (documented, chosen by the site owner): text fields, selects, textareas and segmented controls rest on a
   hairline of ~2.3:1 plus a fill and a visible label above, which is below the strict 3:1 boundary rule. Mitigations: hover shows the
   4.9:1 line, focus shows a 2px focus-coloured ring plus a white fill, errors and valid states carry an icon and text, forced-colors
   and prefers-contrast: more restore the full --control-line. To meet 3:1 everywhere set --field-line to --ctl-line. */
:root {
  --field-h: 48px; --field-px: var(--s-4); --r-field: 8px;
  --field-bg: #faf6ec; --field-bg-focus: var(--surface); --field-line: #857a66; --field-line-hover: var(--control-line); --ctl-line: #857a66;
  --field-danger-bg: #fbeceb;
}
@media (prefers-contrast: more) { :root { --field-line: var(--control-line); --ctl-line: var(--control-line); } }

.field { display: grid; gap: var(--s-2); min-width: 0; align-content: start; }
.field > label, .field > .label, .label {
  font: 600 var(--t-small)/1.3 var(--font-text); letter-spacing: 0; color: var(--form-label);
}
.field-opt { font-weight: 400; color: var(--form-hint); margin-left: var(--s-1); }
.field-hint, .field-error { margin: 0; font-size: var(--t-small); line-height: var(--lh-small); color: var(--form-hint); }
.field-error { display: none; gap: var(--s-2); align-items: flex-start; color: var(--form-error); font-weight: 500; }
.field-error::before {
  content: ""; flex: none; width: 16px; height: 16px; margin-top: .15em; background: currentColor;
  -webkit-mask: var(--i-alert) center / contain no-repeat; mask: var(--i-alert) center / contain no-repeat;
}
.field:has(:user-invalid, [aria-invalid="true"]) .field-error, .field[data-invalid] .field-error { display: flex; }
.field:has(:user-invalid, [aria-invalid="true"]) .field-hint, .field[data-invalid] .field-hint { display: none; }
.field:has(:disabled) > label { color: var(--form-hint); }
:root {
  --i-alert: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13Zm-.75 3.25h1.5v4h-1.5v-4Zm.75 6.9a.9.9 0 1 1 0-1.8.9.9 0 0 1 0 1.8Z'/%3E%3C/svg%3E");
  --i-chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4.5 7.5 5.5 5.5 5.5-5.5'/%3E%3C/svg%3E");
  --i-chev-soft: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23433a2f' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 7.75 5 5 5-5'/%3E%3C/svg%3E");
  --i-chev-ink: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%2326201a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4.5 7.5 5.5 5.5 5.5-5.5'/%3E%3C/svg%3E");
  --i-chev-muted: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%235c5243' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4.5 7.5 5.5 5.5 5.5-5.5'/%3E%3C/svg%3E");
  --i-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 8.5 3.2 3.2L13 4.8'/%3E%3C/svg%3E");
}

/* --- text-like controls --- */
.input,
.field input:not([type="range"], [type="radio"], [type="checkbox"], [type="hidden"], [type="submit"], [type="button"], [type="file"]),
.field textarea {
  width: 100%; min-height: var(--field-h); padding: 0 var(--field-px);
  background: var(--field-bg); color: var(--ink);
  border: 1px solid var(--field-line); border-radius: var(--r-field);
  font: 400 var(--t-body)/1.4 var(--font-text);   /* >= 16px: no iOS zoom */
}
.field textarea { min-height: 7.5rem; padding-block: 16px; resize: vertical; field-sizing: content; }
.input:hover, .field input:hover:not(:disabled), .field textarea:hover:not(:disabled) { border-color: var(--field-line-hover); }
.input:focus-visible, .field input:focus-visible, .field textarea:focus-visible {
  border-color: var(--focus); background-color: var(--field-bg-focus); outline: 2px solid var(--focus); outline-offset: 1px;
}
.input::placeholder, .field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: 1; }
.input:user-invalid, .field input:user-invalid, .field textarea:user-invalid, select:user-invalid,
[aria-invalid="true"], .field[data-invalid] :where(input, select, textarea) {
  border-color: var(--danger); box-shadow: inset 0 0 0 1px var(--danger); background-color: var(--field-danger-bg);
}
/* valid tick: required fields only, so optional blanks never turn green */
.field input:required:user-valid:not([type="range"], [type="radio"], [type="checkbox"]) {
  border-color: var(--success); padding-inline-end: calc(var(--field-px) + 28px);
  background: var(--field-bg) var(--i-check) no-repeat right var(--field-px) center / 18px;
}
.input:disabled, .field input:disabled:not([type="range"], [type="radio"], [type="checkbox"]), .field textarea:disabled, select:disabled {
  background-color: var(--surface-2); border-color: var(--line); color: var(--muted); cursor: not-allowed;
}
.field input:read-only:not(:disabled, [type="range"]) { background: var(--bg); border-style: dashed; }
.field input:-webkit-autofill { -webkit-box-shadow: 0 0 0 100px var(--field-bg) inset; -webkit-text-fill-color: var(--ink); }

/* floating label (needs placeholder=" ") */
.field--float { position: relative; }
.field--float > label {
  position: absolute; z-index: 1; inset: 15px auto auto calc(var(--field-px) + 1px); max-width: calc(100% - 2 * var(--field-px));
  font: 400 var(--t-body)/1.3 var(--font-text); color: var(--muted); pointer-events: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.field.field--float input[placeholder] { min-height: 56px; padding-top: 20px; padding-bottom: 4px; }
.field--float input::placeholder { color: transparent; }
.field--float:has(input:focus, input:not(:placeholder-shown)) > label { top: 6px; font-size: var(--t-meta); font-weight: 600; color: var(--ink-soft); }
.field--float:has(input:disabled) > label { color: var(--form-hint); }

/* input with affixes */
.input-group {
  display: flex; align-items: stretch; min-height: var(--field-h); background: var(--field-bg);
  border: 1px solid var(--field-line); border-radius: var(--r-field); overflow: hidden;
}
.input-group:hover { border-color: var(--field-line-hover); }
.input-group:has(input:focus-visible) { border-color: var(--focus); background: var(--field-bg-focus); outline: 2px solid var(--focus); outline-offset: 1px; }
.input-group:has(:user-invalid, [aria-invalid="true"]) { border-color: var(--danger); box-shadow: inset 0 0 0 1px var(--danger); background: var(--field-danger-bg); }
.input-group:has(input:disabled) { background: var(--surface-2); border-color: var(--line); }
.field .input-group input {
  flex: 1; min-width: 0; min-height: 0; border: 0; border-radius: 0; box-shadow: none; background: transparent; outline: 0;
}
.affix {
  display: grid; place-items: center; padding-inline: var(--s-4); background: var(--surface-3); color: var(--ink-soft);
  font: 500 var(--t-small)/1 var(--font-text); white-space: nowrap;
}
.affix:first-child { border-inline-end: 1px solid var(--field-line); }
.affix:last-child { border-inline-start: 1px solid var(--field-line); }

/* --- select: closed state (every browser) --- */
select {
  appearance: none; width: 100%; min-height: var(--field-h); padding: 0 var(--s-7) 0 var(--field-px);
  background: var(--field-bg) var(--i-chev-soft) no-repeat right 14px center / 18px;
  color: var(--ink); border: 1px solid var(--field-line); border-radius: var(--r-field);
  font: 400 var(--t-body)/1.4 var(--font-text); text-overflow: ellipsis; white-space: nowrap; cursor: pointer;
}
select:hover:not(:disabled) { border-color: var(--field-line-hover); }
select:focus-visible { border-color: var(--focus); background-color: var(--field-bg-focus); outline: 2px solid var(--focus); outline-offset: 1px; }
select:disabled { background-image: var(--i-chev-muted); }

/* --- select: customizable popup (Chrome/Edge 135+, Safari 27+, fine pointers only) ---
   Touch devices keep the native OS picker (better UX); Firefox keeps the native popup. */
@media (hover: hover) and (pointer: fine) {
  @supports (appearance: base-select) {
    select, select::picker(select) { appearance: base-select; }
    select, select:disabled { display: flex; align-items: center; background-image: none; }
    select::picker-icon {
      content: ""; width: 18px; height: 18px; margin-inline-start: auto; background: var(--ink-soft);
      -webkit-mask: var(--i-chev) center / contain no-repeat; mask: var(--i-chev) center / contain no-repeat;
    }
    select:open::picker-icon { rotate: 180deg; }
    select::picker(select) {
      box-sizing: border-box; min-inline-size: anchor-size(width); max-block-size: min(22rem, 50svh); margin-block: var(--s-1);
      padding: var(--s-1); background: var(--surface); color: var(--ink);
      border: 1px solid var(--field-line); border-radius: calc(var(--r-field) + 2px); box-shadow: var(--shadow-overlay);
      font: 400 var(--t-body)/1.4 var(--font-text);
    }
    select option {
      display: flex; align-items: center; gap: var(--s-3); min-height: 44px; padding: 0 var(--s-3);
      border-radius: 8px; color: var(--ink); cursor: pointer;
    }
    select option:hover, select option:focus-visible { background: var(--surface-2); }
    select option:checked { background: var(--brand-tint); color: var(--ink); font-weight: 600; }
    select option:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
    select option:disabled { color: var(--muted); cursor: not-allowed; }
    select option::checkmark { order: 1; margin-inline-start: auto; color: var(--brand-ink); font-weight: 700; }
    select optgroup label { display: block; padding: var(--s-3) var(--s-3) var(--s-1); font: 500 var(--t-meta)/1.3 var(--font-text); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--muted); }
  }
}
@media (forced-colors: active) {   /* system colours + native arrow */
  select, select::picker(select) { appearance: auto; background-image: none; }
}

/* --- checkbox / radio --- */
.check, .switch { display: flex; align-items: center; gap: var(--s-3); min-height: 44px; cursor: pointer; font-size: var(--t-body); line-height: 1.35; color: var(--form-label); }
.check:has(:disabled), .switch:has(:disabled) { color: var(--form-hint); cursor: not-allowed; }
.check input, .switch input {
  appearance: none; flex: none; margin: 0; display: grid; place-content: center; cursor: inherit;
  background: var(--surface); border: 2px solid var(--ctl-line);
}
.check input { width: 24px; height: 24px; border-radius: 6px; }
.check input[type="radio"] { border-radius: 50%; }
.check input:hover:not(:disabled), .switch input:hover:not(:disabled) { border-color: var(--control-line); }
.check input[type="checkbox"]::after {
  content: ""; width: 16px; height: 16px; background: var(--on-ink-accent); scale: 0;
  -webkit-mask: var(--i-check) center / contain no-repeat; mask: var(--i-check) center / contain no-repeat;
}
.check input[type="checkbox"]:indeterminate::after { -webkit-mask: none; mask: none; height: 2px; width: 12px; scale: 1; }
.check input:checked, .check input[type="checkbox"]:indeterminate { background: var(--ink); border-color: var(--ink); }
.check input[type="checkbox"]:checked::after { scale: 1; }
.check input[type="radio"]:checked { background: var(--on-ink-accent); box-shadow: inset 0 0 0 4px var(--ink); }
.check input:user-invalid { border-color: var(--danger); box-shadow: 0 0 0 1px var(--danger); }
.check input:disabled, .switch input:disabled { background: var(--surface-2); border-color: var(--line); }
.check input:checked:disabled { background: var(--line-strong); }

/* --- toggle (checkbox with role="switch") --- */
.switch input { position: relative; width: 48px; height: 28px; border-radius: 14px; background: var(--surface-2); }
.switch input::after {
  content: ""; position: absolute; inset: 2px auto 2px 2px; width: 20px; border-radius: 50%;
  background: var(--ink-soft);
}
.switch input:checked { background: var(--ink); border-color: var(--ink); }
.switch input:checked::after { translate: 20px 0; background: var(--on-ink-accent); }
.switch input:disabled::after { background: var(--muted); }
@media (forced-colors: active) {
  .check input, .switch input { appearance: auto; }
  .switch input::after { display: none; }
}

/* --- range slider + readout --- */
input[type="range"] {
  --fill: var(--ink); --track: var(--form-track); --p: 16%;
  appearance: none; -webkit-appearance: none; width: 100%; height: 44px; margin: 0; background: transparent; cursor: pointer; accent-color: var(--ink);
}
input[type="range"]::-webkit-slider-runnable-track { height: 8px; border-radius: 4px; background: linear-gradient(to right, var(--fill) var(--p), var(--track) var(--p)); box-shadow: inset 0 0 0 1px var(--ctl-line); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 28px; height: 28px; margin-top: -10px; border-radius: 50%; background: var(--on-ink-accent); border: 3px solid var(--ink); box-shadow: 0 1px 4px rgba(16, 29, 51, .3); }
input[type="range"]::-moz-range-track { height: 8px; border-radius: 4px; background: var(--track); box-shadow: inset 0 0 0 1px var(--ctl-line); }
input[type="range"]::-moz-range-progress { height: 8px; border-radius: 4px; background: var(--fill); }
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--on-ink-accent); border: 3px solid var(--ink); box-shadow: 0 1px 4px rgba(16, 29, 51, .3); }
input[type="range"]:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
input[type="range"]:disabled { cursor: not-allowed; --fill: var(--muted); }
input[type="range"]:disabled::-webkit-slider-thumb { border-color: var(--muted); background: var(--surface-2); }
input[type="range"]:disabled::-moz-range-thumb { border-color: var(--muted); background: var(--surface-2); }
.range-ends { display: flex; justify-content: space-between; margin-top: calc(-1 * var(--s-1)); font: 400 var(--t-meta)/1.3 var(--font-text); color: var(--form-hint); font-variant-numeric: tabular-nums; }
.calc-row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3); }
.calc-row output { font: 600 1.25rem/1.2 var(--font-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
@media (forced-colors: active) {
  input[type="range"] { appearance: auto; accent-color: Highlight; }
}

/* --- surfaces: controls are always light boxes; only the text around them flips ---
   .on-dark flips labels/hints/errors/track; .on-light switches back inside a light card. */
:root, .on-light { --form-label: var(--ink); --form-hint: var(--muted); --form-error: var(--danger); --form-track: var(--surface-2); }
.on-dark { --form-label: #fff; --form-hint: var(--walnut-dim); --form-error: var(--danger-night); --form-track: var(--walnut-line); }

/* --- fieldset + segmented radio group --- */
.fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.fieldset legend { padding: 0; margin-bottom: var(--s-2); font: 600 var(--t-small)/1.3 var(--font-text); color: var(--form-label); }
.seg { display: grid; grid-template-columns: repeat(var(--seg-n, 3), 1fr); border: 1px solid var(--field-line); border-radius: var(--r-field); overflow: hidden; background: var(--field-bg); }
.seg label { position: relative; display: block; }
.seg label + label { border-left: 1px solid var(--field-line); }
.seg input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.seg span { display: grid; place-items: center; text-align: center; padding: var(--s-2) var(--s-2); min-height: var(--field-h); font: 500 var(--t-small)/1.25 var(--font-text); color: var(--ink-soft); }
.seg input:hover + span { background: var(--surface); }
.seg input:checked + span { background: var(--ink); color: var(--on-ink-accent); font-weight: 600; }
.seg input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: -4px; }
.seg input:disabled + span { color: var(--muted); background: var(--surface-2); cursor: not-allowed; }
@media (forced-colors: active) {
  .seg input:checked + span { background: Highlight; color: HighlightText; forced-color-adjust: none; }
}


/* =========================================================
   PREMIUM IMAGERY  ·  .img-fade (dissolving edges)  +  .img-frame (crisp, rounded, ringed)
   ---------------------------------------------------------
   Both are reusable CSS utilities. They style whatever <picture>/<img> sits inside the wrapper, so
   REPLACING THE PHOTO (new src, new <picture>, new file) KEEPS EVERYTHING. Nothing is baked into
   the image files. Captions, flags and badges live outside <picture>, so they stay crisp.

   MARKUP
     <figure class="img-fade"><picture>...<img ...></picture><figcaption>..</figcaption></figure>
     <figure class="img-frame"><picture>...<img ...></picture></figure>
   Use .img-fade for atmospheric / full-width photographs that should melt into the page (hero,
   flow, workshop). Use .img-frame for photographs inside cards and lists, where a crisp rounded
   edge reads as more premium than a soft one.

   WHAT EVERY PHOTO GETS (all tokens live in :root)
     tonal grade   filter: var(--img-grade)     very light contrast/saturation lift, never heavy
     vignette      picture::after, --vig        radial edge darkening, 0.16 by default, 0 = off
     placeholder   background: var(--img-ph)    shows while a lazy photo loads
     stability     keep width/height + aspect-ratio on the wrapper; object-fit: cover; no layout shift
   .img-fade extras
     --fade-size / --fade-x / --fade-y   fade length (default clamp(24px, 6vw, 88px))
     .img-fade--l .--r .--t .--b .--x .--y   which edges fade (or --fade-t/-r/-b/-l: 1 or 0)
     smootherstep ramp (9 stops per edge), so the dissolve has no visible start line
     hairline ring appears ONLY on edges that stay crisp (a 1px ring on a fading edge would be wrong)
   .img-frame extras
     radius var(--img-radius) 12px, inset hairline ring var(--img-ring), soft depth var(--img-shadow)
   --ring: transparent  on a wrapper turns the ring off (hero touches the viewport edges)

   FALLBACKS
     No mask support or forced-colors: the mask is dropped and the photo shows in full with the
     normal media radius. Photos are always static: no fade-in, zoom or Ken Burns.
   ========================================================= */
.img-fade {
  --fade-size: clamp(24px, 6vw, 88px);
  --fade-x: var(--fade-size);
  --fade-y: var(--fade-size);
  --fade-t: 1; --fade-r: 1; --fade-b: 1; --fade-l: 1;
}
.img-fade--l { --fade-t: 0; --fade-r: 0; --fade-b: 0; }
.img-fade--r { --fade-t: 0; --fade-b: 0; --fade-l: 0; }
.img-fade--t { --fade-r: 0; --fade-b: 0; --fade-l: 0; }
.img-fade--b { --fade-t: 0; --fade-r: 0; --fade-l: 0; }
.img-fade--x { --fade-t: 0; --fade-b: 0; }
.img-fade--y { --fade-r: 0; --fade-l: 0; }

/* shared photo treatment */
:where(.img-fade, .img-frame) picture { position: relative; display: block; height: 100%; overflow: hidden; background: var(--img-ph); }
:where(.img-fade, .img-frame) picture img { height: 100%; filter: var(--img-grade); }
:where(.img-fade, .img-frame) picture::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(125% 100% at 50% 42%, transparent 58%, rgb(38 32 26 / var(--vig, .16)) 100%);
  border: 0 solid var(--ring, var(--img-ring));
}
/* ring only on crisp sides of a fading photo */
.img-fade picture::after {
  border-width: calc((1 - var(--fade-t)) * 1px) calc((1 - var(--fade-r)) * 1px) calc((1 - var(--fade-b)) * 1px) calc((1 - var(--fade-l)) * 1px);
}
/* crisp, rounded, ringed, soft depth */
.img-frame picture { border-radius: var(--img-radius); box-shadow: var(--img-shadow); }
.img-frame picture::after { border-width: 1px; }

@supports ((-webkit-mask-image: linear-gradient(#000, #000)) or (mask-image: linear-gradient(#000, #000))) {
  @media not (forced-colors: active) {
    .img-fade picture, .img-fade > img {
      /* smootherstep-eased ramps: alpha = 1 - fade * (1 - s(t)), s(t) = 6t^5 - 15t^4 + 10t^3 */
      --_ax: linear-gradient(to right,
        rgb(0 0 0 / calc(1 - var(--fade-l) * 1.000)) 0,
        rgb(0 0 0 / calc(1 - var(--fade-l) * 0.984)) calc(var(--fade-x) * 0.125),
        rgb(0 0 0 / calc(1 - var(--fade-l) * 0.896)) calc(var(--fade-x) * 0.25),
        rgb(0 0 0 / calc(1 - var(--fade-l) * 0.725)) calc(var(--fade-x) * 0.375),
        rgb(0 0 0 / calc(1 - var(--fade-l) * 0.500)) calc(var(--fade-x) * 0.5),
        rgb(0 0 0 / calc(1 - var(--fade-l) * 0.275)) calc(var(--fade-x) * 0.625),
        rgb(0 0 0 / calc(1 - var(--fade-l) * 0.104)) calc(var(--fade-x) * 0.75),
        rgb(0 0 0 / calc(1 - var(--fade-l) * 0.016)) calc(var(--fade-x) * 0.875),
        rgb(0 0 0 / calc(1 - var(--fade-l) * 0.000)) calc(var(--fade-x) * 1),
        #000 var(--fade-x),
        #000 calc(100% - var(--fade-x)),
        rgb(0 0 0 / calc(1 - var(--fade-r) * 0.000)) calc(100% - var(--fade-x) * 1),
        rgb(0 0 0 / calc(1 - var(--fade-r) * 0.016)) calc(100% - var(--fade-x) * 0.875),
        rgb(0 0 0 / calc(1 - var(--fade-r) * 0.104)) calc(100% - var(--fade-x) * 0.75),
        rgb(0 0 0 / calc(1 - var(--fade-r) * 0.275)) calc(100% - var(--fade-x) * 0.625),
        rgb(0 0 0 / calc(1 - var(--fade-r) * 0.500)) calc(100% - var(--fade-x) * 0.5),
        rgb(0 0 0 / calc(1 - var(--fade-r) * 0.725)) calc(100% - var(--fade-x) * 0.375),
        rgb(0 0 0 / calc(1 - var(--fade-r) * 0.896)) calc(100% - var(--fade-x) * 0.25),
        rgb(0 0 0 / calc(1 - var(--fade-r) * 0.984)) calc(100% - var(--fade-x) * 0.125),
        rgb(0 0 0 / calc(1 - var(--fade-r) * 1.000)) 100%);
      --_ay: linear-gradient(to bottom,
        rgb(0 0 0 / calc(1 - var(--fade-t) * 1.000)) 0,
        rgb(0 0 0 / calc(1 - var(--fade-t) * 0.984)) calc(var(--fade-y) * 0.125),
        rgb(0 0 0 / calc(1 - var(--fade-t) * 0.896)) calc(var(--fade-y) * 0.25),
        rgb(0 0 0 / calc(1 - var(--fade-t) * 0.725)) calc(var(--fade-y) * 0.375),
        rgb(0 0 0 / calc(1 - var(--fade-t) * 0.500)) calc(var(--fade-y) * 0.5),
        rgb(0 0 0 / calc(1 - var(--fade-t) * 0.275)) calc(var(--fade-y) * 0.625),
        rgb(0 0 0 / calc(1 - var(--fade-t) * 0.104)) calc(var(--fade-y) * 0.75),
        rgb(0 0 0 / calc(1 - var(--fade-t) * 0.016)) calc(var(--fade-y) * 0.875),
        rgb(0 0 0 / calc(1 - var(--fade-t) * 0.000)) calc(var(--fade-y) * 1),
        #000 var(--fade-y),
        #000 calc(100% - var(--fade-y)),
        rgb(0 0 0 / calc(1 - var(--fade-b) * 0.000)) calc(100% - var(--fade-y) * 1),
        rgb(0 0 0 / calc(1 - var(--fade-b) * 0.016)) calc(100% - var(--fade-y) * 0.875),
        rgb(0 0 0 / calc(1 - var(--fade-b) * 0.104)) calc(100% - var(--fade-y) * 0.75),
        rgb(0 0 0 / calc(1 - var(--fade-b) * 0.275)) calc(100% - var(--fade-y) * 0.625),
        rgb(0 0 0 / calc(1 - var(--fade-b) * 0.500)) calc(100% - var(--fade-y) * 0.5),
        rgb(0 0 0 / calc(1 - var(--fade-b) * 0.725)) calc(100% - var(--fade-y) * 0.375),
        rgb(0 0 0 / calc(1 - var(--fade-b) * 0.896)) calc(100% - var(--fade-y) * 0.25),
        rgb(0 0 0 / calc(1 - var(--fade-b) * 0.984)) calc(100% - var(--fade-y) * 0.125),
        rgb(0 0 0 / calc(1 - var(--fade-b) * 1.000)) 100%);
      -webkit-mask-image: var(--_ax), var(--_ay);
      -webkit-mask-composite: source-in;
      mask-image: var(--_ax), var(--_ay);
      mask-composite: intersect;
    }
  }
}
/* no mask support, or forced colours: show the whole photo with the normal media radius */
@supports not ((-webkit-mask-image: linear-gradient(#000, #000)) or (mask-image: linear-gradient(#000, #000))) {
  .img-fade picture, .img-fade > img { border-radius: var(--img-radius); overflow: hidden; }
}
@media (forced-colors: active) {
  .img-fade picture, .img-fade > img { border-radius: var(--img-radius); overflow: hidden; }
  :where(.img-fade, .img-frame) picture::after { display: none; }
}

/* =========================================================
   FORM / IMAGE GLUE for this theme
   ========================================================= */
:where(.img-fade, .img-frame) picture img { width: 100%; object-fit: cover; }
.img-frame { --img-radius: 0; --vig: 0; }
.img-fade { --vig: 0; }
.on-dark { color: #fff; --form-label: #fff; }

/* =========================================================
   HEADER
   ========================================================= */
.dispatch { background: var(--walnut-deep); color: var(--walnut-dim); }
.dispatch__in { display: flex; flex-wrap: wrap; gap: 0 var(--s-5); align-items: center; justify-content: space-between; min-height: 40px; padding-block: var(--s-2); }
.dispatch p { max-width: none; font: 600 var(--t-meta)/1.35 var(--font-text); }
.dispatch__demo { display: none; }
@media (min-width: 720px) { .dispatch__demo { display: block; color: var(--walnut-edge); } }
.dispatch__msg.is-closed { color: var(--brass); }

.site-header { position: sticky; top: 0; z-index: 40; background: var(--bg); border-bottom: 1px solid var(--line-strong); }
.site-header__in { display: flex; align-items: center; gap: var(--s-4); min-height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: var(--s-3); min-height: 48px; text-decoration: none; color: var(--ink); margin-right: auto; }
.logo-mark { width: 40px; height: 40px; color: var(--brand-ink); flex: none; }
.logo__word { font: 400 1.4rem/1 var(--font-display); letter-spacing: -.01em; white-space: nowrap; }
.tools { display: flex; align-items: center; gap: var(--s-2); }
.primary { display: none; align-self: stretch; margin-right: auto; }
.primary > ul { display: flex; align-items: stretch; height: 100%; list-style: none; margin: 0; padding: 0; gap: var(--s-1); }
.primary > ul > li { display: flex; align-items: center; align-self: stretch; }
.primary a.nl {
  display: inline-flex; align-items: center; align-self: stretch; min-height: 44px; padding: 0 var(--s-3);
  font: 600 var(--t-small)/1 var(--font-text); color: var(--ink); text-decoration: none; position: relative;
}
.primary a.nl:hover, .has-mega.is-open > a.nl { color: var(--brand-ink); }
.primary a.nl[aria-current="page"]::after { content: ""; position: absolute; left: var(--s-3); right: var(--s-3); bottom: 0; height: 3px; background: var(--clay-ink); }
html:not(.js) .has-mega > a.nl { padding-right: var(--s-5); }
html:not(.js) .has-mega > a.nl::before { content: ""; position: absolute; right: var(--s-3); top: 50%; width: 7px; height: 7px; margin-top: -6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }

/* ---------- mega menu: solid, full-width panel hanging from the header; chevron button for touch and keyboard ---------- */
.has-mega { position: static; }
.mega-btn { display: none; place-items: center; width: 44px; height: 44px; margin-left: -12px; padding: 0; border: 0; background: transparent; color: var(--muted); }
.js .mega-btn.js-only { display: inline-grid; }
.mega-btn:hover { color: var(--ink); }
.mega-btn .ico { width: 18px; height: 18px; }
.mega-btn[aria-expanded="true"] { color: var(--brand-ink); }
.mega-btn[aria-expanded="true"] .ico { transform: rotate(180deg); }
.mega {
  display: none; position: absolute; left: 0; right: 0; top: calc(100% + 1px); z-index: 2;
  max-height: calc(100svh - var(--header-h) - 48px); overflow-y: auto; overscroll-behavior: contain;
  background: var(--surface); border-bottom: 1px solid var(--line-strong); box-shadow: 0 28px 40px -28px rgb(20 14 8 / .5);
}
.has-mega.is-open > .mega { display: block; }
html:not(.js) .has-mega:hover > .mega, html:not(.js) .has-mega:focus-within > .mega { display: block; }
.mega-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: var(--s-8); width: 100%; max-width: calc(var(--max) + var(--margin) * 2); margin-inline: auto; padding: var(--s-6) var(--margin) var(--s-7); }
.mega-main { display: grid; align-content: start; gap: var(--s-5); min-width: 0; }
.mega-head { display: grid; gap: var(--s-1); padding-bottom: var(--s-4); border-bottom: 1px solid var(--line-strong); }
.mega-k { font: 700 var(--t-meta)/1.4 var(--font-text); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--clay-ink); }
.mega-sum { font: 400 1.5rem/1.25 var(--font-display); max-width: 40ch; }
.mega-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-7); }
.mega-col { display: grid; align-content: start; gap: var(--s-3); min-width: 0; }
.mega-col h2 { font: 700 var(--t-meta)/1.4 var(--font-text); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--muted); }
.mega-list { list-style: none; margin: 0; padding: 0; }
.mega-list a { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: var(--s-4); align-items: center; min-height: 88px; padding-block: var(--s-2); border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.mega-list picture { display: block; width: 72px; height: 72px; background: var(--img-ph); }
.mega-list img { display: block; width: 72px; height: 72px; object-fit: cover; border-radius: 0; }
.mega-list .mt { display: grid; gap: 2px; min-width: 0; }
.mega-list b { font: 400 1.1875rem/1.2 var(--font-display); }
.mega-list small { color: var(--muted); font-size: var(--t-small); line-height: 1.35; font-variant-numeric: tabular-nums; }
.mega-list a:hover b, .mega-list a:focus-visible b { color: var(--brand-ink); }
.mega-list [aria-current="page"] b { color: var(--clay-ink); }
.mega-list a:focus-visible, .mega-all:focus-visible, .mega-feat:focus-visible { outline-offset: -3px; }
.mega-all { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding-inline: var(--s-4); border: 1px solid var(--line-strong); color: var(--ink); font-weight: 650; text-decoration: none; }
.mega-all::after, .mega-go::after { content: "\2192"; }
.mega-all:hover { border-color: var(--brand-ink); color: var(--brand-ink); }
.mega-feat { align-self: start; display: grid; align-content: start; gap: var(--s-2); padding: var(--s-4); background: var(--surface-2); border: 1px solid var(--line-strong); color: var(--ink); text-decoration: none; }
.mega-feat picture { display: block; margin-bottom: var(--s-2); aspect-ratio: 4 / 3; background: var(--img-ph); }
.mega-feat img { display: block; width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 0; }
.mega-fk { font: 700 var(--t-meta)/1.4 var(--font-text); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--muted); }
.mega-feat b { font: 400 1.5rem/1.2 var(--font-display); }
.mega-feat small { color: var(--muted); font-size: var(--t-small); line-height: 1.45; }
.mega-go { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; font-weight: 650; color: var(--brand-ink); }
.mega-feat:hover { border-color: var(--brand-ink); }
.mega-feat:hover .mega-go { color: var(--ink); }
.theme-toggle .ico:last-child { display: none; }
html[data-theme="dark"] .theme-toggle .ico:first-child { display: none; }
html[data-theme="dark"] .theme-toggle .ico:last-child { display: block; }
@media (max-width: 1099.98px) { .mega { display: none !important; } }
.tools .count, .icon-btn .count {
  position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; padding: 0 5px; display: grid; place-items: center;
  border-radius: 11px; background: var(--brand); color: #fff; font: 700 14px/1 var(--font-text); font-variant-numeric: tabular-nums;
}
.tools .icon-btn[aria-current="page"] { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.m-menu { position: static; }
.m-menu summary { list-style: none; cursor: pointer; }
.m-menu summary::-webkit-details-marker { display: none; }
.m-menu summary .ico:last-child, .m-menu[open] summary .ico:first-child { display: none; }
.m-menu[open] summary .ico:last-child { display: block; }
.m-panel { position: absolute; left: 0; right: 0; top: 100%; max-height: calc(100dvh - var(--panel-top, 120px) - 8px); overflow: auto; padding: var(--s-3) var(--margin) var(--s-6); background: var(--surface); border-bottom: 1px solid var(--line-strong); box-shadow: 0 28px 40px -28px rgba(38, 32, 26, .45); }
.m-panel a { display: flex; align-items: center; text-decoration: none; font-weight: 500; color: var(--ink); }
.m-panel a:hover { color: var(--brand-ink); text-decoration: underline; text-underline-offset: 4px; }
.m-panel [aria-current="page"] { color: var(--clay-ink); font-weight: 700; }
.m-panel .meta { margin: var(--s-5) 0 var(--s-1); }
.m-panel a { min-height: 48px; font-size: 1.0625rem; border-bottom: 1px solid var(--line); }
@media (min-width: 1100px) {
  .primary { display: flex; }
  .m-menu { display: none; }
  .logo { margin-right: var(--s-5); }
}
@media (max-width: 480px) { .logo { gap: var(--s-2); } .logo__word { font-size: 1.2rem; } .logo-mark { width: 32px; height: 32px; } .site-header__in { gap: var(--s-2); } .tools { gap: var(--s-1); } }
@media (max-width: 380px) { :root { --margin: 16px; } .logo__word { font-size: 1.05rem; } }
@media (max-width: 360px) { .logo-mark { display: none; } .logo__word { font-size: 1rem; } }
#site-header { display: contents; }

/* =========================================================
   BASKET SHEET + shared basket lines
   ========================================================= */
.bag { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(460px, 100vw); max-width: 100vw; height: 100dvh; max-height: none; padding: 0; border: 0; background: var(--bg); color: var(--ink); box-shadow: var(--shadow-overlay); overflow: hidden; }
.bag::backdrop { background: rgb(38 32 26 / .55); }
.bag__in { display: flex; flex-direction: column; height: 100%; }
.bag__head { display: flex; align-items: center; justify-content: space-between; padding: var(--s-4) var(--s-5); border-bottom: 1px solid var(--line-strong); }
.bag__body { flex: 1; overflow: auto; padding: 0; }
.bag__lines { padding: var(--s-5); display: grid; gap: var(--s-5); }
.bag__foot { position: sticky; bottom: 0; padding: var(--s-5); border-top: 1px solid var(--line-strong); background: var(--surface); display: grid; gap: var(--s-3); }
html:has(.bag[open]) { overflow: hidden; }
.bl-list { list-style: none; padding: 0; margin: 0; display: grid; }
.bl { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: var(--s-3) var(--s-4); padding-block: var(--s-4); border-top: 1px solid var(--line); }
.bl:first-child { border-top: 0; padding-top: 0; }
.bl__media { aspect-ratio: 4 / 5; }
.bl__name { font: 400 1.125rem/1.25 var(--font-display); }
.bl__name a { text-decoration: none; }
.bl__name a:hover { text-decoration: underline; }
.bl__meta { font-size: var(--t-small); color: var(--muted); }
.bl__total { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.bl__ctl { grid-column: 2 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); }
.bl__rm { min-height: 44px; padding: 0 var(--s-3); background: none; border: 0; color: var(--ink); font: 600 var(--t-small)/1 var(--font-text); text-decoration: underline; text-underline-offset: 4px; }
.bl__rm:hover { color: var(--danger); }
.totals { display: grid; gap: var(--s-2); font-variant-numeric: tabular-nums; }
.totals > div { display: flex; justify-content: space-between; gap: var(--s-4); font-size: var(--t-body); }
.totals dt { color: var(--ink-soft); }
.totals dd { margin: 0; font-weight: 600; }
.totals .grand { padding-top: var(--s-3); margin-top: var(--s-1); border-top: 1px solid var(--line-strong); font: 400 1.5rem/1.2 var(--font-display); }
.totals .grand dt { color: var(--ink); }
.progress { display: grid; gap: var(--s-2); }
.progress p { font-size: var(--t-small); max-width: none; }
.progress__bar { height: 10px; border-radius: 5px; background: var(--surface-3); overflow: hidden; border: 1px solid var(--ctl-line); }
.progress__bar span { display: block; height: 100%; width: var(--pct, 0%); background: var(--brand); }

/* =========================================================
   PRODUCT TILE · ROW · MINI
   ========================================================= */
.tile { position: relative; display: flex; flex-direction: column; min-width: 0; }
.tile__media { position: relative; aspect-ratio: 4 / 5; background: var(--img-ph); }
.tile__media::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 3px var(--brand); opacity: 0; pointer-events: none; z-index: 1; }
.tile:hover .tile__media::after, .tile:focus-within .tile__media::after { opacity: 1; }
.tile__new { position: absolute; left: var(--s-3); top: var(--s-3); z-index: 2; border-radius: 0; background: var(--surface); color: var(--ink); }
.tile__save { position: absolute; top: var(--s-2); right: var(--s-2); z-index: 3; width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border-radius: 0; border: 0; background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--line-strong); }
.tile__save:hover { background: var(--surface-2); color: var(--clay-ink); }
.tile__save[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); }
.tile__body { display: grid; gap: var(--s-1); padding-top: var(--s-3); align-content: start; flex: 1; }
.tile__kicker { font: 600 var(--t-meta)/1.35 var(--font-text); letter-spacing: .02em; color: var(--muted); max-width: none; }
.tile__name { font: 400 1.1875rem/1.2 var(--font-display); letter-spacing: -.005em; }
.tile__name a { text-decoration: none; }
.tile__name a::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.tile:hover .tile__name a { text-decoration: underline; text-decoration-color: var(--clay); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.tile__price { font: 700 var(--t-body)/1.3 var(--font-text); font-variant-numeric: tabular-nums; }
.tile__why { font-size: var(--t-small); line-height: var(--lh-small); color: var(--ink-soft); }
.tile__why span { font-weight: 700; color: var(--clay); }
.tile .btn { position: relative; z-index: 3; margin-top: var(--s-2); justify-self: start; }

.item { position: relative; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: var(--s-2) var(--s-4); padding-block: var(--s-5); border-top: 1px solid var(--line-strong); align-items: start; }
.item__media { grid-row: span 2; aspect-ratio: 4 / 5; position: relative; }
.item__main { display: grid; gap: var(--s-1); min-width: 0; }
.item__name { font: 400 1.25rem/1.2 var(--font-display); }
.item__name a, .wish-item__name a { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.item__name a:hover { text-decoration: underline; text-decoration-color: var(--clay); text-underline-offset: 4px; text-decoration-thickness: 2px; }
.item__why { color: var(--ink-soft); font-size: var(--t-small); line-height: var(--lh-small); }
.item__by { font-size: var(--t-meta); color: var(--muted); max-width: none; }
.item__price { font: 700 var(--t-body)/1.3 var(--font-text); font-variant-numeric: tabular-nums; }
.item__act { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; grid-column: 2; }
.item__act .tile__save { position: static; background: transparent; border: 1.5px solid var(--ctl-line); }
.item__act .tile__save[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); }
@media (min-width: 720px) {
  .item { grid-template-columns: 140px minmax(0, 1fr) 80px auto; align-items: center; gap: var(--s-5); }
  .item__media { grid-row: auto; }
  .item__price { text-align: right; }
  .item__act { grid-column: auto; justify-content: flex-end; }
}
.mini { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: var(--s-4); align-items: center; padding-block: var(--s-3); border-top: 1px solid var(--line-strong); position: relative; }
.mini__media { aspect-ratio: 4 / 5; }
.mini__name { font: 400 1.125rem/1.2 var(--font-display); }
.mini__name a { text-decoration: none; }
.mini__name a::after { content: ""; position: absolute; inset: 0; }
.mini:hover .mini__name a { text-decoration: underline; text-decoration-color: var(--clay); text-underline-offset: 4px; text-decoration-thickness: 2px; }
.mini__price { font-weight: 700; font-variant-numeric: tabular-nums; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--walnut); color: #fff; --form-hint: var(--walnut-dim); }
.site-footer a:not(.btn) { color: inherit; }
.ft { display: grid; gap: var(--s-6) var(--s-6); padding-block: var(--s-7) var(--s-6); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ft__lead { grid-column: 1 / -1; display: grid; gap: var(--s-3); align-content: start; }
.ft__lead > p { color: var(--walnut-dim); max-width: 44ch; }
.ft .logo { color: #fff; margin: 0; }
.ft .logo-mark { color: var(--brass); }
.ft nav, .ft__visit { display: grid; align-content: start; }
.ft .meta { margin-bottom: var(--s-2); color: var(--walnut-dim); }
.ft nav a { display: flex; align-items: center; min-height: 44px; color: var(--walnut-dim); text-decoration: none; font-size: var(--t-body); }
.ft nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--brass); }
.ft nav [aria-current="page"] { color: #fff; font-weight: 700; text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: 6px; }
.ft__2 { display: grid; grid-template-columns: 1fr; }
@media (min-width: 720px) { .ft__2 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-4); } }
.ft__visit p { color: var(--walnut-dim); max-width: 30ch; margin-bottom: var(--s-2); }
.news__form { display: grid; gap: var(--s-3); align-items: end; max-width: 520px; margin-top: var(--s-2); }
.news__form .btn { justify-self: start; }
.news__status { min-height: 1.5em; font-size: var(--t-small); color: var(--walnut-dim); }
.news__nojs { display: none; }
.ft__base { display: grid; gap: var(--s-1) var(--s-5); padding-block: var(--s-4) var(--s-5); border-top: 1px solid var(--walnut-line); }
.ft__base p { font-size: var(--t-meta); line-height: 1.6; color: var(--walnut-dim); max-width: none; }
.demo-flag a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 720px) {
  .news__form { grid-template-columns: minmax(0, 1fr) auto; }
  .news__status { grid-column: 1 / -1; }
}
@media (min-width: 1100px) {
  .ft { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.5fr) minmax(0, .9fr) minmax(0, 1.1fr); }
  .ft__lead { grid-column: auto; }
  .news__form { grid-template-columns: minmax(0, 1fr); }
  .news__status { grid-column: auto; }
}
@media (min-width: 1000px) { .ft__base { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; } }

/* ---------- accessibility fallbacks ---------- */
@media (forced-colors: active) {
  .tile__media::after { box-shadow: none; border: 3px solid Highlight; }
  .progress__bar span { background: Highlight; }
  .btn-primary, .btn-ink { border-color: ButtonText; }
}

/* ---------- small shared utilities ---------- */
.btn-quiet { background: transparent; color: var(--ink); border-color: transparent; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.btn-quiet:hover { color: var(--brand-ink); text-decoration-thickness: 2px; }
.muted { color: var(--muted); }
.status { min-height: 1.5em; font-size: var(--t-small); color: var(--ink-soft); max-width: none; }
.status.is-error { color: var(--danger); font-weight: 600; }
.plain-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-1); }
.bl__note { grid-column: 2 / -1; }
.bl__note-ro { grid-column: 2 / -1; }
.bl .check { min-height: 44px; font-size: var(--t-small); }
.bl .qty { flex: none; }

/* ---------- NO DECORATIVE MOTION (global, last) ---------- */
*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
@media print { .site-header, .site-footer, .dispatch, .mega, .bag { display: none; } body { background: #fff; color: #000; } }

/* figures line up */
body :is(.num, .pin, .pin-no, .roomstrip__no, .policy__no, .mat__no, .lead__price, .pdp__price, .glance__big, .nf__code, .tile__price, .count, .price) { font-variant-numeric: tabular-nums lining-nums; }
