:root {
  --bg: #F1F3F0;
  --surface: #FFFFFF;
  --ink: #0E1418;
  --ink-soft: #2B363D;
  --muted: #5B6A70;
  --line: #D8DFDB;
  --accent: #FFD60A;
  --on-accent: #0E1418;
  --link: #0E1418;
  --tile: #E4E9E5;
  --bar: #0E1418;
  --bar-line: #0E1418;
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --wrap: 1120px;
  --gutter: 16px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B1013; --surface: #121A1F; --ink: #EAF0ED; --ink-soft: #C6D0CC; --muted: #8FA09F;
    --line: #243038; --tile: #17222A; --link: #EAF0ED; --bar: #05080A; --bar-line: #243038;
  }
}
:root[data-theme="dark"] {
  --bg: #0B1013; --surface: #121A1F; --ink: #EAF0ED; --ink-soft: #C6D0CC; --muted: #8FA09F;
  --line: #243038; --tile: #17222A; --link: #EAF0ED; --bar: #05080A; --bar-line: #243038;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 18px; line-height: 1.65; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 4px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; margin: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--on-accent); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
.mono, .eyebrow, .chip, .meta, .byline, .contadores span { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; }

/* topo */
.topo { background: var(--bar); color: #F1F3F0; position: sticky; top: 0; z-index: 5; border-bottom: 1px solid var(--bar-line); }
.topo-in { display: flex; align-items: center; gap: 24px; padding-block: 12px; }
.logo { font-family: var(--font-display); font-weight: 800; font-size: 24px; letter-spacing: -0.03em; text-decoration: none; display: inline-flex; align-items: baseline; margin: 0; color: inherit; }
.logo-g { color: inherit; }
.logo-t { background: var(--accent); color: var(--on-accent); padding: 0 6px; margin-left: 3px; border-radius: 3px; }
.topo .logo { color: #F1F3F0; }
.nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin-left: auto; }
.nav a { color: #F1F3F0; text-decoration: none; font-family: var(--font-display); font-weight: 500; font-size: 15px; padding: 8px 10px; border-radius: 4px; white-space: nowrap; }
.nav a:hover { background: rgba(255,255,255,0.12); }
@media (max-width: 760px) { .topo-in { flex-wrap: wrap; gap: 4px 16px; } .nav { margin-left: 0; width: 100%; } }

/* hero */
.hero { padding-block: 56px 32px; }
.eyebrow { color: var(--muted); margin: 0 0 12px; }
.hero h1 { font-size: clamp(44px, 9vw, 104px); font-weight: 800; letter-spacing: -0.045em; line-height: 0.98; }
.hero mark { background: var(--accent); color: var(--on-accent); padding: 0 0.12em; border-radius: 6px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.hero-sub { max-width: 60ch; color: var(--ink-soft); font-size: 20px; margin: 20px 0 0; }
.contadores { list-style: none; display: flex; flex-wrap: wrap; gap: 12px 40px; padding: 0; margin: 32px 0 0; }
.contadores li { display: flex; flex-direction: column; }
.contadores strong { font-family: var(--font-display); font-weight: 800; font-size: 44px; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.contadores span { color: var(--muted); margin-top: 6px; }

/* blocos */
.bloco { padding-block: 32px; }
.bloco-h { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; border-top: 3px solid var(--ink); padding-top: 12px; margin-bottom: 20px; }
.bloco-h h2 { font-size: 26px; font-weight: 800; }
.bloco-h a { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; }

/* cards */
.card { display: flex; flex-direction: column; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.card-img { display: block; aspect-ratio: 16 / 9; background: var(--tile); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.tile { display: grid; place-items: center; width: 100%; height: 100%; font-family: var(--font-display); font-weight: 800; font-size: clamp(32px, 6vw, 56px); letter-spacing: -0.04em; color: var(--muted); opacity: 0.55; }
.card-tx { padding: 0 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.card h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.015em; }
.card h3 a { text-decoration: none; }
.card h3 a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; }
.resumo { margin: 0; color: var(--ink-soft); font-size: 17px; line-height: 1.5; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; color: var(--muted); margin: 0; }
.chip { background: var(--accent); color: var(--on-accent); padding: 3px 8px; border-radius: 3px; text-decoration: none; font-weight: 500; }
.chip-sm { font-size: 11px; padding: 2px 6px; }
.grade-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.manchetes { display: grid; grid-template-columns: 1.6fr 1fr 1fr; grid-template-rows: auto auto; gap: 20px; }
.manchetes .grande { grid-row: span 2; }
.manchetes .grande h3 { font-size: clamp(26px, 3.2vw, 38px); letter-spacing: -0.025em; line-height: 1.08; }
.manchetes .grande .resumo { font-size: 18px; }
.bloco > .card.grande { display: grid; grid-template-columns: 1.3fr 1fr; gap: 0; }
.bloco > .card.grande .card-img { aspect-ratio: auto; min-height: 280px; }
.bloco > .card.grande .card-tx { padding: 24px; justify-content: center; }
@media (max-width: 860px) {
  .grade-3, .manchetes { grid-template-columns: 1fr; }
  .manchetes .grande { grid-row: auto; }
  .bloco > .card.grande { grid-template-columns: 1fr; }
  .bloco > .card.grande .card-img { aspect-ratio: 16 / 9; min-height: 0; }
}

/* linha do tempo */
.linha { list-style: none; margin: 0; padding: 0; }
.linha li { display: grid; grid-template-columns: 88px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.linha time { font-family: var(--font-mono); font-size: 12px; color: var(--muted); text-transform: uppercase; display: flex; flex-direction: column; font-variant-numeric: tabular-nums; }
.linha time span { color: var(--ink); font-weight: 500; }
.linha li > div { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.linha-tit { font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -0.01em; text-decoration: none; line-height: 1.25; }
.linha-tit:hover { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; }
.linha-cat { margin-top: 24px; }

/* categoria */
.cab-cat { padding-block: 48px 8px; }
.cab-cat h1 { font-size: clamp(44px, 8vw, 84px); font-weight: 800; letter-spacing: -0.04em; }

/* artigo */
.artigo { max-width: 760px; padding-block: 32px 24px; }
.trilha { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); display: flex; gap: 8px; margin-bottom: 20px; }
.trilha a { color: var(--muted); }
.artigo h1 { font-size: clamp(32px, 5.4vw, 52px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; margin: 14px 0 16px; }
.lede { font-size: 22px; line-height: 1.45; color: var(--ink-soft); margin: 0 0 20px; }
.byline { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--muted); margin: 0 0 24px; padding-block: 12px; border-block: 1px solid var(--line); }
.byline strong { color: var(--ink); font-weight: 500; }
.foto { margin: 0 0 28px; }
.foto img { width: 100%; border-radius: 6px; background: var(--tile); }
.foto figcaption { font-family: var(--font-mono); font-size: 11px; color: var(--muted); margin-top: 8px; letter-spacing: 0.03em; }
.corpo { max-width: 68ch; }
.corpo h2 { font-size: 28px; font-weight: 800; margin: 40px 0 12px; }
.corpo h3 { font-size: 22px; font-weight: 700; margin: 28px 0 8px; }
.corpo p { margin: 0 0 1.1em; }
.corpo ul, .corpo ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.corpo li { margin-bottom: 0.4em; }
.corpo blockquote { margin: 1.4em 0; padding: 4px 0 4px 18px; border-left: 4px solid var(--accent); color: var(--ink-soft); font-style: italic; }
.nota-ia { font-size: 15px; line-height: 1.5; color: var(--ink-soft); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 14px 16px; margin: 32px 0 0; }
.fontes { margin-top: 28px; }
.fontes h2 { font-size: 20px; font-weight: 800; margin-bottom: 10px; }
.fontes ul { list-style: none; padding: 0; margin: 0; font-size: 16px; }
.fontes li { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.fontes .mono { color: var(--muted); min-width: 110px; }
.inst .meta { margin-bottom: 20px; }
.vazio { padding-block: 80px; }
.vazio h1 { font-size: clamp(36px, 6vw, 64px); font-weight: 800; }

/* rodapé */
.rodape { background: var(--bar); color: #D5DDDA; margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--bar-line); }
.rodape a { color: #F1F3F0; }
.rodape-in { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; }
.rodape h2 { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: #8FA09F; font-weight: 500; margin-bottom: 12px; }
.rodape nav { display: flex; flex-direction: column; gap: 6px; font-size: 16px; }
.rodape nav a { text-decoration: none; }
.rodape nav a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.rodape-txt { margin: 12px 0 8px; font-size: 16px; }
.rodape-ia { font-size: 14px; color: #8FA09F; max-width: 46ch; margin: 0; }
.copy { font-family: var(--font-mono); font-size: 11px; color: #8FA09F; padding-block: 28px; margin: 0 auto; }
@media (max-width: 760px) { .rodape-in { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: no-preference) { a { transition: text-decoration-thickness 0.12s; } }
