/*
 * ProfVictor, reset defensivo
 * Box model, tipografia base, helpers globais.
 * SVGs de ícone exigem width/height explícitos no HTML, não dependem de CSS.
 */

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Imagens fluidas; SVGs respeitam suas próprias dimensões. */
img { display: block; max-width: 100%; height: auto; }
svg { display: inline-block; flex-shrink: 0; }
.figure svg, figure svg, .feat-fig svg { display: block; width: 100%; height: 100%; }

a { color: var(--primary); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--primary-700); }

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

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--primary); color: #fff;
  padding: 12px 18px; font-weight: 700; z-index: 100;
}
.skip-link:hover,
.skip-link:focus { left: 12px; top: 12px; color: #fff; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gut); }
.wrap-narrow { max-width: var(--maxw-page); margin: 0 auto; padding-inline: var(--gut); }

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