:root {
  /* Surfaces */
  --bg-deep: #08080a;
  --bg: #0a0a0c;
  --surface: #141418;
  --surface-2: #1a1a20;
  --surface-3: #22222a;

  /* Lines */
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);

  /* Text */
  --text: #f4f4f5;
  --text-2: #b9b9c2;
  --text-3: #83838f;

  /* Named accents (hue + rgb triplet for translucency fallbacks) */
  --blue: #3b82f6;
  --blue-rgb: 59, 130, 246;
  --sky: #38bdf8;
  --sky-rgb: 56, 189, 248;
  --amber: #fbbf24;
  --amber-rgb: 251, 191, 36;
  --cyan: #22d3ee;
  --cyan-rgb: 34, 211, 238;
  --violet: #a78bfa;
  --violet-rgb: 167, 139, 250;
  --emerald: #34d399;
  --emerald-rgb: 52, 211, 153;

  /* Live accent, swapped by scroll-spy; registered below to interpolate. */
  --accent: #3b82f6;
  --accent-rgb: 59, 130, 246;

  /* Radii */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  /* Shadow */
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 12px 40px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 70px rgba(0, 0, 0, 0.55);

  /* Type */
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --font-display: "Space Grotesk", var(--font-sans);
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --t-fast: 0.16s;
  --t: 0.32s;
  --t-slow: 0.6s;

  /* Layout */
  --sidebar-w: 264px;
  --sidebar-collapsed-w: 76px;
  --content-max: 1080px;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --mobilebar-h: 4.0625rem;
}

/* Registered so the accent color animates between sections. */
@property --accent {
  syntax: "<color>";
  inherits: true;
  initial-value: #3b82f6;
}

:root {
  transition: --accent var(--t-slow) var(--ease);
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --t-fast: 0.01ms;
    --t: 0.01ms;
    --t-slow: 0.01ms;
    transition: none;
  }
}
