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

  body,
  h1, h2, h3, h4, h5, h6,
  p, figure, blockquote, dl, dd {
    margin: 0;
  }

  html, body {
    overflow-x: clip;
  }

  body {
    min-height: 100dvh;
    line-height: var(--leading-normal);
    text-rendering: optimizeSpeed;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

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

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

  button {
    cursor: pointer;
  }

  p, li, h1, h2, h3, h4 {
    word-break: break-word;
  }

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

  summary {
    cursor: pointer;

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

  dialog {
    border: 0;
    padding: 0;
  }

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