:root {
  --ink: #0A0C10;
  --surface: #14171C;
  --border: #262B33;
  --text: #E7E9EC;
  --text-muted: #9AA1AC;
  --accent: #E9A23B;
  --radius: 2px;
}

@media (prefers-color-scheme: light) {
  :root {
    --ink: #F7F6F3;
    --surface: #FFFFFF;
    --border: #E2E0DB;
    --text: #14171C;
    --text-muted: #5B6270;
    --accent: #8F5A12;
  }
}

:root[data-theme="dark"] {
  --ink: #0A0C10;
  --surface: #14171C;
  --border: #262B33;
  --text: #E7E9EC;
  --text-muted: #9AA1AC;
  --accent: #E9A23B;
}

:root[data-theme="light"] {
  --ink: #F7F6F3;
  --surface: #FFFFFF;
  --border: #E2E0DB;
  --text: #14171C;
  --text-muted: #5B6270;
  --accent: #8F5A12;
}

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

html, body {
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--ink);
  color: var(--text);
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.25;
}

a {
  color: var(--accent);
}

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

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

.dev-banner {
  position: sticky;
  top: 0;
  z-index: 200;
  background-color: #7A1F1F;
  color: #FFFFFF;
  text-align: center;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
}

.skip-link {
  position: absolute;
  left: 0.5rem;
  top: -3rem;
  background-color: var(--accent);
  color: var(--ink);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  transition: top 0.15s ease;
  z-index: 100;
}

.skip-link:focus {
  top: 0.5rem;
}

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