/*
 * base.css — reset, tipografia e estrutura global.
 * Depende de tokens.css.
 */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, picture { display: block; max-width: 100%; height: auto; }
a { color: var(--royal); text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--font-title); line-height: var(--lh-title); margin: 0; color: inherit; letter-spacing: -.01em; }
/* Hero e seções usam o mesmo tamanho de título */
h1, h2 { font-size: var(--fs-title); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 var(--space-2); }
p, li, dd, blockquote { text-wrap: pretty; }
h1, h2, h3, summary { text-wrap: balance; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.skip-link {
  position: absolute; left: var(--space-2); top: -4rem; z-index: 200;
  background: var(--navy); color: var(--white); padding: .75rem 1rem; border-radius: var(--r-sm);
}
.skip-link:focus { top: var(--space-2); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
