/* =========================================================================
   reset.css — a small, modern reset. Put it in the `reset` cascade layer so
   nothing here ever fights your component styles.
   ========================================================================= */
@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  * { margin: 0; }

  html { -webkit-text-size-adjust: 100%; tab-size: 4; }

  body {
    min-height: 100svh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }

  /* Media are block-level and never overflow their container */
  img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }

  /* Forms inherit typography instead of imposing their own */
  input, button, textarea, select { font: inherit; color: inherit; }

  /* Avoid orphaned text breaking awkwardly */
  p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }
  h1, h2, h3, h4 { text-wrap: balance; }
  p { text-wrap: pretty; }

  /* Lists used as lists keep semantics; reset only when role="list" is absent intentionally */
  ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }

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

  :target { scroll-margin-block-start: 2rem; }
  :focus-visible { outline: 2px solid var(--color-ring, currentColor); outline-offset: 2px; }
}
