/* ============================================================
   BASE — reset leve, tipografia base, utilitários
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

/* Proteção contra scroll horizontal acidental */
body { overflow-x: clip; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 300;
  line-height: var(--lh-body);
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, picture, svg { max-width: 100%; display: block; }
figure { margin: 0; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: var(--lh-tight);
  font-weight: 500;
  margin: 0;
  letter-spacing: -.005em;
}

p { margin: 0; }

/* --- Layout utils --- */
.container { width: var(--container); margin-inline: auto; }
.container-narrow { width: var(--container-narrow); margin-inline: auto; }

/* Rótulo maiúsculo espaçado (letterpress) — assinatura do sistema */
.label {
  display: inline-block;
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--gold);
}
.label--on-navy { color: var(--gold-soft); }
.label--muted { color: var(--muted); }

/* Filete dourado curto (divisória decorativa) */
.rule-gold { width: 56px; height: 1px; background: var(--gold); border: 0; margin: var(--space-4) 0; }
.rule-gold--center { margin-inline: auto; }

.lead { font-size: var(--fs-lead); color: var(--ink-soft); max-width: var(--measure); font-weight: 300; }

.section { padding-block: var(--section-y); }

.section-heading { max-width: 46rem; margin-bottom: var(--space-8); }
.section-heading h2 { font-size: var(--fs-h2); margin: var(--space-3) 0 var(--space-4); }
.section-heading p { color: var(--ink-soft); font-size: var(--fs-lead); font-weight: 300; }
.section-heading--center { margin-inline: auto; text-align: center; }
.section-heading--center .rule-gold { margin-inline: auto; }

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

/* --- Foco visível (acessibilidade) --- */
:where(a, button, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 3px;
}

/* --- Movimento reduzido --- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}
