@layer reset {
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }

  body,
  h1,
  h2,
  h3,
  h4,
  p,
  ul,
  ol,
  figure {
    margin: 0;
  }

  ul,
  ol {
    list-style: none;
    padding: 0;
  }

  img {
    display: block;
    max-inline-size: 100%;
  }

  /* The hidden attribute wins over any display a component sets. */
  [hidden] {
    display: none !important;
  }

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

  summary {
    list-style: none;

    &::-webkit-details-marker {
      display: none;
    }
  }

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