/* ============================================================
   NICKY FRENCH · 90s EURODANCE GENERATOR
   Concept palette: deep space black, neon magenta, electric cyan
   ============================================================ */

:root, [data-theme="dark"] {
  /* 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, 8rem);

  /* 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;

  /* Colors — 90s Eurodance */
  --color-bg: #060315;
  --color-bg-deep: #020010;
  --color-surface: #0d0828;
  --color-surface-2: #14103a;
  --color-surface-offset: #1a1448;
  --color-border: #2d1f5c;
  --color-divider: #1e1842;

  --color-text: #f4f2ff;
  --color-text-muted: #9a94c4;
  --color-text-faint: #5a5680;

  --color-primary: #ff2fb1;        /* neon magenta */
  --color-primary-hover: #ff5cc5;
  --color-primary-active: #e01f97;
  --color-primary-soft: #4a1346;

  --color-secondary: #00e5ff;      /* electric cyan */
  --color-secondary-hover: #5df0ff;
  --color-secondary-soft: #0d3a4a;

  --color-accent: #b14cff;         /* ultraviolet */
  --color-gold: #ffd700;

  /* Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Glow shadows */
  --glow-sm: 0 0 8px rgba(255,47,177,0.4);
  --glow-md: 0 0 18px rgba(255,47,177,0.5), 0 0 32px rgba(0,229,255,0.18);
  --glow-lg: 0 0 28px rgba(255,47,177,0.6), 0 0 60px rgba(0,229,255,0.25);
  --glow-cyan: 0 0 18px rgba(0,229,255,0.5);

  --shadow-sm: 0 2px 6px rgba(0,0,0,0.4);
  --shadow-md: 0 6px 20px rgba(0,0,0,0.5);
  --shadow-lg: 0 20px 50px rgba(0,0,0,0.7);

  /* Content widths */
  --content-wide: 1280px;

  /* Fonts */
  --font-display: 'Monoton', 'Impact', sans-serif;
  --font-body: 'Space Grotesk', 'Helvetica Neue', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

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

html {
  -moz-text-size-adjust: none; -webkit-text-size-adjust: none; text-size-adjust: none;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: var(--space-16);
}

body {
  min-height: 100dvh;
  line-height: 1.6;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background:
    radial-gradient(ellipse at top, #1a0840 0%, transparent 50%),
    radial-gradient(ellipse at bottom right, #002030 0%, transparent 50%),
    var(--color-bg);
  background-attachment: fixed;
  overflow-x: hidden;
}

img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }

input, button, textarea, select { font: inherit; color: inherit; }

h1, h2, h3, h4, h5, h6 { text-wrap: balance; line-height: 1.1; }
p, li, figcaption { text-wrap: pretty; max-width: 72ch; }

a { color: var(--color-secondary); text-decoration: none; }
a:hover { color: var(--color-secondary-hover); }

::selection { background: var(--color-primary); color: #fff; }

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

@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;
  }
}

button { cursor: pointer; background: none; border: none; }
code { font-family: var(--font-mono); font-size: 0.9em; background: rgba(255,47,177,0.12); padding: 1px 6px; border-radius: 3px; color: var(--color-primary); }

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);
}
