/* Modern CSS Reset */
/* Based on Andy Bell's Modern CSS Reset and Josh Comeau's CSS Reset */

/* Remove default margin and padding on specific elements */
h1, h2, h3, h4, h5, h6,
p, blockquote, pre,
ul, ol, li,
figure, figcaption,
dl, dd {
  margin: 0;
  padding: 0;
}

/* Remove list styles on elements with list role */
ul[role="list"],
ol[role="list"] {
  list-style: none;
}

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

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

/* Set core body defaults */
body {
  min-block-size: 100vh;
  text-rendering: optimizeSpeed;
}

/* Make images easier to work with */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-inline-size: 100%;
}

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

/* Remove default button styling */
button {
  border: none;
  background: none;
  cursor: pointer;
}

/* Improve text rendering */
p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

/* Create stacking context for main app wrapper */
#root, #__next {
  isolation: isolate;
}

/* Remove animations for people who've turned them off */
@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }
  
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}