/* =========================================================================
   reset.css — normalização moderna e sóbria
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* trava o deslocamento horizontal sem quebrar position: sticky
     (ao contrário de overflow-x: hidden) */
  overflow-x: clip;
}

body, h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd, ul, ol {
  margin: 0;
}

ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }

body {
  min-height: 100vh;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: var(--lh-body);
}

h1, h2, h3, h4, h5, h6 { text-wrap: balance; }
p, li { text-wrap: pretty; }

a { color: inherit; }
a:not([class]) { text-decoration-skip-ink: auto; }

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

/* <picture> é apenas um invólucro de selecção de formato: retirá-lo da árvore
   de caixas faz com que a <img> herde directamente o dimensionamento do
   contentor (necessário para object-fit com altura a 100%). */
picture { display: contents; }

input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }

table { border-collapse: collapse; width: 100%; }

:target { scroll-margin-top: calc(var(--header-h) + 24px); }

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