/* ==========================================================================
   Slate & Ink — base
   Tokens, reset, typography, grid, utilities.
   The interface stays monochrome. Colour arrives with the products.
   ========================================================================== */

:root {
  /* ---- Brand monochrome -------------------------------------------------
     Everything structural lives here. Nothing in this block is ever a
     product colour — collections change, the identity does not. */
  --ink:        #0B0B0C;
  --ink-soft:   #17171A;
  --charcoal:   #2B2B2F;
  --slate:      #6C6E74;
  --slate-200:  #9A9CA2;
  --slate-100:  #C7C8CB;
  --rule:       #E4E3DF;
  --rule-soft:  #EFEEEA;
  --paper:      #FFFFFF;
  --paper-warm: #F7F6F2;
  --paper-deep: #EFEDE7;

  /* Semantic aliases — components reference these, never the raw ramp. */
  --bg:           var(--paper);
  --bg-alt:       var(--paper-warm);
  --fg:           var(--ink);
  --fg-muted:     var(--slate);
  /* Subtle text is still text: it holds 4.7:1 on both paper tones. Hierarchy
     below this point is carried by size and tracking, not by more grey. */
  --fg-subtle:    var(--slate);
  --border:       var(--rule);
  --focus:        var(--ink);

  /* ---- Accent seam ------------------------------------------------------
     A single hook the page can repaint per collection / per product.
     Defaults to ink so nothing is coloured until a product says so. */
  --accent:       var(--ink);
  --accent-ink:   var(--paper);

  /* ---- Type -------------------------------------------------------------
     One grotesque does the work. One serif is allowed out for campaigns. */
  --font-sans: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-serif: "Instrument Serif", "Didot", "Bodoni MT", Georgia, serif;
  --font-mono: ui-monospace, "SF Mono", "Roboto Mono", Menlo, monospace;

  /* Fluid scale, 320 → 1600. Display sizes are deliberately oversized. */
  --t-micro:  0.6875rem;                              /* 11 — labels        */
  --t-tiny:   0.75rem;                                /* 12                 */
  --t-small:  0.8125rem;                              /* 13                 */
  --t-body:   clamp(0.9375rem, 0.9rem + 0.2vw, 1.0625rem);
  --t-lead:   clamp(1.0625rem, 1rem + 0.45vw, 1.375rem);
  --t-h4:     clamp(1.125rem, 1.02rem + 0.5vw, 1.5rem);
  --t-h3:     clamp(1.5rem, 1.25rem + 1.1vw, 2.25rem);
  --t-h2:     clamp(2rem, 1.4rem + 2.9vw, 4.25rem);
  --t-h1:     clamp(2.75rem, 1.5rem + 5.6vw, 7rem);
  --t-mega:   clamp(3.25rem, 1rem + 9.5vw, 11rem);

  --lh-tight:  0.92;
  --lh-snug:   1.06;
  --lh-normal: 1.5;
  --lh-loose:  1.62;

  --track-mega:  -0.045em;
  --track-tight: -0.025em;
  --track-label:  0.14em;
  --track-wide:   0.24em;

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

  --gutter: clamp(20px, 4.6vw, 72px);
  --section-y: clamp(72px, 9vw, 168px);
  --max: 1680px;

  /* ---- Motion -----------------------------------------------------------
     Quick. Nothing here should ever make somebody wait to interact. */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --dur-fast: 140ms;
  --dur: 260ms;
  --dur-slow: 520ms;

  --header-h: 76px;
  --announce-h: 38px;
  --radius: 2px;       /* corners are a whisper, never a bubble */
  --radius-pill: 999px;
}

@media (max-width: 860px) {
  :root { --header-h: 62px; --announce-h: 34px; }
}

/* ---- Reset -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: var(--t-body);
  line-height: var(--lh-normal);
  font-weight: 400;
  letter-spacing: -0.008em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-synthesis-weight: none;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
svg { height: auto; }

input, button, textarea, select { font: inherit; color: inherit; letter-spacing: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4, h5, h6 { font-weight: 600; line-height: var(--lh-snug); letter-spacing: var(--track-tight); }

ul, ol { list-style: none; padding: 0; }

hr { border: 0; border-top: 1px solid var(--border); }

/* Class-level `display` beats the UA sheet, so make `hidden` mean it. */
[hidden] { display: none !important; }

::selection { background: var(--ink); color: var(--paper); }

/* Visible focus, always. Never remove it — just make it look deliberate. */
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 1px;
}
:focus:not(:focus-visible) { outline: none; }

/* ---- Type helpers ------------------------------------------------------- */
.display {
  font-size: var(--t-h1);
  line-height: var(--lh-tight);
  letter-spacing: var(--track-mega);
  font-weight: 600;
  text-wrap: balance;
}
.display--mega { font-size: var(--t-mega); }
.h2 { font-size: var(--t-h2); line-height: var(--lh-tight); letter-spacing: -0.035em; font-weight: 600; text-wrap: balance; }
.h3 { font-size: var(--t-h3); letter-spacing: -0.03em; font-weight: 600; }
.h4 { font-size: var(--t-h4); letter-spacing: -0.02em; font-weight: 600; }

.serif { font-family: var(--font-serif); font-weight: 400; letter-spacing: -0.015em; }
.serif-italic { font-family: var(--font-serif); font-style: italic; font-weight: 400; }

.lead { font-size: var(--t-lead); line-height: 1.38; color: var(--fg-muted); letter-spacing: -0.015em; text-wrap: pretty; }
.body-muted { color: var(--fg-muted); }
.small { font-size: var(--t-small); }

.label {
  font-size: var(--t-micro);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  font-weight: 500;
  color: var(--fg-muted);
  line-height: 1;
}
.label--ink { color: var(--fg); }

.num { font-variant-numeric: tabular-nums; }

/* ---- Layout ------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: 1120px; }
.wrap--text { max-width: 760px; }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(48px, 6vw, 104px); }
.section--warm { background: var(--bg-alt); }
.section--ink { background: var(--ink); color: var(--paper); --border: #2E2E33; --fg-muted: #9A9CA2; --fg-subtle: #9A9CA2; --focus: var(--paper); }

.grid { display: grid; gap: var(--gutter); grid-template-columns: repeat(12, minmax(0, 1fr)); }

.rule { border-top: 1px solid var(--border); }

/* Section headers: a hairline, a tiny index, an oversized line. */
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-4);
  padding-top: var(--s-5);
  border-top: 1px solid var(--border);
  margin-bottom: clamp(32px, 4vw, 72px);
}
.section-head__meta { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-5); }
.section-head__title { max-width: 22ch; }
.section-head__sub { color: var(--fg-muted); max-width: 46ch; font-size: var(--t-lead); line-height: 1.35; letter-spacing: -0.015em; }

@media (min-width: 900px) {
  .section-head--split { grid-template-columns: 1fr auto; align-items: end; }
  .section-head--split .section-head__meta { grid-column: 1 / -1; }
}

/* ---- Utilities ---------------------------------------------------------- */
.stack > * + * { margin-top: var(--s-4); }
.stack-sm > * + * { margin-top: var(--s-2); }
.stack-lg > * + * { margin-top: var(--s-6); }
.row { display: flex; align-items: center; gap: var(--s-3); }
.row--wrap { flex-wrap: wrap; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 300;
  background: var(--ink); color: var(--paper);
  padding: 12px 18px; font-size: var(--t-small); font-weight: 500;
  transform: translateY(-160%);
  transition: transform var(--dur-fast) var(--ease);
}
.skip-link:focus { transform: translateY(0); }

.hide-sm { }
@media (max-width: 760px) { .hide-sm { display: none !important; } }
@media (min-width: 761px) { .show-sm { display: none !important; } }

/* ---- Scroll reveal ------------------------------------------------------
   Opacity + a few pixels. Content is never gated behind the animation:
   everything is readable and clickable the moment it exists. */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 620ms var(--ease-out), transform 620ms var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
html.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ---- Print -------------------------------------------------------------- */
@media print {
  .site-header, .site-footer, .announce, .cart-drawer, .finder { display: none !important; }
}
