/* Tema "Luz sobre o monte" para a leitura de "Três tendas e um Filho": papel de nuvem, ametista profunda, aurora rosada e branco incandescente.
   Títulos em Cormorant Garamond; rótulos em Jost versal; texto em EB Garamond. Todas as regras começam em .tema. */

.tema {
  --nuvem: #fbf9f4;
  --nevoa: #ece7f6;
  --vio: #3a2470;
  --vio2: #5a3fa0;
  --vio3: #7d62c4;
  --rosa: #b8325f;
  --aurora: #f6a6b8;
  --noite: #1c1240;
  --texto: #231a3d;
  --linha: #d9d0ec;
  --f-titulo: "Cormorant Garamond", Georgia, serif;
  --f-rotulo: "Jost", "Segoe UI", sans-serif;
  --f-texto: "EB Garamond", Georgia, serif;
  background: var(--nuvem);
  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(ellipse at 75% 20%, #5a3fa0 0%, #2a1a5c 45%, #1c1240 100%); border-bottom: 4px solid var(--aurora); color: #fffaf0; }
.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: .95rem; color: #cfc4ea; margin-bottom: 1.75rem; }
.tema .tema-trilha a { color: #cfc4ea; text-decoration: none; }
.tema .tema-trilha a:hover { color: var(--aurora); text-decoration: underline; }
.tema .tema-sup { font-family: var(--f-rotulo); font-size: .78rem; font-weight: 600; letter-spacing: .42em; text-transform: uppercase; color: var(--aurora); margin: 0 0 1rem; }
.tema .tema-hero h1 { font-family: var(--f-titulo); font-weight: 600; font-size: clamp(2.6rem, 9vw, 4.6rem); line-height: 1; color: #fffaf0; margin: 0; overflow-wrap: break-word; text-shadow: 0 0 30px rgba(246, 166, 184, .35); }
.tema .tema-orn { display: block; width: 6rem; height: .3rem; margin-top: 1.4rem; border-radius: .2rem; background: linear-gradient(90deg, var(--vio3), var(--aurora), rgba(246, 166, 184, 0)); font-size: 0; }
.tema .tema-sub { font-style: italic; color: #fffaf0; font-size: 1.25rem; 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: 1rem; color: #cfc4ea; margin: 1.5rem 0 0; }
.tema .tema-baixar { display: inline-block; margin-top: 1.4rem; padding: .7rem 1.4rem; background: #fffaf0; border: 2px solid #fffaf0; border-radius: 2rem; color: var(--noite); font-family: var(--f-rotulo); font-size: .8rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; transition: background .15s, color .15s; }
.tema .tema-baixar:hover { background: transparent; color: #fffaf0; }
.tema .tema-capa { justify-self: center; width: min(15.5rem, 70%); border-radius: .3rem; box-shadow: 0 0 3rem rgba(246, 166, 184, .35), 0 1.5rem 3rem -1rem rgba(0, 0, 0, .7); overflow: hidden; }
.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; background: var(--nevoa); border-top: 3px solid var(--vio3); border-radius: 1.5rem 1.5rem .3rem .3rem; }
.tema .tema-sumario h2 { font-family: var(--f-titulo); font-weight: 600; font-size: 2rem; color: var(--vio); margin: 0 0 1rem; }
.tema .tema-sumario ol { list-style: none; margin: 0; padding: 0; }
.tema .tema-sumario li { border-bottom: 1px solid 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(--rosa); }
.tema .tema-sumario .rot { flex: 0 0 6.6rem; font-family: var(--f-rotulo); font-size: .7rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--rosa); }
.tema .tema-sumario .nome { flex: 1; font-size: 1.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.22rem; line-height: 1.7; }
.tema .leitura-tematica.reading-sm { font-size: 1.1rem; }
.tema .leitura-tematica.reading-lg { font-size: 1.42rem; }
.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(--vio); }

/* 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; border-radius: 0 0 50% 50% / 0 0 1.4rem 1.4rem; overflow: hidden; background: var(--noite); }
.tema .ilus img { display: block; width: 100%; height: auto; }
.tema .cap[data-tipo="capitulo"]:has(.ilus)::before { content: attr(data-n); position: absolute; top: .5rem; right: .6rem; z-index: 2; width: 3.6rem; height: 3.6rem; line-height: 3.4rem; text-align: center; border-radius: 50%; background: radial-gradient(circle, #fffaf0 0 46%, rgba(255, 250, 240, .85) 62%, rgba(255, 250, 240, 0) 74%); color: var(--vio); font-family: var(--f-titulo); font-weight: 600; font-size: 1.9rem; }
.tema .cap h2 { margin: 0 0 1.5rem; }
.tema .cap h2 .rot { display: block; font-family: var(--f-rotulo); font-size: .76rem; font-weight: 600; letter-spacing: .38em; text-transform: uppercase; color: var(--rosa); margin-bottom: .3rem; }
.tema .cap h2 .nome { display: block; font-family: var(--f-titulo); font-weight: 600; font-size: clamp(2rem, 7vw, 3rem); line-height: 1.05; color: var(--vio); overflow-wrap: break-word; }
.tema .cap h2 .nome::after { content: ""; display: block; width: 5rem; height: .25rem; margin-top: .8rem; border-radius: .2rem; background: linear-gradient(90deg, var(--vio3), var(--aurora), rgba(246, 166, 184, 0)); }
.tema .cap h3 { font-family: var(--f-rotulo); font-weight: 600; font-size: .85rem; letter-spacing: .18em; text-transform: uppercase; color: var(--vio2); margin: 2.2rem 0 .6rem; }

/* Destaques */
.tema .cap blockquote { margin: 1.6rem 0; padding: .2rem 0 .2rem 1.2rem; border-left: 3px solid var(--aurora); color: #3b2d63; 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: 1.3rem 1.3rem 1.1rem; background: linear-gradient(180deg, var(--nevoa), #f6e6ee); border: 0; border-top: 2px solid var(--vio3); border-radius: 2.4rem 2.4rem .3rem .3rem / 1.4rem 1.4rem .3rem .3rem; color: var(--noite); text-align: center; }
.tema .cap blockquote.ideia p { text-align: center; }
.tema .cap blockquote.ideia strong { display: block; font-family: var(--f-rotulo); font-style: normal; font-size: .72rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--rosa); margin-bottom: .3rem; }
.tema .cap blockquote.ideia + p::first-letter { float: left; font-family: var(--f-titulo); font-weight: 600; font-size: 3.9em; line-height: .8; color: var(--rosa); padding: .08em .1em 0 0; }
.tema .cap blockquote.antes { padding: 1rem 1.2rem; background: rgba(125, 98, 196, .08); border: 1.5px dashed var(--vio3); border-radius: .6rem; font-style: normal; color: var(--texto); }
.tema .cap blockquote.antes strong { font-family: var(--f-rotulo); font-size: .72rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--rosa); }
.tema .cap blockquote.versiculo { margin: 2rem .4rem; padding: 2.4rem 1.4rem 1.3rem; border: 0; border-bottom: .3rem solid var(--aurora); border-radius: 6rem 6rem .3rem .3rem / 3.5rem 3.5rem .3rem .3rem; background: var(--noite); text-align: center; color: #fffaf0; font-size: 1.08em; }
.tema .cap blockquote.versiculo p { text-align: center; }
.tema .cap blockquote.versiculo strong { display: block; font-family: var(--f-rotulo); font-style: normal; font-size: .72rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--aurora); 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(--rosa); }
.tema .cap hr { border: 0; border-top: 2px solid var(--aurora); margin: 2rem 0; }
.tema .cap a { color: var(--vio2); text-decoration: underline; text-underline-offset: 3px; word-break: break-word; overflow-wrap: break-word; }
.tema .cap a:hover { color: var(--rosa); }

/* 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(--linha); margin: 0; }
.tema .cap.glossario li strong { color: var(--rosa); }
.tema .cap.ref p, .tema .cap.ref li { font-size: .9em; line-height: 1.5; text-align: left; hyphens: none; color: #3b2d63; overflow-wrap: break-word; }

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