:root {
  --bg: #f3ece1;
  --ink: #161410;
  --ink-soft: #5a534a;
  --gold: #c4a056;
  --gold-deep: #8c6a2c;
  --paper: #faf6ef;
  --card: #fffcf7;
  --banner: #1a1714;
  --danger: #7a2e22;
  --radius: 16px;
  --shadow: 0 12px 28px rgba(22, 20, 16, 0.07);
}
* { box-sizing: border-box; }
html { font-size: 17px; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Source Sans 3", "Source Sans Pro", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  min-height: 100vh;
}
a { color: inherit; }
.mural {
  background: var(--banner);
  color: #f6edd8;
  text-align: center;
  padding: 11px 16px;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}
.mural strong { color: var(--gold); font-weight: 650; }
.wrap { width: min(1100px, calc(100% - 28px)); margin: 0 auto; }
header.site { padding: 28px 0 8px; text-align: center; }
.kicker {
  letter-spacing: 0.22em;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--gold-deep);
  text-transform: uppercase;
  margin: 0;
}
.rule { width: 56px; height: 2px; background: var(--gold); border: 0; margin: 12px auto 16px; }
h1.frase {
  font-family: Fraunces, Georgia, "Palatino Linotype", "Times New Roman", serif;
  font-style: italic;
  font-weight: 700;
  font-size: clamp(2rem, 7vw, 3.15rem);
  margin: 0 0 16px;
  line-height: 1.12;
}
.citacao {
  max-width: 32rem;
  margin: 0 auto 10px;
  font-family: Fraunces, Georgia, serif;
  font-style: italic;
  font-size: 1.08rem;
  color: var(--ink);
}
.citacao cite {
  display: block;
  font-style: normal;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 6px;
}
.lead { color: var(--ink-soft); margin: 0 auto 16px; max-width: 38rem; }
.aviso-lgpd {
  background: #efe4d0;
  border: 1px solid #ddcba8;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 0.9rem;
  margin: 16px auto;
  max-width: 42rem;
}
.projeto, .apps, .busca-box, section.bloco {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
  box-shadow: var(--shadow);
  margin: 16px 0;
}
.projeto h2, .apps h2, .busca-box h2, section.bloco h2 {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.25rem;
  margin: 0 0 10px;
}
.projeto p, .apps p { margin: 0 0 10px; color: var(--ink-soft); }
.projeto p:last-child, .apps p:last-child { margin-bottom: 0; }
.toolbar {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
@media (min-width: 700px) {
  .toolbar { flex-direction: row; align-items: center; }
}
.toolbar input, .toolbar select {
  font: inherit;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #d7cbb8;
  background: #fff;
  width: 100%;
  color: var(--ink);
}
.toolbar input { flex: 1; }
.toolbar select { flex: 0 0 auto; min-width: 180px; }
.contador { color: var(--ink-soft); font-size: 0.88rem; margin: 8px 0 0; }
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 8px 0 28px;
}
@media (min-width: 640px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .grid { grid-template-columns: 1fr 1fr 1fr; } }
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  min-height: 200px;
  border: 1px solid rgba(22,20,16,0.05);
}
.card .faixa { height: 10px; width: 100%; }
.card .corpo { padding: 16px 16px 18px; flex: 1; display: flex; flex-direction: column; }
.card .cat {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 650;
  margin: 0 0 6px;
}
.card h2 {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.18rem;
  margin: 0 0 4px;
  line-height: 1.25;
}
.card .autor { margin: 0 0 10px; color: var(--ink-soft); font-size: 0.95rem; }
.card .desc { margin: 0; color: var(--ink-soft); font-size: 0.9rem; flex: 1; }
.selo {
  display: inline-block;
  margin-top: 10px;
  background: #efe0c4;
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  border-radius: 999px;
  padding: 4px 9px;
}
.cta { margin-top: 12px; font-weight: 700; font-size: 0.92rem; color: var(--gold-deep); }
.hidden { display: none !important; }
.apps ul { list-style: none; padding: 0; margin: 0 0 12px; }
.apps li {
  padding: 12px 0;
  border-top: 1px solid #eadfcf;
}
.apps li:first-child { border-top: 0; }
.apps a { font-weight: 700; color: var(--gold-deep); text-decoration: none; }
.apps a:hover { text-decoration: underline; }
.apps small { display: block; color: var(--ink-soft); font-weight: 400; margin-top: 2px; }
footer.site { text-align: center; padding: 8px 0 40px; color: var(--ink-soft); font-size: 0.88rem; }
.book-hero { padding: 26px 0 22px; color: #fff; }
.book-hero a.voltar { color: #fff; opacity: 0.9; text-decoration: none; font-size: 0.9rem; }
.book-hero h1 {
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(1.7rem, 6vw, 2.6rem);
  margin: 12px 0 4px;
  line-height: 1.15;
}
.book-hero .autor { margin: 0; opacity: 0.92; }
.pill {
  display: inline-block;
  background: rgba(255,255,255,0.16);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 8px;
}
.botoes { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 4px; }
.btn {
  display: inline-block;
  background: var(--gold);
  color: #1c1810;
  text-decoration: none;
  font-weight: 700;
  border-radius: 999px;
  padding: 13px 20px;
  border: 0;
  font-size: 1rem;
  cursor: pointer;
}
.btn.sec { background: transparent; color: inherit; border: 2px solid currentColor; }
main.book { padding: 8px 0 48px; }
.etiqueta {
  display: inline-block;
  background: #efe0c4;
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 3px 10px;
  margin-bottom: 10px;
}
.yt { display: flex; flex-direction: column; gap: 10px; }
.yt a {
  background: #fff;
  border-radius: 14px;
  padding: 14px 16px;
  text-decoration: none;
  border: 1px solid rgba(22,20,16,0.08);
  font-weight: 650;
  line-height: 1.35;
}
.yt a small { display: block; font-weight: 500; color: var(--ink-soft); margin-top: 4px; }
.modal {
  position: fixed; inset: 0;
  background: rgba(16, 14, 12, 0.55);
  display: flex; align-items: flex-end; justify-content: center;
  z-index: 40; padding: 16px;
}
@media (min-width: 640px) { .modal { align-items: center; } }
.modal[hidden] { display: none; }
.modal .caixa {
  background: var(--paper);
  width: min(460px, 100%);
  border-radius: 20px;
  padding: 22px 20px 20px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}
.modal h2 { margin: 0 0 8px; font-family: Fraunces, Georgia, serif; }
.modal p { color: var(--ink-soft); margin: 0 0 14px; }
.modal input, .admin input[type=password], .admin input[type=text] {
  width: 100%; font: inherit; padding: 12px 14px;
  border-radius: 12px; border: 1px solid #d7cbb8; margin-bottom: 12px; background: #fff;
}
.modal button, .admin button {
  width: 100%; font: inherit; font-weight: 700;
  background: var(--ink); color: #f6edd8; border: 0; border-radius: 12px; padding: 12px; cursor: pointer;
}
.ola { text-align: center; color: var(--ink-soft); font-size: 0.92rem; margin: 0 0 8px; }
.ola button { background: none; border: 0; color: var(--gold-deep); font: inherit; font-weight: 700; cursor: pointer; text-decoration: underline; }
.admin { padding: 24px 0 48px; }
.admin table { width: 100%; border-collapse: collapse; background: var(--paper); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.admin th, .admin td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #eadfcf; font-size: 0.92rem; }
.admin th { background: var(--banner); color: #f6edd8; }
.erro { color: var(--danger); }

.interesse { margin-top: 14px; }
.interesse form { display: flex; flex-direction: column; gap: 8px; }
.interesse label { font-size: 0.88rem; font-weight: 650; }
.interesse input { font: inherit; padding: 11px 12px; border-radius: 12px; border: 1px solid #d7cbb8; background: #fff; }
.aviso-direito { background: #efe4d0; border-left: 3px solid var(--gold-deep); padding: 12px 14px; border-radius: 8px; margin: 10px 0 14px; color: var(--ink); }
.link-sutil { text-align: center; margin: 8px 0 28px; font-size: 0.88rem; color: var(--ink-soft); }
.link-sutil a { color: var(--ink-soft); }

.card .capa{width:100%;aspect-ratio:2/3;object-fit:cover;background:#e9dfcd;max-height:260px}
@media(max-width:639px){.card{flex-direction:row;min-height:0}.card .capa{width:96px;max-height:none;aspect-ratio:2/3;flex:0 0 96px}}
.sugestoes{background:#1a1714;color:#f6edd8;border-radius:16px;padding:20px 16px;margin:16px 0}
.sugestoes h2{font-family:Fraunces,Georgia,serif;margin:0 0 6px;font-size:1.3rem;color:#f6edd8}
.sugestoes p{color:#d9ccb1;margin:0 0 12px}
.sug-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
@media(min-width:640px){.sug-grid{grid-template-columns:repeat(6,1fr)}}
@media(min-width:960px){.sug-grid{grid-template-columns:repeat(8,1fr)}}
.sug{text-decoration:none;color:#f6edd8;font-size:.78rem;line-height:1.2}
.sug img{width:100%;aspect-ratio:2/3;object-fit:cover;border-radius:6px;box-shadow:0 6px 14px rgba(0,0,0,.35);display:block;margin-bottom:5px;background:#2b2320}
.capa-hero{width:120px;aspect-ratio:2/3;object-fit:cover;border-radius:6px;box-shadow:0 8px 20px rgba(0,0,0,.3);float:right;margin:8px 0 8px 12px}
footer.site .link-sutil{margin:8px 0 0}

.sugestoes.prot{background:#241c16;border:1px solid #3d3128}
.sugestoes.prot a{color:#f0d7a8}
.prot-grid{display:grid;grid-template-columns:1fr;gap:12px}
@media(min-width:720px){.prot-grid{grid-template-columns:repeat(2,1fr)}}
@media(min-width:1100px){.prot-grid{grid-template-columns:repeat(3,1fr)}}
.prot-card{display:flex;gap:12px;background:#2c241e;border-radius:12px;padding:12px;align-items:flex-start}
.prot-card .capa{width:88px;flex:0 0 88px;max-height:none;aspect-ratio:2/3;object-fit:cover;border-radius:6px;box-shadow:0 6px 14px rgba(0,0,0,.35);background:#1a1512}
.prot-card h3{font-family:Fraunces,Georgia,serif;margin:0 0 2px;font-size:1.05rem;color:#f6edd8;font-weight:600}
.prot-card .autor{margin:0 0 6px;color:#c9bda6;font-size:.88rem}
.prot-card .desc{margin:0 0 8px;color:#d9ccb1;font-size:.9rem;line-height:1.4}
.prot-card .aviso-direito{margin:0 0 10px;font-size:.85rem;background:#efe4d0;color:#1a1714}
.prot-card .btn-video{display:inline-block;color:#f6edd8;font-weight:700;font-size:.9rem;text-decoration:none;border-bottom:1px solid #c4a574;line-height:1.3}
.prot-card .btn-video small{display:block;font-weight:400;font-size:.78rem;color:#c9bda6;margin-top:3px}
@media(max-width:639px){.prot-card{flex-direction:row}.prot-card .capa{width:80px;flex:0 0 80px}}

.prot-cabeca{display:flex;flex-wrap:wrap;gap:10px 16px;align-items:flex-start;justify-content:space-between;margin:0 0 4px}
.prot-cabeca p{margin:0}
.btn-expandir{font:inherit;font-weight:700;font-size:.88rem;border:1.5px solid #c4a574;background:transparent;color:#f6edd8;border-radius:999px;padding:8px 14px;cursor:pointer;white-space:nowrap}
.btn-expandir[aria-expanded=true]{background:#c4a574;color:#1a1714;border-color:#c4a574}
.sugestoes.prot.recolhida .prot-grid,
.prot-grid[hidden]{display:none!important}
body{padding-bottom:calc(24px + env(safe-area-inset-bottom, 0px))}
/* Oculta o selo “Powered by Netlify” no canto inferior direito */
iframe[title*="Netlify" i],
iframe[src*="netlify"][style*="fixed"],
a[href="https://www.netlify.com"][style*="position: fixed"],
a[href="https://www.netlify.com"][style*="position:fixed"]{display:none!important;visibility:hidden!important}

/* Mais livros grátis: BibliON */
.biblion{
  background:linear-gradient(165deg,#1a1714 0%,#1e2a26 72%,#17211e 100%);
  color:#f6edd8;
  border-radius:var(--radius);
  padding:22px 20px 18px;
  box-shadow:var(--shadow);
  margin:16px 0;
  border:1px solid rgba(196,160,86,.22);
}
.biblion-kicker{
  letter-spacing:.18em;text-transform:uppercase;
  font-size:.68rem;font-weight:700;color:var(--gold);margin:0 0 8px;
}
.biblion h2{
  font-family:Fraunces,Georgia,serif;font-style:italic;
  font-size:clamp(1.3rem,5vw,1.7rem);margin:0 0 10px;color:#fbf6ea;
}
.biblion p{margin:0 0 10px;color:#d9ccb1}
.biblion h3{
  font-family:Fraunces,Georgia,serif;font-size:1.05rem;
  margin:14px 0 8px;color:#f6edd8;
}
.biblion-regras,.biblion-passos{margin:0 0 8px;padding-left:1.15rem;color:#d9ccb1}
.biblion-regras li,.biblion-passos li{margin:0 0 6px}
.biblion-regras strong{color:#f6edd8}
.biblion-links{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0 10px}
.biblion-links a{
  display:inline-block;text-decoration:none;font-weight:700;font-size:.88rem;
  border-radius:999px;padding:9px 14px;
  background:var(--gold);color:#1a1714;
}
.biblion-links a.sec{
  background:transparent;color:#f6edd8;
  border:1.5px solid rgba(196,160,86,.65);
}
.biblion-links a:hover,.biblion-links a:focus-visible{filter:brightness(1.06)}
.biblion .fonte{margin:8px 0 0;font-size:.78rem;color:#b9b0a0}
.biblion .fonte a{color:var(--gold);text-decoration:underline;text-underline-offset:2px}
