/* ============================================================
   THEME: tokens, base reset, typography
   Color strategy: "Committed" — gold carries 30-40% at center,
   neutrals are warm-tinted (never pure #000/#fff).
   ============================================================ */

:root {
  /* Surfaces (warm-dark, OKLCH) */
  --bg-base:        oklch(0.16 0.012 80);
  --bg-elevated:    oklch(0.21 0.013 80);
  --bg-elevated-2:  oklch(0.25 0.014 80);
  --bg-deep:        oklch(0.10 0.010 80);
  --bg-overlay:     oklch(0.06 0.008 80 / 0.94);

  /* Gold scale */
  --gold:           oklch(0.78 0.145 85);
  --gold-bright:    oklch(0.86 0.165 88);
  --gold-dim:       oklch(0.55 0.090 82);
  --gold-faint:     oklch(0.40 0.060 82);
  --gold-glow:      oklch(0.78 0.145 85 / 0.20);

  /* Text */
  --text-primary:   oklch(0.96 0.005 80);
  --text-secondary: oklch(0.72 0.010 80);
  --text-muted:     oklch(0.52 0.010 80);
  --text-faint:     oklch(0.38 0.008 80);

  /* Lines & borders */
  --line-default:   oklch(0.30 0.010 80);
  --line-emphasis:  var(--gold-dim);
  --line-active:    var(--gold);

  /* Status / Accents */
  --green-pitch:    oklch(0.55 0.12 145);
  --yellow-card:    oklch(0.82 0.16 95);
  --red-card:       oklch(0.62 0.22 30);

  /* Shadow */
  --shadow-card:    0 12px 40px oklch(0 0 0 / 0.4);
  --shadow-card-hover: 0 20px 50px oklch(0 0 0 / 0.5);
  --shadow-glow-sm: 0 0 20px var(--gold-glow);
  --shadow-glow-md: 0 0 60px var(--gold-glow);

  /* Spacing */
  --space-1: 4px;  --space-2: 8px;  --space-3: 12px; --space-4: 16px;
  --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px;

  /* Radius */
  --radius-sm: 4px;  --radius-md: 8px;  --radius-lg: 12px; --radius-xl: 16px;

  /* Easing */
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-out-expo:  cubic-bezier(0.19, 1, 0.22, 1);
  --ease-out-back:  cubic-bezier(0.34, 1.36, 0.64, 1);

  /* Duration */
  --duration-fast: 180ms;
  --duration-base: 320ms;
  --duration-slow: 520ms;
  --duration-slower: 800ms;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: 'Barlow', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;

  background-image:
    radial-gradient(ellipse 60% 50% at 50% 50%, oklch(0.78 0.145 85 / 0.06), transparent 70%),
    radial-gradient(ellipse 30% 40% at 0% 100%, oklch(0.78 0.145 85 / 0.035), transparent 70%),
    radial-gradient(ellipse 30% 40% at 100% 0%, oklch(0.78 0.145 85 / 0.035), transparent 70%);
  background-attachment: fixed;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      45deg,
      transparent 0,
      transparent 3px,
      oklch(1 0 0 / 0.006) 3px,
      oklch(1 0 0 / 0.006) 5px
    );
  pointer-events: none;
  z-index: 0;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

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

/* Custom scrollbar (only where overflow needed) */
.scroll-gold::-webkit-scrollbar { width: 6px; height: 6px; }
.scroll-gold::-webkit-scrollbar-track { background: transparent; }
.scroll-gold::-webkit-scrollbar-thumb {
  background: var(--gold-faint);
  border-radius: 3px;
}
.scroll-gold::-webkit-scrollbar-thumb:hover { background: var(--gold-dim); }
