:root {
  --bg: #100c09;
  --bg-soft: #17100c;
  --panel: #1b130e;
  --panel-2: #211711;
  --text: #f5eadc;
  --muted: #c9b9a6;
  --faint: #8f7c69;
  --gold: #c29a61;
  --gold-light: #e6c792;
  --line: rgba(230, 199, 146, .16);
  --shadow: 0 30px 80px rgba(0, 0, 0, .46);
  --radius: 24px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-bottom: 88px; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 75% 5%, rgba(136, 82, 35, .15), transparent 34rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  transform: translateY(-150%);
  background: #fff;
  color: #111;
  padding: 10px 14px;
  z-index: 9999;
  border-radius: 8px;
}
.skip-link:focus { transform: translateY(0); }

.container { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; }
.narrow { width: min(calc(100% - 40px), 820px); margin: 0 auto; }

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  padding: 26px 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { text-decoration: none; display: inline-flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: Georgia, "Times New Roman", serif; font-size: 18px; letter-spacing: .02em; }
.brand-role { margin-top: 5px; color: var(--faint); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; }
.header-link { color: var(--muted); font-size: 14px; text-decoration: none; border-bottom: 1px solid transparent; }
.header-link:hover { color: var(--gold-light); border-color: var(--gold); }

.hero {
  min-height: 100svh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 130px 0 80px;
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(16,12,9,.99) 0%, rgba(16,12,9,.94) 38%, rgba(16,12,9,.58) 70%, rgba(16,12,9,.76) 100%),
    url('capa-o-que-volta.png') center 37% / cover no-repeat;
  filter: saturate(.7) blur(10px);
  transform: scale(1.06);
  opacity: .30;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16,12,9,.08), var(--bg) 100%);
}
.hero-glow {
  position: absolute;
  right: -12vw;
  top: -18vw;
  width: 58vw;
  height: 58vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(194,154,97,.18), transparent 64%);
  z-index: 1;
}
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  align-items: center;
  gap: clamp(42px, 7vw, 100px);
}
.eyebrow, .section-kicker {
  margin: 0 0 18px;
  color: var(--gold-light);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}
h1, h2, h3, blockquote { font-family: Georgia, "Times New Roman", serif; }
h1 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(46px, 6.1vw, 86px);
  line-height: .98;
  letter-spacing: -.035em;
  font-weight: 500;
}
h1 em { color: var(--gold-light); font-weight: 400; }
.hero-lead {
  margin: 30px 0 0;
  max-width: 680px;
  color: #ddcdbb;
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.75;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 22px;
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.button:hover { transform: translateY(-1px); }
.button-primary {
  background: linear-gradient(135deg, #d4ae74, #aa7c43);
  color: #130d08;
  box-shadow: 0 10px 30px rgba(170,124,67,.18);
}
.button-primary:hover { box-shadow: 0 15px 36px rgba(170,124,67,.28); }
.button-ghost { border-color: rgba(230,199,146,.28); background: rgba(255,255,255,.025); color: var(--text); }
.button-ghost:hover { border-color: rgba(230,199,146,.55); background: rgba(230,199,146,.06); }
.button-wide { width: 100%; }
.button-large { min-height: 58px; padding-inline: 30px; font-size: 15px; }
.book-facts { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 9px 18px; color: var(--faint); font-size: 12px; }
.book-facts span { position: relative; }
.book-facts span:not(:last-child)::after { content: "•"; position: absolute; right: -12px; color: rgba(230,199,146,.35); }

.hero-art { display: flex; justify-content: center; }
.book-stage { position: relative; width: min(360px, 84vw); perspective: 1200px; }
.book-shadow {
  position: absolute;
  inset: auto 5% -6% 14%;
  height: 12%;
  background: rgba(0,0,0,.58);
  filter: blur(20px);
  transform: rotate(-5deg);
}
.book-cover {
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: 3px 8px 8px 3px;
  box-shadow: var(--shadow), -1px 0 rgba(255,255,255,.16) inset;
  transform: rotateY(-7deg) rotateX(1deg) rotateZ(1deg);
  transform-origin: left center;
}

.section { padding: clamp(82px, 10vw, 140px) 0; }
.story-section { background: linear-gradient(180deg, var(--bg), #130d0a); }
.section h2 {
  margin: 0;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.05;
  letter-spacing: -.025em;
  font-weight: 500;
}
.story-section p:not(.section-kicker) { color: var(--muted); font-size: clamp(17px, 1.5vw, 20px); margin: 26px 0 0; }
.story-section p + p { margin-top: 18px; }

.themes-section { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.section-heading { max-width: 760px; margin-bottom: 48px; }
.theme-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.theme-card {
  min-height: 330px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,.012));
  border-radius: var(--radius);
  padding: 30px;
  display: flex;
  flex-direction: column;
}
.theme-number { color: var(--gold); font-size: 12px; letter-spacing: .15em; }
.theme-card h3 { margin: auto 0 8px; font-size: 34px; font-weight: 500; }
.theme-card p { margin: 0; color: var(--muted); }

.pullquote-section { padding: clamp(90px, 12vw, 170px) 0; background: #0c0907; text-align: center; }
blockquote { margin: 0; }
blockquote p { margin: 0; color: var(--gold-light); font-size: clamp(42px, 7vw, 88px); line-height: 1; letter-spacing: -.035em; }

.audience-section { background: #130d0a; }
.audience-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(50px, 8vw, 110px); align-items: start; }
.audience-list { border-top: 1px solid var(--line); }
.audience-list > div { display: grid; grid-template-columns: 50px 1fr; gap: 16px; padding: 23px 0; border-bottom: 1px solid var(--line); }
.audience-list span { color: var(--gold); font-size: 12px; letter-spacing: .12em; }
.audience-list p { margin: 0; color: var(--muted); font-size: 17px; }

.edition-section { background: var(--bg); }
.edition-card {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 60px;
  padding: clamp(34px, 5vw, 62px);
  background:
    linear-gradient(135deg, rgba(194,154,97,.075), transparent 45%),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: 30px;
}
.edition-subtitle { margin: 14px 0 0; color: var(--muted); font-size: 18px; }
.edition-details { list-style: none; padding: 0; margin: 30px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px 20px; color: var(--muted); }
.edition-details li::before { content: "•"; color: var(--gold); margin-right: 9px; }
.edition-cta { align-self: center; padding: 28px; background: rgba(0,0,0,.17); border: 1px solid rgba(230,199,146,.11); border-radius: 22px; }
.edition-cta p { margin: 0 0 18px; color: var(--muted); }
.edition-cta small { display: block; margin-top: 13px; color: var(--faint); line-height: 1.5; }

.author-section { border-top: 1px solid var(--line); background: var(--bg-soft); }
.author-grid { display: grid; grid-template-columns: .55fr 1.45fr; gap: clamp(50px, 9vw, 120px); align-items: center; }
.author-monogram {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: radial-gradient(circle, rgba(194,154,97,.09), transparent 65%);
  color: rgba(230,199,146,.62);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 7vw, 92px);
  letter-spacing: -.04em;
}
.author-copy p:not(.section-kicker) { color: var(--muted); font-size: 17px; }
.text-link { display: inline-block; margin-top: 8px; color: var(--gold-light); text-decoration: none; border-bottom: 1px solid rgba(230,199,146,.3); }
.text-link:hover { border-color: var(--gold-light); }

.final-cta { padding: clamp(110px, 14vw, 190px) 0; text-align: center; background: linear-gradient(180deg, #0f0b08, #160e0a); border-top: 1px solid var(--line); }
.final-cta h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(44px, 6vw, 78px); line-height: 1; font-weight: 500; letter-spacing: -.035em; }
.final-cta p:not(.section-kicker) { max-width: 650px; margin: 24px auto 30px; color: var(--muted); font-size: 18px; }

.site-footer { padding: 34px 0 110px; border-top: 1px solid var(--line); background: #0b0806; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-footer strong { font-family: Georgia, "Times New Roman", serif; font-weight: 500; }
.site-footer p { margin: 4px 0 0; color: var(--faint); font-size: 12px; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer nav a { color: var(--faint); font-size: 12px; text-decoration: none; }
.site-footer nav a:hover { color: var(--gold-light); }

.mobile-buy-bar { display: none; }
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  width: min(calc(100% - 32px), 760px);
  z-index: 100;
  padding: 18px;
  background: rgba(24,17,12,.98);
  border: 1px solid rgba(230,199,146,.2);
  border-radius: 20px;
  box-shadow: 0 24px 80px rgba(0,0,0,.5);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; color: var(--muted); font-size: 13px; }
.cookie-actions { display: flex; gap: 8px; }
.cookie-actions .button { min-height: 42px; padding: 8px 15px; font-size: 12px; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 4px; }

@media (max-width: 920px) {
  .hero { min-height: auto; padding-top: 124px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { order: 1; }
  .hero-art { order: 2; }
  .book-stage { width: min(330px, 76vw); }
  .theme-grid { grid-template-columns: 1fr; }
  .theme-card { min-height: 240px; }
  .audience-grid, .author-grid { grid-template-columns: 1fr; }
  .author-monogram { width: min(300px, 72vw); margin: 0 auto; }
  .edition-card { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .container, .narrow { width: min(calc(100% - 28px), var(--max)); }
  .site-header { padding-top: 18px; }
  .brand-name { font-size: 16px; }
  .header-link { font-size: 12px; }
  .hero { padding: 110px 0 104px; }
  .hero::before { background-position: 61% 30%; opacity: .22; }
  h1 { font-size: clamp(43px, 13vw, 62px); }
  .hero-lead { font-size: 16px; line-height: 1.68; }
  .hero-actions { display: grid; }
  .button { width: 100%; }
  .book-facts { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px 14px; }
  .book-facts span::after { display: none; }
  /* Reserva uma área de respiro extra para a CTA fixa, evitando que o
     último bloco de cada seção fique visualmente encoberto no iPhone. */
  .section { padding: 80px 0 112px; }
  .section h2 { font-size: 42px; }
  .theme-card { padding: 24px; }
  .edition-card { padding: 24px; border-radius: 24px; }
  .edition-details { grid-template-columns: 1fr; }
  .edition-cta { padding: 20px; }
  .audience-list > div { grid-template-columns: 36px 1fr; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .site-footer { padding-bottom: calc(128px + env(safe-area-inset-bottom, 0px)); }
  .mobile-buy-bar {
    position: fixed;
    z-index: 60;
    left: 12px;
    right: 12px;
    bottom: max(7px, env(safe-area-inset-bottom, 0px));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 8px 7px 13px;
    background: rgba(20,15,11,.93);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(230,199,146,.18);
    border-radius: 16px;
    box-shadow: 0 14px 48px rgba(0,0,0,.42);
  }
  .mobile-buy-bar > div { min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
  .mobile-buy-bar strong { font-family: Georgia, "Times New Roman", serif; font-size: 13px; }
  .mobile-buy-bar span { color: var(--faint); font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mobile-buy-bar .button { width: auto; min-height: 38px; padding: 7px 15px; font-size: 11px; border-radius: 999px; }
  .cookie-banner { bottom: calc(74px + env(safe-area-inset-bottom, 0px)); grid-template-columns: 1fr; }
  .cookie-actions { display: grid; grid-template-columns: 1fr 1fr; }
}

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