/* Tema "Selo postal" para a leitura de "A carta falsificada": verde-oliva de noite, papel de carta cor de osso, lima de selo e vermelho de lacre.
   Títulos como máquina de escrever, blocos como memorandos e carimbos. Todas as regras começam em .tema.
   Fontes: Roboto Slab (títulos) e Source Serif 4 (texto). */

.tema {
  --bg: #12150d;
  --bg2: #1d2314;
  --musgo2: #59673a;
  --osso: #efe8d2;
  --lima: #c8d66b;
  --lima2: #e8f1a6;
  --lacre: #ff5a36;
  --lacre2: #b8322a;
  --tinta: #2a2f1c;
  --texto: #e9e4cf;
  --mudo: #a3ab88;
  --linha: #3d4628;
  --f-titulo: "Roboto Slab", Rockwell, Georgia, serif;
  --f-texto: "Source Serif 4", Georgia, serif;
  background: var(--bg);
  color: var(--texto);
}
.tema .tema-hero, .tema .tema-sumario, .tema .leitura-tematica { font-family: var(--f-texto); }

/* Cabeçalho */
.tema .tema-hero { background: radial-gradient(120% 90% at 85% 0%, #34401f 0%, var(--bg) 62%); border-bottom: 3px dashed var(--lima); }
.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-trilha { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .85rem; color: var(--mudo); margin-bottom: 1.75rem; }
.tema .tema-trilha a { color: var(--mudo); text-decoration: none; }
.tema .tema-trilha a:hover { color: var(--lima2); text-decoration: underline; }
.tema .tema-sup { font-family: var(--f-titulo); font-size: .85rem; font-weight: 700; letter-spacing: .34em; text-transform: uppercase; color: var(--lacre); margin: 0 0 1.1rem; }
.tema .tema-sup::after { content: ""; display: block; width: 3.4rem; border-top: 3px dashed var(--lima); margin-top: .9rem; }
.tema .tema-hero h1 { font-family: var(--f-titulo); font-weight: 700; font-size: clamp(2.5rem, 9vw, 4.4rem); line-height: 1; color: var(--osso); margin: 0; letter-spacing: -.01em; }
.tema .tema-orn { display: none; }
.tema .tema-sub { font-style: italic; color: var(--lima); font-size: 1.15rem; line-height: 1.45; max-width: 32rem; margin: 1.4rem 0 0; }
.tema .tema-meta { display: flex; flex-wrap: wrap; gap: .25rem .75rem; font-size: .9rem; color: var(--mudo); margin: 1.6rem 0 0; }
.tema .tema-baixar { display: inline-block; margin-top: 1.4rem; padding: .6rem 1.2rem; border: 2px dashed var(--lima); color: var(--lima2); font-family: var(--f-titulo); font-size: .95rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; transition: background .15s, color .15s; }
.tema .tema-baixar:hover { background: var(--lima); color: var(--bg); }
.tema .tema-capa { justify-self: center; width: min(15.5rem, 70%); border: 1.5px dashed rgba(200, 214, 107, .6); box-shadow: 0 0 0 .3rem var(--bg), 0 1.5rem 3rem -1rem rgba(0, 0, 0, .8); }
.tema .tema-capa img { display: block; width: 100%; height: auto; }
@media (max-width: 767px) { .tema .tema-capa { width: 11.5rem; } }

/* 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: 1.5rem 1.4rem; border: 2px dashed var(--lima); background: var(--bg2); }
.tema .tema-sumario h2 { font-family: var(--f-titulo); font-weight: 700; font-size: 1.7rem; color: var(--osso); margin: 0 0 1rem; }
.tema .tema-sumario ol { list-style: none; margin: 0; padding: 0; }
.tema .tema-sumario li { border-bottom: 1px dashed var(--linha); }
.tema .tema-sumario li:last-child { border-bottom: 0; }
.tema .tema-sumario a { display: flex; align-items: baseline; gap: .8rem; padding: .6rem .1rem; text-decoration: none; color: var(--texto); }
.tema .tema-sumario a:hover .nome { color: var(--lima2); }
.tema .tema-sumario .rot { flex: 0 0 6.6rem; font-family: var(--f-titulo); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--lima); }
.tema .tema-sumario .nome { flex: 1; font-size: 1rem; 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 */
.tema .leitura-tematica { font-size: 1.1rem; line-height: 1.72; }
.tema .leitura-tematica.reading-sm { font-size: 1rem; }
.tema .leitura-tematica.reading-lg { font-size: 1.28rem; }
.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(--lima2); }
.tema .leitura-tematica em { color: var(--osso); }

/* 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(--bg2); }
.tema .ilus img { display: block; width: 100%; height: auto; }
.tema .cap[data-tipo="capitulo"]:has(.ilus)::before { content: attr(data-n); position: absolute; top: .9rem; right: 1.1rem; z-index: 2; min-width: 3.2rem; text-align: center; font-family: var(--f-titulo); font-weight: 700; font-size: clamp(1.6rem, 6vw, 2.2rem); line-height: 1; color: var(--tinta); background: var(--osso); padding: .55rem .6rem .5rem; outline: 1.5px dashed var(--tinta); outline-offset: -.4rem; transform: rotate(4deg); box-shadow: .25rem .3rem 0 rgba(0, 0, 0, .45); }
.tema .cap h2 { margin: 0 0 1.5rem; padding-bottom: .8rem; border-bottom: 2px dashed var(--lima); }
.tema .cap h2 .rot { display: block; font-family: var(--f-titulo); font-size: .85rem; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: var(--lacre); margin-bottom: .3rem; }
.tema .cap h2 .nome { display: block; font-family: var(--f-titulo); font-weight: 700; font-size: clamp(1.6rem, 6vw, 2.3rem); line-height: 1.1; color: var(--osso); }
.tema .cap h3 { font-family: var(--f-titulo); font-weight: 700; font-size: 1.15rem; color: var(--lima); margin: 2.2rem 0 .6rem; }
.tema .cap h3::before { content: "\2192\00a0"; color: var(--lacre); }

/* Destaques */
.tema .cap blockquote { margin: 1.6rem 0; padding: .2rem 0 .2rem 1.2rem; border-left: 3px solid var(--musgo2); color: #d4d9bd; 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 1.8rem; padding: 1rem 1.2rem 1rem 1.4rem; background: var(--osso); color: var(--tinta); border-left: .55rem solid var(--lacre); font-family: var(--f-titulo); font-style: normal; font-size: .95rem; box-shadow: .3rem .35rem 0 rgba(0, 0, 0, .4); }
.tema .cap blockquote.ideia strong { font-style: normal; font-size: .8rem; letter-spacing: .24em; text-transform: uppercase; color: var(--lacre2); }
.tema .cap blockquote.ideia + p::first-letter { float: left; font-family: var(--f-titulo); font-weight: 700; font-size: 4.2em; line-height: .8; color: var(--lima); padding: .08em .12em 0 0; }
.tema .cap blockquote.antes { padding: 1rem 1.2rem; background: var(--bg2); border: 1.5px dashed var(--lima); font-style: normal; color: var(--texto); }
.tema .cap blockquote.antes strong { font-family: var(--f-titulo); font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--lima); }
.tema .cap blockquote.versiculo { margin: 2rem .2rem; padding: 1.5rem 1.6rem; text-align: center; background: var(--lacre); border-left: 0; color: #1b0a05; font-size: 1.1em; border-radius: 1.2rem; }
.tema .cap blockquote.versiculo p { text-align: center; }
.tema .cap blockquote.versiculo strong { display: block; font-family: var(--f-titulo); font-style: normal; font-size: .8rem; letter-spacing: .28em; text-transform: uppercase; color: #3d1005; margin-bottom: .5rem; }

/* 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(--lacre); }
.tema .cap hr { border: 0; border-top: 2px dashed var(--linha); margin: 2rem 0; }
.tema .cap a { color: var(--lima2); text-decoration: underline; text-underline-offset: 3px; word-break: break-word; overflow-wrap: break-word; }
.tema .cap a:hover { color: var(--lacre); }

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

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