/* ===========================================================================
   Origna · design tokens
   Spec §3. Single source of truth for colour, type, spacing, layout, motion.
   =========================================================================== */

:root {
  /* brand */
  --primary: #982165;        /* Origna primary + logo colour. CTAs, links, wordmark, accents */
  --plum: #560E45;           /* Deep plum: dark bands, night sections, footer */
  --warm-white: #F3EFE6;     /* Sand: main page background */
  --paper: #FBF9F4;          /* lightest surface: cards on sand */
  --cream: #F5EDDC;          /* text on plum / primary */
  --ink: #343538;            /* body text on light */
  --gold: #C9A961;           /* hairlines and small chips on dark only. Never large fills, never foil */
  --green: #065745;          /* ACCENT ONLY: verified tick, provenance dot. Never a background */

  /* supports (pastels: fills, illustration, never text on light) */
  --butter: #F4E3C1;
  --sky: #8DCDE2;
  --orchid: #DDA2CB;
  --rose: #E9AAA7;

  /* flat premium product colours (mode B illustration only) */
  --cocoa: #5A3A2E;
  --caramel: #C48A4A;

  /* lines */
  --line: rgba(52, 53, 56, .14);
  --line-on-dark: rgba(245, 237, 220, .18);

  /* type */
  --font-display: "Canela", "Iowan Old Style", Georgia, serif;
  --font-sans: "Suisse Intl", "Helvetica Neue", Arial, system-ui, sans-serif;

  /* spacing (4 px base) */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px;
  --s7: 48px; --s8: 64px; --s9: 96px; --s10: 144px;

  /* layout */
  --max: 1440px;
  --gutter: clamp(20px, 4vw, 48px);
  --band-y: clamp(96px, 14vw, 200px);
  --section-pad-y: clamp(48px, 5vw, 72px);   /* the tighter rhythm for the mid-page sections */
  --section-pad-top: 120px;        /* the mid-page sections: air above, phone */
  --section-pad-bottom: 64px;      /* and less below */

  /* motion */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --radius-card: 0;          /* square corners, always */
  --radius-pill: 999px;

  /* type scale (spec §4) */
  --t-display-xl: clamp(34px, 5vw, 76px);         /* H1: the H2 style, one step larger */
  --t-display-l: clamp(29px, 4.2vw, 64px);       /* H2 */
  --t-display-m: clamp(25px, 3.1vw, 46px);
  --t-quote: clamp(24px, 2.8vw, 40px);
  --t-body-l: clamp(17px, 1.35vw, 20px);
  --t-body: 16px;
  --t-eyebrow: 12px;
  --t-button: 15px;

  /* runtime: current band, so the header can invert itself */
  --on-dark: 0;

  /* header height, used for anchor offsets */
  --head-row: 64px;          /* the nav row itself */
  --header-h: 97px;          /* row + announcement bar + hairline; measured again at runtime */
}

/* Per-band tokens. Sections set these; everything inside reads them, so a band
   change is one class, not a cascade of overrides. */
.band-light {
  --bg: var(--warm-white);
  --fg: var(--ink);
  --accent: var(--primary);
  --hair: var(--line);
}
.band-paper {
  --bg: var(--paper);
  --fg: var(--ink);
  --accent: var(--primary);
  --hair: var(--line);
}
.band-butter {
  /* Butter at 55% over warm white (spec §6.10) */
  --bg: color-mix(in srgb, var(--butter) 55%, var(--warm-white));
  --fg: var(--ink);
  --accent: var(--primary);
  --hair: var(--line);
}
.band-plum {
  --bg: var(--plum);
  --fg: var(--cream);
  --accent: var(--cream);
  --hair: var(--line-on-dark);
}
.band-primary {
  --bg: var(--primary);
  --fg: var(--cream);
  --accent: var(--cream);
  --hair: rgba(245, 237, 220, .24);
}

@media (min-width: 1024px) {
  :root { --head-row: 72px; --header-h: 105px; --section-pad-top: 200px; --section-pad-bottom: 100px; }
}
