:root {
  color-scheme: dark;
  --bg: #0b0c10;
  --bg-elev: #14161c;
  --fg: #e8e9ee;
  --fg-muted: #8a8f9c;
  --accent: #7dd3fc;
  --line: rgba(255, 255, 255, 0.08);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2.5rem;

  --rail-w: 3.25rem;
  --rail-h: 3.5rem;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 300ms;

  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, p { margin: 0; }
h1 { font-size: clamp(1.5rem, 5vw, 2.25rem); font-weight: 600; letter-spacing: -0.02em; }
h2 { font-size: 1.25rem; font-weight: 500; }
a { color: inherit; text-decoration: none; }

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

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-3);
  padding: var(--space-2) var(--space-3);
  background: var(--accent);
  color: var(--bg);
  z-index: 100;
}
.skip-link:focus { top: var(--space-3); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}
