/* ================================================
   Modern CSS Reset 2026
   ================================================ */

@layer reset {

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

  :where(html) {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    hanging-punctuation: first last;
    interpolate-size: allow-keywords;
  }

  :where(body) {
    min-height: 100svh;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }

  :where(h1, h2, h3, h4, h5, h6) {
    text-wrap: balance;
    font-size: unset;
    font-weight: unset;
  }

  :where(p) {
    text-wrap: pretty;
  }

  :where(img, picture, video, canvas, svg) {
    display: block;
    max-width: 100%;
  }

  :where(a) {
    color: inherit;
    text-underline-offset: 0.2em;
  }

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

  :where(ul, ol) {
    list-style: none;
  }

  :where(table) {
    border-collapse: collapse;
  }

  :where(:focus-visible) {
    outline: 2px solid currentColor;
    outline-offset: 3px;
  }

  @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;
    }
  }

}
