/* ===== Design tokens ===== */
:root, [data-theme="light"] {
  /* Type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);
  --text-hero: clamp(3rem, 0.5rem + 7vw, 7.5rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Light mode — premium stadium / arena palette */
  --color-bg: #f6f7fb;
  --color-surface: #ffffff;
  --color-surface-2: #fbfbfe;
  --color-surface-offset: #eef0f7;
  --color-surface-offset-2: #e6e9f3;
  --color-divider: #e2e5ee;
  --color-border: #d1d5e0;

  --color-text: #0a1430;
  --color-text-muted: #555c75;
  --color-text-faint: #97a0b5;
  --color-text-inverse: #f6f7fb;

  /* Deep navy primary */
  --color-primary: #0a1430;
  --color-primary-hover: #131e44;
  --color-primary-active: #050a1d;

  /* Electric teal accent */
  --color-accent: #00b8a9;
  --color-accent-hover: #00d2c2;
  --color-accent-soft: #d6f5f1;

  /* Stadium gold for highlights only */
  --color-gold: #f0b429;
  --color-gold-soft: #fbe6a3;

  --color-danger: #d64545;
  --color-success: #2f9e64;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --transition-interactive: 220ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 600ms cubic-bezier(0.16, 1, 0.3, 1);

  --shadow-sm: 0 1px 2px rgba(10, 20, 48, 0.06), 0 1px 3px rgba(10, 20, 48, 0.04);
  --shadow-md: 0 6px 18px rgba(10, 20, 48, 0.08), 0 2px 6px rgba(10, 20, 48, 0.04);
  --shadow-lg: 0 22px 48px rgba(10, 20, 48, 0.16), 0 8px 18px rgba(10, 20, 48, 0.08);
  --shadow-glow: 0 0 0 1px rgba(0, 184, 169, 0.25), 0 12px 36px rgba(0, 184, 169, 0.18);

  --content-narrow: 720px;
  --content-default: 1080px;
  --content-wide: 1280px;

  --font-body: "Inter", "Helvetica Neue", system-ui, sans-serif;
  --font-display: "Sora", "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

[data-theme="dark"] {
  --color-bg: #060a1a;
  --color-surface: #0c1228;
  --color-surface-2: #111933;
  --color-surface-offset: #161e3c;
  --color-surface-offset-2: #1c2548;
  --color-divider: #1f284a;
  --color-border: #2b3560;

  --color-text: #e7ecf8;
  --color-text-muted: #9aa3bf;
  --color-text-faint: #5e688a;
  --color-text-inverse: #060a1a;

  --color-primary: #e7ecf8;
  --color-primary-hover: #ffffff;
  --color-primary-active: #c5cce0;

  --color-accent: #1ee0cd;
  --color-accent-hover: #45f1de;
  --color-accent-soft: rgba(30, 224, 205, 0.12);

  --color-gold: #f5c451;
  --color-gold-soft: rgba(245, 196, 81, 0.18);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 22px 48px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 0 0 1px rgba(30, 224, 205, 0.3), 0 12px 36px rgba(30, 224, 205, 0.22);
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  hanging-punctuation: first last;
}

body {
  min-height: 100dvh;
  line-height: 1.65;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
}

img, svg, video, canvas, picture { display: block; max-width: 100%; height: auto; }
button { cursor: pointer; background: none; border: none; font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p, li { text-wrap: pretty; }
p { max-width: 68ch; }

::selection { background: var(--color-accent); color: var(--color-primary); }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; border-radius: var(--radius-sm); }

a, button, [role="button"], input, textarea, select {
  transition: color var(--transition-interactive),
              background var(--transition-interactive),
              border-color var(--transition-interactive),
              box-shadow var(--transition-interactive),
              transform var(--transition-interactive);
}

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
