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

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

  [hidden] {
    display: none !important;
  }

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

  /* keep the aspect ratio when width/height attributes are wider than the container */
  img,
  video {
    block-size: auto;
  }

  img,
  figure {
    display: block;
  }

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