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

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

/* Margin reset */
* {
  margin: 0;
}

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

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

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

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

/* Prevent textarea overflow */
textarea {
  resize: vertical;
}

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

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

/* List reset */
ul,
ol {
  list-style: none;
  padding: 0;
}

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

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

/* Form controls */
input,
textarea {
  min-width: 0;
}

/* Focus styles */
:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}