/* =========================================================
   BASE — reset and sensible defaults. Design-neutral: it only
   reads tokens.css. Leave this alone; style the design in site.css.
   ========================================================= */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
body {
  margin: 0; background: var(--color-bg); color: var(--color-text);
  font-family: var(--font-body); font-size: var(--text-base); line-height: var(--leading-base);
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 600; }
h1 { font-size: var(--text-h1); line-height: var(--leading-h1); }
h2 { font-size: var(--text-h2); line-height: var(--leading-h2); }
h3 { font-size: var(--text-h3); line-height: var(--leading-h3); }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }

/* Layout helpers */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--space-7); }
.stack > * + * { margin-top: var(--space-3); }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed; top: var(--space-2); left: var(--space-2); z-index: 100; padding: var(--space-2) var(--space-3); background: var(--color-bg); }

/* Header + nav (bare bones: restyle in site.css) */
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding-block: var(--space-3); }
.site-nav ul { display: flex; gap: var(--space-4); list-style: none; padding: 0; }
.site-nav a { text-decoration: none; }
.site-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }
.site-nav__toggle { display: none; background: none; border: 0; padding: var(--space-2); cursor: pointer; }
@media (max-width: 767px) {
  .site-nav__toggle { display: block; }
  .site-nav { display: none; position: absolute; inset: 64px 0 auto; background: var(--color-bg); padding: var(--space-4) var(--gutter); border-bottom: 1px solid var(--color-border); }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; }
  .site-header { position: relative; }
}
.site-footer { padding-block: var(--space-5); border-top: 1px solid var(--color-border); color: var(--color-muted); font-size: var(--text-sm); }
