/* =====================================================================
   BAAYN DESIGN SYSTEM — TOKENS
   Single source of truth for colour, type, space, shape and motion.
   Every other stylesheet reads from these custom properties.
   ===================================================================== */

:root {
  /* ---------- Colour: raw palette ----------
     Walnut   — the logo brown; carved wood, ink, text.
     Paper    — pashmina ivory; backgrounds and surfaces.
     Chinar   — the autumn leaf red; the brand accent.
     Saffron  — Pampore gold; highlights, prices, small moments.
     Lake     — Dal Lake slate; cool counterweight, used sparingly.
     Moss     — garden green; botanical details only.            */
  --walnut-950: #1c0f09;
  --walnut-900: #2b1810;
  --walnut-800: #47250f;   /* logo colour */
  --walnut-700: #5c3420;
  --walnut-600: #6e4129;
  --walnut-400: #a07a5f;
  --walnut-200: #d6c2b0;

  --paper-0:   #fffdf9;
  --paper-50:  #fbf7f1;
  --paper-100: #f5ede2;
  --paper-200: #ebddcb;
  --paper-300: #dfcbb3;

  --chinar-700: #8a1f17;
  --chinar-600: #a8281e;
  --chinar-500: #c23b2d;
  --chinar-100: #f6ddd5;

  --saffron-600: #c47f1a;
  --saffron-500: #e09a2d;
  --saffron-300: #f2c46d;
  --saffron-100: #fbefd6;

  --lake-700: #2f4a52;
  --lake-600: #3f5f68;
  --lake-200: #c9d8da;

  --moss-600: #56663a;

  /* ---------- Colour: semantic roles ---------- */
  --color-bg:            var(--paper-50);
  --color-bg-sunk:       var(--paper-100);
  --color-surface:       var(--paper-0);
  --color-surface-tint:  var(--paper-200);
  --color-ink:           var(--walnut-900);
  --color-ink-soft:      var(--walnut-600);
  --color-ink-mute:      var(--walnut-400);
  --color-line:          color-mix(in srgb, var(--walnut-800) 16%, transparent);
  --color-line-strong:   color-mix(in srgb, var(--walnut-800) 40%, transparent);
  --color-accent:        var(--chinar-600);
  --color-accent-hover:  var(--chinar-700);
  --color-highlight:     var(--saffron-500);
  --color-focus:         var(--saffron-500);

  /* Inverse (dark walnut chapters) */
  --color-bg-inverse:    var(--walnut-900);
  --color-ink-inverse:   var(--paper-50);
  --color-ink-inverse-soft: color-mix(in srgb, var(--paper-50) 68%, transparent);
  --color-line-inverse:  color-mix(in srgb, var(--paper-50) 18%, transparent);

  /* ---------- Typography ----------
     Display: Cormorant Garamond — editorial, calligraphic contrast.
     Sans:    Jost — geometric, echoes the wide, thin logo letters.   */
  --font-display: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --font-sans: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;

  --fs-hero:    clamp(3.25rem, 2rem + 6.4vw, 9rem);
  --fs-h1:      clamp(2.75rem, 1.8rem + 4.2vw, 6rem);
  --fs-h2:      clamp(2.1rem, 1.5rem + 2.6vw, 4rem);
  --fs-h3:      clamp(1.5rem, 1.2rem + 1.1vw, 2.25rem);
  --fs-h4:      clamp(1.2rem, 1.1rem + .4vw, 1.45rem);
  --fs-lede:    clamp(1.125rem, 1rem + .45vw, 1.4rem);
  --fs-body:    1.0625rem;
  --fs-small:   .9rem;
  --fs-micro:   .72rem;

  --lh-tight:   1;
  --lh-snug:    1.15;
  --lh-body:    1.65;

  --tracking-wide:  .32em;   /* eyebrows, nav — mirrors B A A Y N spacing */
  --tracking-mid:   .12em;
  --tracking-tight: -.015em;

  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;

  /* ---------- Space (4px base) ---------- */
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;
  --space-section: clamp(5rem, 3rem + 8vw, 11rem);
  --gutter: clamp(1rem, .5rem + 2.5vw, 3rem);
  --max-width: 85rem;
  --measure: 34rem;

  /* ---------- Shape ----------
     The arch is Baayn's signature frame — the pointed-round window of
     Kashmiri shrines and houseboats.                                     */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --radius-arch: 999px 999px var(--radius-md) var(--radius-md);

  --border-hair: 1px solid var(--color-line);

  /* ---------- Elevation (warm, low) ---------- */
  --shadow-1: 0 1px 2px rgb(43 24 16 / .06), 0 6px 18px -10px rgb(43 24 16 / .18);
  --shadow-2: 0 2px 6px rgb(43 24 16 / .06), 0 22px 48px -24px rgb(43 24 16 / .32);
  --shadow-3: 0 40px 90px -40px rgb(43 24 16 / .45);

  /* ---------- Motion ----------
     Slow in, softer out. Things in Baayn arrive like cloth settling.  */
  --ease-out:    cubic-bezier(.22, 1, .36, 1);      /* settle */
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);      /* glide */
  --ease-spring: cubic-bezier(.34, 1.4, .64, 1);    /* small pops only */
  --dur-1: 160ms;   /* hover, press */
  --dur-2: 320ms;   /* small state change */
  --dur-3: 700ms;   /* reveal */
  --dur-4: 1200ms;  /* scene change */

  /* ---------- Layers ---------- */
  --z-base: 1;
  --z-float: 10;
  --z-thread: 40;
  --z-header: 50;
  --z-overlay: 90;
  --z-preloader: 100;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --dur-1: 0ms;
    --dur-2: 0ms;
    --dur-3: 0ms;
    --dur-4: 0ms;
  }
}
