/* =========================================================
   Carlos Alberto Chicareli — Poeta da Liberdade
   Folha de estilos principal
   ========================================================= */

:root {
  --paper: #F7F2E8;
  --paper-2: #EFE7D6;
  --card: #FFFDF8;
  --ink: #172231;
  --ink-soft: #5B6573;
  --teal: #1E7480;
  --teal-bright: #2D97A5;
  --teal-deep: #16626C;
  --teal-tint: #DCEFF0;
  --orange: #E5601F;
  --orange-ink: #B03F0C;
  --cta: #B8460F;
  --cta-hover: #9A3A0C;
  --orange-tint: #FBE3D4;
  --night: #0B1426;
  --night-2: #13213A;
  --star: #F4C76A;
  --mist: #9FB0C4;
  --line: rgba(23, 34, 49, .14);

  --bg: var(--paper);
  --fg: var(--ink);
  --fg-soft: var(--ink-soft);
  --accent: var(--teal);

  --font-type: "Courier Prime", "Courier New", ui-monospace, monospace;
  --font-sans: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);

  --container: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(88px, 13vw, 168px);
  --radius: 18px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: clamp(17px, 1.05vw + 12px, 19px);
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  transition: background-color .9s var(--ease-in-out), color .9s var(--ease-in-out);
}

img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-color: var(--orange); }
p { margin: 0 0 1.1em; }
h1, h2, h3 { margin: 0; font-weight: 400; line-height: 1.1; }
strong, b { font-weight: 500; }
button { font: inherit; color: inherit; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 200;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 10px;
  text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 16px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Progresso de leitura ---------- */
.progress {
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 120;
  background: linear-gradient(90deg, var(--teal-bright), var(--orange));
  transform-origin: 0 50%; transform: scaleX(0);
}

/* ---------- Cabeçalho ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center;
  transition: transform .5s var(--ease-out), background-color .4s, box-shadow .4s, color .9s;
  color: var(--fg);
}
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font-family: var(--font-type); font-size: 20px; letter-spacing: .02em; min-height: 44px;
}
.brand svg { width: 34px; height: 22px; color: var(--orange); transition: transform .5s var(--ease-spring); }
.brand:hover svg { transform: translateY(-3px) rotate(-6deg); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative; text-decoration: none; font-size: 15px; font-weight: 400;
  padding: 10px 12px; border-radius: 999px; min-height: 44px; display: inline-flex; align-items: center;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 8px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease-out);
}
.nav a:not(.btn):hover::after, .nav a[aria-current="true"]::after { transform: scaleX(1); transform-origin: left; }
.nav .btn { margin-left: 10px; }

.menu-toggle {
  display: none; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line); background: transparent; align-items: center; justify-content: center;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 18px; height: 1.5px; background: currentColor; position: relative;
  transition: transform .4s var(--ease-out), background-color .2s;
}
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.menu-open .menu-toggle span { background: transparent; }
.menu-open .menu-toggle span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; gap: 6px;
    background: var(--paper); color: var(--ink);
    clip-path: circle(0 at calc(100% - 44px) 36px);
    transition: clip-path .7s var(--ease-in-out);
    visibility: hidden;
  }
  .nav a { font-family: var(--font-type); font-size: 28px; }
  .nav .btn { margin: 18px 0 0; font-family: var(--font-sans); font-size: 17px; }
  .menu-open .nav { clip-path: circle(150% at calc(100% - 44px) 36px); visibility: visible; }
  .menu-open .site-header { color: var(--ink); }
}

/* ---------- Botões ---------- */
.btn {
  --b-bg: var(--cta); --b-fg: #fff;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px; border-radius: 999px; border: 1px solid transparent;
  background: var(--b-bg); color: var(--b-fg); text-decoration: none;
  font-family: var(--font-sans); font-weight: 400; font-size: 16px; line-height: 1.2;
  overflow: hidden; isolation: isolate;
  transition: transform .35s var(--ease-spring), box-shadow .35s, background-color .3s, color .3s;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--cta-hover); transform: translateY(101%); transition: transform .45s var(--ease-out);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(184, 70, 15, .55); text-decoration: none; }
.btn:hover::before { transform: translateY(0); }
.btn:active { transform: translateY(0) scale(.98); }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .35s var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }
.btn--sm { min-height: 44px; padding: 8px 18px; font-size: 15px; }
.btn--ghost {
  --b-bg: transparent; --b-fg: currentColor; border-color: currentColor;
}
.btn--ghost::before { background: currentColor; opacity: .1; }
.btn--ghost:hover { box-shadow: none; }
.btn--light { --b-bg: var(--paper); --b-fg: var(--ink); }
.btn--light::before { background: #fff; }
.btn--light:hover { box-shadow: 0 10px 30px -12px rgba(0,0,0,.6); }

/* ---------- Seções e títulos ---------- */
.section { position: relative; padding-block: var(--section-y); }
/* Painéis coloridos que se expandem ao entrar na tela */
html.js .panel { clip-path: inset(0 calc((1 - var(--reveal, 1)) * 5vw) round calc((1 - var(--reveal, 1)) * 56px) calc((1 - var(--reveal, 1)) * 56px) 0 0); }
.site-header.on-dark { color: var(--paper); }
.site-header.on-dark.is-scrolled { background: color-mix(in srgb, var(--night) 78%, transparent); box-shadow: 0 1px 0 rgba(255,255,255,.08); }
.site-header.on-dark .menu-toggle { border-color: rgba(255,255,255,.25); }

.kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-type); font-size: 14px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 22px;
}
.kicker::before {
  content: ""; width: 36px; height: 1px; background: currentColor;
  transform-origin: left; transition: transform 1s var(--ease-out) .1s;
}
.section-title {
  font-family: var(--font-type); font-weight: 400;
  font-size: clamp(34px, 5.4vw, 72px); letter-spacing: -.02em; line-height: 1.05;
  max-width: 18ch;
}
.section-sub { color: var(--fg-soft); font-size: clamp(18px, 1.4vw, 21px); margin-top: 18px; max-width: 46ch; }

/* Máscara de linha — título surge de baixo */
.line-mask { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.line-mask > span { display: block; }

/* ---------- Animações de entrada (somente com JS) ---------- */
html.js .rv { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: calc(var(--d, 0) * 90ms); }
html.js .rv.in { opacity: 1; transform: none; }
html.js .rv-fade { opacity: 0; transition: opacity 1.2s var(--ease-out); transition-delay: calc(var(--d, 0) * 90ms); }
html.js .rv-fade.in { opacity: 1; }
html.js .line-mask > span { transform: translateY(105%); transition: transform 1.15s var(--ease-out); transition-delay: calc(var(--d, 0) * 110ms); }
html.js .in .line-mask > span, html.js .line-mask.in > span { transform: none; }
html.js .kicker::before { transform: scaleX(0); }
html.js .in .kicker::before, html.js .kicker.in::before { transform: scaleX(1); }
html.js .rv-clip { clip-path: inset(100% 0 0 0 round var(--radius)); transition: clip-path 1.4s var(--ease-in-out); }
html.js .rv-clip.in { clip-path: inset(0 0 0 0 round var(--radius)); }
html.js .rv-clip img { transform: scale(1.18); transition: transform 1.8s var(--ease-out); }
html.js .rv-clip.in img { transform: scale(1); }

/* =========================================================
   1. ABERTURA
   ========================================================= */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center; text-align: center;
  padding: calc(var(--header-h) + 32px) var(--gutter) 120px;
  overflow: hidden;
}
.hero-sun {
  position: absolute; width: min(64vw, 620px); aspect-ratio: 1; border-radius: 50%;
  right: -16vw; bottom: -22vw;
  background: radial-gradient(circle at 35% 35%, #BFE3E6 0%, var(--teal-tint) 45%, rgba(220,239,240,0) 70%);
  pointer-events: none;
}
.hero-dot {
  position: absolute; width: clamp(54px, 7vw, 96px); aspect-ratio: 1; border-radius: 50%;
  left: 9vw; top: 22vh; background: var(--orange); opacity: .9; pointer-events: none;
}
html.js .hero-sun { animation: float 14s ease-in-out infinite alternate; }
html.js .hero-dot { animation: float 9s ease-in-out infinite alternate-reverse; }
@keyframes float { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-3vw, -4vh, 0); } }

.birds { position: absolute; inset: 0; pointer-events: none; }
.bird { position: absolute; width: 34px; height: 20px; color: var(--ink); opacity: .55; }
.bird path { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.bird:nth-child(1) { top: 18%; left: -6%; }
.bird:nth-child(2) { top: 30%; left: -10%; width: 22px; color: var(--teal); opacity: .7; }
.bird:nth-child(3) { top: 12%; left: -14%; width: 26px; color: var(--orange); opacity: .8; }
html.js .bird { animation: fly 26s linear infinite; }
html.js .bird:nth-child(2) { animation-duration: 34s; animation-delay: -12s; }
html.js .bird:nth-child(3) { animation-duration: 30s; animation-delay: -20s; }
html.js .bird path { animation: flap .9s ease-in-out infinite alternate; transform-origin: center; }
@keyframes fly {
  0% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(65vw, -6vh, 0); }
  100% { transform: translate3d(130vw, 4vh, 0); }
}
@keyframes flap { from { transform: scaleY(1); } to { transform: scaleY(.55); } }

.hero-inner { position: relative; z-index: 1; max-width: 920px; }
.hero-poem-title {
  font-family: var(--font-type); font-size: 14px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--teal); margin-bottom: clamp(14px, 3vh, 28px);
}
.hero-poem {
  font-family: var(--font-type); font-weight: 400;
  font-size: clamp(23px, min(4.4vw, 6.4vh), 62px); line-height: 1.22; letter-spacing: -.015em;
  margin: 0;
}
.hero-poem .ln { display: block; }
html.js .hero-poem:not(.ready) { visibility: hidden; }
.hero-poem .ch { opacity: 0; }
.hero-poem .ch.on { opacity: 1; }
.hero-poem .caret {
  display: inline-block; width: .5em; height: .09em; margin-left: .04em; vertical-align: -.06em;
  background: var(--orange); animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.hero-poem em { font-style: normal; color: var(--orange-ink); }

.hero-sign { margin-top: clamp(24px, 4.5vh, 56px); display: grid; justify-items: center; gap: 4px; }
.hero-handle { font-family: var(--font-type); font-size: 16px; color: var(--teal); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.hero-handle:hover { text-decoration: underline; }
.hero-name { font-family: var(--font-sans); font-weight: 300; font-size: clamp(22px, 2.4vw, 30px); letter-spacing: .01em; line-height: 1.2; }
.hero-tag { font-family: var(--font-type); font-style: italic; color: var(--fg-soft); font-size: 17px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: clamp(18px, 3vh, 30px); }
html.js .hero-sign > *, html.js .hero-ctas, html.js .scroll-cue { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
html.js .hero.done .hero-sign > *, html.js .hero.done .hero-ctas, html.js .hero.done .scroll-cue { opacity: 1; transform: none; }
html.js .hero.done .hero-sign > :nth-child(2) { transition-delay: .12s; }
html.js .hero.done .hero-sign > :nth-child(3) { transition-delay: .24s; }
html.js .hero.done .hero-ctas { transition-delay: .4s; }
html.js .hero.done .scroll-cue { transition-delay: .7s; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 28px; translate: -50% 0; z-index: 1;
  display: grid; justify-items: center; gap: 8px; text-decoration: none;
  font-family: var(--font-type); font-size: 13px; letter-spacing: .25em; text-transform: uppercase; color: var(--fg-soft);
  min-height: 44px; padding: 6px 12px;
}
.scroll-cue i { display: block; width: 1px; height: 46px; background: var(--line); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -50%; width: 1px; height: 50%; background: var(--orange); animation: drip 2s var(--ease-in-out) infinite; }
@keyframes drip { to { top: 100%; } }

/* =========================================================
   2. O POETA
   ========================================================= */
.poeta { background: var(--paper); }
.poeta-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 7vw, 110px); align-items: start; margin-top: clamp(48px, 7vw, 88px); }
.poeta-text p { max-width: 58ch; }
.poeta-text .lead { font-size: clamp(20px, 1.8vw, 24px); line-height: 1.55; color: var(--fg); }
.poeta-text .lead strong { font-weight: 400; color: var(--orange-ink); }
.pullquote {
  margin: clamp(40px, 6vw, 72px) 0; padding: 0; border: 0;
  font-family: var(--font-type); font-size: clamp(26px, 3.2vw, 42px); line-height: 1.25; letter-spacing: -.01em;
  color: var(--teal-deep); max-width: 20ch; position: relative;
}
.pullquote::before {
  content: "“"; position: absolute; left: -.05em; top: -.62em; font-size: 2.6em; line-height: 1;
  color: var(--orange); opacity: .9;
}
.pullquote .w { display: inline-block; }
html.js .pullquote .w { opacity: .15; transition: opacity .6s var(--ease-out); transition-delay: calc(var(--i) * 70ms); }
html.js .pullquote.in .w { opacity: 1; }
.poeta-text a { color: var(--teal); }

.poeta-media { position: relative; }
.portrait {
  position: relative; border-radius: 999px 999px var(--radius) var(--radius); overflow: hidden;
  aspect-ratio: 4 / 5; background: var(--teal-tint);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
html.js .portrait.rv-clip { clip-path: inset(100% 0 0 0 round 999px 999px var(--radius) var(--radius)); }
html.js .portrait.rv-clip.in { clip-path: inset(0 0 0 0 round 999px 999px var(--radius) var(--radius)); }
.portrait-badge {
  position: absolute; top: 9%; left: -22px; z-index: 2;
  width: 112px; height: 112px; border-radius: 50%; background: var(--orange); color: #fff;
  display: grid; place-items: center; text-align: center; font-family: var(--font-type); font-size: 13px; line-height: 1.25;
  box-shadow: 0 16px 30px -16px rgba(176,63,12,.7);
}
.portrait-badge b { display: block; font-size: 28px; font-weight: 700; letter-spacing: -.02em; }
html.js .portrait-badge { animation: spinIn 1.4s var(--ease-spring) both paused; }
html.js .poeta-media.in .portrait-badge { animation-play-state: running; animation-delay: .9s; }
@keyframes spinIn { from { transform: scale(0) rotate(-120deg); } to { transform: scale(1) rotate(-8deg); } }

.clipping {
  position: absolute; right: -12px; bottom: 0; width: 56%; margin: 0;
  background: #fff; padding: 10px 10px 0; border-radius: 4px;
  box-shadow: 0 30px 50px -28px rgba(23,34,49,.55);
  transform: rotate(4deg); transition: transform .6s var(--ease-spring);
}
.clipping:hover { transform: rotate(0) scale(1.03); }
.clipping::before {
  content: ""; position: absolute; top: -12px; left: 50%; width: 84px; height: 26px; translate: -50% 0;
  background: rgba(229, 96, 31, .32); transform: rotate(-3deg);
}
.clipping img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; filter: sepia(.15) contrast(1.02); }
.clipping figcaption { font-family: var(--font-type); font-size: 12.5px; line-height: 1.4; color: var(--ink-soft); padding: 10px 4px 12px; }
html.js .clipping.rv { transform: translateY(60px) rotate(14deg); }
html.js .clipping.rv.in { transform: rotate(4deg); transition-delay: .5s; }
html.js .clipping.rv.in:hover { transform: rotate(0) scale(1.03); transition-delay: 0s; }

@media (max-width: 900px) {
  .poeta-grid { grid-template-columns: 1fr; }
  .poeta-media { max-width: 460px; margin-inline: auto; width: 100%; order: -1; }
  .portrait-badge { left: -6px; width: 96px; height: 96px; }
  .clipping { right: 0; }
}

/* ---------- Faixa: Intuição, Amor e Liberdade ---------- */
.ribbon {
  position: relative; overflow: hidden; padding-block: clamp(22px, 3vw, 34px);
  background: var(--ink); color: var(--paper); transform: rotate(-2deg); margin: -14px -3vw;
  z-index: 2; box-shadow: 0 20px 40px -24px rgba(0,0,0,.5);
}
.ribbon-track { display: flex; width: max-content; will-change: transform; }
.ribbon-track span {
  font-family: var(--font-type); font-size: clamp(28px, 4.4vw, 58px); white-space: nowrap; padding-right: .6em; line-height: 1.1;
}
.ribbon-track span i { font-style: normal; color: var(--star); }
.ribbon-track span em { font-style: normal; color: var(--teal-bright); }
.ribbon-track span b { font-weight: 400; color: #F28A54; }

/* =========================================================
   3. OS LIVROS (noite estrelada)
   ========================================================= */
.livros { background: var(--night); color: var(--paper); --fg: var(--paper); --fg-soft: var(--mist); --accent: var(--star); overflow: hidden; }
.stars, .stars::before, .stars::after {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 72%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 44% 30%, var(--star) 50%, transparent 51%),
    radial-gradient(1px 1px at 63% 12%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 78% 64%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 28%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 92% 86%, var(--teal-bright) 50%, transparent 51%),
    radial-gradient(1px 1px at 6% 90%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 52% 92%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 36% 46%, #fff 50%, transparent 51%);
  background-size: 100% 100%;
  opacity: .7;
}
.stars::before { content: ""; transform: scale(1.6) rotate(37deg); opacity: .5; }
.stars::after { content: ""; transform: scale(.8) rotate(-23deg) translate(10%, 4%); opacity: .6; }
html.js .stars::before { animation: twinkle 4.5s ease-in-out infinite alternate; }
html.js .stars::after { animation: twinkle 6s ease-in-out infinite alternate-reverse; }
@keyframes twinkle { from { opacity: .15; } to { opacity: .75; } }
.galaxy {
  position: absolute; width: 900px; height: 360px; left: 50%; top: 40%; translate: -50% -50%;
  background: radial-gradient(ellipse at center, rgba(244,199,106,.22), rgba(45,151,165,.12) 40%, transparent 70%);
  transform: rotate(-24deg); pointer-events: none; filter: blur(6px);
}
.livros .container { position: relative; z-index: 1; }
.livros-head { text-align: center; display: grid; justify-items: center; }
.livros-head .section-title { max-width: none; }
.books { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 72px); margin-top: clamp(56px, 8vw, 96px); }

.book {
  position: relative; display: grid; grid-template-columns: minmax(150px, 220px) 1fr; gap: clamp(22px, 3vw, 40px); align-items: center;
  padding: clamp(22px, 3vw, 36px); border-radius: 26px;
  background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.1);
  transition: border-color .4s, background-color .4s;
}
.book:hover { border-color: rgba(244,199,106,.4); }
.book-cover { perspective: 1200px; }
.book-3d {
  position: relative; transform-style: preserve-3d;
  transform: rotateY(-22deg) rotateX(4deg);
  transition: transform .8s var(--ease-out);
}
.book:hover .book-3d { transform: rotateY(-6deg) rotateX(0) translateY(-6px); }
.book-3d img { width: 100%; border-radius: 3px 6px 6px 3px; box-shadow: 22px 26px 40px -16px rgba(0,0,0,.8); position: relative; z-index: 1; }
.book-3d::before {
  content: ""; position: absolute; top: 1%; bottom: 1%; left: 0; width: 22px;
  background: linear-gradient(90deg, rgba(0,0,0,.45), rgba(255,255,255,.12) 40%, rgba(0,0,0,.25));
  transform: translateX(-21px) rotateY(-90deg); transform-origin: right; z-index: 0;
}
.book-3d::after {
  content: ""; position: absolute; inset: 0; z-index: 2; border-radius: 3px 6px 6px 3px; pointer-events: none;
  background: linear-gradient(100deg, rgba(255,255,255,0) 30%, rgba(255,255,255,.22) 48%, rgba(255,255,255,0) 62%);
  background-size: 260% 100%; background-position: 120% 0; transition: background-position 1.1s var(--ease-out);
}
.book:hover .book-3d::after { background-position: -40% 0; }
.book-meta { font-family: var(--font-type); font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--star); }
.book h3 { font-family: var(--font-type); font-size: clamp(28px, 2.8vw, 38px); margin: 10px 0 14px; letter-spacing: -.01em; }
.book p { color: #D4DCE7; font-size: 17px; }
.book-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.book-actions .btn--ghost { color: var(--paper); }
@media (max-width: 1040px) { .books { grid-template-columns: 1fr; max-width: 680px; margin-inline: auto; } }
@media (max-width: 560px) {
  .book { grid-template-columns: 1fr; text-align: left; }
  .book-cover { max-width: 210px; margin: 8px auto 6px; }
}

/* =========================================================
   4. OBRA PUBLICADA (linha do tempo)
   ========================================================= */
.obra { background: var(--paper); }
.obra-head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: end; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.stat { border-top: 1px solid var(--line); padding-top: 16px; }
.stat b { display: block; font-family: var(--font-type); font-weight: 400; font-size: clamp(34px, 4vw, 54px); line-height: 1; color: var(--teal); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat span { display: block; font-size: 14.5px; color: var(--fg-soft); margin-top: 8px; line-height: 1.35; }
@media (max-width: 900px) { .obra-head { grid-template-columns: 1fr; } }

.timeline { position: relative; list-style: none; margin: clamp(56px, 8vw, 96px) 0 0; padding: 0; }
.timeline::before, .timeline-fill {
  content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--line);
}
.timeline-fill { background: linear-gradient(var(--teal-bright), var(--orange)); width: 2px; translate: -.5px 0; transform-origin: top; transform: scaleY(0); }
.tl-item { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(40px, 6vw, 88px); padding-block: 16px; }
.tl-item::after {
  content: ""; position: absolute; left: 50%; top: 32px; width: 13px; height: 13px; border-radius: 50%;
  translate: -50% 0; background: var(--paper); border: 2px solid var(--teal-bright); transition: background-color .4s, transform .5s var(--ease-spring);
}
.tl-item.in::after { background: var(--orange); border-color: var(--orange); transform: scale(1.15); }
.tl-year { font-family: var(--font-type); font-size: clamp(30px, 3.4vw, 46px); line-height: 1; color: var(--teal); text-align: right; letter-spacing: -.03em; padding-top: 14px; }
.tl-body { padding-top: 12px; }
.tl-item:nth-child(even) .tl-year { order: 2; text-align: left; }
.tl-item:nth-child(even) .tl-body { order: 1; text-align: right; }
.tl-title { font-family: var(--font-type); font-size: clamp(19px, 1.7vw, 23px); line-height: 1.3; display: block; }
.tl-note { font-size: 15.5px; color: var(--fg-soft); display: block; margin-top: 4px; }
.tag { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 400; background: var(--teal-tint); color: var(--teal-deep); text-decoration: none; }
.tag--hot { background: var(--orange-tint); color: var(--orange-ink); }
a.tag:hover { text-decoration: underline; }
html.js .tl-item .tl-year, html.js .tl-item .tl-body { opacity: 0; transition: opacity .8s var(--ease-out), transform 1s var(--ease-out); }
html.js .tl-item .tl-year { transform: translateX(-40px); }
html.js .tl-item .tl-body { transform: translateX(40px); }
html.js .tl-item:nth-child(even) .tl-year { transform: translateX(40px); }
html.js .tl-item:nth-child(even) .tl-body { transform: translateX(-40px); }
html.js .tl-item.in .tl-year, html.js .tl-item.in .tl-body { opacity: 1; transform: none; }
html.js .tl-item.in .tl-body { transition-delay: .1s; }
@media (max-width: 720px) {
  .timeline::before, .timeline-fill { left: 7px; }
  .tl-item { grid-template-columns: 1fr; padding-left: 40px; }
  .tl-item::after { left: 7px; top: 22px; }
  .tl-year, .tl-item:nth-child(even) .tl-year { text-align: left; order: 0; padding-top: 10px; }
  .tl-item:nth-child(even) .tl-body { order: 1; text-align: left; }
  html.js .tl-item .tl-year, html.js .tl-item:nth-child(even) .tl-year, html.js .tl-item .tl-body, html.js .tl-item:nth-child(even) .tl-body { transform: translateY(20px); }
}

/* =========================================================
   5. ALGUNS POEMAS (varal)
   ========================================================= */
.poemas { background: var(--orange-tint); --accent: var(--orange-ink); padding: 0; }
.varal-sticky { position: relative; padding-block: var(--section-y); }
.varal-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.varal-hint { font-family: var(--font-type); font-size: 14px; color: var(--fg-soft); display: inline-flex; align-items: center; gap: 10px; }
.varal-hint svg { width: 40px; height: 14px; }
html.js .varal-hint svg { animation: nudge 1.8s var(--ease-in-out) infinite; }
@keyframes nudge { 50% { transform: translateX(8px); } }

.varal {
  position: relative; margin-top: clamp(30px, 4vw, 48px);
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
  padding-bottom: 20px;
}
.varal::-webkit-scrollbar { display: none; }
.varal-track {
  position: relative; display: flex; align-items: flex-start; gap: 40px; width: max-content;
  padding: 26px max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))) 30px;
}
.varal-track::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 40px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='40' viewBox='0 0 400 40'%3E%3Cpath d='M0 6 Q200 34 400 6' fill='none' stroke='%23172231' stroke-opacity='.55' stroke-width='1.6'/%3E%3C/svg%3E") repeat-x;
  background-position-x: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)) - 20px);
}
.poem-card {
  --rot: -2deg;
  position: relative; flex: none; width: 360px; scroll-snap-align: center;
  margin-top: 0; padding: 38px 26px 26px; background: var(--card);
  border-radius: 3px; box-shadow: 0 22px 34px -24px rgba(23,34,49,.5), 0 2px 0 rgba(23,34,49,.04);
  transform-origin: 50% -14px; transform: rotate(var(--rot));
  transition: transform .9s var(--ease-spring), box-shadow .4s;
  font-family: var(--font-type);
}
.poem-card:nth-child(4n+2) { --rot: 1.6deg; background: #FFFFFF; }
.poem-card:nth-child(4n+3) { --rot: -1deg; background: #EAF5F5; }
.poem-card:nth-child(4n+4) { --rot: 2.4deg; background: #FFF6EC; }
.poem-card:hover { transform: rotate(0deg) translateY(4px); box-shadow: 0 30px 44px -26px rgba(23,34,49,.6); }
.poem-card::before {
  /* prendedor */
  content: ""; position: absolute; top: -20px; left: 50%; width: 14px; height: 42px; translate: -50% 0;
  border-radius: 4px; background: linear-gradient(90deg, #C98A52, #E3AE78 50%, #B87A44);
  box-shadow: 0 3px 6px -2px rgba(0,0,0,.35);
}
.poem-card::after { content: ""; position: absolute; top: -4px; left: 50%; width: 22px; height: 4px; translate: -50% 0; background: #9C6332; border-radius: 2px; }
.poem-card h3 { font-size: 22px; letter-spacing: -.01em; margin-bottom: 18px; color: var(--teal-deep); }
.poem-card p { white-space: pre-line; font-size: clamp(13px, 1.75vh, 15.5px); line-height: 1.55; margin: 0; color: var(--ink); }
.poem-card .sig { display: block; margin-top: 20px; font-size: 13px; color: var(--orange-ink); }
html.js .poem-card.swing { animation: swing 2.2s var(--ease-out) both; }
@media (max-width: 560px) { .poem-card { width: min(84vw, 340px); } }
@keyframes swing {
  0% { transform: rotate(calc(var(--rot) - 14deg)); }
  30% { transform: rotate(calc(var(--rot) + 8deg)); }
  55% { transform: rotate(calc(var(--rot) - 4deg)); }
  78% { transform: rotate(calc(var(--rot) + 1.5deg)); }
  100% { transform: rotate(var(--rot)); }
}

/* Desktop: varal com rolagem horizontal fixada */
html.js-pin .poemas { height: var(--pin-h, auto); }
html.js-pin .varal-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-block: calc(var(--header-h) + 10px) 24px; overflow: hidden; }
html.js-pin .varal { overflow: visible; scroll-snap-type: none; }
html.js-pin .poemas .section-title { font-size: clamp(30px, 3.6vw, 50px); }
html.js-pin .poemas .kicker { margin-bottom: 12px; }
html.js-pin .varal { margin-top: 22px; }
html.js-pin .varal-track { will-change: transform; }

/* =========================================================
   6. OUVIR
   ========================================================= */
.ouvir { background: var(--teal-deep); color: #fff; --fg: #fff; --fg-soft: #CFE8EA; --accent: #FFD3B8; overflow: hidden; }
.ouvir-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.ouvir p { color: #E6F3F4; max-width: 52ch; }
.ouvir strong { color: #fff; }
.ouvir .btn--ghost { color: #fff; }
.player { position: relative; aspect-ratio: 16 / 10; border-radius: 22px; overflow: hidden; background: var(--night); box-shadow: 0 40px 70px -36px rgba(0,0,0,.7); }
.player iframe { width: 100%; height: 100%; border: 0; }
.player-facade {
  position: absolute; inset: 0; width: 100%; border: 0; padding: 0; display: grid; place-items: center;
  background: radial-gradient(circle at 70% 30%, #1E3A55, var(--night) 70%);
  color: #fff; text-align: left;
}
.disc {
  position: absolute; right: -8%; top: 50%; width: 62%; aspect-ratio: 1; translate: 0 -50%; border-radius: 50%;
  background:
    radial-gradient(circle, var(--orange) 0 9%, #1a1a1a 9.5% 11%, transparent 11.5%),
    repeating-radial-gradient(circle, #121a26 0 2px, #1b2636 2px 4px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06), 0 30px 50px -20px rgba(0,0,0,.8);
}
.disc::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 30deg, transparent 0 20%, rgba(255,255,255,.12) 25%, transparent 32% 70%, rgba(255,255,255,.08) 75%, transparent 80%); }
html.js .disc { animation: spin 7s linear infinite; animation-play-state: paused; }
html.js .player:hover .disc, html.js .ouvir.in .disc { animation-play-state: running; }
@keyframes spin { to { transform: rotate(360deg); } }
.player-label { position: absolute; left: 8%; bottom: 11%; max-width: 46%; z-index: 1; }
.player-label small { display: block; font-family: var(--font-type); font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--star); }
.player-label strong { display: block; font-family: var(--font-type); font-weight: 400; font-size: clamp(18px, 1.9vw, 26px); line-height: 1.15; margin-top: 8px; }
.play {
  position: absolute; left: 8%; top: 12%; width: 72px; height: 72px; border-radius: 50%; z-index: 1;
  background: var(--paper); color: var(--ink); display: grid; place-items: center;
  box-shadow: 0 0 0 0 rgba(247,242,232,.5); transition: transform .4s var(--ease-spring);
}
html.js .play { animation: pulse 2.4s ease-out infinite; }
.player-facade:hover .play { transform: scale(1.08); }
.play svg { width: 28px; height: 28px; margin-left: 4px; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(247,242,232,.45); } 100% { box-shadow: 0 0 0 26px rgba(247,242,232,0); } }
.player-note { font-size: 13.5px; color: #CFE8EA; margin-top: 14px; }
@media (max-width: 900px) { .ouvir-grid { grid-template-columns: 1fr; } }

/* =========================================================
   7. CONTATO
   ========================================================= */
.contato { background: var(--paper); }
.contato-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.mail-cta {
  display: block; margin-top: 34px; text-decoration: none; font-family: var(--font-type);
  font-size: clamp(22px, 3.1vw, 40px); line-height: 1.15; letter-spacing: -.02em; color: var(--ink);
  word-break: break-word; position: relative; width: fit-content; max-width: 100%;
}
.mail-cta::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--orange); transform-origin: left; transition: transform .5s var(--ease-out); }
.mail-cta:hover::after { transform: scaleX(.35); }
.mail-label { font-size: 15px; color: var(--fg-soft); margin-top: 26px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.socials { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.social {
  display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 16px;
  padding: 14px 18px 14px 14px; border-radius: 18px; background: var(--card); text-decoration: none;
  border: 1px solid var(--line); min-height: 72px;
  transition: transform .45s var(--ease-spring), border-color .3s, box-shadow .3s;
}
.social:hover { transform: translateX(6px); border-color: transparent; box-shadow: 0 16px 30px -20px rgba(23,34,49,.45); }
.social .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--teal-tint); color: var(--teal-deep); transition: background-color .3s, color .3s, transform .5s var(--ease-spring); }
.social:hover .ico { background: var(--teal-deep); color: #fff; transform: rotate(-8deg); }
.social .ico svg { width: 22px; height: 22px; }
.social b { display: block; font-weight: 400; font-size: 17px; line-height: 1.2; }
.social small { display: block; font-family: var(--font-type); color: var(--fg-soft); font-size: 14px; }
.social .arrow { width: 20px; height: 20px; color: var(--fg-soft); transition: transform .4s var(--ease-out), color .3s; }
.social:hover .arrow { transform: translate(3px, -3px); color: var(--orange); }
.social--book .ico { background: var(--orange-tint); color: var(--orange-ink); }
.social--book:hover .ico { background: var(--cta); color: #fff; }
@media (max-width: 900px) { .contato-grid { grid-template-columns: 1fr; } }

/* =========================================================
   8. RODAPÉ
   ========================================================= */
.site-footer { background: var(--ink); color: #D8DEE6; padding: clamp(64px, 9vw, 110px) 0 32px; position: relative; overflow: hidden; }
.footer-big { font-family: var(--font-type); font-size: clamp(30px, 6vw, 84px); line-height: 1.02; color: var(--paper); letter-spacing: -.03em; }
.footer-big span { color: var(--teal-bright); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; margin-top: clamp(40px, 6vw, 64px); padding-top: 28px; border-top: 1px solid rgba(255,255,255,.12); font-size: 15px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 6px; list-style: none; margin: 0; padding: 0; }
.footer-links a, .footer-links button { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; text-decoration: none; background: none; border: 0; color: #D8DEE6; font-size: 15px; font-weight: 300; }
.footer-links a:hover, .footer-links button:hover { color: #fff; text-decoration: underline; }
.footer-copy { color: #A9B4C2; }
.footer-bird { position: absolute; right: 6%; top: 18%; width: 120px; color: var(--orange); opacity: .9; }
html.js .footer-bird { animation: float 6s ease-in-out infinite alternate; }

/* ---------- CTA flutuante (celular) ---------- */
.float-cta {
  position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 90;
  translate: -50% 0; transform: translateY(140%); transition: transform .6s var(--ease-spring);
  box-shadow: 0 18px 30px -14px rgba(23,34,49,.6);
}
.float-cta.show { transform: none; }
@media (min-width: 901px) { .float-cta { display: none; } }

/* ---------- Banner de cookies (LGPD) ---------- */
.consent {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 150; max-width: 560px;
  background: var(--card); color: var(--ink); border-radius: 20px; padding: 22px 22px 18px;
  box-shadow: 0 30px 60px -20px rgba(23,34,49,.45); border: 1px solid var(--line);
  font-size: 15.5px; line-height: 1.55;
  transform: translateY(130%); transition: transform .7s var(--ease-spring);
}
.consent.show { transform: none; }
.consent h2 { font-family: var(--font-type); font-size: 19px; margin-bottom: 8px; }
.consent p { margin: 0 0 14px; color: var(--ink-soft); }
.consent a { color: var(--teal); }
.consent-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.consent .btn--ghost { color: var(--ink); }

/* ---------- Páginas internas (legais / 404) ---------- */
.page-plain .site-header { background: color-mix(in srgb, var(--paper) 88%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.legal { padding: calc(var(--header-h) + clamp(48px, 8vw, 96px)) 0 var(--section-y); }
.legal .container { max-width: 820px; }
.legal h1 { font-family: var(--font-type); font-size: clamp(34px, 5vw, 58px); letter-spacing: -.02em; }
.legal .updated { font-family: var(--font-type); font-size: 14px; color: var(--ink-soft); margin: 16px 0 44px; }
.legal h2 { font-family: var(--font-type); font-size: clamp(22px, 2.4vw, 28px); margin: 48px 0 14px; color: var(--teal-deep); }
.legal h3 { font-size: 19px; font-weight: 500; margin: 26px 0 8px; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: .5em; }
.legal a { color: var(--teal); }
.legal table { width: 100%; border-collapse: collapse; font-size: 15.5px; margin: 10px 0 20px; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { font-weight: 500; background: var(--paper-2); }
.table-wrap { overflow-x: auto; }
.legal .box { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; margin: 22px 0; }

.e404 { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; text-align: center; padding: calc(var(--header-h) + 40px) var(--gutter) 60px; position: relative; overflow: hidden; }
.stamp {
  display: inline-block; font-family: var(--font-type); font-weight: 700; font-size: clamp(34px, 7vw, 76px); letter-spacing: .06em;
  color: var(--orange-ink); border: 5px solid currentColor; border-radius: 10px; padding: .08em .4em; transform: rotate(-8deg);
  mix-blend-mode: multiply; opacity: .9;
}
html.js .stamp { animation: stamp .7s var(--ease-spring) .3s both; }
@keyframes stamp { from { transform: rotate(-8deg) scale(2.6); opacity: 0; } to { transform: rotate(-8deg) scale(1); opacity: .9; } }
.e404 .code { font-family: var(--font-type); color: var(--teal); letter-spacing: .3em; font-size: 14px; margin: 34px 0 8px; }
.e404 h1 { font-family: var(--font-type); font-size: clamp(26px, 3.6vw, 40px); max-width: 22ch; margin-inline: auto; }
.e404 blockquote { font-family: var(--font-type); color: var(--ink-soft); margin: 26px auto 34px; font-size: 18px; line-height: 1.55; }

/* ---------- Movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .bird { display: none; }
}

/* ---------- Ajustes finos no celular ---------- */
@media (max-width: 640px) {
  .hero-dot { top: 11vh; left: -18px; width: 58px; }
  .player { aspect-ratio: 4 / 3.4; }
  .disc { width: 74%; right: -22%; }
  .player-label { max-width: 62%; }
  .consent { font-size: 14.5px; padding: 18px 18px 14px; }
  .consent p { margin-bottom: 12px; }
  .footer-bird { display: none; }
}

.e404 .hero-ctas { opacity: 1 !important; transform: none !important; margin-top: 8px; }

/* ---------- Menu no celular: o painel cobre a tela inteira em qualquer ponto da página ---------- */
@media (max-width: 900px) {
  /* backdrop-filter e transform no cabeçalho prenderiam o painel fixo dentro dele */
  .menu-open .site-header,
  .menu-open .site-header.is-scrolled,
  .menu-open .site-header.on-dark { -webkit-backdrop-filter: none; backdrop-filter: none; transform: none; background: transparent; box-shadow: none; color: var(--ink); }
  .menu-open .site-header .menu-toggle { border-color: var(--line); }
  .nav { height: 100vh; height: 100dvh; overscroll-behavior: contain; padding: calc(var(--header-h) + 16px) 24px 32px; }
  .menu-open .float-cta { transform: translateY(140%); }
}

/* ---------- Arquivo: páginas do Jornal PubliCIDADE (1989) ---------- */
.arquivo { margin-top: clamp(72px, 10vw, 128px); }
.arquivo-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; border-top: 1px solid var(--line); padding-top: 20px; }
.arquivo-kicker { margin: 0; font-family: var(--font-type); font-size: 14px; letter-spacing: .28em; text-transform: uppercase; color: var(--teal); }
.arquivo-caption { margin: 0; font-family: var(--font-type); font-size: clamp(18px, 1.6vw, 22px); color: var(--ink); }
.papers { list-style: none; margin: clamp(36px, 5vw, 56px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); align-items: start; }
.paper { display: grid; gap: 14px; min-width: 0; }
.paper-btn {
  --r: -2.5deg;
  position: relative; display: block; width: 100%; padding: 8px; border: 0; border-radius: 3px; background: #fff;
  box-shadow: 0 26px 40px -26px rgba(23,34,49,.6), 0 1px 0 rgba(23,34,49,.06);
  transform: rotate(var(--r)); transition: transform .6s var(--ease-spring), box-shadow .4s; cursor: zoom-in;
}
.paper:nth-child(2) .paper-btn { --r: 1.8deg; }
.paper:nth-child(3) .paper-btn { --r: -1.2deg; }
.paper:nth-child(4) .paper-btn { --r: 2.6deg; }
.paper-btn::before {
  content: ""; position: absolute; top: -11px; left: 50%; width: 72px; height: 22px; translate: -50% 0; z-index: 1;
  background: rgba(45, 151, 165, .28); transform: rotate(-4deg);
}
.paper:nth-child(even) .paper-btn::before { background: rgba(229, 96, 31, .3); transform: rotate(3deg); }
.paper-btn img { width: 100%; filter: sepia(.12) contrast(1.03); }
.paper-btn:hover, .paper-btn:focus-visible { transform: rotate(0deg) translateY(-6px) scale(1.03); box-shadow: 0 36px 50px -28px rgba(23,34,49,.7); z-index: 2; }
.paper-cap { font-family: var(--font-type); font-size: 13.5px; line-height: 1.4; color: var(--ink-soft); text-align: center; padding-inline: 6px; }
.arquivo-hint { margin: 28px 0 0; font-size: 14.5px; color: var(--ink-soft); text-align: center; }
html.js .paper.rv { transform: translateY(-70px) rotate(-6deg); transition-duration: .9s, 1.2s; transition-timing-function: var(--ease-out), var(--ease-spring); }
html.js .paper.rv:nth-child(even) { transform: translateY(-90px) rotate(7deg); }
html.js .paper.rv.in { transform: none; }
@media (max-width: 900px) { .papers { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; } }

.lightbox {
  width: min(92vw, 860px); max-width: none; max-height: 94vh; padding: 0; border: 0; background: transparent; overflow: visible; color: var(--paper);
}
.lightbox::backdrop { background: rgba(11, 20, 38, .86); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.lightbox figure { margin: 0; display: grid; justify-items: center; gap: 14px; }
.lightbox img { max-width: 100%; max-height: 82vh; width: auto; height: auto; background: #fff; padding: 8px; border-radius: 3px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.8); }
.lb-cap { font-family: var(--font-type); font-size: 15px; text-align: center; color: var(--paper); }
.lb-close {
  position: fixed; top: max(16px, env(safe-area-inset-top, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); z-index: 2;
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(247,242,232,.35); background: rgba(11,20,38,.6);
  color: var(--paper); display: grid; place-items: center;
}
.lb-close svg { width: 22px; height: 22px; }
.lightbox[open] img { animation: lbIn .5s var(--ease-out); }
@keyframes lbIn { from { opacity: 0; transform: scale(.94) rotate(-2deg); } to { opacity: 1; transform: none; } }

.tag--soon { background: var(--paper-2); color: var(--ink); border: 1px dashed var(--orange); }
.tl-soon .tl-title { color: var(--ink-soft); }

/* ---------- Três livros ---------- */
@media (min-width: 1100px) {
  .books { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
  .books .book { grid-template-columns: 1fr; align-content: start; align-items: start; }
  .books .book-cover { width: 62%; max-width: 220px; margin: 6px auto 10px; }
}
.book p + p { margin-top: -.4em; }
.book-new {
  display: inline-block; margin-left: 8px; padding: 2px 10px; border-radius: 999px; vertical-align: 1px;
  background: var(--orange); color: #fff; font-family: var(--font-sans); font-size: 12px; font-weight: 400; letter-spacing: .06em;
}
@media (min-width: 1100px) {
  .books .book { grid-template-rows: auto 1fr; }
  .books .book > div:last-child { display: flex; flex-direction: column; height: 100%; }
  .books .book-actions { margin-top: auto; padding-top: 8px; }
}
.book-3d img { aspect-ratio: 5 / 7; object-fit: cover; }
