/* ============================================================
   MULEGRAPH — Design Tokens
   THE SIGNAL IN THE DARK

   Palette (project palette only)
     Obsidian  #09090B   — the dark environment
     Purple    #7C3AED / #8B5CF6 — intelligence · network · analysis · structure
     Lime      #B8FF00   — signal · live · activation · decision · available
     White     #F7F7F7
     Muted     #A1A1AA
   Purple and Lime carry equal weight — neither is a small accent.
   ============================================================ */
:root {
  color-scheme: dark;

  /* ── Palette ── */
  --obsidian: #09090B;
  --purple: #7C3AED;
  --purple-2: #8B5CF6;
  --lime: #B8FF00;
  --white: #F7F7F7;
  --muted: #A1A1AA;

  /* ── Derived layers (mixed from the palette only) ── */
  --ink-1: color-mix(in srgb, var(--white) 3%, var(--obsidian));   /* raised surface */
  --ink-2: color-mix(in srgb, var(--white) 6%, var(--obsidian));   /* panel */
  --line-1: color-mix(in srgb, var(--white) 8%, transparent);      /* hairline */
  --line-2: color-mix(in srgb, var(--white) 14%, transparent);     /* stronger hairline */
  --line-3: color-mix(in srgb, var(--white) 28%, transparent);
  --text-1: var(--white);
  --text-2: color-mix(in srgb, var(--white) 72%, var(--muted));
  --text-3: var(--muted);
  --text-4: color-mix(in srgb, var(--muted) 62%, var(--obsidian));

  --purple-a08: color-mix(in srgb, var(--purple) 8%, transparent);
  --purple-a16: color-mix(in srgb, var(--purple) 16%, transparent);
  --purple-a32: color-mix(in srgb, var(--purple-2) 32%, transparent);
  --lime-a08: color-mix(in srgb, var(--lime) 8%, transparent);
  --lime-a16: color-mix(in srgb, var(--lime) 16%, transparent);
  --lime-a32: color-mix(in srgb, var(--lime) 32%, transparent);

  /* Bloom — only around real signal elements */
  --bloom-lime: 0 0 12px color-mix(in srgb, var(--lime) 55%, transparent);
  --bloom-purple: 0 0 16px color-mix(in srgb, var(--purple-2) 50%, transparent);

  /* ── Type ── */
  --font-en: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-th: "IBM Plex Sans Thai", "Inter Tight", system-ui, sans-serif;
  --font: var(--font-en);
  --fs-meta: 0.6875rem;   /* 11 — technical metadata */
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-md: 1rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.75rem;
  --fs-display: clamp(3rem, 9vw, 8.5rem);
  --track-meta: 0.22em;

  /* ── Space (8px system) ── */
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
  --s7: 48px;
  --s8: 64px;
  --s9: 96px;
  --s10: 144px;

  /* ── Motion (slow, controlled) ── */
  --ease: cubic-bezier(0.22, 0.8, 0.2, 1);
  --ease-cam: cubic-bezier(0.45, 0, 0.15, 1);
  --t-fast: 180ms;
  --t-base: 420ms;
  --t-slow: 900ms;
  --t-cam: 1400ms;

  /* ── Layout ── */
  --nav-h: 72px;
  --max: 1280px;
  --radius: 2px;
}
