/* base.css — reset, typography, accessibility defaults */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

body {
  margin: 0;
  font-family: var(--ff-base);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 var(--s-5) 0;
  color: var(--c-navy-900);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  font-family: var(--ff-display);
}
h1 { font-size: var(--fs-h1); font-weight: var(--fw-black); letter-spacing: var(--ls-tighter); }
h2 { font-size: var(--fs-h2); font-weight: var(--fw-extrabold); letter-spacing: var(--ls-tighter); }
h3 { font-size: var(--fs-h3); font-weight: var(--fw-bold); line-height: var(--lh-snug); }
h4 { font-size: var(--fs-h4); font-weight: var(--fw-semibold); line-height: var(--lh-snug); }

p { margin: 0 0 var(--s-4) 0; color: var(--c-slate-700); line-height: var(--lh-normal); }
a { color: var(--c-blue-600); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--c-blue-700); }
img, svg { max-width: 100%; height: auto; display: block; }
ul, ol { padding-left: var(--s-6); }
li { margin-bottom: var(--s-2); }

button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }

/* Focus visibility — a11y */
:focus { outline: none; }
:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--r-sm);
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--c-navy-900);
  color: var(--c-white);
  padding: var(--s-3) var(--s-5);
  border-radius: var(--r-sm);
  z-index: var(--z-toast);
}
.skip-link:focus { left: var(--s-4); top: var(--s-4); }

/* Visually hidden but a11y available */
.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;
}

/* Container utility */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-px);
}

/* Section default — generous breathing room */
section { padding-block: var(--s-24); position: relative; }
@media (max-width: 768px) { section { padding-block: var(--s-16); } }

/* SVG defs holder — keeps reusable <defs> off-screen without inline styles */
.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}
