/* Reset moderno enxuto - baseado em Andy Bell + Josh Comeau */

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

* { margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; -moz-tab-size: 4; tab-size: 4; }

html { height: 100%; }
/* body cresce com o conteúdo (min-height, não height fixo): mantém o navbar
   sticky fixo durante toda a rolagem — com height:100% o body travava em 1
   viewport e o header "desgrudava" ao chegar perto do rodapé. */
body { min-height: 100%; }

body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

/* <picture> é só um wrapper de fallback WebP — transparente ao layout,
   para que as regras de img (flex dos cards, columns da galeria) valham igual. */
picture {
  display: contents;
}

input, button, textarea, select { font: inherit; color: inherit; }

button { background: none; border: none; cursor: pointer; }

p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }

h1, h2, h3, h4, h5, h6 { line-height: 1.1; }

ul, ol { list-style: none; }

a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Respeita preferência de reduced-motion globalmente */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
