:root {
  --max-content-width: 1200px;
  --radius-card: 18px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --gutter: 16px;
  --font: ui-rounded, "Nunito", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;

  --bg: #f4f9fd;
  --surface: #ffffff;
  --surface-2: #eef3f9;
  --text: #10142b;
  --text-muted: #4d5670;
  --border: #dde5ef;
  --shadow: 0 2px 4px rgba(16, 20, 43, .06), 0 8px 24px rgba(16, 20, 43, .08);
  --focus: #0a63d8;
  --primary: #0a84f0;
  --sky-overlay: transparent;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0d1226;
  --surface: #171e3a;
  --surface-2: #202849;
  --text: #f1f4ff;
  --text-muted: #a9b2d3;
  --border: #2b3560;
  --shadow: 0 2px 4px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
  --focus: #8ec1ff;
  --sky-overlay: rgba(8, 12, 40, .62);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.45;
  color: var(--text); background: var(--bg);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.1; margin: 0; font-weight: 800; letter-spacing: -.01em; }
ul { list-style: none; margin: 0; padding: 0; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }

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

.sr-only {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 100; padding: 10px 16px;
  background: var(--surface); border-radius: 10px; box-shadow: var(--shadow);
}
.skip-link:focus { top: 8px; }

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