/* Box sizing reset */
*, *::before, *::after {
  box-sizing: border-box;
}

/* Remove default margin & padding */
body, h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd {
  margin: 0;
  padding: 0;
}

/* Remove list styles on ul, ol elements */
ul, ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Remove default link styling */
a {
  text-decoration: none;
  color: inherit;
}

/* Set base line-height */
body {
  line-height: 1.5;
  text-rendering: optimizeSpeed;
}

/* Make images responsive */
img, picture {
  max-width: 100%;
  display: block;
}

/* Inherit fonts for form elements */
input, button, textarea, select {
  font: inherit;
}

/* Remove built-in button styling */
button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

/* Remove all animations/transitions for people who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0s !important;
    animation-delay: 0s !important;
    transition-duration: 0s !important;
    scroll-behavior: auto !important;
  }
}
