/* Kapitalistate · base: tokens, reset, tipografia, revelar */
:root {
  /* Paleta tirada da capa */
  --vermelho: #BC2E2A;        /* Vermelho Partido */
  --vermelho-vivo: #D8151F;
  --laranja: #D86A3F;         /* Laranja Alvorada */
  --laranja-claro: #E98848;
  --amarelo: #F8C051;         /* Amarelo Fósforo: ação */
  --amarelo-hover: #FFD27A;
  --sangue: #751F1B;          /* Sangue seco */
  --carvao: #160C09;          /* fundo escuro */
  --carvao-2: #221714;
  --carvao-3: #2E211D;
  --nevoa: #3A3734;           /* cinza das ilustrações */
  --papel: #ECE6DA;           /* texto claro e fundo de papel */
  --papel-2: #DCD3C2;
  --texto-suave: #BFB6A8;
  --linha: rgba(236,230,218,.14);
  --linha-escura: rgba(22,12,9,.18);

  --f-titulo: "Anton", "Impact", "Arial Narrow", sans-serif;
  --f-texto: "Lato", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-maquina: "Special Elite", "Courier New", monospace;

  --fs-display: clamp(2.75rem, 1.6rem + 4.6vw, 5.5rem);
  --fs-h2: clamp(2rem, 1.4rem + 2.4vw, 3.5rem);
  --fs-h3: clamp(1.375rem, 1.2rem + .7vw, 1.875rem);
  --fs-corpo: clamp(1rem, .97rem + .15vw, 1.125rem);
  --fs-pequeno: .875rem;
  --fs-rotulo: .8125rem;

  --e-1:4px; --e-2:8px; --e-3:12px; --e-4:16px; --e-5:24px; --e-6:32px; --e-7:48px; --e-8:64px; --e-9:96px;
  --secao: clamp(64px, 9vw, 120px);
  --lateral: clamp(16px, 4vw, 32px);
  --largura: 1200px;
  --altura-header: 64px;

  --r-botao: 3px; --r-card: 4px;
  --ease: cubic-bezier(.22,.61,.36,1);
  --t-rapida: 200ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--altura-header) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--carvao); color: var(--papel);
  font-family: var(--f-texto); font-size: var(--fs-corpo); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
h2 { font-family: var(--f-titulo); font-weight: 400; font-size: var(--fs-h2); line-height: 1.05; letter-spacing: .01em; text-transform: uppercase; }
h3 { font-family: var(--f-titulo); font-weight: 400; font-size: var(--fs-h3); line-height: 1.1; letter-spacing: .02em; text-transform: uppercase; }
h4 { font-family: var(--f-texto); font-weight: 900; font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
blockquote { margin: 0; }

.container { width: min(100% - 2 * var(--lateral), var(--largura)); margin-inline: auto; }
main { overflow-x: clip; }

:focus-visible { outline: 3px solid var(--amarelo); outline-offset: 3px; }
.secao--papel :focus-visible { outline-color: var(--carvao); }

.pular-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--amarelo); color: var(--carvao); padding: 12px 16px; font-weight: 700; text-decoration: none;
}
.pular-link:focus { top: 12px; }

.visualmente-oculto { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Entrada ao rolar (nível marcante, com cascata) */
.revelar { opacity: 0; transform: translateY(36px) scale(.97);
  transition: opacity 1100ms var(--ease) var(--atraso, 0ms), transform 1200ms var(--ease) var(--atraso, 0ms); }
.revelar.visivel { opacity: 1; transform: none; }
.revelar.da-esquerda:not(.visivel) { transform: translateX(-56px); }
.revelar.da-direita:not(.visivel) { transform: translateX(56px); }
@media (max-width: 767px) {
  .revelar.da-esquerda:not(.visivel), .revelar.da-direita:not(.visivel) { transform: translateY(36px) scale(.97); }
}
.sem-js .revelar { opacity: 1; transform: none !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .revelar { opacity: 1; transform: none !important; }
}
