:root {
  color-scheme: dark light;
  --page-bg: #07110f;
  --page-bg-soft: #10201d;
  --panel-bg: rgba(16, 32, 29, 0.94);
  --panel-bg-strong: #10201d;
  --text-main: #f3fff7;
  --text-muted: #c8d8cf;
  --accent: #7cff9b;
  --accent-2: #b56cff;
  --accent-3: #ffd76a;
  --border: #2fd676;
  --focus: #ffd76a;
  --shadow: rgba(0, 0, 0, 0.45);
  --max-width: 72rem;
  --radius: 1rem;
  --space-1: 0.35rem;
  --space-2: 0.65rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2.25rem;
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: light) {
  :root {
    --page-bg: #f4fff8;
    --page-bg-soft: #e9f8ef;
    --panel-bg: rgba(255, 255, 255, 0.96);
    --panel-bg-strong: #ffffff;
    --text-main: #10201d;
    --text-muted: #385247;
    --accent: #005f2f;
    --accent-2: #5d229e;
    --accent-3: #7a5200;
    --border: #007a3d;
    --focus: #6b2bbd;
    --shadow: rgba(16, 32, 29, 0.18);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: 0.01ms !important; } }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--page-bg);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.65;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(rgba(4, 10, 12, 0.84), rgba(4, 10, 12, 0.92)), url("../images/site-background.webp") center / cover no-repeat;
  z-index: -2;
}
@media (prefers-color-scheme: light) { body::before { opacity: 0.18; background: url("../images/site-background.webp") center / cover no-repeat; } }
a { color: var(--accent); }
a:hover { color: var(--accent-3); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 var(--space-2); }
p { margin: 0 0 var(--space-3); }
img { max-width: 100%; height: auto; }
