*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--altura-cabecalho) + 1rem); }
body {
  margin: 0;
  font-family: var(--f-texto);
  font-size: var(--t-2);
  line-height: 1.7;
  color: var(--tinta);
  background: var(--branco);
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 {
  font-family: var(--f-titulo);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 var(--e-4);
  color: var(--tinta);
  text-wrap: balance;
}
h2 { font-size: var(--t-5); }
h3 { font-size: var(--t-3); }
p, ul, ol { margin: 0 0 var(--e-4); }
p { text-wrap: pretty; }
a { color: var(--rose-texto); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
strong { font-weight: 600; }

:focus-visible {
  outline: 3px solid var(--rose-texto);
  outline-offset: 3px;
  border-radius: 2px;
}
.escuro :focus-visible { outline-color: var(--rose); }

.pular {
  position: absolute; left: var(--e-4); top: -4rem; z-index: 100;
  background: var(--marinho); color: var(--branco); padding: var(--e-3) var(--e-4);
  font-family: var(--f-titulo); font-weight: 500;
}
.pular:focus { top: var(--e-4); }

.visualmente-oculto {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
