/* =============================================================
   2-BASE — FRAMEWORK (reusable as-is)
   Sensible defaults for plain HTML elements. Uses only tokens,
   so it never needs editing per site.
   ============================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--size-body);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
}
h1 { font-size: var(--size-h1); }
h2 { font-size: var(--size-h2); }
h3 { font-size: var(--size-h3); }

p, ul, ol, figure {
  margin: 0;
}

img, video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-accent);
  text-underline-offset: 0.15em;
}
a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

/* "Skip to content" link: off-screen until a keyboard user tabs to it. */
.skip-link {
  position: absolute;
  left: var(--space-3);
  top: var(--space-3);
  z-index: 10;
  padding: var(--space-2) var(--space-3);
  background: var(--color-text);
  color: var(--color-bg);
  transform: translateY(-200%);
}
.skip-link:focus {
  transform: none;
}

/* Hidden on screen, still read by screen readers. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Turn off animation for people who ask their device for less motion. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Bigger tap targets on touch screens (gated on pointer, not width).
   Only menu links and buttons: a link inside a sentence must stay
   inline, or it drops the spaces around its own tags and can't wrap
   across lines (the email address couldn't break at its <wbr>).
   WCAG exempts links in running text. */
@media (pointer: coarse) {
  nav a, button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}
