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

html, body, div, span, h1, h2, h3, h4, h5, h6, p, a, ul, li, form, label, button, input, textarea {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  vertical-align: baseline;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--text-primary);
  background: var(--background);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  min-height: 100dvh;
}

ul { list-style: none; }
a { text-decoration: none; color: inherit; }

button {
  cursor: pointer;
  background: none;
  font-family: inherit;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}
button:disabled { cursor: not-allowed; }

input, textarea {
  font-family: inherit;
  background: none;
  color: inherit;
}
input:focus, textarea:focus { outline: none; }

img { display: block; max-width: 100%; }
/* Safety-net default so any icon placed without a specific size rule never
   explodes to intrinsic SVG size — specific component rules override this. */
svg { display: block; width: 20px; height: 20px; flex-shrink: 0; }

/* Focus visibility for keyboard users */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

@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;
  }
}
