/* ============================================================
   IMCG I-8/3  —  Design tokens (QUAD system)
   Every colour, size, and rhythm value lives here. Re-skin the
   whole site by editing this one file.
   ============================================================ */
:root {
  /* ── Brand palette ── */
  --c-forest:      #1A312C;
  --c-teal:        #428475;
  --c-teal-dark:   #2E6557;   /* AA on cream for links/labels */
  --c-teal-deep:   #1F4A3D;   /* AA on white/cream for body-size links */
  --c-mint:        #89D7B7;
  --c-mint-tint:   #E6F7F0;   /* mint surface; forest text on top = ~12:1 */
  --c-mint-tint2:  #D2EFE3;   /* deeper mint for borders/rings */
  --c-cream:       #FFF4E1;   /* page "paper" */
  --c-white:       #FFFFFF;
  --c-near-black:  #0E1F1B;   /* button hover darkening */

  /* ── Semantic roles ── */
  --bg-page:       var(--c-cream);
  --bg-panel:      var(--c-white);
  --bg-mint:       var(--c-mint-tint);
  --bg-forest:     var(--c-forest);
  --text-body:     var(--c-forest);
  --text-muted:    #3D5C52;   /* 7:1 on cream */
  --text-on-dark:  var(--c-cream);
  --link-color:    var(--c-teal-deep);
  --link-hover:    var(--c-teal-dark);
  --border-soft:   #C9E8DB;
  --border-medium: #A0CDB9;

  /* ── Buttons ── */
  --btn-primary-bg:     var(--c-forest);
  --btn-primary-text:   var(--c-cream);
  --btn-secondary-bg:   var(--c-teal-dark);
  --btn-secondary-text: var(--c-cream);

  /* ── Typography ── */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body:    'Figtree', system-ui, -apple-system, sans-serif;

  --text-xs:   0.75rem;    /* 12px */
  --text-sm:   0.875rem;   /* 14px */
  --text-base: 1.0625rem;  /* 17px */
  --text-lg:   1.1875rem;  /* 19px */
  --text-xl:   1.375rem;   /* 22px */
  --text-2xl:  1.75rem;    /* 28px */
  --text-3xl:  2.25rem;    /* 36px */
  --text-4xl:  3rem;       /* 48px */
  --text-5xl:  3.75rem;    /* 60px */

  --lh-tight:   1.2;
  --lh-snug:    1.35;
  --lh-normal:  1.6;
  --lh-relaxed: 1.75;

  --ls-tight: -0.02em;
  --ls-normal: 0;
  --ls-wide:   0.04em;
  --ls-wider:  0.08em;

  /* ── Spacing (8px base) ── */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* ── Radius ── */
  --r-sm:   6px;
  --r-md:   12px;
  --r-lg:   20px;
  --r-xl:   32px;
  --r-2xl:  48px;
  --r-pill: 9999px;

  /* ── Shadows (forest-tinted, never pure black) ── */
  --shadow-xs: 0 1px 3px rgba(26,49,44,0.06), 0 1px 2px rgba(26,49,44,0.04);
  --shadow-sm: 0 2px 8px rgba(26,49,44,0.08), 0 1px 3px rgba(26,49,44,0.05);
  --shadow-md: 0 4px 16px rgba(26,49,44,0.10), 0 2px 6px rgba(26,49,44,0.06);
  --shadow-lg: 0 8px 32px rgba(26,49,44,0.12), 0 4px 12px rgba(26,49,44,0.07);
  --shadow-xl: 0 16px 48px rgba(26,49,44,0.14), 0 6px 18px rgba(26,49,44,0.08);

  /* ── Layout widths ── */
  --max-w-narrow: 680px;
  --max-w-prose:  800px;
  --max-w-wide:  1100px;
  --max-w-full:  1280px;
  --header-h:     69px;   /* sticky header height, for scroll offsets */

  /* ── Motion ── */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 180ms;
  --dur-norm: 280ms;
  --dur-slow: 400ms;
}
