*, *::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: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--graphite);
  font-family: var(--font-ui);
  font-size: var(--text-md);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin: 0 0 var(--space-4);
  color: var(--plum);
  font-family: var(--font-editorial);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
h1 { font-size: var(--title-1); }
h2 { font-size: var(--title-2); }
h3 { font-size: var(--title-3); }
h4 { font-size: var(--text-xl); }

p { margin: 0 0 var(--space-4); text-wrap: pretty; }
a { color: var(--lilac-deep); text-underline-offset: 3px; }
a:hover { color: var(--plum); }
img, svg { max-width: 100%; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--space-6) 0; }

:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--radius-sm); }

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

.skip-link {
  position: absolute; left: var(--space-4); top: -4rem; z-index: 100;
  background: var(--plum); color: var(--cream); padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-pill); text-decoration: none; transition: top 0.2s;
}
.skip-link:focus { top: var(--space-4); }

.eyebrow {
  display: inline-block; margin-bottom: var(--space-4);
  color: var(--lilac-deep); font-size: var(--text-xs); font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
}
.lead { font-size: var(--text-lg); color: var(--graphite); max-width: 38rem; }
.muted { color: var(--graphite); opacity: 0.82; }
.icon { width: 1.25rem; height: 1.25rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon-lg { width: 1.75rem; height: 1.75rem; }

/* Utilitários (a CSP não permite style="" inline) */
.h3 { font-size: var(--title-3); }
.h4 { font-size: var(--text-xl); }
.mt-4 { margin-top: var(--space-4); }
.mb-4 { margin-bottom: var(--space-4); }
.fieldset-reset { border: 0; padding: 0; margin: 0; min-width: 0; }
