/* ==========================================================================
   SANCTUARY GOLD — Design tokens
   The single source of truth for colour, type, space, motion and elevation.
   Nothing else in the stylesheet should hard-code a value that lives here.
   ========================================================================== */

:root {
  /* ---- Colour: surfaces ------------------------------------------------ */
  --c-ivory: #fbf8f2; /* page ground — warm, like altar linen */
  --c-paper: #fffdf8; /* raised surfaces: cards, panels */
  --c-parchment: #f4eee2; /* alternating section bands */
  --c-vellum: #ece3d2; /* deepest light band, table rules */

  /* ---- Colour: ink ----------------------------------------------------- */
  --c-ink: #2b1b14; /* headings and body */
  --c-ink-soft: #5a4639; /* secondary prose */
  --c-ink-mute: #8a7868; /* captions, metadata */

  /* ---- Colour: liturgical accents -------------------------------------- */
  --c-oxblood: #6e1423; /* primary accent — vestment red */
  --c-oxblood-deep: #4e0e19; /* hover, deep panels */
  --c-oxblood-wash: #f6ebec; /* tinted backgrounds */

  --c-gold: #b08d3f; /* rules, marks, small ornament */
  --c-gold-bright: #d4b86a; /* highlights on dark */
  --c-gold-pale: #e7d9b4; /* hairlines on light */
  --c-gold-wash: #faf3e2; /* gilded panel tint */

  /* ---- Colour: dark ground (footer, launch, cinematic bands) ----------- */
  --c-night: #1a1009;
  --c-night-soft: #2a1c12;

  /* ---- Colour: functional ---------------------------------------------- */
  --c-focus: #8a5a12;
  --c-rule: rgba(43, 27, 20, 0.14);
  --c-rule-soft: rgba(43, 27, 20, 0.08);

  /* ---- Typography ------------------------------------------------------ */
  --font-display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --font-text: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Fluid type scale. Each step is clamp(min, preferred, max). */
  --t-hero: clamp(2.75rem, 1.6rem + 5.1vw, 6rem);
  --t-display: clamp(2.25rem, 1.5rem + 3.2vw, 4rem);
  --t-title: clamp(1.75rem, 1.3rem + 1.9vw, 2.75rem);
  --t-section: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem);
  --t-lead: clamp(1.0625rem, 1rem + 0.4vw, 1.3125rem);
  --t-body: 1.0625rem;
  --t-small: 0.9375rem;
  --t-caption: 0.8125rem;
  --t-eyebrow: 0.6875rem;

  --lh-tight: 1.08;
  --lh-snug: 1.25;
  --lh-body: 1.75;
  --lh-loose: 1.9;

  --ls-eyebrow: 0.3em;
  --ls-nav: 0.14em;
  --ls-caps: 0.18em;

  /* ---- Space ----------------------------------------------------------- */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;
  --s-10: 8rem;

  /* Vertical rhythm of a full-width section, fluid between phone and desk. */
  --section-y: clamp(4rem, 2rem + 7vw, 8.5rem);

  /* ---- Layout ---------------------------------------------------------- */
  --w-page: 1240px; /* outer container */
  --w-content: 1080px; /* standard content column */
  --w-prose: 68ch; /* comfortable reading measure */
  --gutter: clamp(1.25rem, 0.6rem + 2.6vw, 3rem);
  --header-h: 82px;

  /* ---- Elevation ------------------------------------------------------- */
  --shadow-sm: 0 1px 2px rgba(43, 27, 20, 0.06), 0 2px 8px rgba(43, 27, 20, 0.04);
  --shadow-md: 0 2px 6px rgba(43, 27, 20, 0.07), 0 12px 32px rgba(43, 27, 20, 0.08);
  --shadow-lg: 0 4px 12px rgba(43, 27, 20, 0.08), 0 28px 64px rgba(43, 27, 20, 0.12);
  --shadow-gold: 0 10px 40px rgba(176, 141, 63, 0.22);

  /* ---- Shape ----------------------------------------------------------- */
  --r-sm: 2px;
  --r-md: 4px;
  --r-lg: 8px;
  --r-pill: 999px;

  /* ---- Motion ---------------------------------------------------------- */
  --e-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --e-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --e-sacred: cubic-bezier(0.16, 1, 0.3, 1); /* long, reverent settle */
  --d-fast: 180ms;
  --d-base: 320ms;
  --d-slow: 700ms;
  --d-vast: 1600ms;
}

/* Honour the operating-system preference for reduced motion everywhere. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
