/* ==========================================================================
   Base: reset, tipografia, foco e utilitários
   ========================================================================== */

*, *::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(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Hierarquia por escala e peso — a cor fica igual em todos os níveis. */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text);
  margin: 0;
  font-weight: 800;
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
}
h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-lg); letter-spacing: var(--tracking-snug); line-height: var(--lh-snug); }
h4 { font-size: var(--fs-base); letter-spacing: var(--tracking-snug); }

p { margin: 0; }

a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; }

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

/* --- Utilitários --- */

.hidden { display: none !important; }
.center { text-align: center; }
.muted { color: var(--text-2); }
.small { font-size: var(--fs-sm); }

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

/* Pula direto para o conteúdo — só aparece com o teclado. */
.skip {
  position: absolute; left: var(--sp-4); top: -60px; z-index: 100;
  background: var(--surface); color: var(--text); padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  transition: top .15s var(--ease);
}
.skip:focus { top: var(--sp-4); text-decoration: none; }

.shell { max-width: var(--max); margin: 0 auto; padding-inline: var(--sp-5); }

.section { padding-block: var(--sp-9); }
.section--tight { padding-block: var(--sp-8); }
/* Nenhuma seção usa --surface: cartão branco sobre seção branca é
   exatamente o que fazia tudo se dissolver. */
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.section--sunken { background: var(--bg-sunken); border-block: 1px solid var(--border); }

@media (max-width: 640px) {
  .section { padding-block: var(--sp-7); }
  .section--tight { padding-block: var(--sp-6); }
}

/* Cabeçalho de seção: olho, título, linha de apoio. */
.head { max-width: 36rem; margin-bottom: var(--sp-7); }
.head > p:last-child { color: var(--text-2); font-size: var(--fs-md); margin-top: var(--sp-3); }

.eyebrow {
  font-family: var(--font-display);
  font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: var(--tracking-wide); text-transform: uppercase;
  color: var(--accent-text); margin-bottom: var(--sp-3);
}

/* Ícones: uma família só, traço consistente, herdam a cor do contexto. */
.icon {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor;
  stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}
.icon--lg { width: 24px; height: 24px; }
