/* ============================================================
   BASE — reset + tipografia global
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--ink);
}

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.55;
  color: var(--paper);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100svh;
  overflow-x: hidden;
}

img, video, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

video { background: var(--ink-2); }

/* Marcellus é single-weight (400). Não forçar weight — deixar cair no default. */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: var(--tracking-display);
  color: var(--paper);
  margin: 0;
}

h1 { font-size: var(--step-6); letter-spacing: var(--tracking-tight); line-height: 0.98; }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); letter-spacing: -0.008em; }
h4 { font-size: var(--step-1); }

/* .accent — ênfase por COR, não por itálico. Marcellus não tem itálico e o consultor
   pediu explicitamente pra não usar. Cor dourada, mesmo weight, mesma face. */
.accent { color: var(--gold); }

p { margin: 0; }
p + p { margin-top: var(--space-s); }

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--gold); color: var(--gold-ink); }

button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

/* Utilities */
.wrap {
  width: 100%;
  max-width: var(--wrap-max);
  margin: 0 auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}
.wrap--tight { max-width: var(--wrap-tight); }

.mono-num {
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum';
}

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

.skip-link {
  position: absolute;
  top: -40px; left: 12px;
  background: var(--gold); color: var(--gold-ink);
  padding: 8px 14px;
  z-index: 100;
  font-weight: 600;
  transition: top 200ms var(--ease-out);
}
.skip-link:focus { top: 12px; }

/* ============ REVEAL — SAFE DEFAULT ============ */
/* Padrão: conteúdo VISÍVEL. Só quando JS confirma safe, aplica gate.
   Isso protege contra headless render / IO bloqueado. */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 700ms var(--ease-out),
              transform 700ms var(--ease-out);
}
html.js-reveal .reveal:not(.is-in) {
  opacity: 0;
  transform: translateY(16px);
}
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 { scroll-behavior: auto; }
}

/* Seções */
section { position: relative; }
