/* Leidson Ferraz — versão nova (07/10/2026) */
:root {
  --azul: hsl(214, 73%, 27%);
  --azul-claro: hsl(214, 60%, 42%);
  --ouro: hsl(42, 88%, 52%);
  --fundo: #f6f4ef;
  --fundo2: #ebe7de;
  --papel: #fffdf8;
  --texto: #1d1d1f;
  --suave: #5d5a55;
  --linha: #d9d3c6;
  --hero-veu: linear-gradient(90deg, #f6f4ef 0%, #f6f4efe6 30%, #f6f4ef00 62%);
  --sombra: 0 18px 40px -18px #0006;
  --serif: "Lora", Georgia, serif;
  --cond: "Alumni Sans", "Arial Narrow", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --azul: hsl(214, 70%, 62%); --azul-claro: hsl(214, 70%, 72%);
    --fundo: #141414; --fundo2: #1c1c1c; --papel: #222; --texto: #ecebe8; --suave: #a9a59e; --linha: #333;
    --hero-veu: linear-gradient(90deg, #141414 0%, #141414e0 30%, #14141400 62%);
    --sombra: 0 18px 40px -16px #000c; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --azul: hsl(214, 70%, 62%); --azul-claro: hsl(214, 70%, 72%);
  --fundo: #141414; --fundo2: #1c1c1c; --papel: #222; --texto: #ecebe8; --suave: #a9a59e; --linha: #333;
  --hero-veu: linear-gradient(90deg, #141414 0%, #141414e0 30%, #14141400 62%);
  --sombra: 0 18px 40px -16px #000c; color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--fundo); color: var(--texto); font: 400 1.0625rem/1.65 var(--serif); }
img { max-width: 100%; display: block; }
a { color: inherit; }
h2, h3 { font-family: var(--cond); font-weight: 600; letter-spacing: .01em; line-height: 1; margin: 0; }

/* dia/noite das imagens */
.noite { display: none !important; }
:root[data-theme="dark"] .dia { display: none !important; }
:root[data-theme="dark"] .noite { display: block !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .dia { display: none !important; }
  :root:not([data-theme="light"]) .noite { display: block !important; }
}

/* ---------- TRILHO (menu lateral) ---------- */
.trilho {
  position: fixed; inset: 0 auto 0 0; width: 4.5rem; z-index: 50;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.6rem;
  background: color-mix(in srgb, var(--fundo) 80%, transparent); backdrop-filter: blur(8px);
  border-right: 1px solid var(--linha);
}
.trilho a {
  writing-mode: vertical-rl; transform: rotate(180deg); text-decoration: none;
  font: 600 1.5rem var(--cond); letter-spacing: .18em; text-transform: uppercase; color: var(--suave);
  transition: color .25s;
}
.trilho a:hover, .trilho a.ativo { color: var(--azul); }
.trilho .trilho-ini { writing-mode: horizontal-tb; transform: none; font: italic 600 1.5rem var(--serif); color: var(--azul); letter-spacing: 0; }
.tema { width: 2.2rem; height: 2.2rem; border-radius: 50%; border: 1px solid var(--linha); background: none; cursor: pointer; display: grid; place-items: center; }
.tema { color: var(--azul); transition: border-color .3s, background .3s; }
.tema:hover { border-color: var(--azul); }
/* lua (página clara) feita com sombra: um círculo "mordido" */
.tema span { width: 1.15rem; height: 1.15rem; border-radius: 50%; background: transparent; box-shadow: inset -.32rem -.18rem 0 0 currentColor; transform: rotate(-20deg); transition: transform .5s cubic-bezier(.2,.7,.2,1), box-shadow .5s; }
.tema:hover span { transform: rotate(-40deg) scale(1.1); }
/* sol (página escura): miolo + 8 raios */
:root[data-theme="dark"] .tema { color: var(--ouro); }
:root[data-theme="dark"] .tema span { width: .6rem; height: .6rem; background: currentColor; transform: rotate(0);
  box-shadow: 0 -.55rem 0 -.18rem currentColor, 0 .55rem 0 -.18rem currentColor, .55rem 0 0 -.18rem currentColor, -.55rem 0 0 -.18rem currentColor,
    .39rem .39rem 0 -.18rem currentColor, -.39rem -.39rem 0 -.18rem currentColor, .39rem -.39rem 0 -.18rem currentColor, -.39rem .39rem 0 -.18rem currentColor; }
:root[data-theme="dark"] .tema:hover span { transform: rotate(45deg) scale(1.1); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tema { color: var(--ouro); }
  :root:not([data-theme="light"]) .tema span { width: .6rem; height: .6rem; background: currentColor; transform: rotate(0);
    box-shadow: 0 -.55rem 0 -.18rem currentColor, 0 .55rem 0 -.18rem currentColor, .55rem 0 0 -.18rem currentColor, -.55rem 0 0 -.18rem currentColor,
      .39rem .39rem 0 -.18rem currentColor, -.39rem -.39rem 0 -.18rem currentColor, .39rem -.39rem 0 -.18rem currentColor, -.39rem .39rem 0 -.18rem currentColor; }
}

/* ---------- HERÓI ---------- */
.hero { position: relative; height: 100svh; min-height: 36rem; overflow: hidden; margin-left: 4.5rem; }
.hero-foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%; animation: zoom 14s ease-out both; }
@keyframes zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero::after { content: ""; position: absolute; inset: 0; background: var(--hero-veu); pointer-events: none; }
.hero { display: flex; align-items: center; }
.hero-texto { position: relative; z-index: 2; max-width: 36rem; padding: 2rem 0 2rem 5vw; }
.hero h1 { margin: 0; font-weight: 400; }
.assinatura { width: min(30rem, 80%); animation: escreve 1.8s .2s cubic-bezier(.6,0,.2,1) both; filter: drop-shadow(1px 1px 1px var(--fundo)); }
@keyframes escreve { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.hero-cargo { display: block; margin-top: 1.2rem; font: 500 clamp(1.3rem, 2.2vw, 1.75rem)/1.1 var(--cond); letter-spacing: .14em; text-transform: uppercase; color: var(--azul); }
.hero-bio { margin: 1.2rem 0 2rem; color: var(--suave); max-width: 32rem; }
.hero-cargo, .hero-bio, .hero-acoes { animation: sobe .9s both; }
.hero-cargo { animation-delay: 1.3s; } .hero-bio { animation-delay: 1.5s; } .hero-acoes { animation-delay: 1.7s; }
@keyframes sobe { from { opacity: 0; transform: translateY(18px); } }
.hero-acoes, .acoes { display: flex; flex-wrap: wrap; gap: .8rem; }
.btn { display: inline-flex; align-items: center; min-height: 3rem; padding: 0 1.6rem; text-decoration: none; font: 600 1.15rem var(--cond); letter-spacing: .12em; text-transform: uppercase; border: 1.5px solid var(--azul); border-radius: 3px; transition: background .25s, color .25s, transform .25s; }
.btn-cheio { background: var(--azul); color: #fff; }
:root[data-theme="dark"] .btn-cheio { color: #111; }
.btn-linha { color: var(--azul); }
.btn:hover { transform: translateY(-2px); }
.btn-linha:hover { background: var(--azul); color: var(--fundo); }
.redes { position: absolute; z-index: 3; top: 1.4rem; right: 1.6rem; display: flex; gap: 1.2rem; list-style: none; margin: 0; padding: 0; }
/* ícones das redes: desenho em máscara (SVG embutido), cor vem do CSS; sombra p/ aparecer sobre a foto */
.redes { gap: .4rem; }
.rede { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; transition: background .3s, transform .3s; }
.rede::before { content: ""; width: 1.45rem; height: 1.45rem; background: #fff; filter: drop-shadow(0 1px 3px #000b);
  -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; transition: background .3s; }
.rede:hover { background: #ffffff26; transform: translateY(-2px); }
.rede:hover::before { background: var(--ouro); }
.rede:focus-visible { outline: 2px solid var(--ouro); outline-offset: 2px; }
.rede-ig { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='5'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Ccircle cx='17.5' cy='6.5' r='.6' fill='%23000'/%3E%3C/svg%3E"); }
.rede-fb { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M13.5 22v-8.2h2.8l.4-3.3h-3.2V8.4c0-.9.3-1.6 1.6-1.6h1.7V3.9c-.3 0-1.3-.1-2.5-.1-2.5 0-4.2 1.5-4.2 4.3v2.4H7.3v3.3h2.8V22z'/%3E%3C/svg%3E"); }
.rede-yt { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M21.6 7.2a2.6 2.6 0 0 0-1.8-1.8C18.2 5 12 5 12 5s-6.2 0-7.8.4A2.6 2.6 0 0 0 2.4 7.2C2 8.8 2 12 2 12s0 3.2.4 4.8a2.6 2.6 0 0 0 1.8 1.8C5.8 19 12 19 12 19s6.2 0 7.8-.4a2.6 2.6 0 0 0 1.8-1.8c.4-1.6.4-4.8.4-4.8s0-3.2-.4-4.8zM10 15V9l5.2 3z'/%3E%3C/svg%3E"); }
/* crédito do fotógrafo: etiqueta legível sobre a foto */
.credito { position: absolute; z-index: 3; right: 1.6rem; bottom: 1.4rem; display: inline-flex; align-items: center; gap: .55rem;
  padding: .45rem .9rem; border-radius: 2rem; background: #000000a6; backdrop-filter: blur(6px); border: 1px solid #ffffff24;
  font: italic 500 .95rem var(--serif); color: #fff; }
.credito span { font: 600 .85rem var(--cond); font-style: normal; letter-spacing: .2em; text-transform: uppercase; color: var(--ouro); }
.rolar { position: absolute; z-index: 3; left: 50%; bottom: 2rem; width: 1.6rem; height: 2.6rem; border: 1.5px solid var(--suave); border-radius: 1rem; }
.rolar span { position: absolute; left: 50%; top: .5rem; width: 3px; height: .55rem; margin-left: -1.5px; border-radius: 2px; background: var(--suave); animation: rola 1.8s infinite; }
@keyframes rola { 60% { transform: translateY(.8rem); opacity: 0; } 100% { opacity: 0; } }

/* ---------- CORPO ---------- */
main { margin-left: 4.5rem; }
section { padding: clamp(4rem, 9vw, 7.5rem) clamp(1.2rem, 5vw, 5rem); }
.sec-topo { max-width: 46rem; margin: 0 auto 3rem; text-align: center; }
.sec-topo h2 { font-size: clamp(3rem, 6vw, 4.6rem); color: var(--azul); }
.sec-topo p { color: var(--suave); margin: .8rem 0 0; }
.sobre-tit { display: block; font: 500 1rem var(--cond); letter-spacing: .3em; text-transform: uppercase; color: var(--ouro); margin-bottom: .6rem; }

.numeros { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding-block: 3rem; border-bottom: 1px solid var(--linha); text-align: center; }
.numeros b { display: block; font: 600 clamp(2.6rem, 5vw, 3.8rem)/1 var(--cond); color: var(--azul); }
.numeros span { font-size: .9rem; color: var(--suave); }

/* livro em 3D */
.livro3d { position: relative; aspect-ratio: 2 / 3; border-radius: 2px 6px 6px 2px; overflow: hidden; background: var(--papel); box-shadow: var(--sombra); transform: perspective(900px) rotateY(-12deg); transform-origin: left center; transition: transform .5s cubic-bezier(.2,.7,.2,1), box-shadow .5s; }
.livro3d img { width: 100%; height: 100%; object-fit: cover; }
.livro3d::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 7%; z-index: 2; background: linear-gradient(90deg, #0005, #fff3 40%, #0000); }
.livro3d::after { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(115deg, #fff0 40%, #fff3 50%, #fff0 60%); transform: translateX(-100%); transition: transform .8s; }

/* lançamento */
.lancamento { display: grid; grid-template-columns: minmax(14rem, 25rem) 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; max-width: 72rem; margin: 0 auto; }
.livro3d.grande { transform: perspective(1200px) rotateY(-18deg) rotateX(3deg); }
.lanc-capa:hover .livro3d.grande { transform: perspective(1200px) rotateY(-4deg); }
.lanc-capa:hover .livro3d::after { transform: translateX(100%); }
.selo { display: inline-block; background: var(--ouro); color: #111; font: 600 1rem var(--cond); letter-spacing: .2em; text-transform: uppercase; padding: .3rem .9rem; }
.lanc-texto h2 { font-size: clamp(3rem, 6vw, 5rem); margin: 1rem 0 .6rem; color: var(--azul); }
.lanc-texto h2 em, .ficha-sub { display: block; font: italic 400 clamp(1.15rem, 2vw, 1.45rem)/1.3 var(--serif); color: var(--suave); margin-top: .5rem; letter-spacing: 0; }
.lanc-texto p { color: var(--suave); margin: 0 0 2rem; }

/* estante */
.estante { background: var(--fundo2); }
.filtros { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-bottom: 3.5rem; }
.filtros button { font: 500 1.1rem var(--cond); letter-spacing: .08em; text-transform: uppercase; padding: .5rem 1.1rem; border: 1px solid var(--linha); border-radius: 2rem; background: var(--papel); color: var(--texto); cursor: pointer; transition: all .25s; }
.filtros button small { color: var(--suave); margin-left: .2rem; }
.filtros button.ativo, .filtros button:hover { background: var(--azul); border-color: var(--azul); color: #fff; }
.filtros button.ativo small, .filtros button:hover small { color: #fffb; }
.grade { list-style: none; margin: 0 auto; padding: 0; max-width: 78rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: 3.5rem 2.5rem; }
.grade .item[hidden] { display: none; }
.abre { all: unset; cursor: pointer; display: flex; flex-direction: column; gap: .3rem; width: 100%; }
.abre .livro3d { margin-bottom: 1rem; }
.abre:hover .livro3d, .abre:focus-visible .livro3d { transform: perspective(900px) rotateY(0) translateY(-8px); box-shadow: 0 28px 50px -20px #0008; }
.abre:hover .livro3d::after { transform: translateX(100%); }
.abre:focus-visible { outline: 2px solid var(--azul); outline-offset: 6px; }
.ano { font: 600 1rem var(--cond); letter-spacing: .15em; color: var(--ouro); }
.tit { font-weight: 600; line-height: 1.25; }
.sub { font-style: italic; font-size: .9rem; color: var(--suave); line-height: 1.35; }
.tipografica { background: var(--azul); container-type: inline-size; }
.tipografica .capa-tipo small { font-size: 5.5cqi; }
.tipografica .capa-tipo b { font-size: 13cqi; }
.tipografica .capa-tipo i { font-size: 6cqi; }
.tipografica .capa-tipo span { font-size: 6cqi; }
.capa-tipo { position: absolute; inset: 0; padding: 12% 10%; display: flex; flex-direction: column; color: #fff; border: 1px solid #fff4; margin: 6%; }
.capa-tipo small { font: 500 .85rem var(--cond); letter-spacing: .2em; text-transform: uppercase; color: var(--ouro); }
.capa-tipo b { font: 600 2rem/1 var(--cond); margin: auto 0 .6rem; }
.capa-tipo i { font-size: .8rem; line-height: 1.3; opacity: .85; }
.capa-tipo span { margin-top: auto; font: italic .85rem var(--serif); }
:root[data-theme="dark"] .capa-tipo { color: #111; }

/* artigos */
.busca { display: flex; align-items: center; gap: 1rem; max-width: 40rem; margin: 0 auto 2.5rem; border-bottom: 2px solid var(--azul); padding: .4rem 0; }
.busca span { font: 500 1rem var(--cond); letter-spacing: .2em; text-transform: uppercase; color: var(--azul); }
.busca input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; color: var(--texto); outline: none; padding: .4rem 0; }
.lista { list-style: none; counter-reset: art; max-width: 60rem; margin: 0 auto; padding: 0; }
.lista li { counter-increment: art; display: flex; align-items: center; gap: 1.2rem; padding: 1.1rem .4rem; border-bottom: 1px solid var(--linha); transition: background .2s; }
.lista li::before { content: counter(art, decimal-leading-zero); font: 600 1.4rem var(--cond); color: var(--ouro); min-width: 2rem; }
.lista li:hover { background: var(--fundo2); }
.lista li[hidden] { display: none; }
.art-tit { flex: 1; }
.art-acoes { display: flex; gap: .4rem; }
.art-acoes a { font: 600 .95rem var(--cond); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; padding: .35rem .8rem; border: 1px solid var(--azul); color: var(--azul); border-radius: 2px; }
.art-acoes a:hover { background: var(--azul); color: var(--fundo); }
.vazio { text-align: center; color: var(--suave); }

/* contato */
.contato { display: grid; grid-template-columns: minmax(12rem, 22rem) 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; max-width: 64rem; margin: 0 auto; }
.contato figure { margin: 0; }
.contato img { filter: grayscale(1); box-shadow: var(--sombra); }
.contato figcaption { font-size: .75rem; color: var(--suave); margin-top: .5rem; }
.contato h2 { font-size: clamp(2.6rem, 5vw, 3.8rem); color: var(--azul); margin-bottom: 1rem; }
.contato p { color: var(--suave); }
.email { font: italic 600 clamp(1.2rem, 2.4vw, 1.6rem) var(--serif); color: var(--azul); text-decoration-color: var(--ouro); text-underline-offset: 6px; overflow-wrap: anywhere; }

.rodape { margin-left: 4.5rem; padding: 0 clamp(1.2rem, 5vw, 5rem) 2.4rem; text-align: center; color: var(--suave); }
.rodape p { margin: 0; }
.rodape-legal { padding: 1.4rem 0; border-top: 1px solid var(--linha); border-bottom: 1px solid var(--linha); font-size: .85rem; }

/* Assinatura SanWeb: "S." pintado por máscara na cor da marca; ao aparecer gira e se desenha; ponto pulsa;
   hover = piscadinha + gradiente correndo no nome. */
.rodape-assina { padding-top: 1.8rem; }
.assinatura-link { display: inline-flex; align-items: center; gap: .5rem; flex-wrap: wrap; justify-content: center; font-size: 1.05rem; color: var(--suave); text-decoration: none; }
.assinatura-link.revela { opacity: 1; transform: none; }
.assinatura-s { --sw: #f0883a; position: relative; display: inline-block; width: 2.4rem; height: 2.4rem; margin-left: .2rem; background: var(--sw);
  -webkit-mask: url('/assets/images/sanweb-s.webp') center / contain no-repeat; mask: url('/assets/images/sanweb-s.webp') center / contain no-repeat;
  clip-path: inset(100% 0 0 0); transform: rotate(-90deg) scale(.6); transition: clip-path 1.1s cubic-bezier(.2,.7,.2,1) .2s, transform 1.1s cubic-bezier(.2,.7,.2,1) .2s, filter .3s; }
.assinatura-link.visto .assinatura-s { clip-path: inset(0); transform: none; }
.assinatura-ponto { position: absolute; right: .1rem; bottom: .2rem; width: .5rem; height: .5rem; border-radius: 50%; background: var(--texto); opacity: 0; }
.assinatura-link.visto .assinatura-ponto { animation: ponto 2.2s ease-in-out 1.3s infinite; }
@keyframes ponto { 0%, 100% { opacity: .2; transform: scale(.7); } 50% { opacity: .9; transform: scale(1.4); } }
.assinatura-nome { font: 700 1.9rem/1 var(--cond); letter-spacing: .06em; text-transform: uppercase;
  background: linear-gradient(90deg, var(--texto) 0%, var(--texto) 40%, #f0883a 50%, var(--azul) 60%, var(--texto) 70%, var(--texto) 100%); background-size: 250% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.assinatura-link:hover .assinatura-s { animation: piscada .6s ease; filter: drop-shadow(0 0 6px #f0883acc); }
.assinatura-link:hover .assinatura-nome { animation: corre 1.4s linear infinite; }
@keyframes piscada { 40% { transform: scale(1.18) rotate(-8deg); filter: brightness(1.4) drop-shadow(0 0 8px #f0883a); } }
@keyframes corre { from { background-position: 100% 0; } to { background-position: -150% 0; } }
@media (prefers-reduced-motion: reduce) { .assinatura-s { clip-path: none; transform: none; } }

/* ficha do livro */
.ficha { width: min(56rem, 94vw); max-height: 92vh; border: 0; padding: 0; background: var(--papel); color: var(--texto); box-shadow: 0 40px 80px -20px #000a; overflow: auto; }
.ficha[open] { display: grid; grid-template-columns: minmax(10rem, 19rem) 1fr; animation: abre .45s cubic-bezier(.2,.8,.2,1); }
@keyframes abre { from { opacity: 0; transform: translateY(30px) scale(.97); } }
.ficha::backdrop { background: #000a; backdrop-filter: blur(4px); }
.ficha-capa { background: var(--fundo2); padding: 2.2rem; display: grid; place-items: center; }
.ficha-capa .livro3d { width: 100%; transform: none; }
.ficha-texto { padding: 2.4rem 2.4rem 2rem; }
.ficha-meta { font: 500 1rem var(--cond); letter-spacing: .2em; text-transform: uppercase; color: var(--ouro); }
.ficha h3 { font-size: clamp(2.2rem, 4vw, 3.2rem); color: var(--azul); margin: .4rem 0 0; }
.ficha-desc { color: var(--suave); margin: 1.2rem 0 1.8rem; font-size: 1rem; }
.fechar { position: absolute; top: .6rem; right: .8rem; z-index: 2; width: 2.6rem; height: 2.6rem; border: 0; background: none; color: var(--texto); font-size: 2rem; cursor: pointer; }

/* entrada ao rolar */
.revela { opacity: 0; transform: translateY(28px); transition: opacity .8s, transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: var(--atraso, 0s); }
.revela.acima { transform: translateY(-28px); }
.grade .item:nth-child(4n+2) { --atraso: .08s; }
.grade .item:nth-child(4n+3) { --atraso: .16s; }
.grade .item:nth-child(4n+4) { --atraso: .24s; }
.revela.visto { opacity: 1; transform: none; }
/* capas e fotos montam com um leve zoom além de subir */
.lanc-capa.revela, .grade .item.revela, .contato figure.revela { transform: translateY(40px) scale(.94); }
.lanc-capa.revela.acima, .grade .item.revela.acima, .contato figure.revela.acima { transform: translateY(-40px) scale(.94); }
.lanc-capa.revela.visto, .grade .item.revela.visto, .contato figure.revela.visto { transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .revela { opacity: 1; transform: none; }
}

.ler-mais, .ver-todos { display: none; }

/* ---------- CELULAR ---------- */
@media (max-width: 800px) {
  body { font-size: 1rem; }
  section { padding: 3.5rem 1.2rem; }
  .sec-topo { margin-bottom: 2rem; }
  .sec-topo h2 { font-size: 3rem; }

  /* menu embaixo */
  .trilho { inset: auto 0 0 0; width: auto; height: calc(4rem + env(safe-area-inset-bottom, 0px)); flex-direction: row; justify-content: space-around; gap: 0; border-right: 0; border-top: 1px solid var(--linha); padding: 0 .4rem env(safe-area-inset-bottom, 0px); background: color-mix(in srgb, var(--fundo) 92%, transparent); }
  .trilho a { writing-mode: horizontal-tb; transform: none; font-size: 1.2rem; letter-spacing: .1em; min-height: 3rem; display: flex; align-items: center; padding: 0 .5rem; border-bottom: 2px solid transparent; }
  .trilho a.ativo { border-bottom-color: var(--ouro); }
  .tema { width: 2.75rem; height: 2.75rem; }

  .hero-acoes { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
  .hero-acoes .btn { justify-content: center; padding: 0 .6rem; font-size: 1.05rem; }
  .btn { min-height: 3rem; }

  /* lançamento: texto recolhido com "Ler mais" */
  .lanc-texto { text-align: center; }
  .lanc-texto h2 { font-size: 2.8rem; }
  .lanc-texto p { text-align: left; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: .4rem; }
  .lanc-texto p.aberto { display: block; }
  .ler-mais { display: inline-block; background: none; border: 0; padding: .6rem 0 1.4rem; font: 600 1.05rem var(--cond); letter-spacing: .12em; text-transform: uppercase; color: var(--azul); cursor: pointer; }
  .lanc-texto .acoes { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
  .lanc-texto .acoes .btn, .ficha .acoes .btn { justify-content: center; padding: 0 .6rem; }

  /* filtros: faixa que desliza para o lado */
  .filtros { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; margin: 0 -1.2rem 2.2rem; padding: 0 1.2rem .3rem; scroll-snap-type: x proximity; scroll-padding-inline: 1.2rem; mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .filtros::-webkit-scrollbar { display: none; }
  .filtros button { flex: none; min-height: 2.75rem; scroll-snap-align: start; white-space: nowrap; }

  .grade { grid-template-columns: repeat(2, 1fr); gap: 2.2rem 1.1rem; }
  .grade .livro3d { transform: perspective(700px) rotateY(-8deg); }
  .abre .livro3d { margin-bottom: .7rem; }
  .tit { font-size: .95rem; }
  .sub { font-size: .82rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

  /* artigos em cartões compactos */
  .busca { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--fundo); margin-bottom: 1rem; }
  .busca input { font-size: 1rem; min-height: 2.75rem; }
  .lista li { display: grid; grid-template-columns: auto 1fr; gap: .5rem .9rem; padding: 1rem .2rem; }
  .lista li::before { font-size: 1.25rem; min-width: 0; grid-row: span 2; align-self: start; line-height: 1.4; }
  .art-tit { line-height: 1.4; }
  .art-acoes { width: auto; padding-left: 0; }
  .art-acoes a { min-height: 2.5rem; display: inline-flex; align-items: center; padding: 0 1.1rem; }
  .lista.recolhida li:nth-child(n+11) { display: none; }
  .ver-todos { display: flex; justify-content: center; margin: 1.6rem auto 0; width: 100%; }

  .contato { text-align: center; }
  .contato figure { max-width: 15rem; margin: 0 auto; }

  /* ficha vira "gaveta" que sobe de baixo */
  .ficha { width: 100%; max-width: 100%; max-height: 92svh; margin: auto 0 0; border-radius: 14px 14px 0 0; }
  .ficha[open] { animation: gaveta .4s cubic-bezier(.2,.8,.2,1); }
  @keyframes gaveta { from { transform: translateY(100%); } }
  .ficha-capa { padding: 1.6rem 30% 1rem; }
  .ficha h3 { font-size: 2.2rem; }
  .ficha-desc { font-size: .95rem; }
  .ficha .acoes { position: sticky; bottom: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; padding: .8rem 0 calc(.8rem + env(safe-area-inset-bottom, 0px)); background: var(--papel); }
  .ficha .fechar { position: absolute; top: .4rem; right: .4rem; background: var(--papel); border-radius: 50%; }
  .hero, main, .rodape { margin-left: 0; }
  .rodape { padding-bottom: 5rem; }
  .hero { display: block; height: auto; min-height: 0; }
  .hero-foto { display: block; position: relative; height: 62svh; overflow: hidden; }
  .hero-foto img { object-position: 78% top; }
  .hero::after { inset: 0 0 auto 0; height: 62svh; background: linear-gradient(0deg, var(--fundo) 0%, transparent 40%); }
  .hero-texto { margin-top: -5.5rem; padding: 0 1.2rem 3rem; }
  .assinatura { width: 15rem; }
  .hero-bio { font-size: .95rem; margin-bottom: 1.4rem; }
  .rolar { display: none; }
  .redes { right: 1rem; top: 1rem; gap: .9rem; }
  .credito { right: 1rem; top: calc(62svh - 8.5rem); bottom: auto; font-size: .85rem; padding: .35rem .75rem; }
  .credito span { font-size: .75rem; }
  .numeros { grid-template-columns: repeat(2, 1fr); row-gap: 2rem; }
  .lancamento, .contato { grid-template-columns: 1fr; }
  .lanc-capa { max-width: 15rem; margin: 0 auto; }
  .ficha[open] { grid-template-columns: 1fr; }
  .ficha-texto { padding: 1.2rem 1.4rem 0; }
}
