/* ==========================================================================
   Design tokens – DXN Edina Vital
   The single source of truth for colours, type, spacing, radii, shadows and
   motion. Components reference these; never hard-code values elsewhere.
   Documented live in /design-system.html.
   ========================================================================== */
:root {
  /* ── Palette ── */
  --sage:        #8aab7e;
  --sage-deep:   #6a9060;
  --sage-light:  #b5cead;
  --sage-pale:   #deecd9;
  --sage-mist:   #f0f6ee;
  --bark:        #7a5c3e;
  --bark-light:  #a8835f;
  --bark-pale:   #e8d9c8;
  --earth:       #5a4030;
  --cream:       #faf7f2;
  --rose:        #c4879a;
  --rose-light:  #d9a8b6;
  --rose-pale:   #fdf0f3;
  --rose-deep:   #e8c4cd;
  --rose-dark:   #a3566e;
  --text:        #2e2e2e;
  --text-mid:    #5a5a5a;
  --white:       #ffffff;

  /* ── Semantic colours ── */
  --color-bg:            var(--cream);
  --color-surface:       var(--white);
  --color-surface-soft:  var(--sage-mist);
  --color-text:          var(--text);
  --color-text-muted:    var(--text-mid);
  --color-heading:       var(--earth);
  --color-accent:        var(--sage);
  --color-accent-strong: var(--bark);
  --color-accent-soft:   var(--sage-pale);
  --color-border:        var(--bark-pale);
  --color-highlight:     var(--rose-dark);
  --color-error:         var(--rose-dark);
  --color-success:       var(--sage-deep);
  --color-focus-ring:    rgba(138, 171, 126, .15);
  --color-overlay:       rgba(90, 64, 48, .55);
  --color-nav-bg:        rgba(250, 247, 242, .88);
  --color-nav-border:    rgba(138, 171, 126, .2);

  /* ── Typography ── */
  --font-serif: 'Cormorant Garamond', serif;
  --font-sans:  'Jost', sans-serif;
  --fw-light:   300;
  --fw-regular: 400;
  --fw-medium:  500;

  --fs-display: clamp(2.6rem, 5vw, 4.2rem);  /* h1 */
  --fs-h2:      clamp(2rem, 4vw, 3rem);
  --fs-h3:      1.3rem;
  --fs-body:    1rem;
  --fs-sm:      .88rem;
  --fs-xs:      .8rem;
  --fs-label:   .72rem;                       /* uppercase eyebrow labels */

  --lh-tight:   1.2;
  --lh-body:    1.7;
  --lh-relaxed: 1.9;

  --tracking-label:  .18em;
  --tracking-button: .12em;

  /* ── Spacing ── */
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 5rem;
  --space-9: 6rem;
  --gutter:  8vw;                             /* horizontal page padding */
  --gutter-nav: 6vw;

  /* ── Radii ── */
  --radius-sm:   .75rem;
  --radius-md:   1.2rem;
  --radius-lg:   1.5rem;
  --radius-xl:   2rem;
  --radius-pill: 3rem;
  --radius-full: 50%;

  /* ── Shadows (tinted with --earth / --sage) ── */
  --shadow-xs:     0 2px 16px rgba(90, 64, 48, .06);
  --shadow-sm:     0 4px 20px rgba(90, 64, 48, .1);
  --shadow-md:     0 16px 40px rgba(90, 64, 48, .12);
  --shadow-lg:     0 32px 80px rgba(90, 64, 48, .22);
  --shadow-accent: 0 4px 20px rgba(138, 171, 126, .35);
  --shadow-hover:  0 8px 28px rgba(122, 92, 62, .3);

  /* ── Motion ── */
  --dur-fast: .2s;
  --dur:      .3s;
  --dur-slow: .6s;
  --ease-out: cubic-bezier(.22, .68, 0, 1.2);
  --lift:     translateY(-6px);              /* card hover */
  --lift-sm:  translateY(-2px);              /* button hover */

  /* ── Layers ── */
  --z-nav:   100;
  --z-modal: 999;
}
