/* ─────────────────────────────────────────────────────────────
   Dark Romance Club — estilo do site
   Paleta: Noite, Sombra, Veludo, Borra, Vinho, Lacre, Ouro velho,
   Pergaminho, Fumaça. Títulos: Cormorant Garamond. Texto: Manrope.
   ───────────────────────────────────────────────────────────── */

@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(/assets/fonts/cormorant-600.woff2) format("woff2"), url(/assets/fonts/cormorant-600.ttf) format("truetype"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: swap;
  src: url(/assets/fonts/cormorant-italic-500.woff2) format("woff2"), url(/assets/fonts/cormorant-italic-500.ttf) format("truetype"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(/assets/fonts/manrope.woff2) format("woff2"), url(/assets/fonts/manrope.ttf) format("truetype"); }

:root {
  --noite: #080808;
  --sombra: #111111;
  --veludo: #171717;
  --borra: #24070C;
  --vinho: #650F1B;
  --lacre: #8C1524;
  --ouro: #B89455;
  --pergaminho: #F3EFEA;
  --fumaca: #A7A1A1;
  --contorno: #6B6363;
  --linha: rgba(107, 99, 99, .4);
  --texto: #DDD6CF;

  --serif: "Cormorant Garamond", "Cormorant", Garamond, "EB Garamond", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --gutter: 1rem;
  --wide: 65rem;
  --narrow: 34rem;
  --radius: 14px;

  --star-empty: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 15.2 13'%3E%3Cpath fill='%233E3636' d='M6.5.4l1.53 4.3 4.56.12-3.62 2.78 1.29 4.38L6.5 9.4l-3.76 2.58 1.29-4.38L.41 4.82l4.56-.12z'/%3E%3C/svg%3E");
  --star-full: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 15.2 13'%3E%3Cpath fill='%23B89455' d='M6.5.4l1.53 4.3 4.56.12-3.62 2.78 1.29 4.38L6.5 9.4l-3.76 2.58 1.29-4.38L.41 4.82l4.56-.12z'/%3E%3C/svg%3E");

  color-scheme: dark;
}
@media (min-width: 640px) { :root { --gutter: 1.5rem; } }

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(120% 62% at 50% -8%, rgba(101, 15, 27, .4) 0%, rgba(36, 7, 12, .24) 38%, transparent 68%) no-repeat,
    var(--noite);
  color: var(--pergaminho);
  font: 400 1rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
/* vinheta + textura de veludo, bem discretas */
body::before, body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
body::before { background: radial-gradient(130% 100% at 50% 38%, transparent 55%, rgba(0, 0, 0, .62) 100%); }
body::after {
  opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

main { flex: 1 0 auto; }
img { max-width: 100%; }
::selection { background: rgba(140, 21, 36, .65); color: var(--pergaminho); }

a { color: inherit; }
a:not([class]) {
  color: var(--pergaminho);
  text-decoration: underline;
  text-decoration-color: rgba(184, 148, 85, .6);
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
}
a:not([class]):hover { text-decoration-color: var(--ouro); }

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

.skip {
  position: absolute; left: .75rem; top: -4rem; z-index: 100;
  padding: .75rem 1rem; border-radius: 10px;
  background: var(--pergaminho); color: var(--noite); font-weight: 600; text-decoration: none;
}
.skip:focus { top: .75rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.icon { flex: none; }

/* ── Cabeçalho ─────────────────────────────────────────────── */
.site-header {
  width: min(100% - 2 * var(--gutter), var(--wide));
  margin-inline: auto;
  height: 3.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem; margin-left: -.5rem; border-radius: 50%;
}
.brand .mark { width: 1.75rem; height: 1.75rem; display: block; }
.site-nav { display: flex; gap: .125rem; margin-right: -.625rem; }
.site-nav a {
  display: inline-flex; align-items: center;
  min-height: 2.75rem; padding: 0 .625rem; border-radius: 10px;
  color: var(--fumaca); text-decoration: none;
  font-size: .875rem; font-weight: 500; letter-spacing: .01em;
  transition: color .2s ease;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--pergaminho); }

/* ── Folha de rosto (primeira tela) ────────────────────────── */
.hero {
  width: min(100% - 2 * var(--gutter), var(--narrow));
  margin-inline: auto;
  padding: clamp(.75rem, 3.5vh, 2.5rem) 0 clamp(2.5rem, 6vh, 4rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero__portrait { position: relative; isolation: isolate; margin-bottom: 1rem; }
/* luz de vela atrás da foto: a única animação do site */
.hero__portrait::before {
  content: "";
  position: absolute;
  inset: -72%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(140, 21, 36, .5), rgba(101, 15, 27, .22) 45%, rgba(184, 148, 85, .05) 68%, transparent 76%);
  animation: candle 7s ease-in-out infinite alternate;
}
@keyframes candle {
  0% { opacity: .7; transform: scale(.94); }
  40% { opacity: 1; transform: scale(1.02); }
  70% { opacity: .82; transform: scale(.98); }
  100% { opacity: .95; transform: scale(1.04); }
}
.avatar-ring {
  display: block;
  padding: 1px;
  border-radius: 50%;
  background: linear-gradient(150deg, rgba(184, 148, 85, .9), rgba(140, 21, 36, .95) 38%, rgba(101, 15, 27, .7) 68%, rgba(184, 148, 85, .55));
  box-shadow: 0 18px 44px -14px rgba(0, 0, 0, .95), 0 0 30px -8px rgba(140, 21, 36, .55);
}
.avatar {
  display: block;
  width: 6rem; height: 6rem;
  border-radius: 50%;
  border: 2px solid var(--noite);
  object-fit: cover;
  background: var(--veludo);
}
.hero__name {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.25rem, 1.8rem + 2.2vw, 3.25rem);
  line-height: 1.02;
  letter-spacing: -.005em;
}
.hero__genres {
  margin: .625rem 0 0;
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--fumaca);
}
.hero__epigraph {
  margin: 1.125rem 0 0;
  max-width: 19em;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.3125rem, 1.2rem + .7vw, 1.625rem);
  line-height: 1.3;
  color: #E9E1D8;
  text-wrap: balance;
}

/* ── Botões ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .625rem;
  min-height: 3rem;
  padding: 0 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: 600 .9375rem/1.2 var(--sans);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .15s ease, box-shadow .25s ease, background-color .25s ease, border-color .25s ease, color .25s ease;
}
.btn--club {
  width: 100%;
  max-width: 22.5rem;
  min-height: 3.5rem;
  margin-top: 1.5rem;
  color: var(--pergaminho);
  font-size: .875rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #9B1A2C 0%, var(--lacre) 38%, var(--vinho) 100%);
  border-color: rgba(184, 148, 85, .3);
  box-shadow:
    inset 0 1px 0 rgba(255, 236, 220, .14),
    inset 0 -1px 0 rgba(0, 0, 0, .25),
    0 14px 34px -14px rgba(140, 21, 36, .9),
    0 2px 8px rgba(0, 0, 0, .55);
}
.btn--club:hover {
  border-color: rgba(184, 148, 85, .5);
  box-shadow:
    inset 0 1px 0 rgba(255, 236, 220, .18),
    inset 0 -1px 0 rgba(0, 0, 0, .25),
    0 18px 42px -12px rgba(140, 21, 36, 1),
    0 2px 8px rgba(0, 0, 0, .55);
}
.btn--club:active { transform: translateY(1px) scale(.985); background: linear-gradient(180deg, var(--lacre) 0%, var(--vinho) 100%); }

.btn--ghost {
  width: 100%;
  max-width: 22.5rem;
  margin-top: .875rem;
  color: var(--pergaminho);
  font-weight: 500;
  background: rgba(17, 17, 17, .55);
  border-color: var(--contorno);
}
.btn--ghost:hover { border-color: #8F8686; background: rgba(23, 23, 23, .9); }
.btn--ghost:active { transform: scale(.985); }
.btn--small { width: auto; min-height: 2.75rem; padding: 0 1.25rem; font-size: .875rem; }

.btn--buy {
  width: 100%;
  max-width: 20rem;
  margin-top: 1.25rem;
  color: var(--ouro);
  background: rgba(184, 148, 85, .06);
  border-color: rgba(184, 148, 85, .55);
}
.btn--buy:hover { background: rgba(184, 148, 85, .12); border-color: var(--ouro); }
.btn--buy:active { transform: scale(.985); }

.age-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin: .75rem 0 0;
  font-size: .8125rem;
  color: var(--fumaca);
}
.age-badge {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 1.375rem;
  padding: 0 .4375rem;
  border: 1px solid rgba(184, 148, 85, .55);
  border-radius: 999px;
  color: var(--ouro);
  font: 700 .6875rem/1 var(--sans);
  letter-spacing: .04em;
}

/* ── Seções ────────────────────────────────────────────────── */
.section { width: min(100% - 2 * var(--gutter), var(--wide)); margin-inline: auto; }
.section-head h1, .section-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.875rem, 1.6rem + 1.3vw, 2.5rem);
  line-height: 1.08;
}
.section-head p { margin: .375rem 0 0; color: var(--fumaca); font-size: .9375rem; }
.section-head--page { padding-top: 1rem; }
.section-head--page h1 { font-size: clamp(2.25rem, 1.8rem + 2vw, 3rem); }

.shelf { padding-top: .5rem; }
.more { margin: 2.25rem 0 0; text-align: center; }

/* ── Estante de livros ─────────────────────────────────────── */
.book-grid {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem 1rem;
}
@media (min-width: 640px) { .book-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem 1.5rem; } }
@media (min-width: 960px) { .book-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.75rem 2rem; } }
.book-grid--home.n-1 { grid-template-columns: minmax(0, 12rem); justify-content: center; }
@media (min-width: 640px) { .book-grid--home.n-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 960px) {
  .book-grid--home.n-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2rem 1.5rem; }
  .book-grid--home.n-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 2rem 1.5rem; }
}

.book__link { display: block; color: inherit; text-decoration: none; border-radius: 6px; }
.book__link:focus-visible { outline-offset: 6px; }
.book__cover {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 3px 6px 6px 3px;
  background: var(--veludo);
  box-shadow: 0 26px 36px -20px rgba(0, 0, 0, .95), 0 6px 14px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(255, 255, 255, .04);
  transition: transform .35s ease, box-shadow .35s ease;
}
.book__cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* lombada: luz fina à esquerda, como um livro de verdade */
.book__cover::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .35) 0, rgba(255, 255, 255, .12) 1.2%, rgba(255, 255, 255, .03) 3%, rgba(0, 0, 0, .14) 4.5%, transparent 9%),
    linear-gradient(180deg, rgba(255, 255, 255, .05), transparent 22%);
}
@media (hover: hover) {
  .book__link:hover .book__cover {
    transform: translateY(-4px);
    box-shadow: 0 34px 44px -22px rgba(0, 0, 0, 1), 0 10px 22px rgba(0, 0, 0, .6), 0 0 0 1px rgba(184, 148, 85, .18);
  }
}
.book__title {
  margin: .875rem 0 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.1875rem;
  line-height: 1.15;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.book__author {
  display: block;
  margin-top: .25rem;
  font-size: .8125rem;
  color: var(--fumaca);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.book__meta { display: flex; gap: .375rem; margin-top: .625rem; min-width: 0; }
.book__meta .chip { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.book__meta .chip--cat { flex: none; }
@media (max-width: 419px) { .book__meta .chip { padding: 0 .4375rem; font-size: .71875rem; } }
@media (min-width: 960px) { .book-grid:not(.n-5):not(.n-6) .book__title { font-size: 1.3125rem; } }

.chip {
  display: inline-block;
  height: 1.5rem;
  line-height: calc(1.5rem - 2px);
  padding: 0 .5625rem;
  border: 1px solid var(--linha);
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--fumaca);
  white-space: nowrap;
}
.chip--cat { border-color: rgba(140, 21, 36, .75); background: rgba(36, 7, 12, .9); color: #EBDCD9; }

.cover-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 1rem;
  background: radial-gradient(120% 80% at 50% 0%, rgba(101, 15, 27, .55), transparent 70%), var(--sombra);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.2;
  text-align: center;
  color: var(--pergaminho);
}
.badge-demo {
  position: absolute;
  top: .5rem;
  left: .5rem;
  padding: .125rem .5rem;
  border: 1px solid rgba(184, 148, 85, .55);
  border-radius: 999px;
  background: rgba(8, 8, 8, .85);
  color: var(--ouro);
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .02em;
}

/* estrelas (avaliação) */
.stars {
  position: relative;
  display: block;
  width: 4.75rem;
  height: .8125rem;
  margin-top: .625rem;
  background: var(--star-empty) repeat-x 0 0 / .95rem .8125rem;
}
.stars__fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--star-full) repeat-x 0 0 / .95rem .8125rem;
}
.stars--lg { display: inline-block; width: 5.9375rem; height: 1rem; margin: 0; background-size: 1.1875rem 1rem; }
.stars--lg .stars__fill { background-size: 1.1875rem 1rem; }
.r-10 { width: 20%; } .r-15 { width: 30%; } .r-20 { width: 40%; } .r-25 { width: 50%; } .r-30 { width: 60%; }
.r-35 { width: 70%; } .r-40 { width: 80%; } .r-45 { width: 90%; } .r-50 { width: 100%; }

/* ── O Clube ───────────────────────────────────────────────── */
.club, .club-cta {
  position: relative;
  width: min(100% - 2 * var(--gutter), var(--narrow));
  margin: 4.5rem auto 0;
  padding-top: 3.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
/* ornamento: filete dourado com um losango */
.club::before, .club-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(16rem, 60%);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(184, 148, 85, .55), transparent);
}
.club::after, .club-cta::after {
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  width: 9px;
  height: 9px;
  transform: translateX(-50%) rotate(45deg);
  background: var(--noite);
  border: 1px solid rgba(184, 148, 85, .7);
}
.club h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2rem, 1.7rem + 1.4vw, 2.625rem);
  line-height: 1.05;
}
.club__text { margin: .75rem auto 0; max-width: 28em; color: var(--fumaca); font-size: .9375rem; text-wrap: balance; }
.club__list {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  width: 100%;
  max-width: 20rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 1.5rem;
}
.club__list li { display: flex; flex-direction: column; align-items: center; gap: .5rem; font-size: .875rem; font-weight: 500; }
.club__list .icon { width: 1.375rem; height: 1.375rem; color: var(--ouro); }
@media (min-width: 640px) { .club__list { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 30rem; } }

.club-cta { margin-top: 4rem; padding-top: 3rem; }
.club-cta__lead {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.375rem, 1.25rem + .6vw, 1.625rem);
  line-height: 1.3;
}
.club-cta .btn--club { margin-top: 1.25rem; }

/* ── Indicações (/livros) ──────────────────────────────────── */
.filters {
  display: flex;
  gap: .5rem;
  margin: 1.25rem calc(-1 * var(--gutter)) 0;
  padding: 0 var(--gutter) .25rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.filters::-webkit-scrollbar { display: none; }
.filters a {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 1.125rem;
  border: 1px solid var(--linha);
  border-radius: 999px;
  color: var(--fumaca);
  text-decoration: none;
  font-size: .875rem;
  font-weight: 600;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}
.filters a:hover { color: var(--pergaminho); border-color: var(--contorno); }
.filters a[aria-current="page"] { background: var(--pergaminho); border-color: var(--pergaminho); color: var(--noite); }
.empty { margin: 2rem 0 0; color: var(--fumaca); }

/* ── Página do livro ───────────────────────────────────────── */
.book-page { width: min(100% - 2 * var(--gutter), 60rem); margin-inline: auto; }
.back {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  min-height: 2.75rem;
  margin-left: -.25rem;
  padding: 0 .25rem;
  color: var(--fumaca);
  text-decoration: none;
  font-size: .875rem;
  font-weight: 500;
}
.back:hover { color: var(--pergaminho); }
.book-page__grid { display: grid; gap: 1.75rem; margin-top: .25rem; }
.book-page__cover { position: relative; margin: 0 auto; width: min(62%, 15.5rem); }
.book-page__cover img, .book-page__cover .cover-placeholder {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 3px 7px 7px 3px;
  box-shadow: 0 36px 50px -26px rgba(0, 0, 0, 1), 0 10px 24px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(255, 255, 255, .04);
}
.book-page__cover .cover-placeholder { aspect-ratio: 2 / 3; }
.book-page__head { display: flex; flex-direction: column; align-items: center; text-align: center; }
.book-page__head h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.125rem, 1.7rem + 2.2vw, 3rem);
  line-height: 1.05;
  text-wrap: balance;
}
.book-page__author { margin: .5rem 0 0; color: var(--fumaca); }
.book-page__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .625rem; margin: 1rem 0 0; }
.affiliate-note { margin: .625rem 0 0; max-width: 22rem; font-size: .75rem; line-height: 1.5; color: var(--fumaca); }

.book-section { margin-top: 2.25rem; }
.book-section h2 { margin: 0 0 .75rem; font-family: var(--serif); font-weight: 600; font-size: 1.625rem; line-height: 1.1; }
.book-section p { margin: 0 0 .875rem; max-width: 38rem; color: var(--texto); }
.why { margin: 0; padding: .25rem 0 .25rem 1.25rem; border-left: 1px solid rgba(140, 21, 36, .95); }
.why p { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.3125rem; line-height: 1.45; color: var(--pergaminho); }
.why footer { font-size: .8125rem; color: var(--fumaca); }
.why footer::before { content: "— "; }
.tropes { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.tropes li {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0 .875rem;
  border: 1px solid var(--linha);
  border-radius: 999px;
  font-size: .8125rem;
  font-weight: 500;
}
.related { margin-top: 4rem; }
.related h2 { margin: 0; font-family: var(--serif); font-weight: 600; font-size: clamp(1.75rem, 1.5rem + 1vw, 2.125rem); }
@media (min-width: 760px) {
  .book-page__grid { grid-template-columns: 17rem minmax(0, 1fr); gap: 3.5rem; align-items: start; margin-top: 1rem; }
  .book-page__cover { position: sticky; top: 1.5rem; width: 100%; }
  .book-page__head { align-items: flex-start; text-align: left; }
  .book-page__meta { justify-content: flex-start; }
}

/* ── Privacidade e termos ──────────────────────────────────── */
.legal { max-width: 42rem; padding-top: 1rem; }
.legal h1 { margin: 0; font-family: var(--serif); font-weight: 600; font-size: clamp(2.25rem, 1.8rem + 2vw, 3rem); line-height: 1.05; }
.legal__updated { margin: .5rem 0 0; color: var(--fumaca); font-size: .8125rem; }
.legal__lead { margin: 1.25rem 0 0; font-size: 1.0625rem; }
.legal h2 { margin: 2.25rem 0 .5rem; font-family: var(--serif); font-weight: 600; font-size: 1.5rem; line-height: 1.15; }
.legal p, .legal li { color: var(--texto); }
.legal ul { margin: .25rem 0 0; padding-left: 1.25rem; }
.legal li { margin: .375rem 0; }
.legal li::marker { color: var(--lacre); }

/* ── 404 ───────────────────────────────────────────────────── */
.lost {
  width: min(100% - 2 * var(--gutter), 30rem);
  margin: 0 auto;
  padding: clamp(3rem, 12vh, 7rem) 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.lost .mark { width: 3rem; height: 3rem; margin-bottom: 1.25rem; }
.lost h1 {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.875rem, 1.5rem + 2vw, 2.5rem);
  line-height: 1.15;
  text-wrap: balance;
}
.lost p { margin: .875rem 0 0; color: var(--fumaca); }
.lost .btn { width: auto; min-width: 10rem; margin-top: 1.75rem; }
.lost__alt { font-size: .875rem; }

/* ── Rodapé ────────────────────────────────────────────────── */
.site-footer {
  width: min(100% - 2 * var(--gutter), var(--wide));
  margin: 5rem auto 0;
  padding: 2.5rem 0 calc(2rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--linha);
  text-align: center;
  color: var(--fumaca);
  font-size: .8125rem;
}
.site-footer p { margin: 0; }
.site-footer .site-footer__name { font-family: var(--serif); font-weight: 600; font-size: 1.375rem; color: var(--pergaminho); }
.site-footer .site-footer__tag { margin-top: .25rem; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.0625rem; }
.site-footer__nav { display: flex; justify-content: center; flex-wrap: wrap; margin-top: 1rem; }
.site-footer__nav a { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 .75rem; color: var(--fumaca); text-decoration: none; }
.site-footer__nav a:hover { color: var(--pergaminho); }
.site-footer .site-footer__legal { display: flex; justify-content: center; align-items: center; gap: .625rem; margin-top: .5rem; }

/* ── Barra fixa do clube (celular) ─────────────────────────── */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  padding: .75rem var(--gutter) calc(.625rem + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(8, 8, 8, 0), rgba(8, 8, 8, .88) 32%, rgba(8, 8, 8, .97));
  visibility: hidden;
  transform: translateY(110%);
  transition: transform .3s ease, visibility 0s linear .3s;
}
.sticky-cta.is-visible { visibility: visible; transform: none; transition: transform .3s ease; }
.sticky-cta .btn--club { display: flex; margin: 0 auto; min-height: 3.25rem; }
@media (min-width: 900px) { .sticky-cta { display: none; } }

/* ── Ajustes de tela ───────────────────────────────────────── */
@media (min-width: 900px) {
  .hero { padding-top: clamp(1.5rem, 6vh, 4rem); }
  .avatar { width: 7rem; height: 7rem; }
}
@media (max-height: 640px) {
  .hero { padding-top: .25rem; }
  .hero__portrait { margin-bottom: .75rem; }
  .avatar { width: 5.25rem; height: 5.25rem; }
  .hero__epigraph { margin-top: .75rem; }
  .hero .btn--club { margin-top: 1.125rem; }
}
@media (max-width: 359px) {
  .hero__name { font-size: 2.125rem; }
  .btn--club { font-size: .8125rem; letter-spacing: .07em; }
  .book-grid { gap: 1.75rem .75rem; }
  .book__title { font-size: 1.0625rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
