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

/* 1) Box sizing i zerowanie marginesów */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

/* 2) Podstawy dokumentu */
html, body { height: 100%; }
html:focus-within { scroll-behavior: smooth; }
body {
  min-height: 100%;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* 3) Media i obrazy */
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}
img, picture { height: auto; }

/* 4) Typografia */
/* :where(h1, h2, h3, h4, h5, h6) { font-size: inherit; font-weight: inherit; }
:where(p, h1, h2, h3, h4, h5, h6) { overflow-wrap: anywhere; } */

/* 5) Linki */
a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 0.2em;
  text-decoration-skip-ink: auto;
}
a:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

/* 6) Listy */
:where(ul, ol)[role="list"],
:where(nav ul, nav ol) { list-style: none; padding: 0; }

/* 7) Formularze i przyciski */
input, button, textarea, select { font: inherit; color: inherit; }
button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
textarea { resize: vertical; }

/* 8) Tabele */
table { border-collapse: collapse; border-spacing: 0; }

/* 9) Elementy interaktywne */
:where(details) { display: block; }
summary { cursor: pointer; }

/* 10) Preferencje systemowe – ograniczenie animacji */
@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;
  }
}
