/*
 * Based on input from
 *  - https://www.joshwcomeau.com/css/custom-css-reset/
 *  - https://piccalil.li/blog/a-more-modern-css-reset/
 */
*, *::before, *::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

/* This does not do anything in Firefox */
@media (prefers-reduced-motion: no-preference) {
  html {
    interpolate-size: allow-keywords;
  }
}
body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

p {
  text-wrap: pretty;
}

h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
}

#root, #__next {
  isolation: isolate;
}

/* A elements that don't have a class, make sure underline does not overlap font descenders */
a:not([class]) {
  text-decoration-skip-ink: auto;
}