/* ==========================================================================
   Jafla Chai — design tokens. Change brand values here only.
   ========================================================================== */
:root {
  /* Brand colours */
  --forest-950: #082a1f;
  --forest-900: #0e3b2c;
  --forest-700: #1f5c45;
  --forest-500: #3f7d62;
  --forest-100: #dce9e1;

  --cream-50: #fbf8f1;
  --cream-100: #f6f0e4;
  --cream-200: #f1eadb;
  --cream-300: #e6dcc6;

  /* Gold sampled from the Jafla Chai logo ("CHAI" and the cup) */
  --gold-700: #8a5f1e;
  --gold-600: #a87b2e;
  --gold-500: #c99b40;
  --gold-400: #d4aa55;
  --gold-300: #e2c27a;
  --gold-100: #f6ecd6;
  --gold-gradient: linear-gradient(180deg, #d9b25c 0%, #c99b40 45%, #a87b2e 100%);
  --gold-text-gradient: linear-gradient(180deg, #c99b40 0%, #a87b2e 55%, #8a5f1e 100%);

  --ink: #1b2a23;          /* body text */
  --ink-soft: #4d5c55;     /* secondary text */
  --line: rgba(14, 59, 44, 0.14);
  --white: #ffffff;

  --success: #2f7d4f;
  --warning: #b7791f;
  --danger: #c0392b;

  /* Semantic */
  --bg: var(--cream-50);
  --surface: var(--white);
  --surface-alt: var(--cream-200);
  --text: var(--ink);
  --text-muted: var(--ink-soft);
  --heading: var(--forest-900);
  --action: var(--gold-500);
  --action-hover: var(--gold-600);
  --on-action: var(--forest-950);   /* text colour on gold buttons */
  --focus: var(--gold-600);

  /* Typography */
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display-ta: "Noto Serif Tamil", "Playfair Display", serif;
  --font-body-ta: "Noto Sans Tamil", "DM Sans", sans-serif;

  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --fs-xl: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem);
  --fs-2xl: clamp(2.25rem, 1.6rem + 2.6vw, 3.75rem);
  --fs-3xl: clamp(2.75rem, 1.8rem + 4vw, 5.25rem);

  --lh-tight: 1.1;
  --lh-snug: 1.3;
  --lh-body: 1.65;

  /* Spacing (8px scale) */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;
  --sp-10: 8rem;
  --section-y: clamp(4rem, 3rem + 5vw, 8rem);

  /* Layout */
  --container: 1240px;
  --container-narrow: 760px;
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --header-h: 76px;

  /* Shape & depth */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(8, 42, 31, 0.06), 0 1px 3px rgba(8, 42, 31, 0.08);
  --shadow: 0 6px 24px -8px rgba(8, 42, 31, 0.18);
  --shadow-lg: 0 24px 60px -20px rgba(8, 42, 31, 0.3);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 150ms;
  --dur: 300ms;
  --dur-slow: 700ms;

  /* Layers */
  --z-header: 50;
  --z-drawer: 80;
  --z-loader: 100;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --dur-fast: 0ms;
    --dur: 0ms;
    --dur-slow: 0ms;
  }
}
