/* Design tokens (BRICK VICE palette), reset, and the fixed 3D canvas layer. */
:root {
  --pink: #ff3ea5;
  --orange: #ff7a2f;
  --teal: #29d7c4;
  --violet: #8b5cf6;
  --yellow: #ffd447;
  --plum: #3b214a;
  --sand: #f4dcc8;
  --navy: #1b1630;
  --ink: #1b1630;
  --panel: rgba(36, 18, 50, 0.84);
  --panel-soft: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.14);
  --text: #fff7fb;
  --muted: rgba(255, 244, 250, 0.82);
  --radius: 18px;
  --display: 'Bungee', Impact, system-ui, sans-serif;
  --body: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0.01em;
  margin: 0 0 0.45em;
}

p { margin: 0 0 0.9em; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
kbd {
  display: inline-block;
  min-width: 1.6em;
  padding: 1px 6px;
  margin: 0 4px 0 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-bottom-width: 3px;
  font-family: var(--body);
  font-weight: 800;
  font-size: 0.85em;
  text-align: center;
}

:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 8px; }

.skip-link {
  position: fixed;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--yellow);
  color: var(--navy);
  font-weight: 800;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.scene { position: fixed; inset: 0; z-index: 0; }
.scene canvas { display: block; width: 100%; height: 100%; }

.scene-vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(120% 90% at 50% 38%, transparent 55%, rgba(27, 22, 48, 0.55) 100%);
}

.no-webgl .scene { background: linear-gradient(180deg, #2a1660 0%, #a855f7 45%, #ff5fa2 75%, #ffa26b 100%); }

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