/* Resets curated from: 
Andy Bell: https://andy-bell.co.uk/a-modern-css-reset/
Elad Schecter: https://elad2412.github.io/the-new-css-reset/
Josh Comeau: https://www.joshwcomeau.com/css/custom-css-reset/
*/

/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Remove default margin and padding */
* {
  margin: 0;
  padding: 0;
}

/* Set core root defaults */
html:focus-within {
  scroll-behavior: smooth;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  line-height: 1.5;
  text-rendering: optimizeSpeed;
  -webkit-font-smoothing: antialiased;
}

/* Set shorter line heights on headings */
h1,
h2,
h3,
h4 {
  line-height: 1.1;
}

/* Avoid text overflows */
h1,
h2,
h3,
h4,
p {
  overflow-wrap: break-word;
}

/* Make media easier to work with */
img,
picture,
video,
canvas,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Remove list styles on ul, ol elements */
ul,
ol {
  list-style: none;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
  font: inherit;
}

/* Override default appearance of input element on iOS */
input {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* Apply the pointer cursor for anchor and button tags */
a,
button {
  cursor: pointer;
}

/* Resets animations, transitions and scroll behaviour for if user selects prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    -webkit-animation-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    -webkit-animation-iteration-count: 1 !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
