/* =======================================================
   K12 CRAFTER — BASE
   Reset, typography globals, links, a11y primitives.
   Depends on design-tokens.css.
   ======================================================= */

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-ui);
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--k-gray-700);
  background: var(--k-white);
  -webkit-font-smoothing: antialiased;
  margin-top: 0 !important;
}
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: var(--font-ui); border: none; background: none; }

/* LINKS */
a {
  color: var(--k-blue);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease);
}
a:hover { color: var(--k-blue-dark); }

/* TYPOGRAPHY */
h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--k-navy);
  font-weight: 800;
  line-height: 1.15;
}
h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.625rem, 4vw, 2.25rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.25rem, 3vw, 1.625rem); letter-spacing: -0.015em; font-weight: 700; }
h4, h5, h6 { font-family: var(--font-ui); font-weight: 700; color: var(--k-gray-900); }
h4 { font-size: 1.125rem; }
h5 { font-size: 0.9375rem; }
p { margin-bottom: 0; }

.eyebrow {
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--k-green);
  display: block;
  margin-bottom: 10px;
}

/* UTILITY */
.text-center { text-align: center; }

/* ACCESSIBILITY */
.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;
}
:focus-visible {
  outline: 3px solid var(--k-blue);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}
.skip-link {
  position: absolute; top: -100%; left: 1rem;
  padding: 0.5rem 1rem; background: var(--k-blue); color: #fff;
  border-radius: 0 0 var(--r-md) var(--r-md);
  font-weight: 700; z-index: 9999;
}
.skip-link:focus { top: 0; }

/* MOTION */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
