/* Minimal modern reset + base. */
@layer reset {
  *,
  *::before,
  *::after { box-sizing: border-box; }

  * { margin: 0; }

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

  body { line-height: 1.5; }

  img,
  picture,
  svg,
  video {
    display: block;
    max-inline-size: 100%;
  }

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

  a { color: inherit; }

  :is(h1, h2, h3, h4) { line-height: 1.1; }

  ul[role="list"],
  ol[role="list"] { list-style: none; }
}

@layer base {
  /* Base font size = 18px (112.5% of the 16px default; honors user zoom). */
  html {
    font-size: 112.5%;
    scroll-behavior: smooth;
  }

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