/* ============================================================================
   Novaaudio — shadcn.css · canonical shadcn design language, light theme only
   Single stylesheet: tokens → components → shop extensions.
   Rules: values ONLY via tokens below; no raw hex in pages; icons via Nova.icon;
   transitions list explicit properties (never `all`), 120–200ms ease-out;
   prefers-reduced-motion respected. Slop canon: projects/oss/unslop.
   ============================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&display=swap');

/* ---- tokens: shadcn zinc (light) + Novaaudio violet accent ----------------- */
:root {
  --background: oklch(1 0 0);
  --foreground: oklch(0.141 0.005 285.823);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.141 0.005 285.823);
  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.141 0.005 285.823);

  /* Brand axis — violet #8800FF (sampled from the readymag reference) */
  --primary: oklch(0.539 0.294 296.5);
  --primary-foreground: oklch(1 0 0);
  --primary-hover: oklch(0.489 0.294 296.5);
  --primary-soft: oklch(0.539 0.294 296.5 / 0.08);

  --secondary: oklch(0.967 0.001 286.375);
  --secondary-foreground: oklch(0.21 0.006 285.885);
  --secondary-hover: oklch(0.967 0.001 286.375 / 0.8);
  --muted: oklch(0.967 0.001 286.375);
  --muted-foreground: oklch(0.552 0.016 285.938);
  --accent: oklch(0.967 0.001 286.375);
  --accent-foreground: oklch(0.21 0.006 285.885);
  --destructive: oklch(0.577 0.245 27.325);
  --destructive-foreground: oklch(0.985 0 0);
  --destructive-hover: oklch(0.577 0.245 27.325 / 0.9);
  --success: oklch(0.527 0.154 150.069);
  --success-foreground: oklch(0.985 0 0);
  --border: oklch(0.92 0.004 286.32);
  /* one step darker than a hairline — for a divider that has to survive sitting
     on --muted, where --border would disappear */
  --border-strong: oklch(0.85 0.005 286);
  --input: oklch(0.92 0.004 286.32);
  --ring: var(--primary);

  /* interaction surfaces: the tint an otherwise transparent control takes on hover */
  --ghost-hover: oklch(0.92 0.004 286.32);
  --row-hover: oklch(0.967 0.001 286.375 / 0.5);
  /* the sanctioned glass: the sticky header only */
  --background-glass: oklch(1 0 0 / 0.9);
  --scrim-fill: oklch(0.141 0.005 285.823 / 0.4);
  /* the ink wash on the waveform bars and the masthead's oversized ghost label */
  --wave-fill: oklch(0.141 0.005 285.823 / 0.35);
  --watermark-ink: oklch(0.141 0.005 285.823 / 0.045);
  /* long-form body copy sits between --foreground and --muted-foreground */
  --prose-foreground: oklch(0.37 0.012 285.9);

  /* art layer — anchored to pure white/black, not to the zinc ramp, because these
     colours land on generated cover art and photography, never on a themed surface */
  --on-art: oklch(1 0 0);
  --on-art-strong: oklch(1 0 0 / 0.85);
  --on-art-muted: oklch(1 0 0 / 0.8);
  --on-art-soft: oklch(1 0 0 / 0.75);
  --on-art-border: oklch(1 0 0 / 0.35);
  --on-art-fill: oklch(1 0 0 / 0.1);
  /* the two stops of the wash that keeps copy legible over any photograph.
     Held as literals, not as a mix of --shade: a color-mix() result carries a
     different interpolation space into the gradient and shifts the ramp. */
  --img-shade-strong: oklch(0 0 0 / 0.85);
  --img-shade-soft: oklch(0 0 0 / 0.45);

  /* dark surfaces — footer and the ink blocks in the blog grid */
  --ink: oklch(0.21 0.006 285.885);
  --ink-foreground: oklch(0.985 0 0);
  --ink-muted: oklch(0.65 0.01 286);
  --ink-border: oklch(0.32 0.006 286);

  --radius: 0.625rem;
  --radius-sm: calc(var(--radius) - 4px);
  --radius-md: calc(var(--radius) - 2px);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) + 4px);
  --radius-2xl: 1.25rem;
  --radius-field: 0.75rem; /* 12px — inputs, selects, textareas */
  --radius-pill: 200px;

  --font-sans: 'Geist', ui-sans-serif, system-ui, sans-serif;

  /* waveform bar grid — bar width and the gutter between bars. Deliberately in px
     and below the spacing scale: these draw a 2–3px hairline pattern, not layout. */
  --bar-w: 2px;
  --bar-gap: 2px;
  --bar-w-lg: 3px;
  --bar-gap-lg: 3px;

  /* 11px — badge counters and the input-group prefix; below the shadcn scale but
     used in more than one place, so it gets a name rather than a literal */
  --text-2xs: 0.6875rem;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;

  --shadow-xs: 0 1px 2px 0 oklch(0.141 0.005 285.823 / 0.05);
  --shadow-sm: 0 1px 3px 0 oklch(0.141 0.005 285.823 / 0.1), 0 1px 2px -1px oklch(0.141 0.005 285.823 / 0.1);
  --shadow-md: 0 4px 6px -1px oklch(0.141 0.005 285.823 / 0.1), 0 2px 4px -2px oklch(0.141 0.005 285.823 / 0.1);

  /* 2px — the half-step: badge/alert internal padding and icon optical nudges */
  --space-05: 0.125rem;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;

  /* focus + validity rings: one shape, two hues, so an invalid field's ring reads
     as the same object as a valid one */
  --ring-shadow: 0 0 0 3px oklch(0.539 0.294 296.5 / 0.35);
  --ring-shadow-error: 0 0 0 3px oklch(0.577 0.245 27.325 / 0.28);

  /* disabled: one dial for every interactive primitive */
  --disabled-opacity: 0.5;

  --dur-fast: 120ms;
  --dur-base: 160ms;
  --dur-slow: 200ms;
  /* one turn of a loading spinner — a full cycle, not a transition, so it sits
     outside the 120–200ms interaction scale */
  --dur-spin: 700ms;
  --dur-spin-reduced: 2s;
  /* one breath of a skeleton/placeholder pulse — also outside the interaction scale */
  --dur-pulse: 1.6s;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --container: 72rem;
  --header-h: 4.5rem;
  --underline-offset: 3px;
  --leading-tight: 1.3;
}

/* ---- base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--foreground);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
}
/* Heading ladder — 30 / 24 / 18 / 16, i.e. each level ≥1.25× the next (hard rule 4).
   The ladder does NOT change at mobile: shrinking h1 to --text-2xl collapsed it onto h2
   (both 24px) on every page that pairs a page title with a section heading — product,
   cart, post, 404. A page title must stay a step above a section heading at 375px too. */
h1, h2, h3, h4 { margin: 0; line-height: 1.25; letter-spacing: -0.025em; font-weight: 600; }
h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-lg); }
h4 { font-size: var(--text-base); }
p { margin: 0; }
p + p { margin-top: var(--space-4); }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
hr { border: 0; border-top: 1px solid var(--border); margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: none; border-color: var(--ring); box-shadow: var(--ring-shadow); border-radius: var(--radius-md); }
::selection { background: var(--foreground); color: var(--background); }

/* ---- layout ---------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--space-4); }
.section { padding-block: var(--space-10); }
.section + .section { padding-top: 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-6); }
.page-head { padding-block: var(--space-8) 0; margin-bottom: var(--space-6); }
.page-head p { color: var(--muted-foreground); margin-top: var(--space-2); max-width: 65ch; }
.stack { display: flex; flex-direction: column; gap: var(--space-4); }
.row { display: flex; align-items: center; gap: var(--space-2); }
.row.-wrap { flex-wrap: wrap; }
/* grid items default to min-width: auto, so a wide child (the player's waveform)
   blows the track past the viewport instead of being clipped. Let them shrink. */
.grid-2 { display: grid; gap: var(--space-6); }
.grid-2 > * { min-width: 0; }
.muted { color: var(--muted-foreground); }
/* the primary line of a two-line row (search result, purchase row) — it has to win
   over the sub-line without becoming a heading */
.row-title { display: block; font-weight: 500; }
/* visually hidden, still read aloud — used where the visible hierarchy starts below h1 */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.text-sm { font-size: var(--text-sm); }
.text-xs { font-size: var(--text-xs); }
.mono { font-size: var(--text-xs); font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }
@media (min-width: 1024px) {
  .container { padding-inline: var(--space-6); }
  .section { padding-block: var(--space-16); }
  .grid-2 { grid-template-columns: 1fr 24rem; align-items: start; }
}

/* ---- button (canonical shadcn variants) ------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  height: 2.25rem; padding-inline: var(--space-4);
  border-radius: var(--radius-md); border: 1px solid transparent;
  font-size: var(--text-sm); font-weight: 500; white-space: nowrap;
  background: var(--primary); color: var(--primary-foreground); box-shadow: var(--shadow-xs);
  transition: background-color var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out);
}
/* every hover in the family sits behind the same guard, so a disabled or busy
   button cannot light up. The guard costs one pseudo-class of specificity, which
   base and variants pay equally — variants still win on source order. */
.btn:not(:disabled, [aria-disabled="true"], [aria-busy="true"]):hover { background: var(--primary-hover); }
.btn svg { width: 1rem; height: 1rem; }
.btn-outline { background: var(--background); color: var(--foreground); border-color: var(--border); }
.btn-outline:not(:disabled, [aria-disabled="true"], [aria-busy="true"]):hover { background: var(--accent); color: var(--accent-foreground); }
.btn-secondary { background: var(--secondary); color: var(--secondary-foreground); box-shadow: none; }
.btn-secondary:not(:disabled, [aria-disabled="true"], [aria-busy="true"]):hover { background: var(--secondary-hover); }
.btn-ghost { background: transparent; color: var(--foreground); box-shadow: none; }
.btn-ghost:not(:disabled, [aria-disabled="true"], [aria-busy="true"]):hover { background: var(--accent); }
.btn-link { background: transparent; color: var(--foreground); box-shadow: none; padding-inline: 0; height: auto; text-underline-offset: 4px; }
.btn-link:not(:disabled, [aria-disabled="true"], [aria-busy="true"]):hover { background: transparent; text-decoration: underline; }
.btn-destructive { background: var(--destructive); color: var(--destructive-foreground); }
.btn-destructive:not(:disabled, [aria-disabled="true"], [aria-busy="true"]):hover { background: var(--destructive-hover); }
/* disabled — one shape for the whole family, placed after the variants so it wins.
   A natively disabled control keeps hit-testing, so the not-allowed cursor renders
   and the browser still swallows the click; aria-disabled has no native blocking,
   so it must drop pointer events — checkout's email gate relies on exactly that. */
.btn:disabled, .btn[aria-disabled="true"] { opacity: var(--disabled-opacity); box-shadow: none; cursor: not-allowed; }
.btn[aria-disabled="true"] { pointer-events: none; }
/* loading — aria-busy keeps the button's colour (it is still the primary action)
   and prepends a spinner; pointer events go so a double submit is impossible */
.btn[aria-busy="true"] { cursor: progress; pointer-events: none; }
.btn[aria-busy="true"]::before {
  content: ''; flex: none; width: 0.875rem; height: 0.875rem;
  border: 2px solid currentColor; border-top-color: transparent; border-radius: var(--radius-pill);
  animation: spin var(--dur-spin) linear infinite;
}
@keyframes spin { to { rotate: 360deg; } }
.btn-sm { height: 2rem; padding-inline: var(--space-3); border-radius: var(--radius-md); }
.btn-xl { height: 4rem; padding-inline: var(--space-8); border-radius: var(--radius-pill); font-size: var(--text-base); }
.btn-xl svg { width: 1.125rem; height: 1.125rem; }
/* the lafys secondary block: a deliberately huge, quiet target */
.btn-tall { height: 10rem; border-radius: var(--radius-2xl); font-size: var(--text-lg); }
@media (max-width: 640px) { .btn-tall { height: 7rem; } }
.btn-lg { height: 2.5rem; padding-inline: var(--space-6); }
.btn-icon { width: 2.25rem; padding-inline: 0; }
.btn-icon.btn-sm { width: 2rem; }
.btn-block { width: 100%; }
@media (pointer: coarse) { .btn, .btn-sm { min-height: 2.75rem; } .btn-icon, .btn-icon.btn-sm { min-width: 2.75rem; } }


/* ---- concentric corners (Narbut canon) ---------------------------------------
   child = parent - inset, clamped at 0, where inset = the container's border +
   the gap to the child. Every rounded container publishes its radius as --r and
   its border as --bw; nested shapes derive theirs, so the arcs share a centre
   and the pair reads as one form. Never hand-pick a nested radius. */
/* ---- card ------------------------------------------------------------------ */
.card { --r: var(--radius-2xl); --bw: 1px; background: var(--card); color: var(--card-foreground); border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow-xs); }
.card-header { padding: var(--space-6) var(--space-6) 0; display: flex; flex-direction: column; gap: var(--space-1); }
.card-title { font-size: var(--text-base); font-weight: 600; }
.card-description { font-size: var(--text-sm); color: var(--muted-foreground); }
.card-content { padding: var(--space-6); }
.card-content.-rows { padding: var(--space-2); }
.card-content.-rows + .card-footer { padding: var(--space-2); }
.card-header + .card-content { padding-top: var(--space-4); }
/* wrap: two buttons in a footer cannot shrink below their label, so on a 320px screen
   the second one would ride out of the viewport */
.card-footer { padding: 0 var(--space-6) var(--space-6); display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }

/* ---- forms ----------------------------------------------------------------- */
.label { display: block; font-size: var(--text-sm); font-weight: 500; line-height: 1; margin-bottom: var(--space-2); }
.input, .select, .textarea {
  display: block; width: 100%; height: 2.25rem; padding-inline: var(--space-3);
  font: inherit; font-size: var(--text-sm); color: var(--foreground);
  background: var(--muted); border: 1px solid var(--input); border-radius: var(--radius-field); box-shadow: var(--shadow-xs);
  transition: border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.textarea { height: auto; min-height: 4.5rem; padding-block: var(--space-2); resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--muted-foreground); }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { border-color: var(--ring); box-shadow: var(--ring-shadow); }
/* error — the border carries it and the ring switches hue, so a field that is
   refocused before the JS clears the flag still reads as invalid */
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--destructive); }
.input[aria-invalid="true"]:focus-visible,
.select[aria-invalid="true"]:focus-visible,
.textarea[aria-invalid="true"]:focus-visible { border-color: var(--destructive); box-shadow: var(--ring-shadow-error); }
/* disabled — text-bearing controls desaturate instead of going translucent:
   at 50% opacity a muted value on a muted fill stops being readable at all */
/* background-color, not the shorthand: the shorthand would wipe the select's
   chevron, and a disabled select must still look like a select */
.input:disabled, .select:disabled, .textarea:disabled {
  background-color: var(--background); border-color: var(--border); color: var(--muted-foreground);
  box-shadow: none; cursor: not-allowed;
}
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2371717b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right var(--space-3) center; background-size: 1rem; padding-right: var(--space-8); }
/* form field — the lafys capsule: label sits inside, input carries no chrome of its own.
   Scoped to .field so standalone controls (e.g. the catalog sort select) keep the compact look. */
.field {
  --r: var(--radius-field); --bw: 1px;
  display: flex; flex-direction: column; justify-content: center; gap: var(--space-05);
  min-height: 3.25rem; padding: var(--space-2) var(--space-4);
  border: var(--bw) solid var(--input); border-radius: var(--r);
  background: var(--muted); box-shadow: var(--shadow-xs);
  transition: border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.field:focus-within { border-color: var(--ring); box-shadow: var(--ring-shadow); }
/* error — border, ring and label all switch, so the capsule reads as invalid even
   when its message is below the fold */
.field:has([aria-invalid="true"]) { border-color: var(--destructive); }
.field:has([aria-invalid="true"]):focus-within { border-color: var(--destructive); box-shadow: var(--ring-shadow-error); }
.field:has([aria-invalid="true"]) .label { color: var(--destructive); }
/* disabled — the capsule dims as one object: it is the control, visually */
.field:has(:disabled) { background: var(--background); border-color: var(--border); box-shadow: none; cursor: not-allowed; }
.field:has(:disabled) .label { color: var(--muted-foreground); }
.field:has(:disabled) .input, .field:has(:disabled) .select, .field:has(:disabled) .textarea { color: var(--muted-foreground); cursor: not-allowed; }
.field .label {
  font-size: var(--text-2xs); font-weight: 500; line-height: 1; margin-bottom: 0;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted-foreground);
}
/* required is marked on the label, driven by the input itself */
.field:has(:required) .label::after { content: '*'; }
.field .input, .field .select, .field .textarea {
  height: auto; min-height: 0; padding: 0; border: 0; background-color: transparent; box-shadow: none;
  font-size: var(--text-sm); color: var(--foreground);
}
.field .input:focus-visible, .field .select:focus-visible, .field .textarea:focus-visible { border: 0; box-shadow: none; outline: none; }
.field .select { background-position: right 0 center; padding-right: var(--space-5); }
.field .textarea { min-height: 5rem; resize: vertical; }
.field:has(.textarea) { padding-block: var(--space-3); }
.field .field-message { margin-top: var(--space-1); }
.field + .field { margin-top: var(--space-4); }
@media (pointer: coarse) { .field { min-height: 3.25rem; } }
.field-message { font-size: var(--text-sm); color: var(--muted-foreground); margin-top: var(--space-2); padding-inline: var(--space-1); }
.field-message.-error { color: var(--destructive); }
.field-message.-success { color: var(--success); }
.checkbox-row { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-sm); }
.checkbox-row input { accent-color: var(--primary); width: 1rem; height: 1rem; margin: 0; }
/* error — the box and its label switch together; the outline survives the focus
   ring because it is more specific than the global :focus-visible reset */
.checkbox-row input[aria-invalid="true"] { accent-color: var(--destructive); outline: 2px solid var(--destructive); outline-offset: 2px; }
.checkbox-row:has([aria-invalid="true"]) { color: var(--destructive); }
/* disabled — the row is the target (label included), so the row carries the cursor */
.checkbox-row:has(input:disabled) { color: var(--muted-foreground); opacity: var(--disabled-opacity); cursor: not-allowed; }
.checkbox-row input:disabled { cursor: not-allowed; }
@media (pointer: coarse) { .input, .select { min-height: 2.75rem; } }

/* ---- badge ------------------------------------------------------------------ */
.badge { display: inline-flex; align-items: center; gap: var(--space-1); padding: var(--space-05) var(--space-2); border: 1px solid transparent; border-radius: var(--radius-md); font-size: var(--text-xs); font-weight: 500; line-height: var(--leading-tight); background: var(--primary); color: var(--primary-foreground); }
.badge-secondary { background: var(--secondary); color: var(--secondary-foreground); }
.badge-outline { background: var(--background); color: var(--foreground); border-color: var(--border); }
.badge-destructive { background: var(--destructive); color: var(--destructive-foreground); }
.badge svg { width: 0.75rem; height: 0.75rem; }

/* [hidden] must beat component display rules (.alert is grid, .row is flex, …) */
[hidden] { display: none !important; }

/* ---- alert / notice ---------------------------------------------------------- */
.alert { display: grid; grid-template-columns: auto 1fr; gap: var(--space-3); padding: var(--space-4); border: 1px solid var(--border); border-radius: var(--radius-lg); font-size: var(--text-sm); background: var(--card); }
.alert svg { margin-top: var(--space-05); }
.alert-title { font-weight: 500; }
.alert-description { color: var(--muted-foreground); }
.alert.-destructive { color: var(--destructive); }
.alert.-success { color: var(--success); }

/* ---- tabs -------------------------------------------------------------------- */
.tabs-list { --r: var(--radius-lg); display: inline-flex; padding: var(--space-1); gap: var(--space-1); background: var(--muted); border-radius: var(--r); }
.tabs-trigger { display: inline-flex; align-items: center; gap: var(--space-2); padding: var(--space-1) var(--space-3); border-radius: max(0px, calc(var(--r) - var(--space-1))); font-size: var(--text-sm); font-weight: 500; color: var(--muted-foreground); transition: color var(--dur-base) var(--ease-out), background-color var(--dur-base) var(--ease-out); }
.tabs-trigger:not(:disabled, [aria-disabled="true"]):hover { color: var(--foreground); }
.tabs-trigger[aria-selected="true"] { background: var(--background); color: var(--foreground); box-shadow: var(--shadow-xs); }
.tabs-trigger:disabled, .tabs-trigger[aria-disabled="true"] { opacity: var(--disabled-opacity); cursor: not-allowed; }
.tabs-trigger[aria-disabled="true"] { pointer-events: none; }

/* ---- table -------------------------------------------------------------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); }
table.table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.table th { text-align: left; font-weight: 500; color: var(--muted-foreground); padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--border); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background-color var(--dur-fast) var(--ease-out); }
.table tbody tr:hover { background: var(--row-hover); }

/* ---- breadcrumb ---------------------------------------------------------------- */
.breadcrumb { font-size: var(--text-sm); color: var(--muted-foreground); }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); list-style: none; margin: 0; padding: 0; }
.breadcrumb li { display: flex; align-items: center; gap: var(--space-2); }
.breadcrumb li + li::before { content: '/'; color: var(--border); }
.breadcrumb a:hover { color: var(--foreground); }
.breadcrumb [aria-current="page"] { color: var(--foreground); font-weight: 500; }

/* ---- skeleton / empty ------------------------------------------------------------ */
.skeleton { background: var(--muted); border-radius: var(--radius-md); animation: pulse var(--dur-pulse) var(--ease-out) infinite; }
@keyframes pulse { 50% { opacity: 0.5; } }
/* the loading shapes the build actually needs. Each one matches the height of the
   component it stands in for, so nothing jumps when the data lands. */
.skeleton.-card { height: 16rem; border-radius: var(--radius-2xl); }   /* product-card */
.skeleton.-player { height: 4.25rem; border-radius: var(--radius-lg); } /* player, cart row */
.skeleton.-thumb { flex: none; width: 2.75rem; height: 2.75rem; }       /* cover-thumb */
.skeleton.-line { height: 0.75rem; border-radius: var(--radius-sm); }
.skeleton.-line.-short { width: 40%; }
/* a loading table row keeps the real cell padding, so the header never shifts */
.table tr[aria-busy="true"] td { color: transparent; }
.empty { display: flex; flex-direction: column; align-items: center; gap: var(--space-3); padding: var(--space-12) var(--space-6); text-align: center; border: 1px dashed var(--border); border-radius: var(--radius-xl); }
.empty svg { width: 1.5rem; height: 1.5rem; color: var(--muted-foreground); }
/* the heading level depends on whether the empty state owns the page (h1) or sits inside
   one (h3) — the size is the same either way */
.empty h3, .empty .empty-title { font-size: var(--text-base); font-weight: 600; margin: 0; }
.empty p { color: var(--muted-foreground); font-size: var(--text-sm); max-width: 38ch; }

/* ---- header ------------------------------------------------------------------------ */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--background-glass); backdrop-filter: blur(8px); }
.site-header .container { display: flex; align-items: center; gap: var(--space-4); height: var(--header-h); }
/* header controls share one skin: pill, muted, 2.5rem — same as the nav items */
.site-header .btn-icon {
  width: 2.5rem; height: 2.5rem; border-radius: var(--radius-pill);
  background: var(--muted); color: var(--foreground); border-color: transparent; box-shadow: none;
}
.site-header .btn-icon:not(:disabled, [aria-disabled="true"]):hover { background: var(--ghost-hover); }
.site-header .btn-icon svg { width: 1.375rem; height: 1.375rem; stroke-width: 1.6; }
/* zero gap would fuse the pills — hold them apart with a hairline of page background */
.site-nav a, .site-header .btn-icon, .currency-trigger { border: 2px solid var(--background); }
.site-nav a { border-inline: 2px solid var(--background); }

/* the lockup: violet play mark + wordmark on its own light plate. It carries its
   own colours, so it does NOT follow .brand's currentColor — same art on paper and ink */
.brand { display: inline-flex; align-items: center; flex: none; color: var(--foreground); }
/* sized here; stroke reset because the global svg rule dresses SVGs as line icons */
.logo { width: auto; height: 2.25rem; stroke: none; }
/* under 640px the row is brand + search + cart/currency pair + burger; the logo comes
   down a step and the account icon drops out (the drawer carries "Sign in") so the
   burger — the only route to the main menu on mobile — stays on screen */
@media (max-width: 640px) { .logo { height: 1.75rem; } .header-actions .account-btn { display: none; } }
/* the full lockup needs a 352px row. Below that the plate is cropped away by the
   SVG's own `slice` and only the play mark is left — the header keeps every control. */
@media (max-width: 359px) { .logo { width: 1.75rem; } }
.site-footer .brand { color: var(--ink-foreground); }
@media (max-width: 640px) { .brand { font-size: var(--text-lg); } }
.site-nav { display: none; align-items: center; gap: 0; margin-inline: auto; }
.site-nav a {
  display: inline-flex; align-items: center; height: 2.5rem; padding-inline: var(--space-6);
  border-radius: var(--radius-pill); background: var(--muted);
  font-size: var(--text-sm); font-weight: 500; color: var(--foreground);
  transition: background-color var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out);
}
.site-nav a:not([aria-disabled="true"]):hover { background: var(--ghost-hover); }
.site-nav a[aria-current="page"] { background: var(--primary); color: var(--primary-foreground); }
/* a nav item can only be switched off by aria-disabled — an <a> is never :disabled */
.site-nav a[aria-disabled="true"] { color: var(--muted-foreground); opacity: var(--disabled-opacity); cursor: not-allowed; pointer-events: none; }
.header-actions { display: flex; align-items: center; gap: 0; margin-left: auto; }
.cart-btn { position: relative; }
.cart-count { position: absolute; top: var(--space-05); right: var(--space-05); min-width: 1rem; height: 1rem; padding-inline: var(--space-1); border-radius: var(--radius-pill); background: var(--primary); color: var(--primary-foreground); font-size: var(--text-2xs); font-weight: 600; line-height: 1rem; text-align: center; }
@media (min-width: 1024px) { .site-nav { display: flex; } .header-actions { margin-left: 0; } .burger { display: none; } }


/* ---- currency switcher ------------------------------------------------------- */
.currency { position: relative; }
.currency-trigger {
  display: inline-flex; align-items: center; gap: var(--space-1);
  height: 2.25rem; padding-inline: var(--space-3);
  border-radius: var(--radius-pill); background: var(--muted);
  font-size: var(--text-sm); font-weight: 500; color: var(--foreground);
  transition: background-color var(--dur-base) var(--ease-out);
}
.currency-trigger:not(:disabled, [aria-disabled="true"]):hover { background: var(--ghost-hover); }
/* disabled — a single-currency store, or the switch parked while rates reload */
.currency-trigger:disabled, .currency-trigger[aria-disabled="true"] { color: var(--muted-foreground); opacity: var(--disabled-opacity); cursor: not-allowed; }
.currency-trigger[aria-disabled="true"] { pointer-events: none; }
.currency-trigger svg { width: 0.875rem; height: 0.875rem; color: var(--muted-foreground); }
.currency-menu {
  --r: var(--radius-lg); --bw: 1px;
  position: absolute; top: calc(100% + var(--space-2)); right: 0; z-index: 44;
  min-width: 7rem; margin: 0; padding: var(--space-1); list-style: none;
  background: var(--popover); border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow-md);
  opacity: 0; transform: translateY(-4px); pointer-events: none;
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.currency.-open .currency-menu { opacity: 1; transform: translateY(0); pointer-events: auto; }
.currency-menu button {
  display: flex; width: 100%; align-items: center; gap: var(--space-2);
  padding: var(--space-2) var(--space-3); border-radius: max(0px, calc(var(--r) - var(--bw) - var(--space-1)));
  font-size: var(--text-sm); text-align: left;
}
.currency-menu button:not(:disabled, [aria-disabled="true"]):hover { background: var(--accent); }
.currency-menu button[aria-selected="true"] { background: var(--primary); color: var(--primary-foreground); }
.currency-menu button:disabled, .currency-menu button[aria-disabled="true"] { color: var(--muted-foreground); opacity: var(--disabled-opacity); cursor: not-allowed; }
.currency-menu button[aria-disabled="true"] { pointer-events: none; }
@media (pointer: coarse) { .currency-trigger { min-height: 2.75rem; } }


/* ---- header pair: currency + cart as a single double control ------------------ */
.header-pair {
  display: inline-flex; align-items: center; margin: 0 var(--space-1);
  background: var(--muted); border-radius: var(--radius-pill); border: 2px solid var(--background);
}
.header-pair .currency-trigger,
.header-pair .cart-btn {
  border: 0; margin: 0; background: transparent; box-shadow: none;
  transition: background-color var(--dur-base) var(--ease-out);
}
/* cart is the left half, currency the right — DOM order matches, so tabbing follows the eye */
.header-pair .cart-btn { border-radius: var(--radius-pill) 0 0 var(--radius-pill); width: 2.5rem; }
.header-pair .currency-trigger { border-radius: 0 var(--radius-pill) var(--radius-pill) 0; padding-inline: var(--space-2) var(--space-3); }
.header-pair .currency-trigger:not(:disabled, [aria-disabled="true"]):hover,
.header-pair .cart-btn:not(:disabled, [aria-disabled="true"]):hover { background: var(--ghost-hover); }
/* the seam that makes it read as two halves of one control */
.header-pair::before {
  content: ''; align-self: stretch; width: 1px; margin-block: var(--space-2);
  background: var(--border-strong); order: 1;
}
/* ::before is always first in the DOM, so the halves need explicit order to sit around it */
.header-pair .cart-btn { order: 0; }
.header-pair .currency { order: 2; }
.header-pair .currency-menu { left: auto; right: 0; }

/* ---- footer ---------------------------------------------------------------------------- */
.site-footer { margin-top: var(--space-16); background: var(--ink); color: var(--ink-foreground); font-size: var(--text-sm); }
.footer-grid { display: grid; gap: var(--space-8); padding-block: var(--space-12); }
.footer-col h4 { font-size: var(--text-sm); margin-bottom: var(--space-3); color: var(--ink-foreground); }
.footer-col a { display: block; color: var(--ink-muted); padding-block: var(--space-1); transition: color var(--dur-base) var(--ease-out); }
.footer-col a:hover { color: var(--ink-foreground); }
.footer-bottom { display: grid; gap: var(--space-5); padding-block: var(--space-6); border-top: 1px solid var(--ink-border); color: var(--ink-muted); font-size: var(--text-xs); }
.footer-bottom__legal { max-width: 80ch; }
.footer-bottom__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4); }
.footer-bottom a { color: var(--ink-muted); transition: color var(--dur-base) var(--ease-out); }
.footer-bottom a:hover { color: var(--ink-foreground); }
.footer-legal-links { display: flex; flex-wrap: wrap; gap: var(--space-4); }

/* newsletter — the lafys oversized field */
.newsletter { display: grid; gap: var(--space-6); padding-block: var(--space-12); border-bottom: 1px solid var(--ink-border); }
.newsletter > * { min-width: 0; }
.newsletter h3 { font-size: var(--text-2xl); font-weight: 500; }
.newsletter-lede { font-size: var(--text-lg); color: var(--ink-foreground); margin-bottom: var(--space-4); }
.newsletter-field { display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap; padding-bottom: var(--space-4); border-bottom: 1px solid var(--ink-border); }
.newsletter-field input {
  flex: 1 1 0; min-width: 0; border: 0; background: none; color: var(--ink-foreground);
  font: inherit; font-size: var(--text-3xl); letter-spacing: -0.025em; padding: 0;
}
.newsletter-field input::placeholder { color: var(--ink-muted); }
/* the ink surface has its own disabled/error pair — the light tokens would vanish here */
.newsletter-field:has(:disabled) { border-bottom-color: var(--ink-border); cursor: not-allowed; }
.newsletter-field input:disabled { color: var(--ink-muted); cursor: not-allowed; }
.newsletter-field:has([aria-invalid="true"]) { border-bottom-color: var(--destructive); }
.newsletter-field input:focus { outline: none; }
.newsletter-field input:focus-visible { box-shadow: none; }
.newsletter-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; }
.newsletter-foot p { font-size: var(--text-xs); color: var(--ink-muted); max-width: 60ch; }
.newsletter-club { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding-block: var(--space-6); border-bottom: 1px solid var(--ink-border); }
.newsletter-club span { font-size: var(--text-xs); letter-spacing: 0.08em; text-transform: uppercase; }
.pay-list { display: flex; flex-wrap: nowrap; flex: none; align-items: center; gap: var(--space-2); }
/* filled art, not a line icon — must opt out of the global svg stroke */
.pay-logo { height: 1.5rem; width: auto; display: block; stroke: none; }
@media (min-width: 768px) { .newsletter { grid-template-columns: 12rem minmax(0, 1fr); gap: var(--space-10); } }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.2fr 2fr; } .footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); } }
@media (max-width: 767px) { .footer-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-6); } }

/* ---- sheet (mobile drawer) ---------------------------------------------------------------- */
.scrim { position: fixed; inset: 0; background: var(--scrim-fill); opacity: 0; pointer-events: none; transition: opacity var(--dur-slow) var(--ease-out); z-index: 50; }
.sheet-panel { position: fixed; top: 0; right: 0; bottom: 0; width: min(20rem, 85vw); background: var(--background); border-left: 1px solid var(--border); padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-1); transform: translateX(100%); transition: transform var(--dur-slow) var(--ease-out); z-index: 51; }
[data-el="drawer"].-open .scrim, [data-el="search"].-open .scrim { opacity: 1; pointer-events: auto; }
[data-el="drawer"].-open .sheet-panel { transform: translateX(0); }
/* nav-link skin belongs to the menu sheet only — the cart sheet's links are .btn */
[data-el="drawer"] .sheet-panel a { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-2) var(--space-3); border-radius: var(--radius-md); font-size: var(--text-sm); font-weight: 500; }
[data-el="drawer"] .sheet-panel a:not([aria-disabled="true"]):hover { background: var(--accent); }
[data-el="drawer"] .sheet-panel a[aria-disabled="true"] { color: var(--muted-foreground); opacity: var(--disabled-opacity); cursor: not-allowed; pointer-events: none; }
.sheet-panel hr { margin-block: var(--space-2); }

/* ---- cart drawer (same sheet, holding the cart page's rows) ------------------------------------ */
/* parked off-canvas the sheet still renders, so it must be visibility:hidden — otherwise its
   links stay in the tab order. visibility holds "visible" for the whole slide-out, then flips. */
.sheet-panel.-cart { width: min(26rem, 92vw); padding: 0; gap: 0; visibility: hidden; transition: transform var(--dur-slow) var(--ease-out), visibility var(--dur-slow) var(--ease-out); }
[data-el="cart"].-open .scrim { opacity: 1; pointer-events: auto; }
[data-el="cart"].-open .sheet-panel { transform: translateX(0); visibility: visible; }
.cart-drawer-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-3) var(--space-3) var(--space-3) var(--space-4); border-bottom: 1px solid var(--border); }
.cart-drawer-head h2 { font-size: var(--text-base); }
.cart-drawer-body { flex: 1; min-height: 0; overflow-y: auto; padding: var(--space-4); }
.cart-drawer-foot { padding: var(--space-4); border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: var(--space-2); }
.cart-drawer-foot:empty { display: none; }
.cart-drawer-foot .btn:first-of-type { margin-top: var(--space-3); }
/* the panel is narrower than the 768px breakpoint the cart rows switch at, so the row keeps
   its stacked shape at every viewport: player on top, copy beneath, rows held apart by 24px */
.cart-drawer-body .player.-row { flex: 1 0 100%; }
.cart-drawer-body .line-item { gap: var(--space-3); }
.cart-drawer-body .line-item + .line-item { margin-top: var(--space-6); }
.cart-drawer-body .empty { padding: var(--space-8) var(--space-4); }

/* ---- search dialog --------------------------------------------------------------------------- */
.search-panel { --r: var(--radius-2xl); --bw: 1px; position: fixed; left: 50%; top: 10vh; transform: translateX(-50%) scale(0.97); width: min(34rem, calc(100vw - 2rem)); background: var(--popover); border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow-md); opacity: 0; pointer-events: none; transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out); z-index: 52; }
[data-el="search"].-open .search-panel { opacity: 1; pointer-events: auto; transform: translateX(-50%) scale(1); }
.search-field { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--border); }
.search-field svg { color: var(--muted-foreground); }
.search-field input { flex: 1; border: 0; background: none; font: inherit; font-size: var(--text-sm); color: var(--foreground); }
.search-field input:focus { outline: none; }
.search-results { max-height: 50vh; overflow-y: auto; padding: var(--space-2); }
.search-row { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-2) var(--space-3); border-radius: max(0px, calc(var(--r) - var(--bw) - var(--space-2))); font-size: var(--text-sm); }
.search-row:not([aria-disabled="true"]):hover { background: var(--accent); }
.search-row[aria-disabled="true"] { color: var(--muted-foreground); opacity: var(--disabled-opacity); cursor: not-allowed; pointer-events: none; }
.search-hint { padding: var(--space-2) var(--space-4) var(--space-3); color: var(--muted-foreground); font-size: var(--text-xs); }
/* loading — the results list while a query is in flight; the rows are .skeleton -line */
.search-results[aria-busy="true"] { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-4); }

/* ---- support popover ---------------------------------------------------------------------------- */
/* the root is as wide and tall as the CLOSED panel (19rem × ~21rem), so it must be
   click-through — otherwise it swallows whatever sits under it (the footer legal links) */
.support-root { position: fixed; right: var(--space-4); bottom: var(--space-4); z-index: 45; display: flex; flex-direction: column; align-items: flex-end; gap: var(--space-3); pointer-events: none; }
.support-fab { width: 2.75rem; height: 2.75rem; border-radius: var(--radius-pill); background: var(--primary); color: var(--primary-foreground); display: grid; place-items: center; box-shadow: var(--shadow-md); transition: background-color var(--dur-base) var(--ease-out); pointer-events: auto; }
.support-fab:not(:disabled, [aria-disabled="true"]):hover { background: var(--primary-hover); }
.support-fab:disabled, .support-fab[aria-disabled="true"] { background: var(--muted); color: var(--muted-foreground); box-shadow: none; opacity: var(--disabled-opacity); cursor: not-allowed; }
.support-fab[aria-disabled="true"] { pointer-events: none; }
.support-panel { --r: var(--radius-2xl); --bw: 1px; width: 19rem; background: var(--popover); border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow-md); opacity: 0; transform: translateY(4px); pointer-events: none; transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out); }
.support-root.-open .support-panel { opacity: 1; transform: translateY(0); pointer-events: auto; }
.support-head { padding: var(--space-4) var(--space-4) var(--space-2); }
.support-head p { font-size: var(--text-sm); color: var(--muted-foreground); }
.support-topics { padding: var(--space-2); display: flex; flex-direction: column; }
.support-topic { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-2) var(--space-3); border-radius: max(0px, calc(var(--r) - var(--bw) - var(--space-2))); font-size: var(--text-sm); text-align: left; }
.support-topic:not(:disabled, [aria-disabled="true"]):hover { background: var(--accent); }
/* disabled — a channel that is closed (out of hours) stays listed but inert */
.support-topic:disabled, .support-topic[aria-disabled="true"] { color: var(--muted-foreground); opacity: var(--disabled-opacity); cursor: not-allowed; }
.support-topic[aria-disabled="true"] { pointer-events: none; }
.support-topic .chev { margin-left: auto; color: var(--muted-foreground); }

/* ---- cookie bar -------------------------------------------------------------------------------------- */
.cookiebar { --r: var(--radius-2xl); position: fixed; left: var(--space-4); right: var(--space-4); bottom: var(--space-4); z-index: 46; display: none; gap: var(--space-4); align-items: center; justify-content: space-between; flex-wrap: wrap; max-width: 34rem; margin-inline: auto; padding: var(--space-4) var(--space-5); background: var(--ink); color: var(--ink-foreground); border-radius: var(--r); box-shadow: var(--shadow-md); font-size: var(--text-sm); }
.cookiebar .btn-outline { background: transparent; color: var(--ink-foreground); border-color: var(--ink-border); }
.site-footer .currency-trigger { background: var(--ink-border); color: var(--ink-foreground); }
/* the guard has to be repeated here: this rule overrides the guarded .btn-outline
   hover above, so without it a disabled cookiebar button would still light up */
.cookiebar .btn-outline:not(:disabled, [aria-disabled="true"], [aria-busy="true"]):hover { background: var(--ink-border); color: var(--ink-foreground); }
.cookiebar.-open { display: flex; }
/* while the bar is up it sits over the page bottom — the footer legal links live exactly
   there, and a fixed bar with no reserved space swallows their clicks. Reserve the room
   and lift the support FAB, which the full-width mobile bar would otherwise cover.
   The offset comes from --cookiebar-h, which app.js measures — the bar wraps to 125px at
   375px wide and 72px on desktop, so any hard-coded value is wrong on some width. */
body:has(.cookiebar.-open) { padding-bottom: calc(var(--cookiebar-h, 0px) + var(--space-8)); }
body:has(.cookiebar.-open) .support-root { bottom: calc(var(--space-4) + var(--cookiebar-h, 0px) + var(--space-3)); }
@media (min-width: 641px) {
  /* on desktop the bar is a centred 34rem card — it never reaches the right-hand FAB */
  body:has(.cookiebar.-open) .support-root { bottom: var(--space-4); }
}
.cookiebar a { text-decoration: underline; text-underline-offset: var(--underline-offset); }

/* ---- shop: cover art (deterministic hue gradients, light-tuned) ---------------------------------------- */
.cover { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: var(--radius-lg); border: 1px solid var(--border); overflow: hidden; background:
  linear-gradient(135deg, oklch(0.94 0.05 var(--hue, 260)), oklch(0.82 0.09 calc(var(--hue, 260) + 40))); }
.cover-thumb { width: 2.75rem; height: 2.75rem; aspect-ratio: 1; border-radius: var(--radius-md); flex: none; }
.cover-badges { position: absolute; top: var(--space-2); left: var(--space-2); right: var(--space-2); display: flex; justify-content: space-between; gap: var(--space-2); }
.cover-play { position: absolute; inset: 0; margin: auto; width: 2.5rem; height: 2.5rem; border-radius: var(--radius-pill); background: var(--on-art-strong); color: var(--foreground); display: grid; place-items: center; opacity: 0; transition: opacity var(--dur-base) var(--ease-out); }
.cover:hover .cover-play, .cover:focus-visible .cover-play { opacity: 1; }

/* ---- shop: waveform --------------------------------------------------------------------------------------- */
.waveform { position: absolute; left: var(--space-3); right: var(--space-3); bottom: var(--space-2); height: 2rem; display: flex; align-items: flex-end; gap: var(--bar-gap); }
.waveform i { flex: 1; height: var(--h, 40%); background: var(--wave-fill); border-radius: 1px; transition: height var(--dur-slow) var(--ease-out); }
.waveform.-lg { position: static; height: 3.5rem; }
@media (prefers-reduced-motion: reduce) { .waveform i { transition: none; } .skeleton { animation: none; } }

/* ---- shop: product card ------------------------------------------------------------------------------------- */
.product-grid { display: grid; gap: var(--space-4); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.product-card { display: flex; flex-direction: column; }
.product-body { display: flex; flex-direction: column; gap: var(--space-1); padding: var(--space-4); }

/* player — the audio-message reference: play · waveform · duration */
.player { --pad: var(--space-2); display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3); background: var(--muted); border-radius: max(0px, calc(var(--r, var(--radius-2xl)) - var(--bw, 0px) - var(--pad))); margin: var(--pad) var(--pad) 0; }
.product-card .player { margin: var(--pad) var(--pad) 0; }
.player-play {
  width: 2.75rem; height: 2.75rem; flex: none; border-radius: var(--radius-pill);
  background: var(--primary); color: var(--primary-foreground); display: grid; place-items: center;
  transition: background-color var(--dur-base) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
/* the play triangle is visually left-heavy inside a circle; 2px back optically centres it */
.player-play svg { width: 1.125rem; height: 1.125rem; margin-left: var(--space-05); }
.player-play:not(:disabled, [aria-disabled="true"], [aria-busy="true"]):hover { background: var(--primary-hover); }
.player-play[aria-pressed="true"] svg { margin-left: 0; }
/* disabled — no preview for this pack: the violet drops out so the row reads as flat */
.player-play:disabled, .player-play[aria-disabled="true"] {
  background: var(--muted); color: var(--muted-foreground);
  box-shadow: none; opacity: var(--disabled-opacity); cursor: not-allowed;
}
.player-play[aria-disabled="true"] { pointer-events: none; }
/* loading — the audio is being fetched: the play glyph gives way to a spinner */
.player-play[aria-busy="true"] { cursor: progress; pointer-events: none; }
.player-play[aria-busy="true"] svg { display: none; }
.player-play[aria-busy="true"]::after {
  content: ''; width: 1.125rem; height: 1.125rem;
  border: 2px solid currentColor; border-top-color: transparent; border-radius: var(--radius-pill);
  animation: spin var(--dur-spin) linear infinite;
}
/* a waveform with nothing decoded yet: bars at rest, pulsing as one block */
.player[aria-busy="true"] .player-wave { animation: pulse var(--dur-pulse) var(--ease-out) infinite; }
.player[aria-busy="true"] .player-wave i { background: var(--muted-foreground); opacity: 0.25; }
/* error — the preview failed to load; the time slot carries the reason */
.player.-error .player-time { color: var(--destructive); }
.player.-error .player-wave i { background: var(--destructive); opacity: 0.25; }
.player-wave { flex: 1; min-width: 0; height: 2rem; display: flex; align-items: center; gap: var(--bar-gap-lg); overflow: hidden; }
.player-wave i { flex: 0 0 var(--bar-w); height: var(--h, 40%); background: var(--muted-foreground); border-radius: var(--radius-pill); opacity: 0.4; transition: opacity var(--dur-base) var(--ease-out), background-color var(--dur-base) var(--ease-out); }
.player-wave i.-on { background: var(--primary); opacity: 1; }
.player-time { flex: none; font-size: var(--text-xs); font-variant-numeric: tabular-nums; color: var(--muted-foreground); background: var(--background); padding: var(--space-05) var(--space-2); border-radius: var(--radius-sm); }
.player.-lg { margin: 0; padding: var(--space-4); }
.player.-lg .player-wave { height: 3.5rem; gap: var(--space-1); }
.player.-lg .player-wave i { flex: 0 0 var(--bar-w-lg); }
.player.-lg .player-play { width: 3.25rem; height: 3.25rem; }
/* cart row: the catalog card's player turned on its side — same skin, same inset, same radius.
   min-width:0 is load-bearing: the bars don't shrink, so min-content (330px) would override the basis.
   Narrow screens stack it exactly like the catalog card: player on top, copy beneath. */
.player.-row { margin: 0; flex: 1 0 100%; min-width: 0; }
@media (min-width: 768px) { .player.-row { flex: 0 0 17rem; } }
.product-name { font-weight: 600; font-size: var(--text-sm); }
.product-sub { font-size: var(--text-sm); color: var(--muted-foreground); }
.product-meta { display: flex; gap: var(--space-3); font-size: var(--text-xs); color: var(--muted-foreground); font-variant-numeric: tabular-nums; }
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); padding: 0 var(--space-4) var(--space-4); margin-top: auto; }
.price { font-weight: 600; font-size: var(--text-sm); }
.price.-old { color: var(--muted-foreground); text-decoration: line-through; font-weight: 400; margin-right: var(--space-2); }
/* The buy box's price is the product page's display figure, not a UI label — one step
   up from a card price. Lives here, not as an inline size set from product.html's JS. */
.buy-price .price { font-size: var(--text-2xl); }
.buy-price .price.-old { font-size: var(--text-lg); }

/* ---- shop: category tiles -------------------------------------------------------------------------------------- */
.tiles { display: grid; gap: var(--space-3); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .tiles { grid-template-columns: repeat(4, 1fr); } }
.tile { display: flex; flex-direction: column; gap: var(--space-1); padding: var(--space-4); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card); transition: border-color var(--dur-base) var(--ease-out), background-color var(--dur-base) var(--ease-out); }
.tile:not([aria-disabled="true"]):hover { background: var(--accent); }
/* disabled — a category with nothing in it yet */
.tile[aria-disabled="true"] { color: var(--muted-foreground); opacity: var(--disabled-opacity); cursor: not-allowed; pointer-events: none; }
.tile-name { font-size: var(--text-sm); font-weight: 500; }
.tile-count { font-size: var(--text-xs); color: var(--muted-foreground); font-variant-numeric: tabular-nums; }

/* ---- shop: filters / chips ---------------------------------------------------------------------------------------- */
.chip-row { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chip { display: inline-flex; align-items: center; height: 2rem; padding-inline: var(--space-3); border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--background); font-size: var(--text-sm); font-weight: 500; color: var(--muted-foreground); transition: color var(--dur-base) var(--ease-out), background-color var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out); }
.chip:not(:disabled, [aria-disabled="true"]):hover { color: var(--foreground); }
.chip[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: var(--primary-foreground); }
/* disabled — a filter that would return nothing for the current selection */
.chip:disabled, .chip[aria-disabled="true"] { opacity: var(--disabled-opacity); cursor: not-allowed; }
.chip[aria-disabled="true"] { pointer-events: none; }

/* ---- shop: pagination --------------------------------------------------------------------------------------------- */
.pagination { display: flex; align-items: center; justify-content: center; gap: var(--space-1); }
.page-btn { min-width: 2.25rem; }
.page-btn[aria-current="page"] { background: var(--background); color: var(--foreground); border: 1px solid var(--border); box-shadow: var(--shadow-xs); }

/* ---- shop: cart / checkout ------------------------------------------------------------------------------------------ */
/* stacked, a row's own parts must sit closer together than two rows do, or the name reads as
   belonging to the next player down; side by side, that pressure is gone and 8px is enough. */
.line-item { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
.line-item + .line-item { margin-top: var(--space-6); }
@media (min-width: 768px) {
  .line-item { gap: var(--space-4); }
  .line-item + .line-item { margin-top: var(--space-2); }
}
.line-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--space-1); }
.summary-row { display: flex; justify-content: space-between; gap: var(--space-4); font-size: var(--text-sm); padding-block: var(--space-1); }
.summary-row.-total { font-weight: 600; font-size: var(--text-base); border-top: 1px solid var(--border); margin-top: var(--space-3); padding-top: var(--space-3); }
.sticky-aside { position: sticky; top: calc(var(--header-h) + var(--space-4)); }
.steps { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-2); font-size: var(--text-sm); color: var(--muted-foreground); }
.step { display: inline-flex; align-items: center; gap: var(--space-2); }
.step-n { width: 1.5rem; height: 1.5rem; border-radius: var(--radius-pill); border: 1px solid var(--border); display: grid; place-items: center; font-size: var(--text-xs); font-weight: 500; }
.step[aria-current="step"] { color: var(--foreground); font-weight: 500; }
.step[aria-current="step"] .step-n { background: var(--primary); border-color: var(--primary); color: var(--primary-foreground); }
.step.-done .step-n { background: var(--secondary); border-color: var(--border); }
.step-sep { color: var(--border); }
.paymethod { display: flex; align-items: center; gap: var(--space-3); width: 100%; padding: var(--space-3) var(--space-4); border: 1px solid var(--border); border-radius: var(--radius-lg); text-align: left; font-size: var(--text-sm); transition: border-color var(--dur-base) var(--ease-out), background-color var(--dur-base) var(--ease-out); }
.paymethod:not(:disabled, [aria-disabled="true"]):hover { background: var(--accent); }
.paymethod[aria-pressed="true"] { border-color: var(--foreground); }
/* disabled — a method the order cannot use (currency, region); it stays visible so
   the absence is explained rather than mysterious */
.paymethod:disabled, .paymethod[aria-disabled="true"] { color: var(--muted-foreground); opacity: var(--disabled-opacity); cursor: not-allowed; }
.paymethod[aria-disabled="true"] { pointer-events: none; }
/* error — the selected method was rejected */
.paymethod[aria-invalid="true"] { border-color: var(--destructive); }
.paymethod .desc { color: var(--muted-foreground); font-size: var(--text-xs); display: block; }
.otp { display: flex; gap: var(--space-2); }
.otp input { width: 2.5rem; height: 3rem; text-align: center; font-size: var(--text-lg); font-weight: 500; font-variant-numeric: tabular-nums; border: 1px solid var(--input); border-radius: var(--radius-field); background: var(--muted); }
.otp input:focus-visible { border-color: var(--ring); box-shadow: var(--ring-shadow); outline: none; }
.otp input[aria-invalid="true"] { border-color: var(--destructive); color: var(--destructive); }
.otp input[aria-invalid="true"]:focus-visible { border-color: var(--destructive); box-shadow: var(--ring-shadow-error); }
.otp input:disabled { background-color: var(--background); border-color: var(--border); color: var(--muted-foreground); cursor: not-allowed; }

/* ---- shop: account / static sidebar --------------------------------------------------------------------------------- */
.side-nav { display: flex; flex-direction: column; gap: var(--space-1); }
/* a not-yet-shipped item is not a link — HARD RULE 3 bans href="#", so it renders as text */
.side-nav a, .side-nav-soon { padding: var(--space-2) var(--space-3); border-radius: var(--radius-md); font-size: var(--text-sm); font-weight: 500; color: var(--muted-foreground); }
.side-nav-soon { display: block; opacity: 0.55; cursor: not-allowed; }
.side-nav a:not([aria-disabled="true"]):hover { color: var(--foreground); background: var(--accent); }
.side-nav a[aria-current="page"] { background: var(--secondary); color: var(--foreground); }
.side-nav a[aria-disabled="true"] { opacity: var(--disabled-opacity); cursor: not-allowed; pointer-events: none; }
/* same trap as .grid-2: without min-width: 0 the purchases table's min-content
   drags the single mobile track past the viewport */
.with-side { display: grid; gap: var(--space-8); }
.with-side > * { min-width: 0; }
@media (min-width: 1024px) { .with-side { grid-template-columns: 14rem 1fr; align-items: start; } }

/* ---- shop: FAQ / prose ------------------------------------------------------------------------------------------------ */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding-block: var(--space-4); font-size: var(--text-sm); font-weight: 500; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--muted-foreground); font-size: var(--text-lg); line-height: 1; }
.faq-item[open] summary::after { content: '–'; }
.faq-item .faq-a { padding-bottom: var(--space-4); font-size: var(--text-sm); color: var(--muted-foreground); max-width: 65ch; }
.prose { max-width: 65ch; font-size: var(--text-base); }
.prose h2 { font-size: var(--text-xl); margin: var(--space-8) 0 var(--space-3); }
.prose h3 { font-size: var(--text-base); margin: var(--space-6) 0 var(--space-2); }
.prose p, .prose ul, .prose ol { color: var(--prose-foreground); margin-bottom: var(--space-4); }
.prose li + li { margin-top: var(--space-1); }



/* ---- post cover art (deterministic from the post hue; no image files ship) ---- */
.post-cover {
  position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: var(--radius-lg); background: var(--muted);
  /* hue art is the fallback for a post without a photo */
  background-image:
    radial-gradient(120% 120% at 15% 15%, oklch(0.72 0.19 var(--hue, 296)), transparent 60%),
    linear-gradient(135deg, oklch(0.55 0.24 var(--hue, 296)), oklch(0.32 0.12 calc(var(--hue, 296) + 45)));
}
.post-cover img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform var(--dur-slow) var(--ease-out);
}
.post-cover-bars { position: absolute; left: 8%; right: 8%; bottom: 12%; height: 34%; display: flex; align-items: flex-end; gap: var(--bar-gap-lg); opacity: 0.5; }
.post-cover-bars i { flex: 0 0 var(--bar-w-lg); height: var(--h, 40%); background: var(--on-art); border-radius: var(--radius-pill); }
.post-cover.-lg { aspect-ratio: 16 / 9; border-radius: var(--radius-2xl); }


/* ---- blog grid — readymag colour blocks ------------------------------------- */
.blog-grid { display: grid; gap: var(--space-4); grid-template-columns: 1fr; }
@media (min-width: 768px) { .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .blog-grid.-three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.blog-card {
  --r: var(--radius-2xl);
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  aspect-ratio: 16 / 9; padding: var(--space-6); overflow: hidden;
  border-radius: var(--r); background: var(--ink); color: var(--ink-foreground); isolation: isolate;
  transition: transform var(--dur-base) var(--ease-out);
}
.blog-card:hover { transform: translateY(-2px); }
.blog-card img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: scale var(--dur-slow) var(--ease-out); }
.blog-card:hover img { scale: 1.03; }
/* the scrim that keeps the copy legible over any photo */
.blog-card::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, var(--img-shade-strong) 0%, var(--img-shade-soft) 45%, transparent 100%);
}
.blog-card h2 { font-size: var(--text-xl); max-width: 20ch; letter-spacing: -0.02em; }
.blog-card p { display: none; }
.blog-card-foot { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; margin-top: var(--space-3); padding-right: var(--space-10); font-size: var(--text-xs); color: var(--on-art-muted); }
.blog-card .badge-outline { border-color: var(--on-art-border); color: var(--ink-foreground); background: var(--on-art-fill); }
.blog-card-go { position: absolute; right: var(--space-6); bottom: var(--space-6); color: var(--ink-foreground); transition: translate var(--dur-base) var(--ease-out); }
.blog-card-go svg { width: 1.25rem; height: 1.25rem; }
.blog-card:hover .blog-card-go { translate: 4px 0; }
@media (prefers-reduced-motion: reduce) {
  .blog-card:hover { transform: none; }
  .blog-card:hover img { scale: 1; }
  .blog-card:hover .blog-card-go { translate: 0; }
}
@media (min-width: 768px) {
  /* 21st layout: one tall primary beside a stack of two */
  /* Column ratio is 2.08, not 2. The tall card spans two rows PLUS the row gap,
     so at a plain 2fr it lands at 1.71 — visibly flatter than the small cards.
     Solving W2/(2·rowH + gap) = 16/9 with rowH = 9·W1/16 gives W2 = 2·W1 + 16·gap/9,
     i.e. ~2.08·W1. Both sizes then read 16:9. */
  .blog-grid.-feature { grid-template-columns: 2.08fr 1fr; grid-template-rows: repeat(2, 1fr); }
  .blog-card.-wide { grid-row: span 2; aspect-ratio: auto; padding: var(--space-8); }
  .blog-card.-wide h2 { font-size: var(--text-3xl); max-width: 18ch; }
  .blog-card.-wide p { display: block; margin-top: var(--space-2); max-width: 52ch; color: var(--on-art-soft); font-size: var(--text-base); }
  .blog-card.-wide .blog-card-go { right: var(--space-8); bottom: var(--space-8); }
}

/* ---- hero (restrained: no eyebrow pills, no metric rows) ----------------------------------------------------------------- */
/* hero — the 21st blog-posts pattern: an oversized label sitting behind a
   centred stack. The label is set at ~4% ink, so it reads as texture, not text. */
.masthead { position: relative; isolation: isolate; padding-block: var(--space-12) var(--space-10); text-align: center; overflow: hidden; }
.masthead-label {
  position: absolute; top: 50%; left: 50%; translate: -50% -50%; z-index: -1;
  /* 700 is the heaviest Geist face the @import ships — 800 rendered as 700 anyway */
  font-weight: 700; font-size: clamp(6rem, 22vw, 25rem); line-height: 0.8;
  letter-spacing: -0.04em; color: var(--watermark-ink);
  white-space: nowrap; pointer-events: none; user-select: none;
}
.masthead h1 { font-size: clamp(var(--text-3xl), 5vw, 3.5rem); max-width: 20ch; margin-inline: auto; letter-spacing: -0.03em; }
.masthead p { margin-top: var(--space-4); margin-inline: auto; max-width: 52ch; font-size: var(--text-lg); color: var(--muted-foreground); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3); margin-top: var(--space-8); }
@media (max-width: 640px) { .masthead p { font-size: var(--text-base); } .masthead { padding-block: var(--space-8) var(--space-6); } }

/* ---- loading motion, reduced ------------------------------------------------------------------------------------------
   Must sit after the components that declare the spinners: an `animation` shorthand
   later in the file would otherwise reset the duration set here. Spinners are kept
   rather than removed — a loading state with no signal is worse than a slow one. */
@media (prefers-reduced-motion: reduce) {
  .btn[aria-busy="true"]::before,
  .player-play[aria-busy="true"]::after { animation-duration: var(--dur-spin-reduced); }
  .player[aria-busy="true"] .player-wave { animation: none; }
}
