/* =========================================================
   DESIGN TOKENS — Ritvikk's Tooth Clinic
   Editorial premium with cinematic dark interlude.
   Reference: lando-style scroll drama × jeton-style clean fintech.
   ========================================================= */

:root {
  /* ---------- Colors (light, default) ---------- */
  --c-ivory:        oklch(0.985 0.004 85);   /* warm off-white base */
  --c-ivory-2:      oklch(0.965 0.005 80);   /* slightly deeper */
  --c-bone:         oklch(0.935 0.008 80);   /* surface alt */
  --c-mist:         oklch(0.88  0.012 200);  /* subtle cool tint */

  --c-ink:          oklch(0.16  0.018 250);  /* deep cool black for dark sections */
  --c-ink-2:        oklch(0.22  0.015 250);  /* slightly lifted ink */
  --c-graphite:     oklch(0.30  0.012 250);  /* secondary text on dark */

  --c-text:         oklch(0.22  0.012 250);  /* body */
  --c-text-soft:    oklch(0.45  0.010 250);
  --c-text-mute:    oklch(0.60  0.010 250);

  --c-line:         oklch(0.88  0.008 250);
  --c-line-strong:  oklch(0.78  0.010 250);
  --c-line-dark:    oklch(0.30  0.015 250);

  --c-accent:       oklch(0.72  0.07  195);  /* enamel teal — single accent */
  --c-accent-deep:  oklch(0.55  0.08  195);
  --c-accent-soft:  oklch(0.94  0.025 195);

  --c-whatsapp:     oklch(0.74  0.16  150);
  --c-whatsapp-hv:  oklch(0.66  0.18  150);

  /* Aliases mapping to existing repo names so legacy pages still render */
  --color-bg:           var(--c-ivory);
  --color-bg-alt:       var(--c-bone);
  --color-surface:      var(--c-ivory);
  --color-surface-alt:  var(--c-bone);
  --color-text:         var(--c-text);
  --color-text-muted:   var(--c-text-soft);
  --color-text-soft:    var(--c-text-mute);
  --color-text-inverse: var(--c-ivory);
  --color-primary:        var(--c-ink);
  --color-primary-hover:  var(--c-ink-2);
  --color-primary-soft:   var(--c-accent-soft);
  --color-accent:         var(--c-accent);
  --color-border:         var(--c-line);
  --color-border-strong:  var(--c-line-strong);
  --color-success:  oklch(0.65 0.15 150);
  --color-warning:  oklch(0.75 0.13 75);
  --color-danger:   oklch(0.62 0.20 25);
  --color-whatsapp: var(--c-whatsapp);
  --color-whatsapp-hover: var(--c-whatsapp-hv);

  /* ---------- Typography ---------- */
  --font-display: "Instrument Serif", "Times New Roman", Georgia, serif;
  --font-sans:    "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-serif:   var(--font-display); /* legacy alias */

  --fs-xs:   0.75rem;
  --fs-sm:   0.8125rem;
  --fs-base: 1rem;
  --fs-md:   1.125rem;
  --fs-lg:   1.25rem;
  --fs-xl:   1.5rem;
  --fs-2xl:  2rem;
  --fs-3xl:  2.75rem;
  --fs-4xl:  4rem;
  --fs-5xl:  5.5rem;
  --fs-6xl:  8rem;
  --fs-7xl:  12rem;

  --lh-tight: 0.95;
  --lh-snug:  1.1;
  --lh-base:  1.55;
  --lh-loose: 1.7;

  --fw-regular:  400;
  --fw-medium:   500;
  --fw-semibold: 600;
  --fw-bold:     700;

  --tr-tight:  -0.04em;
  --tr-snug:   -0.02em;
  --tr-base:   -0.01em;
  --tr-wide:    0.06em;
  --tr-mono:    0.1em;

  /* ---------- Spacing ---------- */
  --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;
  --space-40: 10rem;

  /* ---------- Layout ---------- */
  --container-max:    1320px;
  --container-narrow: 820px;
  --container-wide:   1560px;
  --gutter:           clamp(1.25rem, 3vw, 2.5rem);
  --content-max:      70ch;

  /* ---------- Radii ---------- */
  --radius-xs:  4px;
  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  20px;
  --radius-xl:  32px;
  --radius-2xl: 48px;
  --radius-full: 9999px;

  /* ---------- Shadows ---------- */
  --shadow-xs:  0 1px 2px rgba(15, 20, 35, 0.04);
  --shadow-sm:  0 2px 6px rgba(15, 20, 35, 0.05);
  --shadow-md:  0 10px 28px -10px rgba(15, 20, 35, 0.12);
  --shadow-lg:  0 30px 60px -20px rgba(15, 20, 35, 0.18);
  --shadow-xl:  0 50px 100px -30px rgba(15, 20, 35, 0.28);
  --shadow-glow: 0 0 0 1px rgba(15, 20, 35, 0.04), 0 30px 80px -30px rgba(15, 20, 35, 0.25);

  /* ---------- Motion ---------- */
  --d-fast: 200ms;
  --d-base: 400ms;
  --d-slow: 700ms;
  --d-xlong: 1200ms;
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-soft:   cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-expo:   cubic-bezier(0.19, 1, 0.22, 1);

  /* legacy aliases */
  --duration-fast: var(--d-fast);
  --duration-base: var(--d-base);
  --duration-slow: var(--d-slow);

  /* ---------- z-index ---------- */
  --z-canvas:   1;
  --z-content:  10;
  --z-nav:      100;
  --z-floating: 200;
  --z-modal:    1000;
  --z-toast:    2000;
}
