:root {
  --verde-900: #03211a;
  --verde-800: #073328;
  --verde-700: #0d4a3a;
  --amarelo: #ffcf24;
  --papel: #f6f3ea;
  --papel-2: #ebe7da;
  --tinta: #10201b;
  --tinta-suave: #4a5a54;
  --branco: #ffffff;
  --gelo: #c9d6d0;
  --titulo: "Archivo Black", "Arial Black", sans-serif;
  --texto: "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--verde-900);
  color: var(--tinta);
  font: 400 1.0625rem/1.65 var(--texto);
  -webkit-text-size-adjust: 100%;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2 { font-family: var(--titulo); font-weight: 400; line-height: 1.08; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 4.4vw, 3.1rem); max-width: 20em; }
h3 { margin: 0; font-size: 1.125rem; line-height: 1.3; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--amarelo); outline-offset: 3px; }

.faixa { width: min(1160px, 100%); margin-inline: auto; padding-inline: 16px; }
@media (min-width: 720px) { .faixa { padding-inline: 32px; } }

.pular { position: absolute; left: -999px; top: 8px; z-index: 20; background: var(--amarelo); color: var(--verde-900); padding: 8px 14px; font-weight: 600; }
.pular:focus { left: 8px; }

.rotulo { font: 500 0.8125rem/1.4 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; }

/* Topo */
.topo { position: sticky; top: 0; z-index: 10; background: var(--verde-900); border-bottom: 1px solid var(--verde-700); color: var(--branco); }
.topo-linha { display: flex; align-items: center; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; padding-block: 12px; }
.marca { display: inline-flex; }
.marca img { width: auto; height: 32px; }
.topo nav { display: flex; gap: 16px; font-size: 0.9375rem; font-weight: 500; }
.topo nav a { text-decoration: none; padding-block: 4px; color: var(--gelo); }
.topo nav a:hover { color: var(--amarelo); }

/* Abertura */
.abertura { background: var(--verde-900); color: var(--branco); overflow: hidden; }
.abertura-grade { display: grid; gap: 24px; padding-top: 40px; }
.abertura .rotulo { color: var(--amarelo); }
h1 { font-size: clamp(2.5rem, 6vw, 4.25rem); margin-top: 16px; }
h1 em { display: block; font-style: normal; color: var(--amarelo); }
.lide { margin-top: 20px; max-width: 34em; color: var(--gelo); font-size: 1.1875rem; }
.acoes { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.botao { display: inline-block; padding: 13px 22px; font-weight: 600; text-decoration: none; border: 2px solid transparent; }
.botao-cheio { background: var(--amarelo); color: var(--verde-900); }
.botao-cheio:hover { background: var(--branco); }
.botao-linha { border-color: var(--gelo); color: var(--branco); }
.botao-linha:hover { border-color: var(--amarelo); color: var(--amarelo); }
.botao-escuro { background: var(--verde-900); color: var(--branco); }
.botao-escuro:hover { background: var(--verde-700); }
.retrato { width: min(84%, 380px); justify-self: center; align-self: end; }
@media (min-width: 900px) {
  .abertura-grade { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: end; gap: 32px; padding-top: 56px; }
  .abertura-texto { padding-bottom: 72px; align-self: center; }
  .retrato { width: 100%; max-width: 480px; justify-self: end; }
}

/* Números */
.numeros { background: var(--amarelo); color: var(--verde-900); }
.numeros-grade { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; margin-block: 0; padding-block: 28px; }
.numeros dt { font-family: var(--titulo); font-size: clamp(1.75rem, 4vw, 2.5rem); line-height: 1.1; }
.numeros dd { margin: 4px 0 0; font-size: 0.9375rem; line-height: 1.35; font-weight: 500; }
@media (min-width: 800px) { .numeros-grade { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Blocos */
.bloco { padding-block: 64px; }
@media (min-width: 800px) { .bloco { padding-block: 96px; } }
.bloco h2 { margin-top: 12px; }
.claro { background: var(--papel); }
.claro-2 { background: var(--papel-2); }
.claro .rotulo, .claro-2 .rotulo, .contato .rotulo { color: var(--verde-700); }

/* Linha do tempo */
.linha-tempo { margin-top: 40px; border-left: 2px solid var(--verde-700); }
.linha-tempo li { position: relative; display: grid; gap: 2px; padding: 0 0 28px 22px; }
.linha-tempo li:last-child { padding-bottom: 0; }
.linha-tempo li::before { content: ""; position: absolute; left: -7px; top: 8px; width: 12px; height: 12px; background: var(--verde-700); }
.linha-tempo li.atual::before { background: var(--amarelo); outline: 2px solid var(--verde-900); }
.data { font: 500 0.875rem/1.5 var(--mono); color: var(--verde-700); }
.linha-tempo p { color: var(--tinta-suave); margin-top: 2px; max-width: 42em; }
@media (min-width: 720px) {
  .linha-tempo li { grid-template-columns: 130px minmax(0, 1fr); gap: 20px; }
}

/* Ciência */
.ciencia-grade { display: grid; gap: 40px; }
.ciencia-grade > div > p:not(.rotulo) { margin-top: 18px; max-width: 34em; }
.subtitulo { margin-top: 32px; font: 500 0.8125rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: 0.04em; color: var(--verde-700); }
.subtitulo.primeiro { margin-top: 0; }
.premios { margin-top: 12px; }
.premios li { padding-block: 10px; border-top: 1px solid #cfc9b8; }
.premios strong { font-family: var(--mono); font-weight: 500; margin-right: 6px; }
.publicacoes { margin-top: 12px; }
.publicacoes li { padding-block: 12px; border-top: 1px solid #cfc9b8; }
.publicacoes a, .publicacoes p { font-weight: 600; line-height: 1.4; }
.publicacoes span { display: block; margin-top: 4px; font-size: 0.875rem; color: var(--tinta-suave); }
.seta { display: inline-block; margin-top: 16px; font-weight: 600; color: var(--verde-700); }
@media (min-width: 900px) { .ciencia-grade { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; } }

/* Política */
.escuro { background: var(--verde-800); color: var(--branco); }
.escuro .rotulo { color: var(--amarelo); }
.intro { margin-top: 16px; max-width: 38em; color: var(--gelo); font-size: 1.125rem; }
.nos { display: grid; gap: 14px; margin-top: 36px; }
.no { display: flex; flex-direction: column; padding: 22px; background: var(--verde-900); border-top: 3px solid var(--verde-700); }
.no.destaque { border-top-color: var(--amarelo); }
.ordem { font: 500 0.8125rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: 0.04em; color: var(--gelo); }
.no strong { font-family: var(--titulo); font-weight: 400; color: var(--amarelo); font-size: 1.875rem; line-height: 1.12; margin-top: 10px; }
.no p { margin-top: 10px; color: var(--branco); }
.no small { margin-top: auto; padding-top: 14px; font-size: 0.8125rem; line-height: 1.4; color: var(--gelo); }
@media (min-width: 720px) {
  .nos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .no.destaque { grid-column: 1 / -1; }
  .no.destaque strong { font-size: 2.75rem; }
  .no.destaque p { max-width: 44em; }
}
.pautas-titulo { margin-top: 52px; font-size: 1.25rem; }
.pautas { display: grid; gap: 16px; margin-top: 16px; }
.pautas li { padding-top: 12px; border-top: 1px solid var(--verde-700); color: var(--gelo); }
.pautas strong { display: block; color: var(--branco); }
@media (min-width: 720px) { .pautas { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }

/* Contato */
.contato { background: var(--amarelo); color: var(--verde-900); }
.contato .rotulo { color: var(--verde-900); }
.contato-linha { display: grid; gap: 24px; }
.contato p:not(.rotulo) { margin-top: 10px; }
@media (min-width: 800px) {
  .contato-linha { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
}

/* Fotos */
.foto { margin: 0; }
.foto img { width: 100%; }
.foto figcaption { margin-top: 8px; font-size: 0.875rem; line-height: 1.4; }
.escuro .foto figcaption { color: var(--gelo); }
.dupla { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.legenda { grid-column: 1 / -1; }
.legenda p { font-weight: 600; font-size: 1.125rem; line-height: 1.4; }
.legenda small { display: block; margin-top: 8px; font-size: 0.8125rem; color: var(--tinta-suave); }
@media (min-width: 900px) {
  .dupla { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: end; }
  .legenda { grid-column: auto; padding-bottom: 8px; }
}

/* Da ideia à lei */
.lei-grade, .politica-topo { display: grid; gap: 32px; }
.lei-texto p:not(.rotulo) { margin-top: 16px; max-width: 34em; color: var(--gelo); }
.lei-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 26px; }
.lei-links a:not(.botao) { color: var(--branco); font-weight: 600; }
.lei-links a:not(.botao):hover { color: var(--amarelo); }
.linha-tempo a { color: var(--verde-700); font-weight: 600; }
@media (min-width: 900px) {
  .lei-grade, .politica-topo { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; align-items: center; }
}

/* Família */
.familia-grade { display: grid; gap: 32px; }
.familia-texto > p:not(.rotulo) { margin-top: 16px; max-width: 30em; font-size: 1.1875rem; }
.familia-fotos { display: grid; gap: 16px; }
.familia-fotos img { aspect-ratio: 3 / 2; object-fit: cover; }
.claro-2 .foto figcaption { color: var(--tinta-suave); }
@media (min-width: 900px) {
  .familia-grade { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 56px; align-items: center; }
  .familia-fotos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Na imprensa */
.citacoes { display: grid; gap: 14px; margin-top: 36px; }
.citacoes li { padding: 20px; background: var(--branco); border-top: 3px solid var(--verde-700); }
.citacoes li:first-child { border-top-color: var(--amarelo); }
.fonte { display: block; font: 500 0.75rem/1.4 var(--mono); text-transform: uppercase; color: var(--verde-700); }
.citacoes a { display: block; margin-top: 8px; font-weight: 700; line-height: 1.3; color: var(--tinta); font-size: 1.125rem; }
.citacoes a:hover { color: var(--verde-700); }
.citacoes p { margin-top: 6px; font-size: 0.9375rem; line-height: 1.45; color: var(--tinta-suave); }
@media (min-width: 720px) {
  .citacoes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .citacoes li:first-child { grid-column: 1 / -1; }
  .citacoes li:first-child a { font-family: var(--titulo); font-weight: 400; font-size: 1.75rem; }
}

/* Redes */
.redes { display: flex; flex-wrap: wrap; gap: 10px; }
.rodape-logo { width: auto; height: 36px; margin-bottom: 14px; }

/* Animações */
.abertura { position: relative; }
.abertura-grade { position: relative; z-index: 1; }
.monitor { position: absolute; left: 0; bottom: 6px; width: 100%; height: 64px; fill: none; stroke-width: 2; stroke-linejoin: round; }
.monitor-base { stroke: var(--verde-700); }
.monitor-pulso { stroke: var(--amarelo); stroke-dasharray: 0 1; }
.botao { transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s; }
.botao:hover { transform: translateY(-2px); }
.topo nav a { transition: color 0.2s; }
.no { transition: transform 0.25s, border-color 0.25s; }
.no:hover { transform: translateY(-4px); border-top-color: var(--amarelo); }
.linha-tempo { position: relative; }
.js .linha-tempo { border-left-color: #d5d0c1; }
.js .linha-tempo::before { content: ""; position: absolute; left: -2px; top: 0; width: 2px; height: calc(var(--progresso, 1) * 100%); background: var(--verde-700); }

@media (prefers-reduced-motion: no-preference) {
  .monitor-pulso { stroke-dasharray: 0.09 0.91; animation: varredura 5s linear infinite; }
  .abertura-texto > * { animation: subir 0.7s ease-out both; }
  .abertura-texto > :nth-child(2) { animation-delay: 0.1s; }
  .abertura-texto > :nth-child(3) { animation-delay: 0.22s; }
  .abertura-texto > :nth-child(4) { animation-delay: 0.34s; }
  .retrato { animation: subir 0.9s 0.15s ease-out both; }

  .js .revela.visivel { transition: opacity 0.6s ease-out var(--atraso, 0s), transform 0.6s ease-out var(--atraso, 0s); }
  .js .revela:not(.visivel) { opacity: 0; transform: translateY(18px); transition: none; }
  .js .linha-tempo li::before { transition: transform 0.3s ease-out 0.2s; }
  .js .linha-tempo li.revela:not(.visivel)::before { transform: scale(0.3); }
}

@keyframes varredura {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: -0.09; }
}
@keyframes subir {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}

/* Rodapé */
.rodape { background: var(--verde-900); color: var(--gelo); padding-block: 28px; font-size: 0.875rem; line-height: 1.5; }
.rodape p + p { margin-top: 6px; }
