/* ==========================================================================
   v4 · BASE — reset, tipografia, layout e utilitários
   Sem animações de rolagem. Transições curtas apenas em hover/foco.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  min-height: 100svh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, picture, video, canvas, svg { display: block; max-width: 100%; }
img { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; }
ul, ol { list-style: none; padding: 0; }
p, h1, h2, h3, h4 { overflow-wrap: break-word; }
h1, h2, h3, h4 { font-weight: 600; text-wrap: balance; }
p { text-wrap: pretty; }
address { font-style: normal; }
strong { font-weight: 650; }
::selection { background: var(--brand); color: #fff; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }
.wrap--narrow { max-width: calc(var(--max-narrow) + var(--pad) * 2); }
.sec { padding-block: var(--sec-y); position: relative; }
.sec--white { background: var(--white); }
.sec--ice { background: var(--ice); }
.sec--navy { background: var(--brand); color: var(--on-dark); }

/* ---------- Tipografia ---------- */
.t-display, .t-h1, .t-h2 { font-weight: 600; letter-spacing: -.025em; line-height: 1.1; }
.t-display { font-size: var(--fs-display); line-height: 1.06; letter-spacing: -.03em; }
.t-h1 { font-size: var(--fs-h1); }
.t-h2 { font-size: var(--fs-h2); }
.t-h3 { font-size: var(--fs-h3); letter-spacing: -.015em; line-height: 1.25; }
.t-lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--ink-2); }
.sec--navy .t-lead { color: var(--on-dark-2); }

/* Destaque em itálico (títulos) */
.t-display em, .t-h1 em, .t-h2 em {
  font-family: var(--f-serif); font-style: italic; font-weight: 400;
  letter-spacing: -.005em; font-size: 1.1em; line-height: .95; color: var(--coral-ink);
}
.sec--navy .t-h2 em, .fcta .t-h2 em { color: var(--coral-soft); }

.eyebrow { font-size: var(--fs-small); font-weight: 650; color: var(--coral-deep); letter-spacing: .01em; }
.sec--navy .eyebrow { color: var(--coral-soft); }

.prose > * + * { margin-top: 1em; }
.prose p, .prose li { color: var(--ink-2); }
.prose strong { color: var(--ink); }
.prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.prose ul { list-style: disc; padding-left: 1.3rem; display: grid; gap: .5rem; }
.prose--lg p, .prose--lg li { font-size: clamp(1.15rem, 1.1rem + .2vw, 1.25rem); line-height: 1.7; }

/* ---------- Utilitários ---------- */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ic { width: 1.25em; height: 1.25em; flex: none; }
.skip { position: fixed; top: 12px; left: 12px; z-index: 10000; padding: .9rem 1.2rem; background: var(--ink); color: #fff; border-radius: var(--r-s); transform: translateY(-160%); }
.skip:focus { transform: none; }
.linklike { font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Animações leves ----------
   .anim é colocada no <html> por um script curto no <head> (só se o sistema não pede menos movimento).
   Blocos marcados pelo JS com [data-rv] sobem suavemente ao aparecer, uma única vez. */
.anim [data-rv]:not(.rv-in) { opacity: 0; }
.anim .rv-in { animation: rv .85s cubic-bezier(.2,.7,.2,1) backwards; animation-delay: calc(var(--i, 0) * 95ms); }
@keyframes rv { from { opacity: 0; transform: translateY(28px); } }

@media (prefers-reduced-motion: no-preference) {
  /* Entrada do topo da home e das páginas internas */
  .a-in { animation: rv .9s cubic-bezier(.2,.7,.2,1) backwards; animation-delay: calc(var(--d, 0) * 110ms + 100ms); }
  .phero__txt > *, .phero__photo, .phero .anat, .phero__media { animation: rv .9s cubic-bezier(.2,.7,.2,1) backwards; }
  .phero__txt > :nth-child(2) { animation-delay: .08s; } .phero__txt > :nth-child(3) { animation-delay: .16s; }
  .phero__txt > :nth-child(4) { animation-delay: .24s; } .phero__txt > :nth-child(5) { animation-delay: .32s; }
  .phero__txt > :nth-child(n+6) { animation-delay: .4s; }
  .phero__photo, .phero .anat, .phero__media { animation-delay: .2s; animation-duration: 1.1s; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
