/* ==========================================================================
   reset.css (2026)
   - Cross-browser safe (no experimental features)
   - Light, readable, SEO-friendly base (doesn't hide content / doesn't break semantics)
   ========================================================================== */

/* 1) Box sizing */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* 2) Prevent iOS font size inflation */
html {
  -webkit-text-size-adjust: 100%;
}

/* 3) Smooth scrolling only when user allows it (kept minimal; can be removed if you prefer) */
@media (prefers-reduced-motion: no-preference) {
  html:focus-within {
    scroll-behavior: smooth;
  }
}

/* 4) Basic body defaults */
body {
  margin: 0;
  min-height: 100vh;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased; /* Safari/Chrome */
  -moz-osx-font-smoothing: grayscale;  /* macOS Firefox */
}

/* 5) Remove default margins */
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
dl,
dd,
figure,
pre {
  margin: 0;
}

/* 6) Lists: keep semantics, remove default padding/margin */
ul,
ol {
  margin: 0;
  padding: 0;
}

/* If you want “unstyled list” only when explicitly requested, use:
   .list-unstyled { list-style: none; padding: 0; margin: 0; }
*/
ul[role="list"],
ol[role="list"] {
  list-style: none;
}

/* 7) Make media elements easier to work with */
/*img,*/
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}
img {
  display: inline-block;
  max-width: 100%;
  height: auto;
}

/* 8) Tables */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* 9) Forms: inherit typography, normalize */
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button,
input[type="button"],
input[type="submit"],
input[type="reset"] {
  cursor: pointer;
}

textarea {
  resize: vertical;
}

/* 10) Links */
a {
  color: inherit;
  text-decoration-skip-ink: auto;
}

/* 11) Headings: balanced wrapping (safe), keep defaults minimal */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

/* 12) Prevent long strings from breaking layout */
p,
li,
dd,
blockquote,
pre {
  overflow-wrap: break-word;
}

/* 13) Improve focus visibility without removing outlines */
:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* 14) Reduce motion if user prefers */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* 15) Hidden attribute consistency */
[hidden] {
  display: none !important;
}

/* 16) Remove default border on iframes (legacy-friendly) */
iframe {
  border: 0;
}
