:root {
  color-scheme: dark;

  --bg: #0A0D0F;
  --bg-elevated: #111518;
  --bg-card: #14191D;
  --surface: #1A1F23;
  --surface-hover: #1F252A;

  --line: rgba(212, 168, 83, 0.08);
  --line-strong: rgba(212, 168, 83, 0.18);
  --line-focus: #D4A853;

  --text: #E8E6E1;
  --text-muted: #9A9890;
  --text-dim: #6B6960;

  --gold: #D4A853;
  --gold-bright: #E8C57A;
  --gold-dim: rgba(212, 168, 83, 0.12);
  --gold-glow: rgba(212, 168, 83, 0.25);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 24px 48px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 32px rgba(212, 168, 83, 0.15);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 999px;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: "Montserrat", -apple-system, BlinkMacSystemFont, sans-serif;
  --math: "STIX Two Math", Georgia, serif;

  --orange: var(--gold);
  --orange-light: var(--gold-bright);
  --cream: var(--text);
  --yellow: var(--gold-bright);
  --black: var(--bg);

  --transition-fast: 150ms ease;
  --transition-base: 250ms cubic-bezier(0.22, 1, 0.36, 1);
  --transition-slow: 400ms cubic-bezier(0.22, 1, 0.36, 1);
}

html,
body {
  color: var(--text);
  background-color: var(--bg);
}

body {
  background-image:
    radial-gradient(ellipse at 85% 5%, rgba(212, 168, 83, 0.04), transparent 40%),
    radial-gradient(ellipse at 15% 95%, rgba(212, 168, 83, 0.02), transparent 50%),
    linear-gradient(180deg, var(--bg), var(--bg));
}

::selection {
  color: var(--bg);
  background-color: var(--gold-bright);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}