/* Base: reset leve, tipografia, foco e utilitários. Depende de tokens.css. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background-color: var(--fundo);
  color: var(--texto);
  font-family: var(--fonte-texto);
  font-size: var(--tam-texto);
  line-height: var(--entrelinha);
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
/* textura discreta de papel */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .5;
  background-image: var(--textura-papel);
}

img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--fonte-titulo);
  font-weight: var(--peso-titulo);
  line-height: var(--entrelinha-titulo);
  letter-spacing: -.01em;
  font-variation-settings: var(--eixos-titulo);
  text-wrap: balance;
}
h2 { font-size: var(--tam-h2); max-width: 22ch; }
h3 { font-size: var(--tam-h3); font-variation-settings: "SOFT" 100, "opsz" 30; }
em { font-style: italic; }
strong { font-weight: 700; }
p, li { text-wrap: pretty; }

:focus-visible { outline: 3px solid var(--foco); outline-offset: 3px; }

.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.pular { position: absolute; left: 12px; top: -60px; z-index: 60; background: var(--cor-tinta); color: var(--cor-creme); padding: .6em 1em; border-radius: var(--raio-pilula); }
.pular:focus { top: 12px; }

.largura { width: min(100% - 2 * var(--gutter), var(--largura)); margin-inline: auto; }
.largura-ampla { width: min(100% - 2 * var(--gutter), var(--largura-ampla)); margin-inline: auto; }
.mao { font-family: var(--fonte-mao); font-weight: 600; line-height: 1.1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; animation-delay: 0s !important; }
}
