/* ==========================================================================
   J. G. Moreira — Escritor
   Identidade: noite de escrita · papel antigo · luz de vela
   ========================================================================== */

:root {
  --ink: #12141a;          /* tinta / noite */
  --ink-2: #1b1e27;
  --ink-3: #262a36;
  --paper: #f5eee2;        /* papel antigo */
  --paper-2: #ebe1cf;
  --paper-3: #fbf8f2;
  --text: #2a241d;         /* sépia escuro */
  --text-soft: #5d5346;
  --text-light: #d9d0c1;
  --gold: #c9974f;         /* luz de vela */
  --gold-2: #e2b872;
  --wine: #7b2d34;         /* lacre */

  --font-display: "Cormorant Garamond", "Garamond", "Times New Roman", serif;
  --font-body: "Lora", Georgia, "Times New Roman", serif;
  --font-type: "Courier Prime", "Courier New", monospace;

  --radius: 4px;
  --shadow-book: 0 1px 2px rgba(0,0,0,.25), 0 18px 40px -12px rgba(0,0,0,.55);
  --max: 1160px;
  --header-h: 68px;

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1.1em; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}

::selection { background: var(--gold); color: var(--ink); }

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

.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;
}

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--gold); color: var(--ink); padding: .6rem 1rem;
  font-family: var(--font-type); text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Textura de papel nas seções claras */
.paper {
  position: relative;
  background-color: var(--paper);
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(255,255,255,.55), transparent 60%),
    radial-gradient(ellipse at 100% 100%, rgba(160,120,70,.10), transparent 55%);
}
.paper::before,
.night::before {
  content: "";
  position: absolute; inset: 0;
  background-image: var(--grain);
  opacity: .12;
  pointer-events: none;
  mix-blend-mode: multiply;
}
.night::before { opacity: .09; mix-blend-mode: screen; }

.night {
  position: relative;
  background: var(--ink);
  color: var(--text-light);
}

section { position: relative; }
.section { padding: clamp(4.5rem, 10vw, 7.5rem) 0; }

/* --------------------------------------------------------------------------
   Rótulos, títulos e ornamentos
   -------------------------------------------------------------------------- */

.eyebrow {
  display: inline-block;
  font-family: var(--font-type);
  font-size: .8rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--wine);
  margin-bottom: 1rem;
}
.night .eyebrow { color: var(--gold); }

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto clamp(2.75rem, 6vw, 4.5rem);
}
.section-head h2 {
  font-size: clamp(2.3rem, 6vw, 3.6rem);
  margin-bottom: .35em;
}
.section-head p { color: var(--text-soft); font-style: italic; margin: 0; }
.night .section-head p { color: #a99f90; }

.ornament {
  display: flex; align-items: center; justify-content: center; gap: .9rem;
  color: var(--gold);
  margin: 1.1rem auto 0;
}
.ornament::before, .ornament::after {
  content: ""; height: 1px; width: 64px;
  background: linear-gradient(90deg, transparent, currentColor);
}
.ornament::after { transform: scaleX(-1); }
.ornament svg { width: 22px; height: 22px; }

/* --------------------------------------------------------------------------
   Botões
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px;
  padding: .75rem 1.5rem;
  font-family: var(--font-type);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color .25s, color .25s, border-color .25s, transform .25s, box-shadow .25s;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn:hover { transform: translateY(-2px); }

.btn-gold {
  background: var(--gold); color: var(--ink);
  box-shadow: 0 10px 30px -10px rgba(201,151,79,.65);
}
.btn-gold:hover { background: var(--gold-2); }

.btn-ghost {
  border-color: rgba(217,208,193,.35); color: var(--text-light);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-2); }

.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--wine); }

.btn-line { border-color: rgba(42,36,29,.3); color: var(--text); }
.btn-line:hover { border-color: var(--wine); color: var(--wine); }

/* --------------------------------------------------------------------------
   Cabeçalho
   -------------------------------------------------------------------------- */

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  transition: background-color .35s, box-shadow .35s, backdrop-filter .35s;
}
.site-header.is-scrolled,
.site-header.is-solid {
  background: rgba(18,20,26,.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(201,151,79,.18);
}
.site-header .container {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--paper);
  text-decoration: none;
  letter-spacing: .02em;
}
.brand span { color: var(--gold); }

.nav-toggle {
  display: none;
  width: 48px; height: 48px;
  align-items: center; justify-content: center;
  background: none; border: 0; color: var(--paper); cursor: pointer;
}
.nav-toggle svg { width: 26px; height: 26px; }

.nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 2rem;
}
.nav a {
  font-family: var(--font-type);
  font-size: .8rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-light);
  text-decoration: none;
  padding: .5rem 0;
  position: relative;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: .2rem;
  height: 1px; background: var(--gold); transition: right .3s;
}
.nav a:hover, .nav a[aria-current="true"] { color: var(--gold-2); }
.nav a:hover::after, .nav a[aria-current="true"]::after { right: 0; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    background: rgba(18,20,26,.97);
    border-top: 1px solid rgba(201,151,79,.2);
    transform: translateY(-8px);
    opacity: 0; visibility: hidden;
    transition: opacity .25s, transform .25s, visibility .25s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav ul { flex-direction: column; gap: 0; padding: .5rem 1.25rem 1.25rem; }
  .nav a { display: block; padding: 1rem 0; font-size: .9rem; border-bottom: 1px solid rgba(255,255,255,.06); }
  .nav a::after { display: none; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 2.5rem) 0 4rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 55% at 78% 45%, rgba(201,151,79,.20), transparent 70%),
    radial-gradient(ellipse 50% 60% at 10% 100%, rgba(123,45,52,.22), transparent 70%),
    linear-gradient(180deg, #0e1015 0%, var(--ink) 55%, #171a22 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 3rem;
}

.hero h1 {
  font-size: clamp(3.2rem, 9vw, 6.4rem);
  font-weight: 500;
  color: var(--paper);
  line-height: .95;
  margin-bottom: .35em;
}
.hero h1 em { color: var(--gold); font-style: italic; font-weight: 500; }
.hero h1 small {
  display: block;
  font-family: var(--font-type);
  font-size: .82rem;
  font-weight: 400;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

.hero-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  line-height: 1.4;
  color: #ece4d6;
  margin: 0 0 .6rem;
  min-height: 2.8em;
  max-width: 30ch;
}
.hero-quote .caret {
  display: inline-block; width: 2px; height: 1em;
  background: var(--gold); margin-left: 3px; vertical-align: -.12em;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-lead {
  color: #b6ac9c;
  max-width: 46ch;
  margin-bottom: 2.2rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; }

/* Pilha de livros */
.book-fan {
  position: relative;
  height: clamp(340px, 46vw, 520px);
  perspective: 1400px;
}
.book-fan a {
  position: absolute;
  top: 50%; left: 50%;
  width: clamp(140px, 16vw, 215px);
  aspect-ratio: 2 / 3;
  border-radius: 2px 5px 5px 2px;
  overflow: hidden;
  box-shadow: var(--shadow-book);
  transition: transform .5s cubic-bezier(.2,.7,.2,1), box-shadow .5s;
  will-change: transform;
}
.book-fan a::after { /* lombada */
  content: ""; position: absolute; inset: 0 auto 0 0; width: 7%;
  background: linear-gradient(90deg, rgba(0,0,0,.35), rgba(255,255,255,.12) 55%, transparent);
}
.book-fan img { width: 100%; height: 100%; object-fit: cover; }
.book-fan a:nth-child(1) { transform: translate(-150%, -46%) rotate(-10deg); z-index: 1; }
.book-fan a:nth-child(2) { transform: translate(-88%, -53%) rotate(-3deg); z-index: 2; }
.book-fan a:nth-child(3) { transform: translate(-22%, -50%) rotate(4deg); z-index: 3; }
.book-fan a:nth-child(4) { transform: translate(42%, -44%) rotate(11deg); z-index: 4; }
.book-fan a:hover, .book-fan a:focus-visible {
  z-index: 10;
  box-shadow: 0 30px 60px -12px rgba(0,0,0,.7), 0 0 0 1px rgba(201,151,79,.5);
}
.book-fan a:nth-child(1):hover, .book-fan a:nth-child(1):focus-visible { transform: translate(-150%, -56%) rotate(-10deg) scale(1.04); }
.book-fan a:nth-child(2):hover, .book-fan a:nth-child(2):focus-visible { transform: translate(-88%, -63%) rotate(-3deg) scale(1.04); }
.book-fan a:nth-child(3):hover, .book-fan a:nth-child(3):focus-visible { transform: translate(-22%, -60%) rotate(4deg) scale(1.04); }
.book-fan a:nth-child(4):hover, .book-fan a:nth-child(4):focus-visible { transform: translate(42%, -54%) rotate(11deg) scale(1.04); }

.scroll-cue {
  position: absolute; left: 50%; bottom: 1.5rem; transform: translateX(-50%);
  color: rgba(217,208,193,.55); text-decoration: none;
  font-family: var(--font-type); font-size: .7rem; letter-spacing: .25em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: .4rem;
}
.scroll-cue span {
  width: 1px; height: 38px;
  background: linear-gradient(var(--gold), transparent);
  animation: drip 2.2s ease-in-out infinite;
  transform-origin: top;
}
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

@media (max-width: 860px) {
  .hero { text-align: center; padding-bottom: 5rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero-quote, .hero-lead { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .book-fan { order: -1; height: 250px; margin-top: .5rem; }
  .book-fan a { width: 104px; }
  .scroll-cue { display: none; }
}

/* --------------------------------------------------------------------------
   Lançamento em destaque
   -------------------------------------------------------------------------- */

.featured {
  display: grid;
  grid-template-columns: minmax(220px, 360px) 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.featured-cover { position: relative; }
.featured-cover img {
  border-radius: 2px 6px 6px 2px;
  box-shadow: var(--shadow-book);
}
.badge {
  position: absolute; top: -14px; right: -14px;
  width: 92px; height: 92px; border-radius: 50%;
  display: grid; place-items: center; text-align: center;
  background: radial-gradient(circle at 35% 30%, #9c3d45, var(--wine) 60%, #5a1f25);
  color: #f6e7d2;
  font-family: var(--font-type); font-size: .66rem; line-height: 1.25;
  letter-spacing: .12em; text-transform: uppercase;
  box-shadow: 0 8px 20px -6px rgba(0,0,0,.45), inset 0 0 0 4px rgba(255,255,255,.08);
  transform: rotate(10deg);
}
.featured h2 { font-size: clamp(2.4rem, 6vw, 4rem); margin-bottom: .15em; }
.featured .subtitle {
  font-family: var(--font-display); font-style: italic;
  font-size: 1.4rem; line-height: 1.3; color: var(--text-soft); margin-bottom: 1.4rem;
}
.featured .actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }

@media (max-width: 760px) {
  .featured { grid-template-columns: 1fr; text-align: center; }
  .featured-cover { max-width: 240px; margin: 0 auto; }
  .featured .actions { justify-content: center; }
}

/* --------------------------------------------------------------------------
   Estante (livros)
   -------------------------------------------------------------------------- */

.shelf {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.book-card {
  display: flex; flex-direction: column;
  background: var(--paper-3);
  border: 1px solid rgba(42,36,29,.08);
  border-radius: 6px;
  padding: 1.4rem 1.4rem 1.6rem;
  transition: transform .35s, box-shadow .35s;
}
.book-card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -24px rgba(42,36,29,.45); }

.book-card .cover {
  display: block;
  margin: -2.6rem auto 1.4rem;
  width: 78%;
  aspect-ratio: 2 / 3;
  border-radius: 2px 5px 5px 2px;
  overflow: hidden;
  box-shadow: var(--shadow-book);
  position: relative;
}
.book-card .cover::after {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 7%;
  background: linear-gradient(90deg, rgba(0,0,0,.3), rgba(255,255,255,.12) 55%, transparent);
}
.book-card .cover img { width: 100%; height: 100%; object-fit: cover; }

.book-meta {
  font-family: var(--font-type);
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--wine);
  margin-bottom: .4rem;
}
.book-card h3 { font-size: 1.7rem; margin-bottom: .5rem; }
.book-card h3 a { text-decoration: none; }
.book-card h3 a:hover { color: var(--wine); }
.book-card p { font-size: .95rem; color: var(--text-soft); line-height: 1.65; flex: 1; }

.book-links { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .4rem; }
.book-links .btn { flex: 1 1 auto; min-height: 44px; padding: .55rem .8rem; font-size: .7rem; letter-spacing: .1em; }

.shelf-wrap { padding-top: 2.6rem; }

@media (max-width: 1020px) { .shelf { grid-template-columns: repeat(2, 1fr); row-gap: 4rem; } }
@media (max-width: 560px) {
  .shelf { grid-template-columns: 1fr; row-gap: 4.2rem; }
  .book-card .cover { width: 62%; }
}

/* --------------------------------------------------------------------------
   Faixa de citação
   -------------------------------------------------------------------------- */

.quote-band { text-align: center; padding: clamp(5rem, 12vw, 8rem) 0; overflow: hidden; }
.quote-band .statement {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.9rem, 5.2vw, 3.3rem);
  line-height: 1.2;
  color: var(--paper);
  max-width: 900px;
  margin: 0 auto 1.4rem;
}
.quote-band .statement em { color: var(--gold-2); }
.statement-sign {
  font-family: var(--font-type);
  font-size: .8rem; letter-spacing: .24em; text-transform: uppercase;
  color: var(--gold);
}
.statement-sign::before { content: "— "; }
.quote-band .big-mark {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -58%);
  font-family: var(--font-display); font-size: clamp(18rem, 40vw, 30rem); line-height: 1;
  color: rgba(201,151,79,.06); pointer-events: none; user-select: none;
}

/* --------------------------------------------------------------------------
   Sobre
   -------------------------------------------------------------------------- */

.about {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(2.5rem, 7vw, 6rem);
  align-items: start;
}
.portrait {
  position: relative;
  max-width: 420px;
  margin: 0 auto;
}
.portrait img {
  position: relative; z-index: 1;
  width: 100%;
  border-radius: 3px;
  filter: sepia(.18) saturate(.9) contrast(1.02);
  box-shadow: 0 20px 50px -20px rgba(42,36,29,.55);
}
.portrait::before {
  content: ""; position: absolute; inset: 18px -18px -18px 18px;
  border: 1px solid var(--gold); border-radius: 3px;
}
.portrait figcaption {
  margin-top: 2rem;
  font-family: var(--font-type);
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-soft); text-align: center;
}

.about-text h2 { font-size: clamp(2.3rem, 6vw, 3.4rem); }
.about-text .lead {
  font-family: var(--font-display);
  font-size: 1.5rem; line-height: 1.45; font-style: italic;
  color: var(--text);
}
.about-text .lead::first-letter {
  font-size: 3.6em; float: left; line-height: .8;
  padding: .08em .1em 0 0; color: var(--wine); font-style: normal; font-weight: 600;
}

.facts {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
  margin: 2rem 0 0; padding: 1.6rem 0 0;
  border-top: 1px solid rgba(42,36,29,.15);
}
.facts dt {
  font-family: var(--font-type); font-size: .7rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--wine);
}
.facts dd { margin: .2rem 0 0; font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; line-height: 1.25; }

@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; }
  .portrait { max-width: 300px; }
}
@media (max-width: 520px) { .facts { grid-template-columns: 1fr 1fr; } }

/* Linha do tempo */
.timeline {
  list-style: none; margin: clamp(3.5rem, 8vw, 5.5rem) auto 0; padding: 0;
  max-width: 820px; position: relative;
}
.timeline::before {
  content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px;
  background: linear-gradient(transparent, var(--gold) 8%, var(--gold) 92%, transparent);
}
.timeline li {
  position: relative;
  width: 50%;
  padding: 0 2.5rem 2.4rem 0;
  text-align: right;
}
.timeline li:nth-child(even) { margin-left: 50%; padding: 0 0 2.4rem 2.5rem; text-align: left; }
.timeline li::before {
  content: ""; position: absolute; top: .45rem; right: -6px;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--gold);
}
.timeline li:nth-child(even)::before { right: auto; left: -5px; }
.timeline time {
  font-family: var(--font-type); font-size: .76rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--wine);
}
.timeline h3 { font-size: 1.45rem; margin: .15rem 0 .3rem; }
.timeline p { font-size: .95rem; color: var(--text-soft); margin: 0; }

@media (max-width: 640px) {
  .timeline::before { left: 6px; }
  .timeline li, .timeline li:nth-child(even) {
    width: 100%; margin-left: 0; padding: 0 0 2rem 2.2rem; text-align: left;
  }
  .timeline li::before, .timeline li:nth-child(even)::before { left: 1px; right: auto; }
}

/* --------------------------------------------------------------------------
   Além das páginas
   -------------------------------------------------------------------------- */

.extras {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: rgba(201,151,79,.18);
  border: 1px solid rgba(201,151,79,.18);
  border-radius: 6px; overflow: hidden;
}
.extra {
  background: var(--ink-2);
  padding: 2rem 1.6rem;
  transition: background-color .3s;
}
.extra:hover { background: var(--ink-3); }
.extra svg { width: 30px; height: 30px; color: var(--gold); margin-bottom: 1rem; }
.extra h3 { font-size: 1.4rem; color: var(--paper); margin-bottom: .35rem; }
.extra p { font-size: .92rem; color: #a99f90; margin: 0; line-height: 1.6; }

@media (max-width: 960px) { .extras { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .extras { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Perguntas frequentes
   -------------------------------------------------------------------------- */

.faq { max-width: 780px; margin: 0 auto; }
.faq details {
  border-bottom: 1px solid rgba(42,36,29,.15);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.3rem 0;
  font-family: var(--font-display);
  font-size: 1.35rem; font-weight: 600; line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-family: var(--font-type); font-size: 1.4rem; color: var(--wine);
  transition: transform .3s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--text-soft); padding-bottom: .6rem; }
.faq details a { color: var(--wine); }

/* --------------------------------------------------------------------------
   Contato
   -------------------------------------------------------------------------- */

.contact { text-align: center; }
.contact h2 { font-size: clamp(2.4rem, 7vw, 4.2rem); color: var(--paper); }
.contact .intro { color: #b6ac9c; max-width: 52ch; margin: 0 auto 2.2rem; }

.mail-link {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 5vw, 2.4rem);
  font-style: italic;
  color: var(--gold-2);
  text-decoration: none;
  border-bottom: 1px solid rgba(201,151,79,.4);
  padding-bottom: .15rem;
  word-break: break-all;
  transition: color .25s, border-color .25s;
}
.mail-link:hover { color: var(--paper); border-color: var(--paper); }

.socials {
  list-style: none; padding: 0; margin: 2.8rem 0 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem;
}
.socials a {
  display: inline-flex; align-items: center; gap: .6rem;
  min-height: 48px; padding: .6rem 1.15rem;
  border: 1px solid rgba(217,208,193,.2); border-radius: 999px;
  color: var(--text-light); text-decoration: none;
  font-family: var(--font-type); font-size: .78rem; letter-spacing: .1em;
  transition: border-color .25s, color .25s, background-color .25s;
}
.socials a:hover { border-color: var(--gold); color: var(--gold-2); background: rgba(201,151,79,.06); }
.socials svg { width: 18px; height: 18px; }

/* --------------------------------------------------------------------------
   Rodapé
   -------------------------------------------------------------------------- */

.site-footer {
  background: #0c0d11;
  color: #82796c;
  font-size: .88rem;
  padding: 2.4rem 0;
  border-top: 1px solid rgba(201,151,79,.14);
}
.site-footer .container {
  display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: center;
}
.site-footer a { color: #b6ac9c; text-decoration: none; }
.site-footer a:hover { color: var(--gold-2); }
.site-footer nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 1.4rem; }

@media (max-width: 640px) { .site-footer .container { flex-direction: column; text-align: center; } }

/* --------------------------------------------------------------------------
   Página de livro
   -------------------------------------------------------------------------- */

.book-hero {
  padding: calc(var(--header-h) + clamp(2.5rem, 7vw, 5rem)) 0 clamp(3.5rem, 8vw, 6rem);
  background:
    radial-gradient(ellipse 55% 60% at 25% 40%, rgba(201,151,79,.18), transparent 70%),
    linear-gradient(180deg, #0e1015, var(--ink));
  color: var(--text-light);
}
.book-hero .featured h1 {
  color: var(--paper);
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  margin-bottom: .15em;
}
.book-hero .featured .subtitle { color: #b6ac9c; }
.book-hero .book-meta { color: var(--gold); }
.book-hero p { color: #cfc6b7; }

.breadcrumb {
  font-family: var(--font-type); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: 1.4rem; color: #8a8072;
}
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.breadcrumb li + li::before { content: "/"; margin-right: .5rem; color: var(--gold); }
.breadcrumb a { text-decoration: none; color: #b6ac9c; }
.breadcrumb a:hover { color: var(--gold-2); }
@media (max-width: 760px) { .breadcrumb ol { justify-content: center; } }

.details-grid {
  display: grid; grid-template-columns: 1.4fr .6fr; gap: clamp(2rem, 6vw, 5rem);
}
.details-grid h2 { font-size: clamp(2rem, 5vw, 2.8rem); }
.spec {
  background: var(--paper-3); border: 1px solid rgba(42,36,29,.08); border-radius: 6px;
  padding: 1.6rem;
  align-self: start;
}
.spec dl { margin: 0; }
.spec dt {
  font-family: var(--font-type); font-size: .7rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--wine); margin-top: 1rem;
}
.spec dt:first-child { margin-top: 0; }
.spec dd { margin: .15rem 0 0; font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; }

.notice {
  margin-top: 2rem; padding: 1rem 1.2rem;
  border-left: 3px solid var(--wine);
  background: rgba(123,45,52,.06);
  font-size: .92rem; color: var(--text-soft);
}
.notice p { margin: 0; }

@media (max-width: 860px) { .details-grid { grid-template-columns: 1fr; } }

.more-books {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.more-books a {
  display: flex; gap: 1rem; align-items: center;
  text-decoration: none; padding: .9rem;
  border-radius: 6px; border: 1px solid rgba(42,36,29,.08); background: var(--paper-3);
  transition: transform .3s, box-shadow .3s;
}
.more-books a:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -22px rgba(42,36,29,.5); }
.more-books img { width: 64px; aspect-ratio: 2/3; object-fit: cover; border-radius: 2px; box-shadow: 0 6px 14px -6px rgba(0,0,0,.5); }
.more-books strong { display: block; font-family: var(--font-display); font-size: 1.3rem; line-height: 1.15; }
.more-books span { font-family: var(--font-type); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--wine); }
@media (max-width: 860px) { .more-books { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Animações de entrada (só com JS ativo)
   -------------------------------------------------------------------------- */

.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-visible { opacity: 1; transform: none; }

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