/* reset.css
* Minimal reset — normalises browser defaults without
* being as opinionated as normalize.css or modern-reset.
* Goal: predictable box model, sensible baseline, nothing more.
*/

/* Box sizing across everything including pseudo-elements */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Remove default margin and padding from common elements */
body,
h1, h2, h3, h4, h5, h6,
p,
ul, ol, dl,
figure,
blockquote,
pre {
  margin: 0;
  padding: 0;
}

/* Lists — remove bullets only when a list is inside nav
* or has a class; preserve semantic list appearance elsewhere
* for accessibility and graceful degradation */
nav ul,
nav ol {
  list-style: none;
}

/* Images and media — block, constrained to parent */
img,
video,
svg {
  display: block;
  max-width: 100%;
}

/* Inherit fonts in form elements — browsers don't do this by default */
input,
button,
textarea,
select {
  font: inherit;
}

/* Remove default button appearance but keep it accessible */
button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

/* Prevent text size inflation on mobile after orientation change */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Smooth scrolling — respects reduced motion preference */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* Hidden utility — accessible hide (screen readers still read it) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}