/* ==========================================================================
   Base — reset e tipografia
   ========================================================================== */

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

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

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

body {
  margin: 0;
  background: var(--branco);
  color: var(--texto);
  font-family: var(--fonte-texto);
  font-size: var(--t-corpo);
  font-weight: 300;
  line-height: var(--lh-corpo);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--fonte-titulo);
  font-weight: 400;
  line-height: var(--lh-titulo);
  margin: 0 0 var(--e-4);
  color: inherit;
  text-wrap: balance;
}

p { margin: 0 0 var(--e-4); max-width: var(--leitura); }
p:last-child { margin-bottom: 0; }

a { color: var(--dourado-escuro); text-decoration: none; transition: color var(--transicao); }
a:hover { color: var(--dourado); }

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

ul, ol { margin: 0 0 var(--e-4); padding-left: 1.25rem; }
li { margin-bottom: var(--e-2); }

strong, b { font-weight: 500; }

/* pular para o conteúdo — acessibilidade */
.pular {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--dourado);
  color: var(--tinta-botao);
  padding: var(--e-3) var(--e-5);
  z-index: 200;
  font-weight: 500;
}
.pular:focus { left: 0; color: var(--tinta-botao); }

.sr {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.env {
  width: 100%;
  max-width: var(--largura);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}
