/* ==========================================================
   BASE: reset, tipografia e utilidades usadas em todo o site
   ========================================================== */
:root { box-sizing: border-box; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(env(safe-area-inset-top, 0px) + var(--altura-cabecalho-rolando) + 8px); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--fundo); color: var(--texto); font-family: var(--font-texto); font-weight: var(--peso-texto); font-size: var(--texto-corpo); line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--foco); outline-offset: 3px; }
em { font-style: italic; }
strong { font-weight: 500; }

h1, h2, h3 { margin: 0; font-family: var(--font-titulo); font-weight: var(--peso-titulo); text-wrap: balance; }
h1 { font-size: var(--texto-titulo-1); line-height: 1.14; letter-spacing: -0.015em; }
h2 { font-size: var(--texto-titulo-2); line-height: 1.2; letter-spacing: -0.015em; }
h3 { font-size: var(--texto-titulo-3); line-height: 1.3; font-weight: 400; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
.suave { color: var(--texto-suave); }
.rotulo { font-size: var(--texto-rotulo); font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--texto-suave); }
.filete { display: block; width: var(--filete-vermelho); height: 3px; background: var(--praca); border: 0; margin: 0; }
[hidden] { display: none !important; }

/* Só para o leitor de tela */
.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; }

/* A cabeça de cada seção: rótulo, título e texto curto, centralizados */
.cabeca { display: flex; flex-direction: column; gap: var(--espaco-3); max-width: 760px; }
.cabeca.centro { margin: 0 auto; align-items: center; text-align: center; }
.cabeca h2 { max-width: 15.7em; }  /* os 24ch da Notch, em em (ver .abertura h1, em secoes/inicio.css) */
.cabeca-texto { max-width: var(--largura-texto); color: var(--texto-suave); }
.cabeca .rotulo::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 10px; vertical-align: .08em; background: var(--praca); }

/* Painéis alternáveis (as fases do ciclo, os sete fatores): o conteúdo de todos está no HTML.
   Sem JavaScript, todos aparecem; com JavaScript, só o que tem a classe "ativo". */
.js .alternavel:not(.ativo) { display: none; }

/* Revelação ao rolar (só com JavaScript ativo e sem preferência por menos movimento) */
.js .revelar { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.js .revelar.visivel { opacity: 1; transform: none; }

@media (max-width: 760px) {
  body { font-size: 17px; }
  .rotulo { letter-spacing: .18em; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .revelar { opacity: 1; transform: none; }
}
