/* Box sizing */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Remove default margins */
* {
  margin: 0;
}

/* Allow percentage-based heights */
html,
body {
  height: 100%;
}

/* Improve text rendering */
body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Media defaults */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

/* Form elements inherit fonts */
input,
button,
textarea,
select {
  font: inherit;
}

/* Prevent text overflow */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

/* Better line wrapping for headings */
h1,
h2,
h3,
h4,
h5,
h6 {
  /* text-wrap: balance; */
}

/* Better wrapping for paragraphs */
p {
  /* text-wrap: balanced; */
}

/* Root stacking context (optional) */
#root,
#__next {
  isolation: isolate;
}