/* ==========================================================================
   Jaeger Template — Modern Reset
   --------------------------------------------------------------------------
   Minimal, opinionated. Inspired by Josh Comeau's & Andy Bell's resets
   but trimmed to what we actually use. Goal: predictable defaults, not
   a clean slate — typography choices live in base.css.
   ========================================================================== */

@layer reset {
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }

  /* Strip default margins everywhere — base.css restores intent. */
  html, body, h1, h2, h3, h4, h5, h6, p, blockquote, dl, dd,
  figure, hr, fieldset, legend {
    margin: 0;
  }

  /* Remove default list styles where we'll restyle. Keep them inside
     prose contexts (handled in base.css with `:where()`). */
  ul, ol {
    margin: 0;
    padding: 0;
  }

  /* Prevent font-size inflation on iOS landscape; honor user motion preferences. */
  html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  /* Sensible body defaults — text + line-height get set in base.css. */
  body {
    min-height: 100svh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
  }

  /* Media defaults: behave like blocks, never overflow their container. */
  img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
    height: auto;
  }

  /* Form controls inherit type by default. */
  input, button, textarea, select {
    font: inherit;
    color: inherit;
  }

  /* Avoid horizontal overflow from long words / URLs. */
  p, h1, h2, h3, h4, h5, h6, li, dt, dd, blockquote {
    overflow-wrap: break-word;
  }

  /* Tables collapse by default. */
  table {
    border-collapse: collapse;
    border-spacing: 0;
  }

  /* Honor reduced-motion users — overrides any animation/transition. */
  @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;
    }
  }
}
