/* === RESET & BASE === */

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

/* Remove default margins */
body, h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd {
  margin: 0;
}

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

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

/* Remove list styles */
ul[role='list'], ol[role='list'] {
  list-style: none;
  padding: 0;
}

/* Remove default padding on lists */
ul, ol {
  padding: 0;
  margin: 0;
}

/* Links */
a {
  text-decoration: none;
  color: inherit;
}

/* Images and media */
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

/* Form elements */
input, button, textarea, select {
  font: inherit;
  color: inherit;
}

/* Buttons */
button {
  background: none;
  border: none;
  cursor: pointer;
}

/* Tables */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* Root stacking context fix */
#root, #__next {
  isolation: isolate;
}