/* =========================
   Modern CSS Reset (2026)
   ========================= */

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

/* Remove default margins */
* {
  margin: 0;
}

/* Improve text rendering */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Core body defaults */
body {
  min-height: 100vh;
  line-height: 1.5;
  font-family: system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

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

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

/* Better heading wrapping */
h1,
h2,
h3,
h4,
h5,
h6 {
  text-wrap: balance;
}

/* Better paragraph wrapping */
p {
  text-wrap: pretty;
}

/* Remove built-in list styles when using ARIA lists */
ul[role="list"],
ol[role="list"] {
  list-style: none;
  padding: 0;
}

/* Links inherit color by default */
a {
  color: inherit;
  text-decoration-skip-ink: auto;
}

/* Create a root stacking context */
#root,
#__next {
  isolation: isolate;
}

/* Respect reduced-motion preferences */
@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;
  }
}

/* Remove default fieldset styling */
fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}

/* Buttons should look like buttons you style */
button {
  cursor: pointer;
}

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

/* Textareas */
textarea {
  resize: vertical;
}