/* Reset mínimo */
*, *::before, *::after { box-sizing: border-box; }
/* O header é fixo (~90px). Sem isso, os 12 links de âncora da página entregam
   a seção com o título cortado atrás dele. */
html { scroll-padding-top: 6.5rem; }
[hidden] { display: none !important; } /* garante hidden mesmo com display de autor (grid/flex) */
body, h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
address { font-style: normal; }
summary { cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--color-accent); color: var(--color-on-accent);
  padding: 0.6rem 1rem; border-radius: var(--radius-sm);
  font-weight: 600; text-decoration: none;
  transition: top var(--transition);
}
.skip-link:focus { top: 1rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
