/*
  Modern CSS Reset — based on Josh Comeau's CSS Reset
  https://www.joshwcomeau.com/css/custom-css-reset/
*/

/* 1. Use a more-intuitive box-sizing model */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* 2. Remove default margin */
* {
  margin: 0;
}

/* 3. Enable keyword animations */
@media (prefers-reduced-motion: no-preference) {
  html {
    interpolate-size: allow-keywords;
  }
}

/* 4. Set core body defaults */
body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* 5. Improve media defaults */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

/* 6. Inherit fonts for form controls */
input,
button,
textarea,
select {
  font: inherit;
}

/* 7. Remove button default styles */
button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: inherit;
}

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

/* 9. Improve line wrapping */
p {
  text-wrap: pretty;
}

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

/* 10. Remove list styles on ul, ol elements with a role attribute */
ul[role='list'],
ol[role='list'],
ul,
ol {
  list-style: none;
  padding: 0;
}

/* 11. Anchors inherit color and remove default underline */
a {
  color: inherit;
  text-decoration: none;
}

/* 12. Set root stacking context for potential portals */
#root,
#__next {
  isolation: isolate;
}

/* 13. HTML defaults */
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

/* 14. Remove default table spacing */
table {
  border-collapse: collapse;
  border-spacing: 0;
}
