/* Element-selector resets only. Never set padding/margin on structural
   elements here (section, header, footer, article, nav) — layout.css
   owns all spacing/rhythm. This file only makes raw elements look right. */

/* Native cross-document page transitions (Chromium). Progressive
   enhancement — browsers without support simply navigate as normal. */
@view-transition {
  navigation: auto;
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
  }
}

@layer reset {
  *, *::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: 0.001ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.001ms !important;
    }
  }

  ul[class], ol[class] {
    list-style: none;
  }

  img, picture, svg {
    display: block;
    max-width: 100%;
  }

  input, button, textarea, select {
    font: inherit;
    color: inherit;
  }

  button {
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
  }

  table {
    border-collapse: collapse;
  }
}

@layer base {
  html, body {
    margin: 0;
    overflow-x: hidden;
  }

  body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: var(--text-body);
    line-height: var(--leading-normal);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }

  h1, h2, h3, h4 {
    margin: 0;
    font-family: var(--font-display);
    line-height: var(--leading-tight);
    font-weight: 600;
    color: var(--color-text);
  }

  p, dl, dd, blockquote, figure {
    margin: 0;
  }

  a {
    color: inherit;
    text-decoration: none;
  }

  address {
    font-style: normal;
  }

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