/* Design tokens: Eclipse Blade — Dark Obsidian, Astral Violet & Solar Gold */
:root {
  --bg: #090810;
  --bg-deep: #05040a;
  --surface: rgba(20, 18, 34, 0.86);
  --surface-raised: rgba(31, 27, 52, 0.92);
  --surface-glass: rgba(14, 12, 24, 0.75);
  --ink: #f3effb;
  --ink-soft: #b5add0;
  --ink-muted: #787096;
  --line: rgba(244, 197, 82, 0.24);
  --line-subtle: rgba(157, 123, 255, 0.18);

  --accent: #f4c552;
  --accent-bright: #ffe184;
  --accent-dim: #9e781d;
  --accent-ink: #120e1c;

  --violet: #9d7bff;
  --violet-glow: rgba(157, 123, 255, 0.45);
  --crimson: #ff4d6d;
  --emerald: #38d399;
  --cyan: #5ce1e6;

  --font-display: "Cinzel", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-text: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2.25rem;
  --space-6: 3.5rem;

  --radius: 8px;
  --wrap: 84rem;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.65), 0 0 18px rgba(157, 123, 255, 0.12);
  --glow-gold: 0 0 20px rgba(244, 197, 82, 0.4);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 0.98rem;
  line-height: 1.5;
  overflow-x: hidden;
  user-select: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

p {
  margin: 0 0 var(--space-2);
}

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

a:hover {
  text-decoration: underline;
}

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

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

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

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-ink);
  padding: var(--space-2) var(--space-3);
  z-index: 1000;
}

.skip:focus {
  left: 0;
}

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