/* =========================
   Modern CSS Reset
   ========================= */

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

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

/* 3. Allow percentage-based heights */
html,
body {
  height: 100%;
}

/* 4. Improve text rendering */
body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

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

/* 8. Remove built-in form typography styles */
button {
  background: none;
  border: none;
  padding: 0;
}

/* 9. Remove list styles */
ul,
ol {
  list-style: none;
  padding: 0;
}

/* 10. Anchor defaults */
a {
  text-decoration: none;
  color: inherit;
}

/* 11. Improve focus visibility (accessibility) */
:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

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