/* === RESET === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height, 80px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-base);
  font-size: var(--text-body);
  color: var(--color-text);
  line-height: var(--leading-relaxed);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
ul, ol { list-style: none; }

/* === BASE === */
h1 { font-size: var(--text-h1); font-weight: var(--weight-black); line-height: var(--leading-tight); }
h2 { font-size: var(--text-h2); font-weight: var(--weight-black); line-height: var(--leading-snug); }
h3 { font-size: var(--text-h3); font-weight: var(--weight-medium); line-height: var(--leading-snug); }

:focus-visible {
  outline: 3px solid var(--color-nav);
  outline-offset: 3px;
  border-radius: 4px;
}

:focus:not(:focus-visible) {
  outline: none;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
