/* Tema "Névoa e Brasa" para a leitura de "Depois do fogo": neblina azul-acinzentada, grafite e uma única brasa laranja.
   Títulos finos em minúsculas, fio vertical e muito ar. Todas as regras começam em .tema para não vazar para o site.
   Fontes: Jost (títulos, peso leve) e Alegreya Sans (texto). */

.tema {
  --nevoa: #f1f4f3;
  --nevoa2: #e1e9ea;
  --azul: #7b97a4;
  --azul2: #566f7d;
  --pedra: #3b4852;
  --grafite: #1b2228;
  --brasa: #d9481f;
  --ocre: #a98348;
  --f-titulo: "Jost", "Segoe UI", sans-serif;
  --f-texto: "Alegreya Sans", Candara, Calibri, sans-serif;
  background: var(--nevoa);
  color: var(--grafite);
}
/* A fonte do tema vale só para o cabeçalho, o sumário e o texto; o convite para assinar mantém o visual do site */
.tema .tema-hero, .tema .tema-sumario, .tema .leitura-tematica { font-family: var(--f-texto); }

/* ── Cabeçalho ───────────────────────────────────────────── */
.tema .tema-hero { background: linear-gradient(var(--nevoa), var(--nevoa2)); border-bottom: 1px solid var(--azul); }
.tema .tema-hero-in { max-width: 64rem; margin: 0 auto; padding: 2rem 1.25rem 2.75rem; display: grid; gap: 2rem; align-items: center; }
@media (min-width: 768px) { .tema .tema-hero-in { grid-template-columns: 1fr 15.5rem; padding: 3.5rem 1.5rem 4rem; gap: 3rem; } }
.tema .tema-hero-texto { border-left: 1px solid var(--brasa); padding-left: 1.4rem; }
.tema .tema-trilha { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .88rem; color: var(--azul2); margin-bottom: 1.9rem; }
.tema .tema-trilha a { color: var(--azul2); text-decoration: none; }
.tema .tema-trilha a:hover { color: var(--brasa); text-decoration: underline; }
.tema .tema-sup { font-family: var(--f-titulo); font-size: .75rem; font-weight: 400; letter-spacing: .5em; text-transform: uppercase; color: var(--pedra); margin: 0 0 1rem; }
.tema .tema-hero h1 { font-family: var(--f-titulo); font-weight: 300; font-size: clamp(2.8rem, 10vw, 5rem); line-height: .95; letter-spacing: -.015em; text-transform: lowercase; color: var(--grafite); margin: 0; }
.tema .tema-orn { display: none; }
.tema .tema-sub { font-style: italic; font-weight: 500; color: var(--azul2); font-size: 1.2rem; line-height: 1.45; max-width: 32rem; margin: 1.3rem 0 0; }
.tema .tema-meta { display: flex; flex-wrap: wrap; gap: .25rem .75rem; font-size: .92rem; color: var(--azul2); margin: 1.6rem 0 0; }
.tema .tema-baixar { display: inline-block; margin-top: 1.4rem; padding: .55rem 1.2rem; border: 1px solid var(--grafite); color: var(--grafite); font-family: var(--f-titulo); font-size: .85rem; letter-spacing: .22em; text-transform: uppercase; text-decoration: none; transition: background .15s, color .15s, border-color .15s; }
.tema .tema-baixar:hover { background: var(--brasa); border-color: var(--brasa); color: #fff; }
.tema .tema-capa { justify-self: center; width: min(15.5rem, 70%); box-shadow: 0 0 0 1px rgba(27, 34, 40, .15), 0 1.5rem 2.5rem -1rem rgba(27, 34, 40, .45); }
.tema .tema-capa img { display: block; width: 100%; height: auto; }
@media (max-width: 767px) { .tema .tema-capa { width: 11.5rem; } .tema .tema-hero-texto { padding-left: 1rem; } }

/* ── Corpo ───────────────────────────────────────────────── */
.tema .tema-corpo { max-width: 42rem; margin: 0 auto; padding: 2.5rem 1.25rem 4rem; }
@media (min-width: 640px) { .tema .tema-corpo { padding: 3.5rem 1.5rem 5rem; } }

/* Sumário */
.tema .tema-sumario { margin: 0 0 3.5rem; padding: 0 0 0 1.2rem; border-left: 1px solid var(--brasa); }
.tema .tema-sumario h2 { font-family: var(--f-titulo); font-weight: 300; font-size: 2rem; text-transform: lowercase; color: var(--grafite); margin: 0 0 1rem; }
.tema .tema-sumario ol { list-style: none; margin: 0; padding: 0; }
.tema .tema-sumario li { border-bottom: 1px solid var(--nevoa2); }
.tema .tema-sumario a { display: flex; align-items: baseline; gap: .9rem; padding: .6rem 0; text-decoration: none; color: var(--pedra); }
.tema .tema-sumario a:hover .nome { color: var(--brasa); }
.tema .tema-sumario .rot { flex: 0 0 6.4rem; font-family: var(--f-titulo); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--brasa); }
.tema .tema-sumario .nome { flex: 1; font-size: 1.05rem; line-height: 1.3; }
@media (max-width: 480px) { .tema .tema-sumario a { flex-direction: column; gap: .1rem; } .tema .tema-sumario .rot { flex-basis: auto; } }

/* Texto de leitura (o tamanho muda com A− / A+, que adicionam .reading-sm / .reading-lg) */
.tema .leitura-tematica { font-size: 1.2rem; line-height: 1.66; }
.tema .leitura-tematica.reading-sm { font-size: 1.08rem; }
.tema .leitura-tematica.reading-lg { font-size: 1.4rem; }
.tema .leitura-tematica p { margin: 0 0 1.05em; overflow-wrap: break-word; }
@media (min-width: 640px) { .tema .leitura-tematica p { text-align: justify; hyphens: auto; } }
.tema .leitura-tematica strong { color: var(--grafite); font-weight: 700; }

/* Capítulos */
.tema .cap { position: relative; margin-top: 4.5rem; scroll-margin-top: 5rem; }
.tema .cap:first-child { margin-top: 0; }
.tema .ilus { margin: 0 0 2rem; background: var(--nevoa2); }
.tema .ilus img { display: block; width: 100%; height: auto; }
.tema .cap[data-tipo="capitulo"]:has(.ilus)::before { content: attr(data-n); position: absolute; top: .6rem; right: .9rem; z-index: 2; font-family: var(--f-titulo); font-weight: 300; font-size: clamp(2.6rem, 9vw, 3.6rem); line-height: 1; color: var(--brasa); }
.tema .cap h2 { margin: 0 0 1.6rem; padding-left: 1.1rem; padding-right: 1rem; border-left: 1px solid var(--grafite); }
.tema .cap h2 .rot { display: block; font-family: var(--f-titulo); font-size: .72rem; letter-spacing: .4em; text-transform: uppercase; color: var(--azul2); margin-bottom: .4rem; }
.tema .cap h2 .nome { display: block; font-family: var(--f-titulo); font-weight: 300; font-size: clamp(1.8rem, 6vw, 2.4rem); line-height: 1.08; letter-spacing: -.01em; color: var(--grafite); }
.tema .cap h3 { font-family: var(--f-titulo); font-weight: 600; font-size: .85rem; line-height: 1.3; letter-spacing: .24em; text-transform: uppercase; color: var(--azul2); margin: 2.2rem 0 .7rem; }
.tema .cap h3::before { content: "\25CF\00a0\00a0"; color: var(--brasa); font-size: .6em; vertical-align: 1px; }

/* Destaques */
.tema .cap blockquote { margin: 1.6rem 0 1.6rem 1.4rem; padding: 0 0 0 1.1rem; border-left: 1px solid var(--azul); color: var(--pedra); font-style: italic; }
.tema .cap blockquote p { margin: 0 0 .7em; text-align: left; hyphens: none; }
.tema .cap blockquote p:last-child { margin-bottom: 0; }
.tema .cap blockquote.ideia { margin: 0 0 2rem; padding: 1.2rem 0; border-left: 0; border-top: 1px solid var(--azul); border-bottom: 1px solid var(--azul); text-align: center; font-size: 1.1em; }
.tema .cap blockquote.ideia p { text-align: center; text-wrap: balance; }
.tema .cap blockquote.ideia strong { display: block; font-family: var(--f-titulo); font-style: normal; font-weight: 400; font-size: .7rem; letter-spacing: .4em; text-transform: uppercase; color: var(--brasa); margin-bottom: .5rem; }
.tema .cap blockquote.ideia + p::first-letter { float: left; font-family: var(--f-titulo); font-weight: 300; font-size: 4.2em; line-height: .8; color: var(--brasa); padding: .08em .12em 0 0; }
.tema .cap blockquote.antes { margin: 1.6rem 0; padding: 1rem 1.2rem; background: var(--nevoa2); border-left: 3px solid var(--azul2); font-style: normal; }
.tema .cap blockquote.antes strong { font-family: var(--f-titulo); font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--azul2); }
.tema .cap blockquote.versiculo { margin: 2.2rem 0 2.2rem 1.2rem; padding: .2rem 0 .2rem 1.3rem; border-left: 3px solid var(--brasa); font-size: 1.12em; color: var(--grafite); }
.tema .cap blockquote.versiculo strong { display: block; font-family: var(--f-titulo); font-style: normal; font-weight: 400; font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; color: var(--brasa); margin-bottom: .4rem; }

/* Listas, linhas, links */
.tema .cap ul, .tema .cap ol { margin: 0 0 1.2em; padding-left: 1.5rem; }
.tema .cap ul { list-style: disc; }
.tema .cap ol { list-style: decimal; }
.tema .cap li { margin-bottom: .45em; padding-left: .2rem; }
.tema .cap li::marker { color: var(--brasa); }
.tema .cap hr { border: 0; border-top: 1px solid var(--azul); margin: 2rem 20%; }
.tema .cap a { color: var(--azul2); text-decoration: underline; text-underline-offset: 3px; word-break: break-word; }
.tema .cap a:hover { color: var(--brasa); }

/* Glossário e referências */
.tema .cap.glossario ul { list-style: none; padding: 0; }
.tema .cap.glossario li { padding: .6rem 0; border-bottom: 1px solid var(--nevoa2); margin: 0; }
.tema .cap.glossario li strong { color: var(--brasa); }
.tema .cap.ref p, .tema .cap.ref li { font-size: .88em; line-height: 1.5; text-align: left; hyphens: none; color: var(--pedra); }

.tema .tema-corpo > :not(.tema-sumario):not(.leitura-tematica) { margin-top: 2.5rem; }
@media (prefers-reduced-motion: reduce) { .tema .tema-baixar { transition: none; } }
