/* =========================================================
   The Loraxians — tasarım token'ları (a02 Palet)
   Açık tema varsayılan · koyu tema: :root[data-theme="dark"]
   Bölüm CSS'lerinde renkleri YALNIZCA bu değişkenlerden al.
   Kontrast: gövde metni her iki temada ≥ 4.5:1 (WCAG AA).
   ========================================================= */

:root {
  color-scheme: light;

  /* --- Marka sabitleri (iki temada aynı) --- */
  --lime: #b8f04a;
  --orange: #f39a1e; /* yıl rozetleri */
  --lilac: #d59ad3; /* BIOGLOW "Founders Edition" şeridi */
  --leaf: #5fa51f;
  --forest: #1e5235;
  --ink: #121a21;
  --fll-red: #ed1c24;
  --fll-blue: #0067b1;

  /* --- Yüzeyler ve metin --- */
  --bg: #f3f0e6; /* krem zemin */
  --bg-alt: #e8ecdc; /* alternatif bant (açık adaçayı) */
  --surface: #fffdf8; /* kart */
  --surface-2: #f6f2e7; /* iç içe / hover */
  --text: #12261c; /* koyu orman */
  --muted: #4f6357;
  --border: #e2dccb;
  --border-strong: #7a8b7e; /* form kenarları: ≥ 3:1 */

  /* --- Etkileşim --- */
  --primary: #1f6b3a; /* orman yeşili */
  --primary-hover: #17552e;
  --on-primary: #ffffff;
  --accent: var(--lime); /* açık temada YALNIZCA zemin/vurgu, metin değil */
  --on-accent: #12261c;

  /* --- Durum renkleri (metin olarak da ≥ 4.5:1) --- */
  --success: #1d773a;
  --warning: #965800;
  --danger: #c0262d;
  --on-danger: #ffffff;
  --info: #0b63a6;

  --focus: #0067b1; /* odak halkası */
  --glow: rgba(95, 165, 31, 0.28);

  /* --- Yazı --- */
  --font-head: 'Montserrat', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-body: 'Fira Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
  --fs-xs: clamp(0.75rem, 0.73rem + 0.08vw, 0.8125rem); /* 12–13 */
  --fs-sm: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem); /* 14–15 */
  --fs-base: clamp(1rem, 0.96rem + 0.18vw, 1.0625rem); /* 16–17 */
  --fs-lg: clamp(1.125rem, 1.05rem + 0.3vw, 1.25rem); /* 18–20 */
  --fs-xl: clamp(1.25rem, 1.12rem + 0.55vw, 1.5rem); /* 20–24 */
  --fs-2xl: clamp(1.5rem, 1.25rem + 1vw, 2rem); /* 24–32 */
  --fs-3xl: clamp(1.875rem, 1.45rem + 1.8vw, 2.75rem); /* 30–44 */
  --fs-4xl: clamp(2.25rem, 1.6rem + 2.9vw, 3.75rem); /* 36–60 */
  --lh: 1.6;
  --lh-tight: 1.15;

  /* --- Boşluk: 4 · 8 · 12 · 16 · 24 · 32 · 48 · 64 · 96 px --- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;

  /* --- Köşe --- */
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  /* --- Gölge --- */
  --shadow-sm: 0 1px 2px rgba(18, 38, 28, 0.06), 0 1px 3px rgba(18, 38, 28, 0.08);
  --shadow: 0 2px 4px rgba(18, 38, 28, 0.05), 0 8px 24px rgba(18, 38, 28, 0.09);
  --shadow-lg: 0 4px 10px rgba(18, 38, 28, 0.06), 0 20px 48px rgba(18, 38, 28, 0.16);
  --shadow-glow: 0 0 0 1px rgba(95, 165, 31, 0.22), 0 10px 30px rgba(95, 165, 31, 0.2);

  /* --- Hareket --- */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur-fast: 150ms;
  --dur: 250ms;

  /* --- Yerleşim --- */
  --container: 1200px;
  --container-narrow: 760px;
  --gutter: clamp(1rem, 4vw, 2rem); /* kenar boşluğu */
  --header-h: 72px;
}

@media (max-width: 639.98px) {
  :root {
    --header-h: 64px;
  }
}

/* ---------------- Koyu tema (biyolüminesan orman) ---------------- */
:root[data-theme="dark"] {
  color-scheme: dark;

  --bg: #0b1a13;
  --bg-alt: #0e241b;
  --surface: #12271c;
  --surface-2: #183326;
  --text: #eaf3e6;
  --muted: #a9bdb0;
  --border: #25402f;
  --border-strong: #5b8169;

  --primary: #b8f04a; /* limon; üstünde koyu metin */
  --primary-hover: #cbf57a;
  --on-primary: #0b1a13;
  --accent: #b8f04a;
  --on-accent: #0b1a13;

  --success: #6fd68e;
  --warning: #f5b54a;
  --danger: #ff8a80;
  --on-danger: #2a0b0b;
  --info: #7cc0f7;

  --focus: #7cc4ff;
  --glow: rgba(184, 240, 74, 0.35);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow: 0 2px 4px rgba(0, 0, 0, 0.3), 0 10px 28px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 6px 12px rgba(0, 0, 0, 0.35), 0 24px 56px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 0 1px rgba(184, 240, 74, 0.28), 0 0 28px rgba(184, 240, 74, 0.2), 0 10px 32px rgba(0, 0, 0, 0.4);
}

/* Hareket azaltma tercihi: geçişler anlık */
@media (prefers-reduced-motion: reduce) {
  :root {
    --dur-fast: 1ms;
    --dur: 1ms;
  }
}
