/* ==========================================================================
   A Bit of Shine — Design tokens
   Single source of truth for colour, type, spacing and motion.
   These map 1:1 to a future WordPress theme.json / theme stylesheet.
   ========================================================================== */

:root {
  /* Colour — strictly black and white.
     Tints below are transparent black/white, not new colours; they are used
     only for hairlines, secondary text and image placeholders. */
  --c-black: #000000;
  --c-white: #FFFFFF;

  --ink: var(--c-black);
  --paper: var(--c-white);
  --ink-70: rgba(0, 0, 0, 0.7);
  --ink-50: rgba(0, 0, 0, 0.5);
  --line: rgba(0, 0, 0, 0.12);
  --tint: rgba(0, 0, 0, 0.035);
  --paper-70: rgba(255, 255, 255, 0.7);
  --paper-line: rgba(255, 255, 255, 0.18);
  --glow: rgba(255, 255, 255, 0.09);      /* soft highlight in dark placeholders */

  /* Typography */
  --font-display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --font-body: "Jost", "Futura", "Helvetica Neue", Arial, sans-serif;

  /* Display scale (fluid) */
  /* Hero size is tied to its column width so "REMEMBERED" never clips */
  --fs-hero: clamp(2.75rem, 5.5vw, 5.1rem);
  --fs-h1: clamp(2.6rem, 1.5rem + 4.4vw, 6rem);
  --fs-h2: clamp(2rem, 1.3rem + 2.6vw, 3.9rem);
  --fs-h3: clamp(1.35rem, 1.1rem + 0.9vw, 1.9rem);
  --fs-quote: clamp(1.7rem, 1.1rem + 2.4vw, 3.4rem);

  /* Text scale */
  --fs-body: 0.9375rem;   /* 15px */
  --fs-lead: 1.0625rem;   /* 17px */
  --fs-small: 0.8125rem;  /* 13px */
  --fs-label: 0.6875rem;  /* 11px */
  --fs-micro: 0.625rem;   /* 10px */

  --tracking-label: 0.24em;
  --tracking-nav: 0.18em;
  --tracking-display: -0.012em;

  /* Spacing (8px rhythm) */
  --s-1: 0.5rem;
  --s-2: 1rem;
  --s-3: 1.5rem;
  --s-4: 2rem;
  --s-5: 3rem;
  --s-6: 4rem;
  --s-7: 6rem;
  --s-8: 8rem;
  --section-y: clamp(5rem, 3rem + 7vw, 10rem);

  /* Layout */
  --gutter: clamp(1rem, 0.4rem + 2.6vw, 3rem);
  --max-w: 1440px;
  --header-h: 76px;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 240ms;
  --t-med: 520ms;
  --t-slow: 1100ms;
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }
}

/* --------------------------------------------------------------------------
   Dark page theme — pages alternate black / white
   (Home, Best Sellers, Contact = dark; About, Shop = light).
   Swapping the tokens flips every component at once; sections marked
   .is-dark inside a dark page flip to white, so the rhythm keeps alternating.
   -------------------------------------------------------------------------- */
:root.theme-dark {
  color-scheme: dark;
  --ink: var(--c-white);
  --paper: var(--c-black);
  --ink-70: rgba(255, 255, 255, 0.72);
  --ink-50: rgba(255, 255, 255, 0.55);
  --line: rgba(255, 255, 255, 0.18);
  --tint: rgba(255, 255, 255, 0.06);
  --paper-70: rgba(0, 0, 0, 0.7);
  --paper-line: rgba(0, 0, 0, 0.14);
  --glow: rgba(0, 0, 0, 0.05);
}

/* A single white section inside a dark page (e.g. All Stock on Home) */
.theme-light {
  color-scheme: light;
  --ink: var(--c-black);
  --paper: var(--c-white);
  --ink-70: rgba(0, 0, 0, 0.7);
  --ink-50: rgba(0, 0, 0, 0.5);
  --line: rgba(0, 0, 0, 0.12);
  --tint: rgba(0, 0, 0, 0.035);
  --paper-70: rgba(255, 255, 255, 0.7);
  --paper-line: rgba(255, 255, 255, 0.18);
  --glow: rgba(255, 255, 255, 0.09);
  background: var(--paper);
  color: var(--ink);
}
