/* ---------- Reset mínimo ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html, body { height: 100%; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img, video, svg { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; padding: 0; }
a { color: inherit; text-decoration: none; }

/* ---------- Corpo ---------- */
body {
  font-family: var(--f-body);
  font-size: var(--step-0);
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overscroll-behavior-y: contain;
  position: relative;
}

/* fundo com aura floral bem sutil, contida — não pinta tudo de rosa */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background:
    radial-gradient(900px 500px at 90% -5%, oklch(0.92 0.05 15 / 0.28), transparent 65%),
    radial-gradient(700px 500px at -8% 22%, oklch(0.94 0.04 18 / 0.22), transparent 65%);
}

/* micro-grão que quebra a chapadão de cor sem virar textura visível */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.35;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.35 0 0 0 0 0.22 0 0 0 0 0.18 0 0 0 0.15 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
}
@media (prefers-reduced-motion: no-preference) {
  /* nada — o grão fica */
}

/* ---------- Tipografia global ---------- */
h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.005em;
  line-height: 1.08;
  text-wrap: balance;
}
h1 { font-size: var(--step-6); font-weight: 400; letter-spacing: -0.02em; }
h2 { font-size: var(--step-4); letter-spacing: -0.02em; line-height: 1.06; }
h3 { font-size: var(--step-2); line-height: 1.15; }
h4 { font-size: var(--step-1); line-height: 1.2; }

p { color: var(--ink-2); line-height: 1.65; text-wrap: pretty; }
p + p { margin-top: 0.9em; }

strong { font-weight: 600; color: var(--ink); }
em { font-style: italic; }

::selection { background: oklch(0.85 0.12 20); color: var(--ink); }

/* ---------- Foco ---------- */
:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Container ---------- */
.wrap {
  width: 100%;
  max-width: var(--content);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}
.wrap--narrow { max-width: var(--content-narrow); }

/* ---------- Section base ---------- */
section {
  padding-block: var(--space-2xl);
  position: relative;
}

/* ---------- Utilidades ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--f-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.mono-num {
  font-family: var(--f-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.serif { font-family: var(--f-display); }
.italic { font-style: italic; }

.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;
}

/* ---------- Reveal system SEGURO ---------- */
/* default = visível. Só quando JS confirma safe, aplicamos o gate. */
.reveal {
  opacity: 1;
  transform: none;
  transition:
    opacity var(--dur-slow) var(--ease-out),
    transform var(--dur-slow) var(--ease-out);
}
html.js-reveal .reveal:not(.is-in) {
  opacity: 0;
  transform: translateY(18px);
}
html.js-reveal .reveal.is-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html.js-reveal .reveal:not(.is-in) {
    opacity: 1; transform: none; transition: none;
  }
  html * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
