/* Editora Erendorn - folha unica. Preto, ouro e creme; Cinzel (OFL, hospedada aqui) para titulos, serifa de livro do
   sistema para o texto. Sem framework. Movimento respeita prefers-reduced-motion. */
@font-face { font-family: "Cinzel"; src: url("./assets/fontes/Cinzel.ttf") format("truetype"); font-weight: 400 900; font-display: swap; }

:root {
  --preto: #050403; --tinta: #0d0a07; --tinta-2: #16110b; --linha: rgba(210, 173, 91, .22);
  --creme: #f6eddc; --creme-2: #dccfb4; --creme-3: #ab9f88;
  --ouro: #d2ad5b; --ouro-claro: #edd49b; --ouro-escuro: #8a6a30; --brasa: #ffb15c; --violeta: #8b5cf6;
  --display: "Cinzel", "Trajan Pro", Georgia, serif;
  --texto: "Palatino Linotype", Palatino, "Book Antiqua", "Iowan Old Style", Cambria, Georgia, serif;
  --larg: 1180px; --gutter: clamp(16px, 4vw, 40px); --raio: 14px;
  --sombra-ouro: 0 0 0 1px var(--linha), 0 20px 60px -20px rgba(210, 173, 91, .35);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--preto); color: var(--creme); font-family: var(--texto); font-size: clamp(17px, 1.05vw + 12px, 19px);
  line-height: 1.6; overflow-x: hidden; min-height: 100vh;
  /* tudo mais encorpado (26/09, "todas as fontes bolder"): a serifa de livro do sistema so' tem regular e negrito,
     entao o texto ganha um contorno fino da propria cor por baixo do preenchimento (paint-order), que engrossa a letra
     para fora sem borrar o desenho; o Cinzel, variavel, sobe de peso de verdade (700) */
  -webkit-text-stroke: .42px currentColor; paint-order: stroke fill; letter-spacing: .008em;
}
::selection { background: var(--ouro); color: var(--preto); }
a { color: var(--ouro-claro); text-decoration: none; }
a:hover { color: #fff; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, .display { font-family: var(--display); font-weight: 700; letter-spacing: .04em; line-height: 1.1; margin: 0; color: var(--ouro-claro); text-wrap: balance; }
h1 { font-size: clamp(34px, 5.2vw, 68px); }
h2 { font-size: clamp(26px, 3.4vw, 44px); }
h3 { font-size: clamp(20px, 1.8vw, 26px); }
p { margin: 0 0 1em; }
.creme-2 { color: var(--creme-2); }
/* escondido sem deslocar para fora da tela: left:-999px vira area de rolagem no arabe (rtl) e alargava a pagina */
.pular { position: absolute; top: 12px; inset-inline-start: 12px; background: var(--ouro); color: var(--preto); padding: 8px 14px; z-index: 100;
  clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; white-space: nowrap; }
.pular:focus { clip-path: none; width: auto; height: auto; overflow: visible; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- troca de pagina: a marca e o titulo atravessam de uma pagina para a outra (View Transitions) ---------- */
@view-transition { navigation: auto; }
.topo .marca { view-transition-name: marca; }
.abertura h1, .tomo-info h1 { view-transition-name: titulo; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .5s; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }
::view-transition-group(titulo) { animation-duration: .6s; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* ---------- o ceu (canvas fixo por tras de tudo) ---------- */
#ceu { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.pagina { position: relative; z-index: 1; }

/* ---------- topo ---------- */
.topo {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; padding: 14px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  transition: background .5s ease, padding .5s ease, box-shadow .5s ease;
}
.topo.compacto { background: rgba(5, 4, 3, .86); backdrop-filter: blur(10px); padding: 8px var(--gutter); box-shadow: 0 1px 0 var(--linha); }
/* veu atras do menu enquanto o topo e' transparente: o ceu (brasas e runas) nao disputa com as letras do menu */
.topo::before { content: ""; position: absolute; inset: 0 0 -34px; z-index: -1; pointer-events: none; transition: opacity .5s ease;
  background: linear-gradient(180deg, rgba(5, 4, 3, .78) 0%, rgba(5, 4, 3, .45) 60%, rgba(5, 4, 3, 0) 100%); }
.topo.compacto::before { opacity: 0; }
.marca { display: flex; align-items: center; gap: 12px; color: var(--ouro-claro); font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: .18em; text-transform: uppercase; }
.marca svg { width: 40px; height: 40px; filter: drop-shadow(0 0 10px rgba(210, 173, 91, .35)); transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.marca:hover svg { transform: rotate(12deg) scale(1.08); }
.marca span b { display: block; font-size: 10px; letter-spacing: .34em; color: var(--creme-2); font-weight: 600; }
.menu { display: flex; gap: clamp(14px, 1.8vw, 28px); align-items: center; }
.menu > a.com-ic { font-family: var(--display); font-weight: 700; font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--creme-2); position: relative; padding: 6px 0; gap: 7px; }
.menu > a.com-ic .ic { width: 15px; height: 15px; }
.menu > a.com-ic::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: linear-gradient(90deg, var(--ouro), transparent); transition: right .4s ease; }
.menu > a.com-ic:hover, .menu > a.com-ic[aria-current="page"] { color: var(--ouro-claro); }
.menu > a.com-ic:hover::after, .menu > a.com-ic[aria-current="page"]::after { right: 0; }
.menu > a.com-ic { white-space: nowrap; }
/* menu compacto: so' as palavras, mais juntas, e o seletor de idioma so' com o globo. Quem decide e' o site.js, que mede
   se o menu cabe na linha (os 18 idiomas tem rotulos de tamanhos bem diferentes: em russo nem 1440 px cabe com
   icones); a faixa 1101-1320 ja' nasce compacta para a primeira pintura, antes do script */
@media (min-width: 1101px) and (max-width: 1320px) {
  .menu { gap: 16px; }
  .menu > a.com-ic { font-size: 11.5px; letter-spacing: .1em; }
  .menu > a.com-ic .ic, .idiomas summary .idioma-nome { display: none; }
  .idiomas summary { padding: 8px 10px; }
}
.topo.apertado .menu { gap: 16px; }
.topo.apertado .menu > a.com-ic { font-size: 11.5px; letter-spacing: .1em; }
.topo.apertado .menu > a.com-ic .ic, .topo.apertado .idiomas summary .idioma-nome { display: none; }
.topo.apertado .idiomas summary { padding: 8px 10px; }
/* seletor de idioma: um <details> nativo, sem script */
.idiomas { position: relative; }
.idiomas summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 700; font-size: 12px; letter-spacing: .12em; color: var(--creme-2); border: 1px solid var(--linha); border-radius: 999px; padding: 8px 14px; }
.idiomas summary::-webkit-details-marker { display: none; }
.idiomas summary svg { width: 16px; height: 16px; }
.idiomas[open] summary, .idiomas summary:hover { color: var(--ouro-claro); border-color: var(--ouro); }
.idiomas ul { position: absolute; inset-inline-end: 0; top: calc(100% + 10px); margin: 0; padding: 10px; list-style: none; background: rgba(8, 6, 4, .96); border: 1px solid var(--linha); border-radius: 12px; display: grid; grid-template-columns: repeat(2, minmax(150px, 1fr)); gap: 2px 14px; box-shadow: var(--sombra-ouro); max-height: 70vh; overflow: auto; z-index: 70; }
.idiomas ul a { display: block; padding: 7px 10px; border-radius: 8px; font-family: var(--texto); font-size: 15px; letter-spacing: 0; text-transform: none; color: var(--creme-2); }
.idiomas ul a::after { display: none; }
.idiomas ul a:hover { background: rgba(210, 173, 91, .1); color: var(--ouro-claro); }
.idiomas ul a[aria-current="true"] { color: var(--ouro); }
body.menu-celular.menu-aberto .idiomas ul { position: static; grid-template-columns: repeat(2, minmax(120px, 1fr)); max-height: 40vh; }
body.menu-celular.menu-aberto .idiomas summary .idioma-nome { display: inline; }
/* arabe e hindi: espacamento entre letras quebra a ligacao do arabe e a linha do devanagari; o Cinzel nao tem essas
   escritas, entao os rotulos pequenos sobem um pouco de tamanho */
html[lang="ar"] *, html[lang="hi"] * { letter-spacing: 0 !important; }
html[lang="ar"] .menu a, html[lang="ar"] .olho, html[lang="ar"] .botao, html[lang="ar"] .etiqueta, html[lang="ar"] .campo label, html[lang="ar"] .rodape h4,
html[lang="hi"] .menu a, html[lang="hi"] .olho, html[lang="hi"] .botao, html[lang="hi"] .etiqueta, html[lang="hi"] .campo label, html[lang="hi"] .rodape h4 { font-size: 14.5px; }
/* direita para a esquerda (arabe) */
[dir="rtl"] .lista-runa li { padding-left: 0; padding-right: 26px; }
[dir="rtl"] .lista-runa li::before { left: auto; right: 0; }
[dir="rtl"] .tabela th, [dir="rtl"] .tabela td { text-align: right; }
[dir="rtl"] .aviso { border-left: 0; border-right: 2px solid var(--ouro); border-radius: 8px 0 0 8px; }
[dir="rtl"] .folha p { text-align: right; }
.abrir-menu { display: none; background: none; border: 1px solid var(--linha); color: var(--ouro-claro); border-radius: 8px; padding: 8px 10px; font: inherit; cursor: pointer; }
.abrir-menu span { display: block; width: 22px; height: 2px; background: currentColor; margin: 4px 0; transition: transform .3s, opacity .3s; }
/* menu do celular: abaixo de 1101 px pela largura e, acima disso, quando o site.js mede que nem o menu compacto cabe
   (body.menu-celular); abrir e fechar dependem do script, entao as regras do menu aberto ficam so' na classe */
@media (max-width: 1100px) { .menu { display: none; } .abrir-menu { display: block; } }
body.menu-celular .menu { display: none; }
body.menu-celular .abrir-menu { display: block; }
body.menu-celular.menu-aberto .menu {
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 26px; position: fixed; inset: 0;
  background: radial-gradient(90% 70% at 50% 40%, #1a130a 0%, #050403 70%); z-index: 60;
}
body.menu-celular.menu-aberto .menu > a.com-ic { font-size: 19px; letter-spacing: .16em; gap: 12px; }
body.menu-celular.menu-aberto .menu > a.com-ic .ic { display: inline-block; width: 20px; height: 20px; }
body.menu-celular.menu-aberto .abrir-menu { position: fixed; right: var(--gutter); top: 14px; z-index: 61; }
body.menu-celular.menu-aberto .abrir-menu span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.menu-celular.menu-aberto .abrir-menu span:nth-child(2) { opacity: 0; }
body.menu-celular.menu-aberto .abrir-menu span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
body.menu-celular.menu-aberto { overflow: hidden; }

/* ---------- botoes: o selo arcano ----------
   Cada botao e' um selo: moldura hexagonal de ouro gravado (o hexagono do selo da editora) com o icone num engaste,
   tambem hexagonal, a' esquerda. Ao passar o cursor, uma luz corre pela moldura como um circuito de runas, o engaste
   gira um sexto de volta, um brilho varre o miolo e sobem faiscas (site.js); ao clicar, o selo "conjura": a moldura
   lampeja e uma onda de luz hexagonal se abre. O primario e' ouro fundido com a gema escura; o secundario, esmalte
   escuro com a gema de ouro. A forma vem de clip-path nos pseudo-elementos, entao o botao em si nao e' recortado e a
   sombra (filter) e as faiscas passam por fora. */
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 215deg; }
.botao {
  --ponta: 17px; --borda: 1.5px;
  position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; max-width: 100%; padding-block: 9px; padding-inline: calc(var(--ponta) + 5px) calc(var(--ponta) + 18px);
  font-family: var(--display); font-weight: 700; font-size: 13.5px; letter-spacing: .14em; line-height: 1.25; text-transform: uppercase;
  color: var(--ouro-claro); background: none; border: 0; cursor: pointer; white-space: nowrap; text-align: center;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .55));
  translate: 0 0; scale: 1;   /* identidade na base: o hover so' muda o valor, sem criar contexto novo so' no hover */
  transition: translate .45s cubic-bezier(.2, .8, .2, 1), scale .45s cubic-bezier(.2, .8, .2, 1), filter .45s ease, color .3s ease;
}
.botao::before, .botao::after { content: ""; position: absolute; z-index: -1; pointer-events: none; }
.botao::before {
  inset: 0; clip-path: polygon(var(--ponta) 0, calc(100% - var(--ponta)) 0, 100% 50%, calc(100% - var(--ponta)) 100%, var(--ponta) 100%, 0 50%);
  /* var(--ang, 215deg): sem @property (Baseline so' desde 2024) a moldura fica parada, mas nao some */
  background: conic-gradient(from var(--ang, 215deg), #fff4d2 0deg, #e7c577 24deg, #9a7431 70deg, #5a4116 120deg, #b88f42 170deg, #f0d79b 205deg, #8a6a30 250deg, #4c3712 300deg, #c9a14f 335deg, #fff4d2 360deg);
}
.botao::after {
  inset: var(--borda); clip-path: polygon(calc(var(--ponta) - 1px) 0, calc(100% - var(--ponta) + 1px) 0, 100% 50%, calc(100% - var(--ponta) + 1px) 100%, calc(var(--ponta) - 1px) 100%, 0 50%);
  background: linear-gradient(105deg, transparent 40%, rgba(255, 236, 190, .2) 50%, transparent 60%) no-repeat 130% 0 / 250% 100%,
    radial-gradient(120% 170% at 50% -30%, #3a2911 0%, #170f07 55%, #0a0704 100%);
  transition: background-position .9s ease;
}
.botao-engaste { position: relative; isolation: isolate; display: grid; place-items: center; flex: none; width: 31px; height: 27px; color: var(--ouro-claro); }
.botao-engaste::before, .botao-engaste::after { content: ""; position: absolute; z-index: -1; clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); rotate: 0deg; transition: rotate .8s cubic-bezier(.2, .8, .2, 1); }
.botao-engaste::before { inset: 0; background: linear-gradient(160deg, #fff0c4, #c69e4c 40%, #6b4d1c 75%, #b48b3c); }
.botao-engaste::after { inset: 1.5px; background: radial-gradient(circle at 50% 30%, #3a2a12, #0d0905 80%); }
.botao-engaste .ic { width: 15px; height: 15px; stroke-width: 2.2; }
.botao-texto { position: relative; }
.botao-fim { display: inline-grid; translate: 0 0; transition: translate .45s cubic-bezier(.2, .8, .2, 1); }
.botao-fim .ic { width: 16px; height: 16px; stroke-width: 2.4; }
[dir="rtl"] .botao-fim:not(.botao-fim--fora) .ic { scale: -1 1; }
.botao:hover, .botao:focus-visible { translate: 0 -2px; color: #fff6dc; filter: drop-shadow(0 0 14px rgba(255, 196, 110, .36)) drop-shadow(0 10px 18px rgba(0, 0, 0, .6)); }
.botao:hover::before, .botao:focus-visible::before { animation: circuito 2.4s linear infinite; }
.botao:hover::after, .botao:focus-visible::after { background-position: -30% 0, 0 0; }
.botao:hover .botao-engaste::before, .botao:hover .botao-engaste::after { rotate: 60deg; }
.botao:hover .botao-fim { translate: 4px 0; }
[dir="rtl"] .botao:hover .botao-fim { translate: -4px 0; }
.botao:hover .botao-fim--fora, [dir="rtl"] .botao:hover .botao-fim--fora { translate: 2px -2px; }
.botao:active { translate: 0 0; scale: .97; transition-duration: .12s; }
@keyframes circuito { from { --ang: 215deg; } to { --ang: 575deg; } }
/* primario: ouro fundido, moldura de bronze escuro e a gema escura com o icone em ouro */
.botao--ouro { color: #1d1407; text-shadow: 0 1px 0 rgba(255, 244, 214, .45); -webkit-text-stroke-color: #1d1407; }
.botao--ouro::before { background: conic-gradient(from var(--ang, 215deg), #fff8e0 0deg, #a47b32 30deg, #4a3411 90deg, #2c1f09 150deg, #7a5a22 200deg, #fff1c8 225deg, #7a5a22 250deg, #2c1f09 300deg, #6b4d1c 340deg, #fff8e0 360deg); }
.botao--ouro::after { background: linear-gradient(105deg, transparent 40%, rgba(255, 252, 240, .55) 50%, transparent 60%) no-repeat 130% 0 / 250% 100%,
    linear-gradient(180deg, #fbeabd 0%, #ecce8a 26%, #d8b264 48%, #bc9242 52%, #cda252 78%, #e8c77e 100%); }
.botao--ouro .botao-engaste { color: #f3dca3; }
.botao--ouro .botao-engaste::before { background: linear-gradient(160deg, #6b4d1c, #2a1d09 55%, #5a4116); }
.botao--ouro .botao-engaste::after { background: radial-gradient(circle at 50% 30%, #3b2a10, #140d05 80%); }
.botao--ouro:hover, .botao--ouro:focus-visible { color: #0f0a03; }
/* faiscas que sobem do selo (site.js cria e remove) e a onda do clique */
.centelha { position: absolute; left: 50%; top: 45%; width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; border-radius: 50%; pointer-events: none; z-index: 3;
  background: radial-gradient(circle, #fff7e0 0 30%, #ffc66e 55%, rgba(255, 170, 60, 0) 72%); animation: centelha 1s ease-out forwards; }
@keyframes centelha { 0% { opacity: 0; transform: translate(0, 0) scale(1); } 15% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--dx), var(--sobe)) scale(.35); } }
.onda { position: absolute; inset: 0; z-index: -2; pointer-events: none; clip-path: polygon(var(--ponta) 0, calc(100% - var(--ponta)) 0, 100% 50%, calc(100% - var(--ponta)) 100%, var(--ponta) 100%, 0 50%);
  background: radial-gradient(closest-side, rgba(255, 226, 160, 0) 50%, rgba(255, 226, 160, .6) 100%); animation: onda .7s ease-out forwards; }
@keyframes onda { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(1.14, 1.8); } }
.botao.conjura::before { animation: circuito 2.4s linear infinite, lampejo .6s ease-out; }
@keyframes lampejo { from { filter: brightness(2.1); } to { filter: brightness(1); } }
/* no menu: o selo menor */
.menu .botao { --ponta: 13px; min-height: 42px; gap: 9px; font-size: 12px; letter-spacing: .12em; padding-inline: calc(var(--ponta) + 3px) calc(var(--ponta) + 12px); }
.menu .botao .botao-engaste { width: 25px; height: 22px; }
.menu .botao .botao-engaste .ic { width: 13px; height: 13px; }
/* celular: o texto pode quebrar em duas linhas dentro do selo, que nunca passa da largura da tela */
@media (max-width: 560px) {
  .botao { --ponta: 14px; white-space: normal; font-size: 12.5px; letter-spacing: .1em; gap: 10px; padding-inline: calc(var(--ponta) + 4px) calc(var(--ponta) + 12px); }
}
@media (prefers-reduced-motion: reduce) {
  .botao, .botao-engaste::before, .botao-engaste::after, .botao-fim { transition: none; }
  .botao:hover::before, .botao:focus-visible::before, .botao.conjura::before { animation: none; }
  .botao:hover .botao-engaste::before, .botao:hover .botao-engaste::after { rotate: 0deg; }
}
.botao:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--ouro-claro); outline-offset: 3px; }

/* ---------- links com icone e as redes ---------- */
.com-ic { display: inline-flex; align-items: center; gap: 9px; }
.com-ic .ic { width: 17px; height: 17px; flex: none; color: var(--ouro); translate: 0 0; scale: 1; transition: translate .35s ease, scale .35s ease, color .3s ease; }
.com-ic:hover .ic { color: var(--ouro-claro); translate: 0 -1px; scale: 1.12; }
@media (prefers-reduced-motion: reduce) { .com-ic .ic { transition: color .3s ease; } .com-ic:hover .ic { translate: 0 0; scale: 1; } }
.redes { display: flex; gap: 12px; margin-top: 20px; }
.rede { position: relative; isolation: isolate; display: grid; place-items: center; width: 48px; height: 42px; color: var(--ouro-claro);
  translate: 0 0; transition: translate .4s cubic-bezier(.2, .8, .2, 1), color .3s ease, filter .4s ease; }
.rede::before, .rede::after { content: ""; position: absolute; z-index: -1; clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); }
.rede::before { inset: 0; background: conic-gradient(from var(--ang, 215deg), #fff4d2 0deg, #e7c577 24deg, #9a7431 70deg, #5a4116 120deg, #b88f42 170deg, #f0d79b 205deg, #8a6a30 250deg, #4c3712 300deg, #c9a14f 335deg, #fff4d2 360deg); }
.rede::after { inset: 1.5px; background: radial-gradient(circle at 50% 30%, #33240f, #0b0805 80%); }
.rede .ic { width: 19px; height: 19px; }
.rede:hover, .rede:focus-visible { color: #fff6dc; translate: 0 -2px; filter: drop-shadow(0 0 10px rgba(255, 196, 110, .4)); }
.rede:hover::before, .rede:focus-visible::before { animation: circuito 2.4s linear infinite; }
@media (prefers-reduced-motion: reduce) { .rede { transition: color .3s ease; } .rede:hover, .rede:focus-visible { translate: 0 0; } .rede:hover::before, .rede:focus-visible::before { animation: none; } }

/* ---------- secoes ---------- */
.secao { position: relative; padding: clamp(72px, 10vw, 130px) var(--gutter); }
.miolo { max-width: var(--larg); margin: 0 auto; }
.miolo--estreito { max-width: 820px; }
.cabeca { text-align: center; margin-bottom: clamp(36px, 5vw, 64px); }
.olho { display: inline-block; font-family: var(--display); font-weight: 700; font-size: 12.5px; letter-spacing: .34em; text-transform: uppercase; color: var(--ouro); margin-bottom: 14px; }
.floreio { width: 220px; height: 18px; margin: 18px auto 0; display: block; color: var(--ouro); opacity: .8; }
.lide { font-size: clamp(19px, 1.4vw + 10px, 24px); color: var(--creme-2); max-width: 720px; margin: 0 auto; font-style: italic; }
.grade { display: grid; gap: clamp(20px, 3vw, 40px); }
.grade--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grade--3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.cartao { background: linear-gradient(180deg, rgba(22, 17, 11, .92), rgba(9, 7, 5, .92)); border: 1px solid var(--linha); border-radius: var(--raio); padding: clamp(22px, 3vw, 36px); box-shadow: var(--sombra-ouro); }
.cartao h3 { margin-bottom: 10px; }
.faixa { border-top: 1px solid var(--linha); border-bottom: 1px solid var(--linha); background: linear-gradient(90deg, rgba(210, 173, 91, .06), transparent 40%, transparent 60%, rgba(210, 173, 91, .06)); }
.citacao { font-family: var(--display); font-size: clamp(22px, 2.6vw, 34px); font-weight: 600; color: var(--ouro-claro); text-align: center; letter-spacing: .02em; line-height: 1.35; }
.citacao small { display: block; font-family: var(--texto); font-size: 15px; color: var(--creme-3); letter-spacing: .2em; text-transform: uppercase; margin-top: 16px; }
.etiquetas { display: flex; flex-wrap: wrap; gap: 8px; }
.etiqueta { font-family: var(--display); font-weight: 700; font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--ouro); border: 1px solid var(--linha); border-radius: 999px; padding: 6px 12px; }
.lista-limpa { list-style: none; padding: 0; margin: 0; }
.lista-runa li { position: relative; padding-left: 26px; margin-bottom: 8px; }
.lista-runa li::before { content: ""; position: absolute; left: 0; top: .55em; width: 10px; height: 10px; transform: rotate(45deg); border: 1px solid var(--ouro); background: linear-gradient(135deg, var(--ouro), transparent); }
.tabela { width: 100%; border-collapse: collapse; }
.tabela th, .tabela td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--linha); vertical-align: top; }
.tabela th { font-family: var(--display); font-weight: 700; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--ouro); width: 34%; }

/* ---------- revelacao ao rolar ---------- */
.revela { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .8, .2, 1); }
.revela.visto { opacity: 1; transform: none; }
.revela[data-atraso="1"] { transition-delay: .12s; } .revela[data-atraso="2"] { transition-delay: .24s; } .revela[data-atraso="3"] { transition-delay: .36s; }
@media (prefers-reduced-motion: reduce) { .revela { opacity: 1; transform: none; transition: none; } }

/* ---------- hero (home) ---------- */
#palco { position: relative; width: 100%; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; cursor: crosshair; }
#palco canvas { position: absolute; inset: 0; display: block; width: 100% !important; height: 100% !important; touch-action: pan-y; }
#poster { position: absolute; inset: 0; display: none; background: center / contain no-repeat url("./assets/img/og.jpg"); }
#palco.sem-webgl #poster { display: block; }
#erro { position: absolute; left: 10%; right: 10%; bottom: 12%; text-align: center; color: var(--ouro); font-size: 13px; display: none; }
.hero-chamada { position: absolute; left: 0; right: 0; bottom: clamp(28px, 6vh, 64px); text-align: center; z-index: 3; pointer-events: none; }
.hero-chamada > * { pointer-events: auto; }
.hero-chamada .lema { font-family: var(--display); font-weight: 700; color: var(--creme-2); letter-spacing: .3em; text-transform: uppercase; font-size: 12px; margin-bottom: 18px; opacity: 0; animation: surgir 1.6s ease 4.6s forwards; }
.hero-chamada .acoes { display: flex; gap: 14px 22px; justify-content: center; flex-wrap: wrap; opacity: 0; animation: surgir 1.6s ease 5.2s forwards; }
.rolar { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); width: 22px; height: 36px; border: 1px solid var(--linha); border-radius: 12px; z-index: 3; opacity: 0; animation: surgir 2s ease 6.5s forwards; }
.rolar::after { content: ""; position: absolute; left: 50%; top: 6px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--ouro); animation: rolar 1.8s ease-in-out infinite; }
@keyframes surgir { to { opacity: 1; } }
@keyframes rolar { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hero-chamada .lema, .hero-chamada .acoes, .rolar { animation: none; opacity: 1; } .rolar::after { animation: none; } }
.hero-titulo { position: absolute; left: 0; right: 0; top: clamp(90px, 12vh, 140px); text-align: center; z-index: 3; pointer-events: none; }
.hero-titulo h1 { font-size: clamp(13px, 1.4vw, 16px); font-weight: 700; letter-spacing: .42em; color: var(--creme-2); opacity: 0; animation: surgir 1.4s ease 5s forwards; }

/* ---------- tomo (livro) ---------- */
.tomo { display: grid; grid-template-columns: minmax(180px, 300px) 1fr; gap: clamp(22px, 4vw, 48px); align-items: center; }
.tomo--grande { grid-template-columns: minmax(220px, 380px) 1fr; }
@media (max-width: 720px) { .tomo, .tomo--grande { grid-template-columns: 1fr; justify-items: center; text-align: center; } .tomo .etiquetas, .tomo .acoes { justify-content: center; } .tomo .capa { max-width: 280px; } }
.capa { position: relative; perspective: 1200px; }
.capa img { border-radius: 6px 10px 10px 6px; box-shadow: -6px 0 0 -2px rgba(0, 0, 0, .5) inset, 0 30px 60px -20px rgba(0, 0, 0, .9), 0 0 0 1px rgba(210, 173, 91, .25), 0 0 40px -10px rgba(210, 173, 91, .35); transition: transform .12s ease-out, box-shadow .4s; transform-style: preserve-3d; will-change: transform; }
.capa::after { content: ""; position: absolute; inset: 0; border-radius: 6px 10px 10px 6px; background: linear-gradient(115deg, transparent 35%, rgba(255, 236, 190, .22) 48%, transparent 60%); opacity: 0; transition: opacity .4s; pointer-events: none; mix-blend-mode: screen; }
.capa:hover::after { opacity: 1; }
.tomo-info .olho { margin-bottom: 8px; }
.tomo-info h2, .tomo-info h3 { margin-bottom: 6px; }
.autor { color: var(--creme-2); font-style: italic; margin-bottom: 16px; }
.acoes { display: flex; flex-wrap: wrap; gap: 14px 22px; margin-top: 22px; }

/* ---------- tomo lacrado (em breve) ---------- */
.lacrado { position: relative; aspect-ratio: 5 / 8; max-width: 300px; margin: 0 auto; border-radius: 6px 10px 10px 6px; background: linear-gradient(160deg, #1a130a, #070503 60%, #0f0a05); border: 1px solid var(--linha); display: grid; place-items: center; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .9); }
.lacrado svg.selo { width: 46%; opacity: .55; filter: drop-shadow(0 0 14px rgba(210, 173, 91, .35)); animation: pulsar 5s ease-in-out infinite; }
/* a coluna de runas tem a altura de DOIS blocos iguais (nao a do tomo) e sobe exatamente um bloco: o fim de um e' o
   comeco do outro, sem buraco embaixo */
.lacrado .runas { position: absolute; left: 0; right: 0; top: 0; font-family: var(--display); font-weight: 600; color: var(--ouro); opacity: .2; font-size: 22px; letter-spacing: 1.2em; line-height: 2.4; text-align: center; animation: deslizar 40s linear infinite; -webkit-text-stroke: 0; }
.lacrado .runas p { margin: 0; padding: 0 14px; }
@keyframes pulsar { 0%, 100% { transform: scale(1); opacity: .5; } 50% { transform: scale(1.05); opacity: .8; } }
@keyframes deslizar { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@media (prefers-reduced-motion: reduce) { .lacrado svg.selo, .lacrado .runas { animation: none; } }

/* ---------- cena panoramica ---------- */
.panorama { position: relative; height: clamp(320px, 52vw, 640px); overflow: hidden; border-top: 1px solid var(--linha); border-bottom: 1px solid var(--linha); }
.panorama img { width: 100%; height: 120%; object-fit: cover; object-position: center 40%; transform: translateY(var(--paralaxe, 0)); will-change: transform; }
.panorama::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--preto) 0%, transparent 25%, transparent 70%, var(--preto) 100%); }
.panorama .legenda { position: absolute; left: 0; right: 0; bottom: clamp(24px, 5vw, 60px); text-align: center; z-index: 2; }

/* ---------- formularios ---------- */
.formulario { display: grid; gap: 18px; }
.formulario .dupla { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .formulario .dupla { grid-template-columns: 1fr; } }
.campo { display: grid; gap: 6px; }
.campo label { font-family: var(--display); font-weight: 700; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--ouro); }
.campo input, .campo textarea, .campo select { width: 100%; background: rgba(255, 255, 255, .03); border: 1px solid var(--linha); border-radius: 10px; padding: 13px 14px; color: var(--creme); font: inherit; transition: border-color .3s, box-shadow .3s; }
.campo input:focus, .campo textarea:focus, .campo select:focus { border-color: var(--ouro); box-shadow: 0 0 0 3px rgba(210, 173, 91, .15); outline: none; }
.campo textarea { min-height: 150px; resize: vertical; }
.campo small { color: var(--creme-3); font-size: 14px; }
.campo input[type="file"] { padding: 10px; }
.campo input[type="file"]::file-selector-button { font: inherit; font-family: var(--display); font-weight: 700; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ouro-claro); background: transparent; border: 1px solid var(--ouro); border-radius: 999px; padding: 8px 14px; margin-right: 12px; cursor: pointer; }
.consentir { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; color: var(--creme-2); }
.consentir input { width: 18px; height: 18px; margin-top: 4px; accent-color: var(--ouro); }
.aviso { border-left: 2px solid var(--ouro); padding: 10px 16px; color: var(--creme-2); font-size: 15.5px; background: rgba(210, 173, 91, .05); border-radius: 0 8px 8px 0; }
.retorno { display: none; padding: 14px 18px; border-radius: 10px; border: 1px solid var(--linha); }
.retorno.ok { display: block; color: var(--ouro-claro); background: rgba(210, 173, 91, .08); }
.retorno.erro { display: block; color: #ffb3a7; border-color: rgba(255, 120, 100, .4); background: rgba(255, 90, 70, .06); }

/* ---------- rodape ---------- */
/* camada propria: sem position/z-index, o ceu (canvas fixo e opaco, z-index 0) pintava por cima do rodape */
.rodape { position: relative; z-index: 1; border-top: 1px solid var(--linha); padding: clamp(48px, 7vw, 90px) var(--gutter) 22px; background: linear-gradient(180deg, transparent, rgba(10, 7, 4, .9)); }
.rodape .miolo { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
@media (max-width: 800px) { .rodape .miolo { grid-template-columns: 1fr; } }
.rodape h4 { font-family: var(--display); font-weight: 700; font-size: 12.5px; letter-spacing: .3em; text-transform: uppercase; color: var(--ouro); margin: 0 0 14px; }
.rodape a { color: var(--creme-2); }
.rodape a:hover { color: var(--ouro-claro); }
.rodape .lema-rodape { font-family: var(--display); font-size: clamp(20px, 2.2vw, 28px); color: var(--ouro-claro); font-weight: 600; margin: 12px 0 8px; }
.rodape ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.creditos { max-width: var(--larg); margin: 40px auto 0; padding-top: 22px; border-top: 1px solid var(--linha); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: var(--creme-3); font-size: 14px; }
.creditos a { color: var(--creme-3); }

/* ---------- assinatura Stream.Builders: o fim absoluto da pagina, pequena e sutil ---------- */
.assinatura-sb { display: flex; width: max-content; max-width: 100%; margin: 26px auto 0; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 8px;
  font-family: system-ui, "Segoe UI", Roboto, Arial, sans-serif; font-size: 12.5px; letter-spacing: .02em; line-height: 1; opacity: .7; transition: opacity .3s;
  -webkit-text-stroke: 0; }
.assinatura-sb:hover, .assinatura-sb:focus-visible { opacity: 1; }
.assinatura-sb svg { width: 30px; height: auto; display: block; }
.assinatura-sb .sb-rotulo { color: var(--creme-3); font-weight: 600; }
.assinatura-sb b { font-weight: 700; }
.assinatura-sb .sb-stream { color: #EFE6D0; }
.assinatura-sb .sb-builders { color: #FF3333; }
/* no arabe o rotulo vem a' direita (ordem rtl), mas o nome da marca continua escrito da esquerda para a direita */
.assinatura-sb .sb-nome { direction: ltr; unicode-bidi: isolate; }

/* ---------- cabecalho de pagina interna ---------- */
.abertura { padding: clamp(150px, 20vh, 220px) var(--gutter) clamp(40px, 6vw, 70px); text-align: center; }
.abertura .lide { margin-top: 18px; }
.trilha { font-family: var(--display); font-weight: 700; font-size: 11.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--creme-3); margin-bottom: 18px; }
.trilha a { color: var(--creme-3); }
.trilha span { margin: 0 8px; color: var(--ouro-escuro); }

/* ---------- o livro que se folheia (page-flip) ---------- */
.livro { display: grid; gap: 18px; justify-items: center; max-width: 100%; min-width: 0; }
/* a folha que vira sai do palco (no retrato ela voa para o lado; a dobra sobe acima da borda): o palco nao recorta
   nada, e quem impede a rolagem lateral e' a secao, com overflow-x: clip (nao cria rolagem nem corta na vertical) */
.livro-palco { width: min(100%, 900px); max-width: 100%; min-width: 0; margin: 0 auto; overflow: visible; }
.secao--livro { overflow-x: clip; }
.livro-palco .stf__parent { margin: 0 auto; max-width: 100%; }
.miolo, .grade > * { min-width: 0; }
@media (max-width: 640px) { .folha p { text-align: left; hyphens: auto; } }
.folha { background: #efe3c8; color: #2a1f12; font-family: var(--texto); overflow: hidden; position: relative;
  box-shadow: inset 0 0 40px rgba(60, 40, 10, .25); }
.folha::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(80, 55, 20, .18) 100%); }
.folha--capa { background: #050403; padding: 0; box-shadow: none; }
.folha--capa::before { display: none; }
.folha--capa img { width: 100%; height: 100%; object-fit: cover; display: block; }
.folha--contracapa { background: linear-gradient(160deg, #1a130a, #070503 60%, #0f0a05); display: grid; place-items: center; }
.folha--contracapa svg { width: 40%; color: var(--ouro); opacity: .8; filter: drop-shadow(0 0 14px rgba(210, 173, 91, .35)); }
.folha--contracapa p { color: var(--ouro); font-family: var(--display); font-weight: 700; font-size: 12px; letter-spacing: .3em; text-transform: uppercase; position: absolute; bottom: 8%; left: 0; right: 0; text-align: center; margin: 0; }
.folha .miolo-folha { padding: 9% 9% 10%; height: 100%; display: flex; flex-direction: column; box-sizing: border-box; }
.folha h2, .folha h3 { color: #5a3f14; font-family: var(--display); font-weight: 700; letter-spacing: .04em; }
.folha { -webkit-text-stroke-width: .35px; }
.folha h2 { font-size: clamp(16px, 2.4vw, 26px); margin-bottom: 8px; }
.folha h3 { font-size: clamp(12px, 1.6vw, 16px); text-transform: uppercase; letter-spacing: .2em; color: #8a6a30; margin-bottom: 10px; }
.folha p { font-size: clamp(11.5px, 1.35vw, 15.5px); line-height: 1.5; margin: 0 0 .8em; text-align: justify; hyphens: auto; }
.folha .capitular::first-letter { float: left; font-family: var(--display); font-size: 3.1em; line-height: .85; padding: .05em .08em 0 0; color: #8a6a30; }
.folha .rodape-folha { margin-top: auto; text-align: center; font-family: var(--display); font-weight: 700; font-size: 10px; letter-spacing: .3em; color: #8a6a30; }
.folha .ornamento { width: 120px; margin: 0 auto 10px; color: #a8843b; display: block; }
.folha .tabela { font-size: clamp(11px, 1.2vw, 14px); }
.folha .tabela th, .folha .tabela td { border-color: rgba(90, 63, 20, .25); padding: 6px 0; }
.folha .tabela th { color: #8a6a30; }
/* dentro da folha que vira, o selo e' menor e sem sombra (a folha ja' e' transformada em 3D) */
.folha .botao { --ponta: 12px; min-height: 38px; gap: 8px; font-size: 10.5px; letter-spacing: .1em; filter: none; white-space: normal;
  padding-inline: calc(var(--ponta) + 3px) calc(var(--ponta) + 10px); }
.folha .botao:hover { filter: none; }
.folha .botao .botao-engaste { width: 23px; height: 20px; }
.folha .botao .botao-engaste .ic { width: 12px; height: 12px; }
.folha .botao-fim .ic { width: 13px; height: 13px; }
.livro-controles { display: flex; align-items: center; gap: 14px; color: var(--creme-2); font-family: var(--display); font-weight: 700; font-size: 12px; letter-spacing: .2em; }
.livro-controles button { background: none; border: 1px solid var(--linha); color: var(--ouro-claro); border-radius: 999px; width: 42px; height: 42px; cursor: pointer; font: inherit; display: grid; place-items: center; transition: box-shadow .3s, color .3s; }
.livro-controles button:hover:not(:disabled) { box-shadow: 0 0 0 1px var(--ouro), 0 0 22px -6px rgba(210, 173, 91, .7); color: #fff; }
.livro-controles button:disabled { opacity: .3; cursor: default; }
.livro-controles svg { width: 18px; height: 18px; }
[dir="rtl"] .livro-controles svg { scale: -1 1; }
.livro-dica { color: var(--creme-3); font-size: 14px; text-align: center; }

/* ---------- cursor de brasas: o canvas faz; aqui so' o cursor ---------- */
@media (pointer: fine) { body { cursor: auto; } }
