/* Base styles: reset, shared typography, and accessibility. Layouts live in main.css. */
:root { --mono: "Cascadia Code", "SFMono-Regular", Consolas, monospace; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Inter, "Segoe UI", Arial, sans-serif; font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.2; }
h2 { font-weight: 600; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; color: inherit; }
img { max-width: 100%; display: block; }
::selection { background: var(--accent-soft); color: var(--text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
[hidden] { display: none !important; }
.container { margin-inline: auto; }
.icon { width: 20px; height: 20px; vertical-align: middle; flex-shrink: 0; }
.skip-link { position: fixed; z-index: 200; top: 12px; left: 16px; padding: 10px 18px; background: var(--accent); color: var(--bg); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

/* Header structure; main.css and themes.css provide colors, spacing, and breakpoints. */
.site-header { z-index: 50; background: var(--header-bg); }
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.main-navigation { display: flex; align-items: center; }
.main-navigation > a { transition: color .2s; white-space: nowrap; }
.menu-toggle { display: none; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); padding: 9px; }

/* Small-screen adjustments and reduced-motion preferences. */
@media (max-width: 960px) { .header-inner { min-height: 65px; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
