/* ============================================================
   The T-Shirt Brand — base design system  (Milestone 0)
   Retinted to the crest: olive, charcoal & steel, off a warm paper ground.
   ============================================================ */

/* ---- fonts (self-hosted) ----------------------------------------
   Latin subset, woff2, from the @fontsource packages (SIL Open Font
   License; the licence texts sit beside the files in ../fonts/).
   Relative url() so the static manifest fingerprints each file. --------- */

@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/oswald-latin-400-normal.b2a5bf57bad8.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/oswald-latin-500-normal.8af401f8e32b.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/oswald-latin-600-normal.3ab06adc1658.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/oswald-latin-700-normal.665f37b2d0e8.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-latin-400-normal.77bc02670657.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-latin-500-normal.f7016cd446d2.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-latin-600-normal.196e3cbc5fee.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-latin-400-normal.79936b18df9f.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-latin-500-normal.b1c8a895f5fd.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---- tokens ------------------------------------------------ */
:root {
  /* neutrals — warm, biased toward olive */
  --paper:          #ece6d6;
  --surface:        #f5f2e9;
  --surface-raised: #fbfaf5;
  --ink:            #1b1f1c;
  --ink-soft:       #55503f;
  --ink-faint:      #8a8271;

  /* brand — matched to the crest */
  --olive:      #6b7042;
  --olive-deep: #2d322f;
  --steel:      #4f7482;
  --walnut:     #6e4433;

  /* sharpeners */
  --black: #131716;
  --white: #ffffff;

  /* lines & glass */
  --line:        rgba(27, 31, 28, 0.14);
  --line-strong: rgba(27, 31, 28, 0.30);
  --glass-bg:     rgba(251, 250, 245, 0.55);
  --glass-border: rgba(255, 255, 255, 0.55);
  --glass-shadow: 0 8px 34px -14px rgba(27, 31, 28, 0.30);
  --shadow-sm:    0 1px 2px rgba(27, 31, 28, 0.06), 0 6px 20px -12px rgba(27, 31, 28, 0.18);
  --cursor-glow:  rgba(19, 23, 22, 0.16);

  /* semantic */
  --ok:   #6b7042;
  --good: #2f7a45;
  --warn: #9a6b1f;
  --crit: #8a3a28;

  /* type */
  --font-display: "Oswald", "Arial Narrow", "Helvetica Neue", sans-serif;
  --font-body:    "IBM Plex Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --step--1: 0.82rem;
  --step-0:  1rem;
  --step-1:  1.19rem;
  --step-2:  1.5rem;
  --step-3:  2rem;
  --step-4:  clamp(2.4rem, 5.5vw, 3.6rem);

  /* space */
  --sp-1: 0.375rem;
  --sp-2: 0.75rem;
  --sp-3: 1.25rem;
  --sp-4: 2rem;
  --sp-5: 3.25rem;

  --radius: 3px;
  --wrap: 1100px;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper:          #161814;
    --surface:        #1e211b;
    --surface-raised: #262a22;
    --ink:            #ece4d2;
    --ink-soft:       #a79e88;
    --ink-faint:      #6f6857;
    --olive:      #a7ac7a;
    --olive-deep: #c2c5c1;
    --steel:      #8fafba;
    --walnut:     #c68a6e;
    --black: #0b0b08;
    --white: #f3efe4;
    --line:        rgba(236, 228, 210, 0.15);
    --line-strong: rgba(236, 228, 210, 0.32);
    --glass-bg:     rgba(38, 42, 34, 0.46);
    --glass-border: rgba(236, 228, 210, 0.12);
    --glass-shadow: 0 8px 34px -14px rgba(0, 0, 0, 0.6);
    --shadow-sm:    0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 22px -14px rgba(0, 0, 0, 0.55);
    --cursor-glow:  rgba(243, 239, 228, 0.10);
    --ok: #a7ac7a;
    --good: #6fbf85;
    --warn: #d69a3c;
    --crit: #d6795f;
  }
}
:root[data-theme="dark"] {
  --paper:          #161814;
  --surface:        #1e211b;
  --surface-raised: #262a22;
  --ink:            #ece4d2;
  --ink-soft:       #a79e88;
  --ink-faint:      #6f6857;
  --olive:      #a7ac7a;
  --olive-deep: #c2c5c1;
  --steel:      #8fafba;
  --walnut:     #c68a6e;
  --black: #0b0b08;
  --white: #f3efe4;
  --line:        rgba(236, 228, 210, 0.15);
  --line-strong: rgba(236, 228, 210, 0.32);
  --glass-bg:     rgba(38, 42, 34, 0.46);
  --glass-border: rgba(236, 228, 210, 0.12);
  --glass-shadow: 0 8px 34px -14px rgba(0, 0, 0, 0.6);
  --shadow-sm:    0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 22px -14px rgba(0, 0, 0, 0.55);
  --cursor-glow:  rgba(243, 239, 228, 0.10);
  --ok: #a7ac7a;
  --good: #6fbf85;
  --warn: #d69a3c;
  --crit: #d6795f;
}

/* ---- reset ----------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
[x-cloak] { display: none !important; }
html {
  -webkit-text-size-adjust: 100%;
  scrollbar-gutter: stable;             /* reserve the track so scroll-locking doesn't shift layout */
}
html.overlay-open,
html.drawer-open { overflow: hidden; }  /* freeze the page behind the enlarged tile / drawer */

body {
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}

img, svg, video { max-width: 100%; display: block; }
[hidden] { display: none !important; }

h1, h2, h3, h4, .display {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.08;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }

p { max-width: 68ch; }
a { color: var(--olive); text-underline-offset: 3px; }
a:hover { color: var(--olive-deep); }

:focus-visible {
  outline: 2px solid var(--steel);
  outline-offset: 2px;
  border-radius: 1px;
}

::selection { background: var(--olive); color: var(--white); }

/* ---- layout --------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}

main {
  flex: 1 0 auto;
  padding-block: var(--sp-5);
}

.eyebrow {
  font-family: var(--font-display);
  font-size: var(--step--1);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--olive);
}

.muted { color: var(--ink-soft); }
.faint { color: var(--ink-faint); }
.tnum  { font-variant-numeric: tabular-nums; }

/* ---- header --------------------------------------------- */
.site-header {
  position: relative;   /* stack above the enlarged-tile overlay (z-index 60), so it */
  z-index: 61;           /* stays sharp and usable — solid background, nothing to blur */
  background: var(--black);
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding-block: var(--sp-3);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--white);
}
.brand__mark {
  width: 34px;
  height: 42px;
  display: block;
  flex-shrink: 0;
}
.brand__word {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.14em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 3vw, 2rem);
}
.site-nav a {
  color: var(--white);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  padding-block: 4px;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { border-color: var(--olive); color: var(--white); }

.cart-link .count {
  font-variant-numeric: tabular-nums;
  color: var(--olive-deep);
  background: var(--white);
  border-radius: 2px;
  padding: 0 0.35em;
  margin-left: 0.15em;
}

.theme-toggle {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.5rem;
  cursor: pointer;
  text-transform: uppercase;
}
.theme-toggle:hover { border-color: var(--white); }

/* ---- footer -------------------------------------------- */
.site-footer {
  flex-shrink: 0;
  background: var(--black);
  color: var(--white);
  font-size: var(--step--1);
  padding-block: var(--sp-4);
  margin-top: var(--sp-5);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3) var(--sp-4);
  justify-content: space-between;
  align-items: start;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}
.site-footer a { color: var(--white); text-decoration: none; opacity: 0.85; }
.site-footer a:hover { opacity: 1; text-decoration: underline; }
.site-footer address { font-style: normal; color: rgba(255, 255, 255, 0.55); line-height: 1.7; }

/* ---- glass panel — the recurring surface -------------- */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-radius: var(--radius);
}
.panel {
  background: var(--surface-raised);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius);
  padding: var(--sp-3);
}

/* ---- buttons & forms --------------------------------- */
.btn,
button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 0.9rem;
  background: var(--olive);
  color: var(--white);
  border: 1px solid var(--olive);
  border-radius: var(--radius);
  padding: 0.8rem 1.5rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease, transform 0.14s ease;
}
.btn:hover { background: var(--olive-deep); border-color: var(--olive-deep); color: var(--white); box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.4); transform: translateY(-1px); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn--ghost:hover { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn:disabled,
.btn[disabled] {
  background: var(--line);
  border-color: var(--line);
  color: var(--ink-faint);
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

label { font-size: var(--step--1); font-weight: 500; color: var(--ink-soft); }
input, select, textarea {
  font: inherit;
  color: var(--ink);
  background: var(--surface-raised);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 0.55rem 0.7rem;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--steel); outline-offset: 1px; }

/* ---- messages ---------------------------------------- */
.messages { list-style: none; display: grid; gap: var(--sp-2); margin-bottom: var(--sp-3); }
.messages li {
  padding: 0.7rem 1rem;
  border-left: 3px solid var(--olive);
  background: var(--surface);
  border-radius: var(--radius);
  font-size: var(--step--1);
}
.messages li.error { border-left-color: var(--crit); }
.messages li.warning { border-left-color: var(--warn); }

/* ---- price / tags ----------------------------------- */
.price { font-family: var(--font-mono); font-weight: 500; color: var(--olive-deep); }
.tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
  border: 1px solid currentColor;
  border-radius: 2px;
  padding: 0.1em 0.5em;
}

/* ---- simple hero (landing / section intro) ---------- */
.section-intro {
  display: grid;
  gap: var(--sp-2);
  padding-bottom: var(--sp-4);
  margin-bottom: var(--sp-4);
  border-bottom: 1px solid var(--line);
}
.section-intro h1 { max-width: 18ch; }
.section-intro p { color: var(--ink-soft); }

/* ---- product grid (placeholder until Milestone 1) --- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: var(--sp-3);
}
.product-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
  overflow: hidden;
}
.product-card .thumb {
  aspect-ratio: 4 / 5;
  background: var(--black);
  display: grid;
  place-items: center;
  color: var(--olive);
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
}
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-card .body { padding: var(--sp-2) var(--sp-2) var(--sp-3); display: grid; gap: 0.2rem; }
.product-card h2 { font-size: var(--step-1); text-transform: none; letter-spacing: 0; }

/* ============================================================
   Milestone 1 — catalogue: search, glass tiles, the overlay
   ============================================================ */

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.btn--sm { padding: 0.4rem 0.8rem; font-size: 0.75rem; }

/* ---- color picker (listing editor): a dropdown whose options carry a swatch ---- */
.swatch {
  display: inline-block; flex: none;
  width: 1.15rem; height: 1.15rem; border-radius: 50%;
  border: 1px solid var(--line-strong);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}
.swatch--none { background: repeating-linear-gradient(45deg, transparent 0 3px, var(--line) 3px 4px); }
.color-picker { position: relative; display: grid; gap: 0.6rem; max-width: 22rem; }
.color-picker__trigger,
.color-picker__opt {
  display: flex; align-items: center; gap: 0.6rem; width: 100%;
  font: inherit; color: var(--ink); text-align: left; cursor: pointer;
  background: var(--paper); border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 0.5rem 0.7rem;
}
.color-picker__trigger:hover,
.color-picker__opt:hover,
.color-picker__opt:focus-visible { border-color: var(--ink); }
.color-picker__name { flex: 1; }
.color-picker__caret { color: var(--ink-faint); }
.color-picker__menu {
  position: absolute; top: calc(2.6rem + 2px); left: 0; right: 0; z-index: 20;
  list-style: none; margin: 0; padding: 0.25rem; display: grid; gap: 0.15rem;
  max-height: 18rem; overflow-y: auto;
  background: var(--paper); border: 1px solid var(--line-strong); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.color-picker__opt { border-color: transparent; }
.color-preview { display: grid; gap: 0.4rem; justify-items: start; }
.color-preview img { border-radius: var(--radius); border: 1px solid var(--line); background: #fff; object-fit: contain; }

/* Looks inactive (like a real :disabled button) but still clickable, so
   clicking it can explain why instead of just doing nothing. */
.btn--needs-match {
  background: var(--line);
  border-color: var(--line);
  color: var(--ink-faint);
  box-shadow: none;
}
.btn--needs-match:hover {
  background: var(--line);
  border-color: var(--line);
  color: var(--ink-faint);
  box-shadow: none;
  transform: none;
}

.btn-popup-wrap { position: relative; display: inline-block; }
.btn-popup {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  z-index: 5;
  max-width: 22rem;
  background: var(--ink);
  color: var(--paper);
  font-size: var(--step--1);
  line-height: 1.4;
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-sm, 6px);
  box-shadow: var(--shadow-sm);
  animation: tts-popup-in 0.14s ease;
}
.btn-popup::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 1.2rem;
  border: 6px solid transparent;
  border-bottom-color: var(--ink);
}
@keyframes tts-popup-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---- search --------------------------------------------- */
.shop-search {
  display: flex;
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
  max-width: 32rem;
}
.shop-search input[type="search"] { flex: 1; }

/* ---- glass tile grid ----------------------------------- */
.tile-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: var(--sp-3);
  padding: 0;
}
.grid-empty { padding-block: var(--sp-4); }

.tile {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
  overflow: hidden;
  transition: box-shadow 0.16s ease, transform 0.16s ease;
}
.tile:hover,
.tile:focus-visible {
  box-shadow: 0 0 0 2px var(--olive), 0 20px 40px -18px rgba(0, 0, 0, 0.45), var(--glass-shadow);
  transform: translateY(-4px);
}
.tile__image {
  aspect-ratio: 4 / 5;
  background: var(--black);
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 0.5rem;
}
.tile__image img { width: 100%; height: 100%; object-fit: contain; }
.tile__fallback {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  color: var(--olive);
  padding: 1rem;
  text-align: center;
}
.tile__meta {
  padding: var(--sp-2) var(--sp-2) var(--sp-3);
  display: grid;
  gap: 0.15rem;
}
.tile__title { font-family: var(--font-display); font-size: 1.1rem; letter-spacing: 0.01em; }
.tile__sub { font-size: var(--step--1); }

.price--lg { font-size: var(--step-1); }

/* ---- the enlarged-tile overlay ------------------------- */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  overflow-y: auto;              /* the whole layer scrolls when the card is tall */
  overscroll-behavior: contain;
  display: flex;                 /* card uses margin:auto to centre / top-align + scroll */
  padding: clamp(0.75rem, 3vw, 2.5rem);
}
.overlay__backdrop {
  position: fixed;               /* stays put while the layer scrolls */
  top: 0;
  left: 0;
  width: 100vw;                  /* cover the reserved scrollbar gutter too */
  height: 100%;
  background: rgba(19, 19, 16, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.overlay__card {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  margin: auto;                  /* centres when it fits, top-aligns + scrolls when taller */
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(1rem, 3vw, 2rem);
  padding: clamp(1rem, 3vw, 2rem);
  transition: transform 0.34s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.34s ease;
  touch-action: pan-y;
}
.overlay__grabber { display: none; }
.overlay__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  line-height: 1;
  text-decoration: none;
  color: var(--ink-soft);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  z-index: 3;
  transition: color 0.14s ease, box-shadow 0.14s ease, transform 0.14s ease;
}
.overlay__close:hover,
.overlay__close:focus-visible { color: var(--ink); box-shadow: var(--glass-shadow); transform: translateY(-1px); }

/* Room for .overlay__close in the corner so it never sits over the title;
   reset on the stacked mobile layout, where it floats over the image instead. */
.overlay__info { padding-top: 2.75rem; }
@media (max-width: 720px) {
  .overlay__info { padding-top: 0; }
}

.overlay__media { display: grid; gap: var(--sp-2); align-content: start; }
.overlay__image {
  aspect-ratio: 4 / 5;
  background: var(--black);
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: var(--radius);
}
.overlay__image img { width: 100%; height: 100%; object-fit: contain; }

/* distance-scaled thumbnail strip; hover/active springs to full size */
.overlay__strip {
  display: flex;
  gap: 0.4rem;
  align-items: flex-start;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}
.overlay__thumb {
  flex: 0 0 auto;
  width: 62px;
  height: 78px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: var(--black);
  cursor: pointer;
  overflow: hidden;
  transform-origin: top center;
  transform: scale(calc(1 - var(--dist, 0) * 0.16));
  opacity: calc(1 - var(--dist, 0) * 0.12);
  transition: transform 0.16s ease, opacity 0.16s ease, border-color 0.16s ease;
}
.overlay__thumb img { width: 100%; height: 100%; object-fit: contain; }
.overlay__thumb.is-hover,
.overlay__thumb.is-active { transform: scale(1); opacity: 1; }
.overlay__thumb.is-active { border-color: var(--olive); }

.overlay__info { display: grid; gap: var(--sp-2); align-content: start; }
.overlay__info h2 { text-transform: none; letter-spacing: 0; }
.overlay__story { font-size: var(--step-0); }

.overlay__buy {
  display: grid;
  gap: var(--sp-2);
  margin-top: var(--sp-2);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--line);
}
.overlay__buy .field { display: grid; gap: 0.25rem; }
.overlay__buy select { width: 100%; }

.overlay__addon {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  font-size: var(--step--1);
  padding: var(--sp-2);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.overlay__feedback:empty { display: none; }
.overlay__feedback {
  font-size: var(--step--1);
  color: var(--olive-deep);
}
.added-note a { font-weight: 500; }

.overlay__tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: var(--sp-1); }

@media (max-width: 720px) {
  .overlay__card { grid-template-columns: 1fr; padding-top: 1.5rem; }
  .overlay__grabber {
    display: block;
    position: absolute;
    top: 0.55rem;
    left: 50%;
    transform: translateX(-50%);
    width: 2.5rem;
    height: 0.28rem;
    border-radius: 999px;
    background: var(--line-strong);
  }
}

/* ---- cart lines --------------------------------------- */
.cart-lines { list-style: none; display: grid; gap: var(--sp-2); padding: 0; }
.cart-line {
  display: grid;
  grid-template-columns: 64px 1fr auto auto;
  align-items: center;
  gap: var(--sp-3);
}
.cart-line__thumb {
  width: 64px; height: 64px;
  background: var(--black);
  display: grid; place-items: center;
  overflow: hidden;
  font-size: 0.55rem; color: var(--olive);
  text-align: center;
}
.cart-line__thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-line__meta { display: grid; gap: 0.1rem; }
.cart-line__meta .faint { font-size: var(--step--1); }
.cart-total { font-size: var(--step-2); display: flex; gap: 0.5rem; align-items: baseline; }

@media (max-width: 560px) {
  .cart-line { grid-template-columns: 48px 1fr auto; }
  .cart-line form { grid-column: 1 / -1; }
}

/* ============================================================
   Milestone 2 — cart drawer, checkout, subscribe
   ============================================================ */

.btn--block { width: 100%; }
.linkish {
  background: none; border: 0; padding: 0;
  color: var(--walnut); font: inherit; font-size: var(--step--1);
  text-decoration: underline; text-underline-offset: 2px; cursor: pointer;
}
.form-note { font-size: var(--step--1); margin-top: 0.4rem; }
.form-note.ok { color: var(--olive-deep); }
.form-note.error { color: var(--crit); }
.form-note.success { color: var(--good); }

/* ---- cart drawer ---- */
.drawer-scrim {
  position: fixed; inset: 0; z-index: 70;
  background: rgba(19, 19, 16, 0.45);
  backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
}
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 71;
  width: min(420px, 100%);
  display: flex; flex-direction: column;
  padding: var(--sp-3);
  border-left: 1px solid var(--glass-border);
  overflow-y: auto;
  border-radius: 0;
}
.drawer__head {
  display: flex; align-items: baseline; justify-content: space-between;
  border-bottom: 1px solid var(--line); padding-bottom: var(--sp-2); margin-bottom: var(--sp-2);
}
.drawer__head h2 { font-size: var(--step-2); }
.drawer__close { background: none; border: 0; font-size: 1.5rem; line-height: 1; color: var(--ink-soft); cursor: pointer; padding: 0 0.25rem; }
.drawer__close:hover { color: var(--ink); }
.drawer__empty { padding-block: var(--sp-4); }
.drawer__lines { list-style: none; padding: 0; display: grid; gap: var(--sp-2); }
.drawer__line {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: var(--sp-2);
  padding-bottom: var(--sp-2);
  border-bottom: 1px solid var(--line-soft);
}
.drawer__thumb {
  width: 52px; height: 52px; background: var(--black);
  display: grid; place-items: center; overflow: hidden;
  font-size: 0.45rem; color: var(--olive); text-align: center;
}
.drawer__thumb img { width: 100%; height: 100%; object-fit: cover; }
.drawer__meta { display: grid; gap: 0.1rem; font-size: var(--step--1); min-width: 0; }
.drawer__meta strong { font-size: var(--step-0); }
.drawer__line-end { display: grid; gap: 0.2rem; justify-items: end; text-align: right; }
.drawer__foot { margin-top: auto; padding-top: var(--sp-3); display: grid; gap: var(--sp-2); }
.drawer__total { display: flex; justify-content: space-between; font-family: var(--font-display); font-size: 1.1rem; }
.drawer__ship { font-size: var(--step--1); }

/* ---- cart page: qty stepper + summary ---- */
.qty {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 0.15rem 0.35rem;
}
.qty button {
  background: none; border: 0; cursor: pointer; font-size: 1rem; line-height: 1;
  color: var(--ink-soft); padding: 0.25rem 0.4rem;
}
.qty button:hover { color: var(--ink); }
.qty__n { min-width: 1.5ch; text-align: center; }
.cart-line { grid-template-columns: 64px 1fr auto auto auto; }
.cart-summary { display: grid; gap: var(--sp-2); max-width: 22rem; margin-left: auto; }

/* ---- checkout success ---- */
.confirm hr { border: 0; border-top: 1px solid var(--line); margin: var(--sp-3) 0; width: 100%; }
.confirm__summary ul { list-style: none; padding: 0; display: grid; gap: 0.3rem; margin-bottom: var(--sp-2); }
.confirm__summary li,
.confirm__row { display: flex; justify-content: space-between; gap: 1rem; }
.confirm__row { padding: 0.2rem 0; }
.confirm__total { border-top: 1px solid var(--line); margin-top: 0.3rem; padding-top: 0.5rem; font-family: var(--font-display); font-size: 1.1rem; }
.confirm__cta { text-align: center; display: grid; gap: var(--sp-2); }
.subscribe-block { display: grid; gap: var(--sp-2); text-align: left; }
.subscribe-block form { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.subscribe-block input[type="email"] { flex: 1; min-width: 12rem; }
.dev-order, .track-items { list-style: none; padding: 0; display: grid; gap: 0.3rem; margin-bottom: var(--sp-2); }
.dev-order li, .track-items li { display: flex; justify-content: space-between; gap: 1rem; }

/* ---- footer subscribe ---- */
.footer-subscribe { display: grid; gap: 0.3rem; max-width: 15rem; }
.footer-subscribe label {
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.1em;
  font-size: 0.68rem; color: rgba(255, 255, 255, 0.55);
}
.footer-subscribe__row { display: flex; gap: 0.35rem; }
.footer-subscribe input {
  flex: 1; min-width: 0; background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.25); color: var(--white);
  padding: 0.4rem 0.5rem; font-size: var(--step--1);
}
.footer-subscribe button {
  background: none; border: 1px solid rgba(255, 255, 255, 0.35); color: var(--white);
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.08em;
  font-size: 0.72rem; padding: 0 0.7rem; cursor: pointer;
}
.footer-subscribe button:hover { border-color: var(--white); }
.footer-subscribe .form-note { color: rgba(255, 255, 255, 0.8); }

@media (max-width: 560px) {
  .cart-line { grid-template-columns: 48px 1fr auto; }
  .cart-line .qty, .cart-line form { grid-column: 1 / -1; }
  .cart-summary { max-width: none; }
}

/* ============================================================
   Milestone 3 — the curator's order desk (interim; M4 refines)
   ============================================================ */

.tag--problem { color: var(--crit); }

.desk-stats { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.desk-stats .panel { display: grid; gap: 0.2rem; min-width: 10rem; }
.desk-stat { font-family: var(--font-display); font-size: 2rem; line-height: 1; }
.desk-stat.is-problem { color: var(--crit); }

.desk-list { list-style: none; padding: 0; display: grid; gap: var(--sp-2); }
.desk-row {
  display: flex; flex-wrap: wrap; align-items: baseline;
  gap: 0.5rem 1.25rem;
}
.desk-row a { text-decoration: none; }

.approval-grid { display: grid; gap: var(--sp-3); }
@media (min-width: 780px) { .approval-grid { grid-template-columns: 1fr 1.3fr; } }

.approval-items { list-style: none; padding: 0; display: grid; gap: var(--sp-2); }
.approval-items li { display: grid; grid-template-columns: 56px 1fr auto; gap: var(--sp-2); align-items: start; }
.approval-thumb {
  width: 56px; height: 56px; background: var(--black);
  display: grid; place-items: center; overflow: hidden;
  font-size: 0.45rem; color: var(--olive); text-align: center;
}
.approval-thumb img { width: 100%; height: 100%; object-fit: cover; }
.approval-meta { display: grid; gap: 0.1rem; min-width: 0; }
.approval-meta .faint { font-size: var(--step--1); }
.approval-nums { display: grid; gap: 0.1rem; text-align: right; font-size: var(--step--1); }
.approval-totals {
  display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem;
  margin-top: var(--sp-2); padding-top: var(--sp-2); border-top: 1px solid var(--line);
}

.action-panel { display: grid; gap: var(--sp-2); }
.action-panel .cluster form { gap: 0.4rem; }
.curator-note {
  font-family: var(--font-mono); font-size: var(--step--1);
  white-space: pre-wrap; background: var(--surface); border: 1px solid var(--line);
  padding: var(--sp-2); border-radius: var(--radius); color: var(--ink-soft);
}

/* ============================================================
   Milestone 4 — the curator's console
   Same glass family as the shop, lighter, mostly un-animated.
   ============================================================ */

body.console { background: var(--ground, var(--paper)); }
.console-main { padding-block: var(--sp-4); }
.console-main h1 { font-size: var(--step-3); margin-bottom: var(--sp-3); }
.console-main h2 { font-size: var(--step-1); margin: var(--sp-4) 0 var(--sp-2); }
.console-main h3 { font-size: var(--step-0); margin: var(--sp-3) 0 var(--sp-1); }

/* Merged console pages (Catalogue setup, Money, Content): each is really two
   pages stacked as sections, deep-linkable via #id from action redirects. */
.console-section {
  scroll-margin-top: var(--sp-3);
  padding-top: var(--sp-4);
  margin-top: var(--sp-4);
  border-top: 1px solid var(--line);
}
.console-section:first-of-type { padding-top: 0; margin-top: var(--sp-2); border-top: none; }

.console-bar { background: var(--black); color: var(--white); }
.console-bar .wrap {
  display: flex; align-items: center; gap: var(--sp-3);
  padding-block: var(--sp-2); flex-wrap: wrap;
}
.console-brand {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--white); text-decoration: none;
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.9rem;
}
.console-brand .brand__mark { width: 26px; height: 32px; }
.console-nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; flex: 1; }
.console-nav a {
  color: rgba(255,255,255,0.72); text-decoration: none;
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.08em;
  font-size: 0.76rem; padding: 0.2rem 0; border-bottom: 2px solid transparent;
}
.console-nav a:hover { color: var(--white); }
.console-nav a[aria-current="page"] { color: var(--white); border-color: var(--olive); }

.console-nav__group { position: relative; }
.console-nav__trigger {
  background: none; border: none; cursor: pointer; margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.08em;
  font-size: 0.76rem; padding: 0.2rem 0; border-bottom: 2px solid transparent;
  display: inline-flex; align-items: center; gap: 0.35em;
}
.console-nav__trigger:hover,
.console-nav__group.is-open .console-nav__trigger,
.console-nav__group.has-active .console-nav__trigger { color: var(--white); }
.console-nav__group.has-active .console-nav__trigger { border-color: var(--olive); }
.console-nav__caret { font-size: 0.6em; transition: transform 0.12s ease; }
.console-nav__group.is-open .console-nav__caret { transform: rotate(180deg); }
.console-nav__menu {
  position: absolute; top: 100%; left: 0; margin-top: 0.6rem;
  background: var(--black); border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow-sm);
  min-width: 11rem; padding: 0.3rem; z-index: 5;
}
.console-nav__menu a {
  display: block; color: rgba(255, 255, 255, 0.78); text-decoration: none;
  font-family: var(--font-body); text-transform: none; letter-spacing: 0;
  font-size: 0.85rem; padding: 0.5rem 0.6rem; border-radius: 2px;
}
.console-nav__menu a:hover { background: rgba(255, 255, 255, 0.08); color: var(--white); }
.console-nav__menu a[aria-current="page"] { color: var(--white); background: rgba(255, 255, 255, 0.08); }
.console-bar__end { display: flex; align-items: center; gap: 1rem; font-size: var(--step--1); }
.console-bar__end a { color: rgba(255,255,255,0.72); text-decoration: none; }
.console-bar__end a:hover { color: var(--white); }
.console-bar__end .linkish { color: rgba(255,255,255,0.72); }

/* ---- stat tiles ---- */
.tile-stats {
  display: grid; gap: var(--sp-2);
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}
.stat { display: grid; gap: 0.2rem; }
.stat--flag { border-left: 3px solid var(--warn); }
.stat__label {
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.09em;
  font-size: 0.68rem; color: var(--ink-faint);
}
.stat__big { font-family: var(--font-display); font-size: 1.7rem; line-height: 1.1; }
.stat a { font-size: var(--step--1); }

.bar-list { list-style: none; padding: 0; display: grid; gap: 0.4rem; }
.bar-list li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.3rem 0; border-bottom: 1px solid var(--line-soft); }

/* ---- dropzone ---- */
.dropzone {
  display: grid; gap: var(--sp-2); border: 1.5px dashed var(--line-strong);
  text-align: center; padding: var(--sp-3);
}
.dropzone.is-over { border-color: var(--olive); background: var(--surface-2); }
.dropzone input[type="file"] { justify-self: center; }
.dropzone button { justify-self: center; }

/* ---- listing / generic rows ---- */
.printful-results { list-style: none; padding: 0; margin: 0.4rem 0 0; display: grid; gap: 0.25rem; max-height: 14rem; overflow-y: auto; }
.printful-result {
  display: block; width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 0.5rem 0.7rem; cursor: pointer; font: inherit; color: inherit;
}
.printful-result:hover { border-color: var(--olive); background: var(--surface-raised); }

.listing-rows { list-style: none; padding: 0; display: grid; gap: var(--sp-2); }
.listing-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-3);
}
.listing-row__thumb {
  width: 48px; height: 48px; flex-shrink: 0; background: var(--black);
  display: grid; place-items: center; overflow: hidden; font-size: 0.4rem; color: var(--olive); text-align: center;
}
.listing-row__thumb img { width: 100%; height: 100%; object-fit: cover; }
.listing-row__meta { display: grid; gap: 0.1rem; flex: 1; min-width: 12rem; }
.listing-row__meta .faint { font-size: var(--step--1); }
.ok-text { color: var(--olive-deep); }

/* ---- edit grid ---- */
.edit-grid { display: grid; gap: var(--sp-3); }
@media (min-width: 820px) { .edit-grid { grid-template-columns: 1fr 1fr; } }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2); align-items: center; }
.dash-card h2 { font-size: var(--step-1); margin-bottom: var(--sp-2); }
@media (max-width: 760px) {
  .dash-cards { grid-template-columns: 1fr; }
}
.field { display: grid; gap: 0.25rem; }
.field textarea, .field input, .field select { width: 100%; }

.image-strip { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.image-cell { width: 110px; display: grid; gap: 0.2rem; text-align: center; }
.image-cell img { width: 110px; height: 130px; object-fit: cover; background: var(--black); border: 1px solid var(--line); }
.image-cell figcaption { font-size: 0.68rem; }
.image-cell--wide { width: 220px; }
.image-cell--wide img { width: 220px; height: auto; max-height: 300px; object-fit: contain; background: #fff; }
.image-move { display: flex; flex-wrap: wrap; gap: 0.3rem; justify-content: center; align-items: center; }
.image-move .btn { padding: 0.25rem 0.7rem; min-width: 2.4rem; }

.member-list { list-style: none; padding: 0; display: grid; gap: 0.3rem; max-height: 22rem; overflow-y: auto; }
.member-list label { display: flex; gap: 0.5rem; align-items: baseline; font-size: var(--step-0); color: var(--ink); }

/* ---- pricing table ---- */
.table-wrap { max-width: 64rem; overflow-x: auto; }
.pricing-table { width: 100%; border-collapse: collapse; font-size: var(--step--1); min-width: 720px; }
.pricing-table th {
  text-align: left; font-family: var(--font-display); text-transform: uppercase;
  letter-spacing: 0.06em; font-size: 0.66rem; color: var(--ink-faint);
  padding: 0.5rem 0.6rem; border-bottom: 1px solid var(--line);
}
.pricing-table td { padding: 0.4rem 0.6rem; border-bottom: 1px solid var(--line-soft); }
.pricing-table tr.is-flag { background: color-mix(in srgb, var(--warn) 12%, transparent); }
.cell-input { width: 6rem; padding: 0.3rem 0.4rem; }

/* ---- messages ---- */
.console-tabs a { font-size: var(--step--1); color: var(--ink-faint); text-decoration: none; padding: 0 0.4rem; }
.console-tabs a.is-active { color: var(--ink); border-bottom: 2px solid var(--olive); }
.msg-list { list-style: none; padding: 0; display: grid; gap: var(--sp-2); }
.msg.is-handled { opacity: 0.55; }
.msg__head { display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; align-items: baseline; margin-bottom: 0.4rem; }
.msg__body { white-space: pre-wrap; }

/* ============================================================
   Milestone 5 — landing, content pages
   ============================================================ */

.btn--lg { padding: 1rem 2rem; font-size: 1rem; }

.landing-hero {
  display: grid;
  gap: var(--sp-3);
  padding-block: clamp(2rem, 8vw, 5rem);
  max-width: 40ch;
}
.landing-title {
  font-size: clamp(2.4rem, 7vw, 4rem);
  line-height: 1.04;
  margin: 0;
}
.landing-lede { color: var(--ink-soft); font-size: 1.05rem; max-width: 46ch; }

.landing-featured { border-top: 1px solid var(--line); padding-top: var(--sp-4); }
.landing-featured h2 { font-size: var(--step-1); margin-bottom: var(--sp-3); }
.landing-featured .tile-grid { margin-bottom: var(--sp-3); }

/* ---- prose (content pages) ---- */
.prose {
  max-width: 68ch;
  margin-inline: auto;
  padding-block: var(--sp-3);
}
.prose h1 { font-size: var(--step-3); margin-bottom: var(--sp-3); }
.prose h2 {
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.02em;
  font-size: var(--step-1); margin: var(--sp-4) 0 var(--sp-2);
}
.prose h3 { font-size: var(--step-0); font-family: var(--font-display); text-transform: uppercase; margin: var(--sp-3) 0 var(--sp-1); }
.prose p, .prose li { color: var(--ink); line-height: 1.7; }
.prose p { margin: 0 0 1rem; }
.prose ul, .prose ol { margin: 0 0 1rem; padding-left: 1.3rem; }
.prose li { margin: 0 0 0.35rem; }
.prose li::marker { color: var(--olive); }
.prose a { color: var(--olive); }
.prose strong { font-weight: 600; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: var(--sp-3) 0; }
.prose blockquote {
  border-left: 3px solid var(--olive); padding-left: 1rem; margin: 1rem 0;
  color: var(--ink-soft);
}
.prose code {
  font-family: var(--font-mono); font-size: 0.9em;
  background: var(--surface-2); padding: 0.1em 0.35em; border-radius: 2px;
}

/* ============================================================
   Review pass — search toggle, collection sections, button state
   ============================================================ */

.section-intro__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-3);
}
.search-toggle {
  flex-shrink: 0;
  background: none;
  border: 1px solid var(--line-strong);
  color: var(--ink-soft);
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  margin-top: 0.4rem;
}
.search-toggle:hover { border-color: var(--ink); color: var(--ink); }
.shop-search { margin-top: var(--sp-3); display: none; }
.shop-search.is-open { display: flex; }

.shop-collection { margin-bottom: var(--sp-5); scroll-margin-top: var(--sp-3); }
.shop-collection__head {
  border-bottom: 1px solid var(--line);
  padding-bottom: var(--sp-2);
  margin-bottom: var(--sp-3);
}
.shop-collection__head h2 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: var(--step-2);
  margin: 0;
}
.shop-collection__head p { margin: 0.35rem 0 0; max-width: 55ch; }

.btn.is-added {
  background: var(--steel);
  border-color: var(--steel);
}
.btn--ghost.is-added {
  background: transparent;
  border-color: var(--steel);
  color: var(--steel);
}

.track-back { margin-top: var(--sp-4); }

/* ---- utilities -------------------------------------- */
.stack > * + * { margin-top: var(--sp-3); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center; }
.center-narrow { max-width: 60ch; margin-inline: auto; }
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--white);
  color: var(--black);
  padding: 0.6rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

/* ---- cursor shadow (desktop, fine-pointer only; see base.html) --- */
#cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 52px;
  height: 52px;
  margin: -26px 0 0 -26px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--cursor-glow) 0%, transparent 70%);
  filter: blur(1px);
  pointer-events: none;
  z-index: 40;
  opacity: 0;
  transform: translate3d(-100px, -100px, 0);
  transition: opacity 0.2s ease, width 0.18s ease, height 0.18s ease, margin 0.18s ease;
  will-change: transform;
}
#cursor-glow.is-active { opacity: 1; }
#cursor-glow.is-over-tile { width: 84px; height: 84px; margin: -42px 0 0 -42px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 640px) {
  .site-header .wrap { flex-wrap: wrap; }
  .brand__word { font-size: 0.95rem; }
}
