/* ==========================================================================
   DESIGN TOKENS
   VOICE   Quiet, cinematic, confident: an editing suite at night.
   IDEA    Violet used like a colourist's key light, only where attention goes.
   TYPE    Unbounded (wide, futuristic display) + Manrope (clean body/UI).
   THEMES  Night (default) and Day are designed separately, not inverted.
   ========================================================================== */

:root {
  /* Type */
  --font-display: "Unbounded", "Arial Black", "Helvetica Neue", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --fs-h2: clamp(2.25rem, 1.35rem + 3.6vw, 4.25rem);
  --fs-h3: clamp(1.25rem, 1.05rem + 0.8vw, 1.6rem);
  --fs-lead: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.875rem;
  --fs-label: 0.8125rem;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);

  /* Shape */
  --r-lg: 28px;
  --r-md: 18px;
  --r-sm: 12px;
  --r-pill: 999px;

  /* Layout */
  --nav-h: 60px;
  --nav-top: 14px;
  --content: 1240px;
  --gutter: max(5vw, 20px);
}

/* ---------- NIGHT (default) ---------- */
:root,
:root[data-scheme="dark"] {
  color-scheme: dark;
  --bg: #08060f;
  --bg-2: #120c22;
  --bg-3: #1a1230;
  --ink: #f5f2ff;
  --ink-2: #cfc9e0;
  --ink-3: #9790ae;
  --accent: #8f5cff;
  --accent-ink: #ffffff;
  --accent-soft: rgba(143, 92, 255, 0.16);
  --lavender: #c7b5ff;
  --line: rgba(199, 181, 255, 0.14);
  --line-strong: rgba(199, 181, 255, 0.28);
  --glow: rgba(143, 92, 255, 0.55);
  --glow-2: rgba(199, 181, 255, 0.22);
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.85);

  /* Liquid Glass (rgb triplets so alpha can be animated) */
  --glass-tint: 20, 14, 38;
  --glass-a0: 0.16;   /* at top of page */
  --glass-a1: 0.62;   /* fully scrolled */
  --glass-rim: 255, 255, 255;
  --glass-rim-a: 0.1;
  --glass-shadow: 0, 0, 0;

  --particle: 199, 181, 255;
  --bg-rgb: 8, 6, 15;
  --wash: 74, 40, 150;      /* section gradient wash */
  --wash-2: 40, 24, 92;
  --wash-a: 0.42;
  --motif: 199, 181, 255;   /* editor background elements */
  --motif-a: 0.14;
  --grain-opacity: 0.055;
  --title-fill: linear-gradient(180deg, #ffffff 35%, #cdbdff 100%);
}

/* ---------- DAY ---------- */
:root[data-scheme="light"] {
  color-scheme: light;
  --bg: #f7f3eb;
  --bg-2: #efe8f3;
  --bg-3: #e6ddf0;
  --ink: #17122b;
  --ink-2: #3b3553;
  --ink-3: #625b78;
  --accent: #5424d4;
  --accent-ink: #ffffff;
  --accent-soft: rgba(84, 36, 212, 0.1);
  --lavender: #8c77cf;
  --line: rgba(23, 18, 43, 0.11);
  --line-strong: rgba(23, 18, 43, 0.22);
  --glow: rgba(84, 36, 212, 0.26);
  --glow-2: rgba(140, 119, 207, 0.24);
  --shadow: 0 22px 50px -26px rgba(40, 24, 90, 0.38);

  --glass-tint: 252, 249, 243;
  --glass-a0: 0.34;
  --glass-a1: 0.74;
  --glass-rim: 255, 255, 255;
  --glass-rim-a: 0.7;
  --glass-shadow: 40, 24, 90;

  --particle: 84, 36, 212;
  --bg-rgb: 247, 243, 235;
  --wash: 214, 200, 240;    /* the lavender wash from the Works section */
  --wash-2: 236, 226, 246;
  --wash-a: 0.95;
  --motif: 84, 36, 212;
  --motif-a: 0.095;
  --grain-opacity: 0.035;
  --title-fill: linear-gradient(180deg, #17122b 40%, #3a2a7a 100%);
}
