/*
Theme Name: Sophia Entre Histórias
Theme URI: https://sophiaentrehistorias.com.br
Author: Andara Creative
Description: Tema de blocos com cara de caderno de colagens: lilás, washi tape, letra de mão, polaroids e um cartão colorido para cada assunto.
Version: 1.1.0
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sophia-entre-historias
*/
:root {
  --tinta: #2A1F66;
  --tinta-suave: #4A3F8C;
  --violeta: #7B5CE0;
  --lilas: #EFE7FD;
  --lilas-forte: #D7C6FA;
  --papel: #FFFBF3;
  --rosa: #F7B6D2;
  --menta: #A8E0CF;
  --mao: 'Caveat', 'Comic Sans MS', cursive;
  --texto: 'Nunito', 'Segoe UI', system-ui, sans-serif;
  --sombra: 4px 5px 0 rgba(42,31,102,.16);
  --sombra-forte: 6px 8px 0 rgba(42,31,102,.22);
  --gingham: repeating-linear-gradient(0deg, rgba(123,92,224,.38) 0 5px, transparent 5px 10px),repeating-linear-gradient(90deg, rgba(123,92,224,.38) 0 5px, rgba(215,198,250,.75) 5px 10px);
}

html { scroll-behavior: smooth; }
body {
  background-color: var(--lilas);
  background-image: radial-gradient(rgba(123,92,224,.16) 1.2px, transparent 1.3px);
  background-size: 22px 22px;
  color: var(--tinta);
  font-family: var(--texto);
  overflow-x: hidden;
}
::selection { background: var(--rosa); color: var(--tinta); }
a { color: var(--tinta); text-decoration-color: var(--violeta); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--violeta); }
:where(.wp-site-blocks) > * { margin-block-start: 0; }
.wp-site-blocks { overflow-x: clip; }
img { max-width: 100%; height: auto; }

/* ---------- fita (washi tape) e rótulos ---------- */
.fita {
  display: inline-block;
  font-family: var(--texto);
  font-weight: 900;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .45em 1.1em;
  background: var(--gingham);
  color: var(--tinta);
  transform: rotate(-2deg);
  clip-path: polygon(2% 0, 98% 4%, 100% 50%, 97% 100%, 1% 96%, 0 50%);
  margin-bottom: .2rem !important;
}

.titulo-rabiscado { position: relative; display: inline-block; padding-bottom: .35em; }
.titulo-rabiscado::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: min(260px, 70%); height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 156 24%22 fill=%22none%22 stroke=%22%237B5CE0%22 stroke-width=%224%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M3 12c10-9 20 9 30 0s20 9 30 0 20 9 30 0 20 9 30 0 20 9 30 0%22/%3E%3C/svg%3E") left center / auto 100% repeat-x;
}

h1, h2, h3, h4 { font-family: var(--mao); font-weight: 700; color: var(--tinta); letter-spacing: -.005em; }
h1 { font-size: clamp(3rem, 7.5vw, 5.6rem); line-height: .95; }
h2 { font-size: clamp(2.5rem, 5.5vw, 4rem); line-height: 1; }
h3 { font-size: clamp(1.8rem, 3vw, 2.2rem); line-height: 1.05; }

/* ---------- botões ---------- */
.wp-block-button .wp-block-button__link {
  font-family: var(--texto); font-weight: 900; font-size: 1rem;
  background: var(--tinta); color: #fff;
  border: 2.5px solid var(--tinta); border-radius: 999px;
  padding: .85em 1.6em;
  box-shadow: 4px 4px 0 var(--violeta);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.wp-block-button .wp-block-button__link:hover { transform: translate(-2px,-2px) rotate(-1deg); box-shadow: 6px 6px 0 var(--violeta); background: var(--violeta); border-color: var(--tinta); color: #fff; }
.wp-block-button.is-style-outline .wp-block-button__link { background: var(--papel); color: var(--tinta); box-shadow: 4px 4px 0 var(--rosa); }
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--rosa); color: var(--tinta); box-shadow: 6px 6px 0 var(--tinta); }
.wp-block-buttons { gap: 1rem 1.1rem; }

/* ---------- topo ---------- */
.wp-block-template-part:has(.topo) { position: sticky; top: 0; z-index: 50; }
.admin-bar .wp-block-template-part:has(.topo) { top: 32px; }
@media (max-width: 782px) { .admin-bar .wp-block-template-part:has(.topo) { top: 0; position: relative; } }
.topo {
  background: var(--papel);
  position: relative;
  padding: .7rem clamp(16px, 4vw, 40px) !important;
  box-shadow: 0 2px 0 rgba(42,31,102,.08);
}
.topo::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -9px; height: 10px;
  background: var(--gingham); opacity: .9;
}
.topo-miolo { max-width: 1240px; margin: 0 auto; gap: 1rem; }
.assinatura { margin: 0; font-family: var(--mao); font-weight: 700; font-size: 2.3rem; line-height: .9; }
.assinatura a { text-decoration: none; color: var(--tinta); }
.assinatura em { display: block; font-style: normal; font-size: .62em; color: var(--violeta); margin-left: 1.2em; transform: rotate(-3deg); }
.assinatura em::after { content: ""; display: inline-block; width: 20px; height: 20px; margin-left: 6px; vertical-align: -2px; background: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 48 48%22 fill=%22none%22 stroke=%22%232A1F66%22 stroke-width=%222.6%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M24 40S8 30 8 19a8 8 0 0 1 16-3 8 8 0 0 1 16 3c0 11-16 21-16 21z%22/%3E%3C/svg%3E") center / contain no-repeat; transform: rotate(12deg); }

.menu-fitas .wp-block-navigation-item__content {
  font-weight: 800; font-size: 1rem; padding: .35em .8em !important; border-radius: 6px;
  transition: background .15s ease, transform .15s ease;
}
.menu-fitas .wp-block-navigation-item__content:hover { background: var(--gingham); transform: rotate(-2deg); color: var(--tinta); }
.menu-fitas .wp-block-navigation__container { gap: .4rem; }
.wp-block-navigation__responsive-container.is-menu-open { background: var(--lilas) !important; color: var(--tinta) !important; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-family: var(--mao); font-size: 2.4rem; font-weight: 700; }
.wp-block-navigation__responsive-container-open { background: var(--gingham); padding: 8px; border-radius: 8px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  background: var(--papel);
  padding: clamp(48px, 7vw, 96px) clamp(16px, 4vw, 40px) clamp(72px, 9vw, 120px);
  margin-top: 0 !important;
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -23px; height: 24px; z-index: 2;
  background: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 1200 24%22 preserveAspectRatio=%22none%22%3E%3Cpath fill=%22%23FFFBF3%22 d=%22M0,0 L1200,0 L1200,10 L1191,16 L1175,14 L1160,10 L1131,6 L1107,6 L1080,12 L1063,5 L1030,8 L1002,15 L978,11 L948,8 L916,5 L895,15 L876,16 L855,8 L830,11 L798,11 L774,10 L743,11 L723,13 L708,13 L692,15 L661,5 L636,7 L602,13 L570,5 L551,14 L520,8 L488,5 L457,6 L430,8 L412,12 L397,7 L382,10 L350,13 L335,13 L301,14 L280,5 L248,4 L221,12 L205,7 L189,10 L162,5 L147,7 L117,4 L85,9 L68,12 L52,4 L18,10 L0,9 Z%22/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.hero > .wp-block-columns { max-width: 1240px; margin: 0 auto; gap: clamp(2rem, 5vw, 4.5rem); }
.titulo-hero { margin-top: .9rem !important; }
.titulo-hero em {
  font-style: normal; color: var(--tinta);
  background: linear-gradient(transparent 55%, rgba(247,182,210,.85) 55%, rgba(247,182,210,.85) 88%, transparent 88%);
  padding: 0 .1em;
}
.hero-texto { font-size: 1.2rem; max-width: 33em; }
.rabisco { font-family: var(--mao); font-size: 1.6rem; color: var(--violeta); transform: rotate(-1.5deg); margin-top: 1.4rem !important; }
.rabisco::before { content: ""; display: inline-block; width: 42px; height: 34px; margin-right: 8px; vertical-align: -6px; background: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 48 48%22 fill=%22none%22 stroke=%22%232A1F66%22 stroke-width=%222.6%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M8 30c8-14 22-20 34-16%22/%3E%3Cpath d=%22M34 8l8 6-7 7%22/%3E%3C/svg%3E") center / contain no-repeat; transform: scaleY(-1); }

/* polaroids */
.polaroid {
  position: relative;
  background: #fff;
  padding: 14px 14px 0 !important;
  box-shadow: var(--sombra-forte);
  transform: rotate(2.5deg);
  transition: transform .25s ease;
  margin-inline: auto;
}
.polaroid img { display: block; width: 100%; height: auto; }
.polaroid figcaption, .polaroid .wp-element-caption {
  font-family: var(--mao); font-size: 1.7rem; color: var(--tinta); text-align: center;
  margin: 0 !important; padding: .5rem 0 .7rem;
}
.polaroid::before {
  content: ""; position: absolute; top: -16px; left: 50%; width: 120px; height: 34px; z-index: 3;
  transform: translateX(-50%) rotate(-4deg);
  background: var(--gingham); opacity: .92;
  clip-path: polygon(3% 0, 97% 6%, 100% 50%, 96% 100%, 2% 94%, 0 50%);
}
.polaroid:hover { transform: rotate(0deg) scale(1.015); }
.polaroid-hero { max-width: 430px; }
.polaroid-hero::after {
  content: ""; position: absolute; right: -26px; bottom: 70px; width: 64px; height: 64px;
  background: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 48 48%22 fill=%22none%22 stroke=%22%232A1F66%22 stroke-width=%222.6%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M24 5l5.5 12.5L43 19l-10 9 3 14-12-7-12 7 3-14-10-9 13.5-1.5z%22/%3E%3C/svg%3E") center / contain no-repeat; transform: rotate(14deg);
}

/* faixa que rola */
.faixa {
  background: var(--tinta); overflow: hidden; padding: .9rem 0 !important; margin: 0 !important;
  transform: rotate(-1.2deg) scale(1.03); position: relative; z-index: 3;
  border-block: 3px solid var(--violeta);
}
.faixa-texto {
  display: inline-block; white-space: nowrap; margin: 0 !important;
  font-family: var(--mao); font-weight: 700; font-size: 1.9rem; color: var(--papel); line-height: 1;
  animation: sophia-rolar 38s linear infinite;
}
@keyframes sophia-rolar { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- seções ---------- */
.secao { padding: clamp(64px, 9vw, 120px) clamp(16px, 4vw, 40px); margin: 0 !important; position: relative; }
.secao > * { max-width: 1240px; margin-left: auto !important; margin-right: auto !important; }
.secao > .fita { display: table; margin-left: 0 !important; }
.universo > .fita, .novidades > .fita { margin-left: max(0px, calc((100% - 1240px) / 2)) !important; }
.universo > .titulo-rabiscado, .novidades > .titulo-rabiscado { display: table; margin-left: max(0px, calc((100% - 1240px) / 2)) !important; }

/* cartões dos assuntos */
.grade-cartoes {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.2rem 1.6rem;
  margin-top: 2.6rem !important;
}
.grade-cartoes > * { margin: 0 !important; }
.cartao {
  position: relative; padding: 2.2rem 1.4rem 1.5rem !important;
  border-radius: 4px 4px 18px 4px;
  box-shadow: var(--sombra);
  transition: transform .2s ease, box-shadow .2s ease;
  min-height: 230px;
}
.cartao::before {
  content: ""; position: absolute; top: -13px; left: 50%; width: 92px; height: 26px;
  transform: translateX(-50%) rotate(-3deg); background: var(--gingham); opacity: .9;
  clip-path: polygon(3% 0, 97% 6%, 100% 50%, 96% 100%, 2% 94%, 0 50%);
}
.cartao::after {
  content: ""; position: absolute; top: 1.1rem; right: 1rem; width: 54px; height: 54px;
  border-radius: 50%; background-color: rgba(255,255,255,.7); background-size: 34px 34px;
  background-position: center; background-repeat: no-repeat;
  border: 2px dashed rgba(42,31,102,.35);
}
.cartao:hover { transform: translateY(-6px) rotate(0deg) !important; box-shadow: var(--sombra-forte); }
.cartao .numero { font-family: var(--mao); font-size: 1.5rem; color: var(--violeta); margin: 0 !important; font-weight: 700; }
.cartao h3 { margin: .2rem 0 .5rem !important; padding-right: 58px; }
.cartao h3 a { text-decoration: none; }
.cartao h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.cartao h3 a:hover { color: var(--tinta); }
.cartao p:not(.numero) { font-size: .98rem; line-height: 1.55; margin: 0 !important; }
.cartao-livros { background: #D7C6FA; transform: rotate(-1.6deg); }
.cartao-livros::after { background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 48 48%22 fill=%22none%22 stroke=%22%232A1F66%22 stroke-width=%222.6%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M6 12c6-2 12-1 18 3 6-4 12-5 18-3v24c-6-2-12-1-18 3-6-4-12-5-18-3z%22/%3E%3Cpath d=%22M24 15v24%22/%3E%3C/svg%3E"); }
.cartao-rpg-e-jogos { background: #A8E0CF; transform: rotate(1.2deg); }
.cartao-rpg-e-jogos::after { background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 48 48%22 fill=%22none%22 stroke=%22%232A1F66%22 stroke-width=%222.6%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M24 5l17 10v18L24 43 7 33V15z%22/%3E%3Cpath d=%22M24 13l10 17H14z%22/%3E%3Cpath d=%22M24 5v8M41 15l-7 15M7 15l7 15M14 30l-7 3M34 30l7 3M14 30l10 13M34 30L24 43%22/%3E%3C/svg%3E"); }
.cartao-hqs-e-mangas { background: #F7B6D2; transform: rotate(-0.8deg); }
.cartao-hqs-e-mangas::after { background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 48 48%22 fill=%22none%22 stroke=%22%232A1F66%22 stroke-width=%222.6%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M9 9h30a4 4 0 0 1 4 4v15a4 4 0 0 1-4 4H23l-9 8v-8H9a4 4 0 0 1-4-4V13a4 4 0 0 1 4-4z%22/%3E%3Cpath d=%22M14 17h20M14 23h12%22/%3E%3C/svg%3E"); }
.cartao-musica { background: #A9C7F5; transform: rotate(1.8deg); }
.cartao-musica::after { background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 48 48%22 fill=%22none%22 stroke=%22%232A1F66%22 stroke-width=%222.6%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M18 35V11l20-5v25%22/%3E%3Ccircle cx=%2213%22 cy=%2235%22 r=%225%22/%3E%3Ccircle cx=%2233%22 cy=%2231%22 r=%225%22/%3E%3C/svg%3E"); }
.cartao-anime-e-telas { background: #F9C6A5; transform: rotate(1.1deg); }
.cartao-anime-e-telas::after { background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 48 48%22 fill=%22none%22 stroke=%22%232A1F66%22 stroke-width=%222.6%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect x=%226%22 y=%2213%22 width=%2236%22 height=%2225%22 rx=%225%22/%3E%3Cpath d=%22M17 6l7 7 7-7M21 21l8 4.5-8 4.5z%22/%3E%3C/svg%3E"); }
.cartao-na-cozinha { background: #F8DD86; transform: rotate(-1.4deg); }
.cartao-na-cozinha::after { background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 48 48%22 fill=%22none%22 stroke=%22%232A1F66%22 stroke-width=%222.6%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M11 24h26l-4 16H15z%22/%3E%3Cpath d=%22M11 24c0-8 6-12 13-12s13 4 13 12%22/%3E%3Cpath d=%22M19 28l1 8M24 28v8M29 28l-1 8%22/%3E%3Ccircle cx=%2224%22 cy=%228%22 r=%222.5%22/%3E%3C/svg%3E"); }
.cartao-minha-escrita { background: #FFF3D6; transform: rotate(1.6deg); }
.cartao-minha-escrita::after { background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 48 48%22 fill=%22none%22 stroke=%22%232A1F66%22 stroke-width=%222.6%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M9 39l3-10L31 10l7 7-19 19z%22/%3E%3Cpath d=%22M27 14l7 7M9 39l10-3%22/%3E%3C/svg%3E"); }
.cartao-do-meu-jeito { background: #F4C1E0; transform: rotate(-1deg); }
.cartao-do-meu-jeito::after { background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 48 48%22 fill=%22none%22 stroke=%22%232A1F66%22 stroke-width=%222.6%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M24 40S8 30 8 19a8 8 0 0 1 16-3 8 8 0 0 1 16 3c0 11-16 21-16 21z%22/%3E%3Cpath d=%22M38 5v6M35 8h6%22/%3E%3C/svg%3E"); }
.cartao-minha-escrita { background-image: repeating-linear-gradient(transparent 0 27px, rgba(123,92,224,.22) 27px 28px) !important; background-color: #FFF3D6 !important; }

/* etiquetas de categoria */
.wp-block-post-terms { font-size: 0; margin: 0 !important; }
.wp-block-post-terms a {
  display: inline-block; font-size: .74rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; color: var(--tinta); background: var(--lilas-forte);
  padding: .3em .85em; border-radius: 999px; border: 2px solid var(--tinta); margin: 0 .35rem .35rem 0;
}
.wp-block-post-terms a:hover { background: var(--rosa); color: var(--tinta); }
.wp-block-post-terms__separator { display: none; }
.wp-block-post-terms a[href*="/livros/"], .wp-block-post-terms a[href*="=livros"] { background: #D7C6FA; }
.wp-block-post-terms a[href*="/rpg-e-jogos/"], .wp-block-post-terms a[href*="=rpg-e-jogos"] { background: #A8E0CF; }
.wp-block-post-terms a[href*="/hqs-e-mangas/"], .wp-block-post-terms a[href*="=hqs-e-mangas"] { background: #F7B6D2; }
.wp-block-post-terms a[href*="/musica/"], .wp-block-post-terms a[href*="=musica"] { background: #A9C7F5; }
.wp-block-post-terms a[href*="/anime-e-telas/"], .wp-block-post-terms a[href*="=anime-e-telas"] { background: #F9C6A5; }
.wp-block-post-terms a[href*="/na-cozinha/"], .wp-block-post-terms a[href*="=na-cozinha"] { background: #F8DD86; }
.wp-block-post-terms a[href*="/minha-escrita/"], .wp-block-post-terms a[href*="=minha-escrita"] { background: #FFF3D6; }
.wp-block-post-terms a[href*="/do-meu-jeito/"], .wp-block-post-terms a[href*="=do-meu-jeito"] { background: #F4C1E0; }
.wp-block-post-terms a[href*="/fora-das-paginas/"], .wp-block-post-terms a[href*="=fora-das-paginas"] { background: #C3E8B5; }

/* mural de novidades */
.novidades { background: rgba(255,251,243,.55); }
.mural { margin-top: 2.6rem !important; }
.mural-grade {
  list-style: none; padding: 0; margin: 0;
  display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.6rem 2rem;
}
.mural-grade > li { margin: 0 !important; }
.mural-grade > li:nth-child(3n+1) .polaroid-post { transform: rotate(-1.4deg); }
.mural-grade > li:nth-child(3n+2) .polaroid-post { transform: rotate(1deg); }
.mural-grade > li:nth-child(3n) .polaroid-post { transform: rotate(-.6deg); }
.polaroid-post {
  position: relative; background: #fff; padding: 14px 14px 1.3rem !important; height: 100%;
  box-shadow: var(--sombra); transition: transform .2s ease, box-shadow .2s ease;
}
.polaroid-post:hover { transform: rotate(0) translateY(-5px) !important; box-shadow: var(--sombra-forte); }
.polaroid-post::before {
  content: ""; position: absolute; top: -13px; left: 50%; width: 96px; height: 26px; z-index: 2;
  transform: translateX(-50%) rotate(3deg); background: var(--gingham); opacity: .9;
  clip-path: polygon(3% 0, 97% 6%, 100% 50%, 96% 100%, 2% 94%, 0 50%);
}
.polaroid-post > * { margin-block: 0 .6rem !important; }
.polaroid-post .wp-block-post-featured-image { margin-bottom: .9rem !important; background: var(--lilas); }
.polaroid-post .wp-block-post-title { font-size: 2rem; margin-top: .3rem !important; }
.polaroid-post .wp-block-post-title a { text-decoration: none; }
.polaroid-post .wp-block-post-excerpt { font-size: .97rem; line-height: 1.55; }
.wp-block-post-excerpt__more-link { font-weight: 900; color: var(--violeta); }
.wp-block-post-excerpt__more-link::after { content: " →"; }

.bilhete {
  position: relative; max-width: 460px !important; margin: 1rem auto 0 !important;
  background: #FFF3A8; padding: 2rem 1.8rem !important; transform: rotate(-1.5deg);
  font-family: var(--mao); font-size: 1.8rem; line-height: 1.15; text-align: center;
  box-shadow: var(--sombra);
}
.bilhete::before {
  content: ""; position: absolute; top: -13px; left: 50%; width: 96px; height: 26px;
  transform: translateX(-50%) rotate(-3deg); background: var(--gingham); opacity: .9;
}

.wp-block-query-pagination { margin-top: 2.6rem !important; font-weight: 800; gap: .6rem; }
.wp-block-query-pagination a, .wp-block-query-pagination .current { padding: .3em .8em; border-radius: 999px; border: 2px solid var(--tinta); text-decoration: none; background: var(--papel); }
.wp-block-query-pagination .current { background: var(--tinta); color: #fff; }

/* fora das páginas */
.fora { background: #DDF1D3; }
.fora::before {
  content: ""; position: absolute; top: 2.5rem; right: 6%; width: 70px; height: 70px;
  background: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 48 48%22 fill=%22none%22 stroke=%22%232A1F66%22 stroke-width=%222.6%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M24 43s14-12 14-23a14 14 0 0 0-28 0c0 11 14 23 14 23z%22/%3E%3Ccircle cx=%2224%22 cy=%2220%22 r=%225%22/%3E%3C/svg%3E") center / contain no-repeat; transform: rotate(10deg); opacity: .8;
}
.fora > .wp-block-columns { gap: clamp(2rem, 6vw, 5rem); }
.dupla-polaroid { position: relative; min-height: 560px; }
.dupla-polaroid > .polaroid { position: absolute !important; width: 62%; margin: 0 !important; }
.dupla-polaroid > .polaroid-a { left: 0; top: 0; transform: rotate(-5deg); }
.dupla-polaroid > .polaroid-b { right: 0; top: 90px; transform: rotate(4deg); z-index: 2; }
.dupla-polaroid > .polaroid:hover { z-index: 4; transform: rotate(0) scale(1.03); }

/* escrita: folha pautada */
.escrita { background: var(--tinta); }
.escrita::before, .escrita::after {
  content: ""; position: absolute; width: 56px; height: 56px; background: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 48 48%22 fill=%22none%22 stroke=%22%23D7C6FA%22 stroke-width=%222.6%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M24 5l5.5 12.5L43 19l-10 9 3 14-12-7-12 7 3-14-10-9 13.5-1.5z%22/%3E%3C/svg%3E") center / contain no-repeat;
}
.escrita::before { top: 3rem; left: 7%; transform: rotate(-12deg); }
.escrita::after { bottom: 3rem; right: 8%; background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 48 48%22 fill=%22none%22 stroke=%22%23F7B6D2%22 stroke-width=%222.6%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M24 40S8 30 8 19a8 8 0 0 1 16-3 8 8 0 0 1 16 3c0 11-16 21-16 21z%22/%3E%3C/svg%3E"); transform: rotate(10deg); }
.folha-pautada {
  position: relative; max-width: 860px !important; padding: 3.2rem clamp(1.4rem, 5vw, 4rem) 3rem clamp(3.4rem, 8vw, 6rem) !important;
  background-color: var(--papel);
  background-image: linear-gradient(90deg, transparent calc(clamp(2.2rem, 6vw, 4.4rem)), rgba(224,122,168,.55) calc(clamp(2.2rem, 6vw, 4.4rem)), rgba(224,122,168,.55) calc(clamp(2.2rem, 6vw, 4.4rem) + 2px), transparent calc(clamp(2.2rem, 6vw, 4.4rem) + 2px)),
                    repeating-linear-gradient(transparent 0 35px, rgba(169,199,245,.7) 35px 36px);
  box-shadow: 8px 10px 0 rgba(0,0,0,.25);
  transform: rotate(-1deg);
}
.folha-pautada::before {
  content: ""; position: absolute; top: -16px; left: 18%; width: 130px; height: 32px;
  background: var(--gingham); transform: rotate(-5deg); opacity: .95;
  clip-path: polygon(3% 0, 97% 6%, 100% 50%, 96% 100%, 2% 94%, 0 50%);
}
.folha-pautada::after {
  content: ""; position: absolute; top: -16px; right: 14%; width: 110px; height: 32px;
  background: var(--rosa); transform: rotate(6deg); opacity: .85;
  clip-path: polygon(3% 0, 97% 6%, 100% 50%, 96% 100%, 2% 94%, 0 50%);
}
.folha-pautada h2 { font-size: clamp(2.4rem, 5vw, 3.6rem); margin-top: .8rem !important; }
.folha-pautada p:not(.fita) { font-size: 1.15rem; line-height: 36px; }

/* sobre */
.sobre > .wp-block-columns { gap: clamp(2rem, 6vw, 5rem); }
.post-it {
  position: relative; background: var(--rosa); padding: 2.6rem 2rem 2.2rem !important; transform: rotate(-3deg);
  box-shadow: var(--sombra-forte); max-width: 420px; margin-inline: auto;
}
.post-it::before {
  content: ""; position: absolute; top: -14px; left: 50%; width: 110px; height: 30px;
  transform: translateX(-50%) rotate(4deg); background: var(--gingham);
  clip-path: polygon(3% 0, 97% 6%, 100% 50%, 96% 100%, 2% 94%, 0 50%);
}
.post-it::after {
  content: ""; position: absolute; right: -18px; bottom: -22px; width: 58px; height: 58px;
  background: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 48 48%22 fill=%22none%22 stroke=%22%232A1F66%22 stroke-width=%222.6%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M24 40S8 30 8 19a8 8 0 0 1 16-3 8 8 0 0 1 16 3c0 11-16 21-16 21z%22/%3E%3C/svg%3E") center / contain no-repeat; transform: rotate(14deg);
}
.post-it h2 { margin: 0 !important; font-size: clamp(3rem, 6vw, 4.4rem); }
.post-it-texto { font-family: var(--mao); font-size: 1.55rem; line-height: 1.2; margin-top: .8rem !important; }
.sobre p { font-size: 1.15rem; }
.assinatura-final { font-family: var(--mao); font-size: 2.6rem; font-weight: 700; color: var(--violeta); transform: rotate(-2deg); display: inline-block; }
.assinatura-final::after { content: ""; display: inline-block; width: 34px; height: 34px; margin-left: 8px; vertical-align: -4px; background: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 48 48%22 fill=%22none%22 stroke=%22%232A1F66%22 stroke-width=%222.6%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M24 40S8 30 8 19a8 8 0 0 1 16-3 8 8 0 0 1 16 3c0 11-16 21-16 21z%22/%3E%3C/svg%3E") center / contain no-repeat; }

/* ---------- rodapé ---------- */
.rodape {
  position: relative; background: var(--tinta); color: var(--papel);
  padding: 3.6rem clamp(16px, 4vw, 40px) 3rem !important; margin: 0 !important;
}
.rodape::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 12px; background: var(--gingham); }
.rodape .assinatura, .rodape .assinatura em { color: var(--papel); }
.rodape .assinatura em { color: var(--lilas-forte); }
.rodape .assinatura em::after { background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 48 48%22 fill=%22none%22 stroke=%22%23F7B6D2%22 stroke-width=%222.6%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M24 40S8 30 8 19a8 8 0 0 1 16-3 8 8 0 0 1 16 3c0 11-16 21-16 21z%22/%3E%3C/svg%3E"); }
.rodape-frase { font-size: 1.05rem; opacity: .9; margin-top: .8rem !important; }
.rodape-redes { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: flex-end; margin: 0 !important; }
.rodape-redes a {
  color: var(--tinta); background: var(--lilas-forte); text-decoration: none; font-weight: 900;
  padding: .55em 1.3em; border-radius: 999px; box-shadow: 3px 3px 0 var(--rosa); transition: transform .15s ease;
}
.rodape-redes a:hover { transform: rotate(-3deg) translateY(-2px); color: var(--tinta); }
.rodape-nota { font-family: var(--mao); font-size: 1.6rem; color: var(--rosa); text-align: right; margin-top: 1rem !important; }

/* ---------- arquivos, busca e leitura ---------- */
.arquivo .titulo-marcado {
  display: inline-block; font-family: var(--mao); font-size: clamp(2.8rem, 6vw, 4.4rem);
  background: linear-gradient(transparent 58%, rgba(247,182,210,.85) 58%, rgba(247,182,210,.85) 90%, transparent 90%);
  padding: 0 .15em;
}
.wp-block-term-description { font-size: 1.15rem; max-width: 40em; }
.busca-caderno .wp-block-search__input { border: 2.5px solid var(--tinta); border-radius: 999px; padding: .7em 1.2em; background: var(--papel); font-family: var(--texto); }
.busca-caderno .wp-block-search__button { border-radius: 999px; background: var(--tinta); color: #fff; font-weight: 900; border: 2.5px solid var(--tinta); padding: .7em 1.4em; margin-left: .6rem; }
.busca-caderno .wp-block-search__label { font-family: var(--mao); font-size: 1.6rem; font-weight: 700; }

.leitura { padding-top: clamp(48px, 7vw, 90px); }
.folha {
  position: relative; background: var(--papel); padding: clamp(2.2rem, 6vw, 4.2rem) clamp(1.2rem, 6vw, 4.2rem) !important;
  box-shadow: var(--sombra-forte); border-radius: 4px;
}
.folha::before {
  content: ""; position: absolute; top: -16px; left: 50%; width: 140px; height: 32px;
  transform: translateX(-50%) rotate(-3deg); background: var(--gingham);
  clip-path: polygon(3% 0, 97% 6%, 100% 50%, 96% 100%, 2% 94%, 0 50%);
}
.folha .wp-block-post-title, .folha > h1 { font-size: clamp(2.8rem, 6.5vw, 4.6rem); margin-top: .8rem !important; }
.folha .wp-block-post-featured-image.polaroid { transform: rotate(-1.5deg); margin: 2rem auto 2.4rem !important; padding-bottom: 14px !important; }
.folha .wp-block-post-content { font-size: 1.14rem; line-height: 1.8; }
.folha .wp-block-post-content h2 {
  font-size: clamp(2.1rem, 4vw, 2.7rem); margin-top: 2.4rem !important; display: inline-block;
  background: linear-gradient(transparent 60%, rgba(215,198,250,.9) 60%, rgba(215,198,250,.9) 92%, transparent 92%);
  padding: 0 .12em;
}
.folha .wp-block-post-content h3 { color: var(--violeta); }
.folha .wp-block-post-content blockquote {
  font-family: var(--mao); font-size: 1.8rem; line-height: 1.2; border: 0; background: #FFF3A8;
  padding: 1.4rem 1.6rem; transform: rotate(-1deg); box-shadow: var(--sombra);
}
.folha .wp-block-post-content img { border-radius: 4px; }
.folha .wp-block-post-content a { font-weight: 800; }

/* ---------- celular e tablet ---------- */
@media (max-width: 1080px) {
  .grade-cartoes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mural-grade { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 781px) {
  .polaroid-hero { max-width: 300px; }
  .dupla-polaroid { min-height: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding-top: 1rem; }
  .dupla-polaroid > .polaroid { position: relative !important; width: auto; }
  .dupla-polaroid > .polaroid-b { top: 2rem; }
  .dupla-polaroid .polaroid figcaption { font-size: 1.25rem; }
  .rodape-redes { justify-content: flex-start; }
  .rodape-nota { text-align: left; }
  .assinatura { font-size: 1.9rem; }
  .fora::before { display: none; }
}
@media (max-width: 560px) {
  .grade-cartoes { grid-template-columns: 1fr; gap: 2rem; }
  .cartao { min-height: 0; }
  .mural-grade { grid-template-columns: 1fr; }
  .polaroid::before { width: 90px; }
  .faixa-texto { font-size: 1.5rem; }
  .folha-pautada p:not(.fita) { font-size: 1.05rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .faixa-texto { animation: none; }
  * { transition: none !important; }
}
