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

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

/* Remove default margin */
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

/* Height */
html,
body {
  height: 100%;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE Edge */
  overflow-x: hidden;
}

/* Chrome Safari */
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
}

/* Body base */
body {
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

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

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

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

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

/* Accessibility */
:focus-visible {
  outline: 2px solid #000;
  outline-offset: 2px;
}

/* Smooth scroll */
html:focus-within {
  scroll-behavior: smooth;
}

/* Reduce motion */
@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;
  }
}