:root {
  --ink: #1C2530;
  --sky-deep: #16304E;
  --sky-mid: #3E6690;
  --horizon: #8FB3D1;
  --paper: #FAF6ED;
  --paper-rose: #F7EAEE;
  --gold: #C9A24B;
  --petal: #B96C87;
  --petal-light: #EBBFCD;
  --rule: rgba(28, 37, 48, 0.14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Libre Baskerville', Georgia, serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.7;
  font-size: 17px;
}

img { max-width: 100%; display: block; }

h1, h2, .display, .cd-num, .flip-face {
  font-family: 'Cormorant Garamond', serif;
  margin: 0;
  font-weight: 600;
}

section {
  padding: 96px 24px;
  max-width: 720px;
  margin: 0 auto;
}

a { color: inherit; }

.eyebrow {
  font-family: 'Libre Baskerville', serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sky-deep);
  margin-bottom: 16px;
}

.eyebrow.on-dark { color: var(--gold); }

.rule {
  border: none;
  height: 1px;
  background: var(--rule);
  margin: 0;
}

/* ---------- petal signature (falling / resting motif) ---------- */

.petal {
  display: block;
  fill: var(--petal);
}

.petal-field {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.petal-field .petal {
  position: absolute;
  top: 0;
  width: 22px;
  fill: var(--petal-light);
  opacity: 0;
  animation: drift linear infinite;
}

.petal-field .petal:nth-child(1) { left: 8%;  width: 20px; animation-duration: 24s; animation-delay: 0s; }
.petal-field .petal:nth-child(2) { left: 22%; width: 15px; animation-duration: 30s; animation-delay: 4s; }
.petal-field .petal:nth-child(3) { left: 38%; width: 26px; animation-duration: 26s; animation-delay: 9s; }
.petal-field .petal:nth-child(4) { left: 56%; width: 17px; animation-duration: 32s; animation-delay: 2s; }
.petal-field .petal:nth-child(5) { left: 74%; width: 21px; animation-duration: 27s; animation-delay: 13s; }
.petal-field .petal:nth-child(6) { left: 90%; width: 16px; animation-duration: 34s; animation-delay: 6s; }

@keyframes drift {
  0%   { opacity: 0; transform: translate(0, 0) rotate(0deg); }
  6%   { opacity: 0.85; }
  90%  { opacity: 0.85; }
  100% { opacity: 0; transform: translate(30px, 950px) rotate(320deg); }
}

.divider {
  position: relative;
  max-width: none;
  padding: 0;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.divider hr { width: min(560px, 80%); }

.divider .petal { position: absolute; opacity: 0.8; }
.divider .petal:nth-child(2) { left: 32%; top: 58%; width: 12px; transform: rotate(-20deg); }
.divider .petal:nth-child(3) { left: 50%; top: 40%; width: 15px; transform: rotate(40deg); }
.divider .petal:nth-child(4) { left: 66%; top: 62%; width: 10px; transform: rotate(-60deg); }

.petal-ground {
  position: relative;
  height: 30px;
  max-width: none;
}

.petal-ground .petal { position: absolute; opacity: 0.7; }
.petal-ground .petal:nth-child(1) { left: 6%;  top: 6px;  width: 12px; transform: rotate(12deg); }
.petal-ground .petal:nth-child(2) { left: 18%; top: 0;    width: 16px; transform: rotate(-30deg); }
.petal-ground .petal:nth-child(3) { left: 34%; top: 10px; width: 10px; transform: rotate(70deg); }
.petal-ground .petal:nth-child(4) { left: 52%; top: 2px;  width: 14px; transform: rotate(-10deg); }
.petal-ground .petal:nth-child(5) { left: 68%; top: 8px;  width: 11px; transform: rotate(45deg); }
.petal-ground .petal:nth-child(6) { left: 82%; top: 0;    width: 15px; transform: rotate(-55deg); }
.petal-ground .petal:nth-child(7) { left: 94%; top: 6px;  width: 10px; transform: rotate(20deg); }

@media (prefers-reduced-motion: reduce) {
  .petal-field .petal { animation: none; opacity: 0.4; top: 20%; }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  background:
    radial-gradient(120% 90% at 50% 0%, var(--sky-mid) 0%, var(--sky-deep) 62%, #0F2237 100%);
  color: var(--paper);
  text-align: center;
  padding: 88px 24px 48px;
  max-width: none;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero > * { position: relative; }
.hero > .petal-field { position: absolute; }

.hero-intro {
  opacity: 0;
  transform: translateY(16px);
  animation: rise 0.9s ease forwards;
}

.hero-intro:nth-of-type(1) { animation-delay: 0.05s; }
.hero-intro:nth-of-type(2) { animation-delay: 0.2s; }
.hero-intro:nth-of-type(3) { animation-delay: 0.35s; }
.hero-intro:nth-of-type(4) { animation-delay: 0.5s; }

@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-intro { animation: none; opacity: 1; transform: none; }
}

.hero h1 {
  font-size: clamp(48px, 13vw, 92px);
  color: var(--gold);
  line-height: 0.98;
  letter-spacing: -0.01em;
}

.hero .subtitle {
  font-style: italic;
  font-size: clamp(17px, 3vw, 20px);
  margin-top: 18px;
  opacity: 0.92;
  max-width: 32ch;
  margin-left: auto;
  margin-right: auto;
}

.hero .author {
  margin-top: 10px;
  font-family: 'Libre Baskerville', serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.85;
}

/* framed cover — tablet/e-reader device look */
.cover-frame {
  width: min(240px, 58vw);
  margin: 40px auto 0;
  padding: 12px;
  background: #F1EEE6;
  border-radius: 22px;
  box-shadow:
    0 30px 60px rgba(5, 15, 25, 0.45),
    inset 0 0 0 1px rgba(0,0,0,0.05);
}

.cover-frame .screen {
  width: 100%;
  aspect-ratio: 1037 / 1600;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.12);
}

.cover-frame .screen img { width: 100%; height: 100%; object-fit: cover; }

.cover-frame .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(0,0,0,0.15);
  margin: 10px auto 0;
}

.cover-frame figcaption {
  margin-top: 6px;
  text-align: center;
  font-family: 'Libre Baskerville', serif;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.55;
}

/* countdown */
.countdown-label {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.8;
  margin: 52px auto 24px;
  max-width: 420px;
}

.countdown-label::before,
.countdown-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,162,75,0.6));
}

.countdown-label::after { background: linear-gradient(90deg, rgba(201,162,75,0.6), transparent); }

.countdown {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 14px;
  flex-wrap: wrap;
  animation: countdown-pulse 3.2s ease-in-out infinite;
}

.countdown .unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 108px;
  padding: 20px 10px 16px;
  background: linear-gradient(160deg, rgba(201,162,75,0.16) 0%, rgba(201,162,75,0.05) 100%);
  border: 1px solid rgba(201,162,75,0.45);
  border-radius: 14px;
  box-shadow: 0 0 28px rgba(201,162,75,0.12);
}

.flip-card {
  position: relative;
  width: 100%;
  height: 1em;
  font-size: clamp(48px, 10vw, 76px);
  line-height: 1;
  perspective: 320px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.45, 0, 0.55, 1);
}

.flip-card-inner.flipped { transform: rotateX(-180deg); }
.flip-card-inner.no-transition { transition: none; }

.flip-face {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  backface-visibility: hidden;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 18px rgba(201,162,75,0.35);
}

.flip-face.back { transform: rotateX(180deg); }

@media (prefers-reduced-motion: reduce) {
  .flip-card-inner { transition: none; }
}

.countdown .unit-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-top: 8px;
}

@keyframes countdown-pulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.15); }
}

@media (prefers-reduced-motion: reduce) {
  .countdown { animation: none; }
}

/* cta pills */
.cta-row {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  margin-top: 40px;
}

@media (min-width: 520px) {
  .cta-row { flex-direction: row; justify-content: center; align-items: stretch; flex-wrap: wrap; }
}

.cta-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Libre Baskerville', serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.03em;
  padding: 15px 26px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.cta-pill svg { width: 18px; height: 18px; flex: none; }

.cta-pill:hover, .cta-pill:focus-visible { transform: translateY(-2px); }

.cta-pill:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.cta-pill.gold {
  background: var(--gold);
  color: var(--sky-deep);
  box-shadow: 0 12px 24px rgba(0,0,0,0.25);
}

.cta-pill.outline {
  background: transparent;
  color: var(--paper);
  border: 1px solid rgba(250,246,237,0.5);
}

.cta-pill.disabled {
  background: rgba(201,162,75,0.12);
  border: 1px solid rgba(201,162,75,0.4);
  color: var(--paper);
  font-size: 13px;
  font-weight: 400;
  font-style: italic;
  cursor: default;
  max-width: 280px;
  text-align: center;
}

.cta-pill.disabled svg { color: var(--gold); opacity: 0.9; }

/* ---------- generic sections ---------- */

.section-title {
  font-size: clamp(30px, 6vw, 40px);
  color: var(--ink);
  margin-bottom: 22px;
  line-height: 1.1;
}

.lead { font-size: 18px; }

.grid-asym {
  display: grid;
  gap: 40px;
  align-items: center;
}

@media (min-width: 760px) {
  section.wide { max-width: 920px; }
  .grid-asym { grid-template-columns: 1.1fr 0.9fr; gap: 56px; }
  .grid-asym.reverse { grid-template-columns: 0.9fr 1.1fr; }
  .grid-asym.reverse > :first-child { order: 2; }
}

.drop p:first-of-type::first-letter {
  font-family: 'Cormorant Garamond', serif;
  font-size: 4.2em;
  float: left;
  line-height: 0.8;
  padding: 0.05em 0.08em 0 0;
  color: var(--gold-deep, var(--sky-deep));
  font-weight: 600;
}

.tower-art {
  opacity: 0.14;
  color: var(--sky-deep);
}

.tower-art svg { width: 100%; height: auto; }

.mockup-photo {
  width: min(280px, 85%);
  margin: 0 auto;
}

.mockup-photo img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 24px 34px rgba(22, 48, 78, 0.25));
}

/* trecho real — versos tipografados */
.poems {
  display: grid;
  gap: 28px;
  margin-top: 16px;
}

@media (min-width: 760px) {
  .poems { grid-template-columns: 1fr 1fr; }
}

.poem-card {
  position: relative;
  padding: 40px 28px 26px;
  background: #FFFFFF;
  border-left: 3px solid var(--gold);
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(28, 37, 48, 0.07);
}

.poem-card::before {
  content: "\201C";
  position: absolute;
  left: 18px;
  top: -6px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 64px;
  color: var(--petal);
  opacity: 0.4;
}

.poem-card p {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 24px;
  line-height: 1.5;
  color: var(--ink);
  white-space: pre-line;
  margin: 0 0 14px;
}

.poem-card cite {
  font-style: normal;
  font-family: 'Libre Baskerville', serif;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sky-deep);
  opacity: 0.75;
}

/* bastidores */
.backstage-section { background: var(--paper-rose); }

.pull-quote {
  position: relative;
  margin: 28px 0;
  padding-left: 28px;
}

.pull-quote::before {
  content: "\201C";
  position: absolute;
  left: -10px;
  top: -28px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 88px;
  color: var(--petal);
  opacity: 0.6;
}

.pull-quote p {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(22px, 4vw, 28px);
  line-height: 1.35;
  color: var(--ink);
  margin: 0;
}

.pull-quote cite {
  display: block;
  margin-top: 14px;
  font-style: normal;
  font-family: 'Libre Baskerville', serif;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sky-deep);
  opacity: 0.8;
}

.backstage-collage {
  position: relative;
  width: clamp(180px, 55vw, 230px);
  height: clamp(180px, 55vw, 230px);
  margin: 0 auto;
}

.collage-photo {
  position: absolute;
  width: 76%;
  height: 76%;
  border-radius: 14px;
  overflow: hidden;
  border: 5px solid var(--paper);
  box-shadow: 0 14px 30px rgba(0,0,0,0.18);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.collage-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; }

.collage-photo--back { top: 0; left: 0; transform: rotate(-8deg); z-index: 1; }
.collage-photo--front { bottom: 0; right: 0; transform: rotate(6deg); z-index: 2; }

.collage-photo--back:hover { transform: rotate(-3deg) scale(1.05); z-index: 3; box-shadow: 0 22px 40px rgba(0,0,0,0.28); }
.collage-photo--front:hover { transform: rotate(3deg) scale(1.05); z-index: 3; box-shadow: 0 22px 40px rgba(0,0,0,0.28); }

.caption {
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.04em;
  opacity: 0.7;
  margin-top: 12px;
}

/* sobre o autor */
.author-photo {
  width: 100%;
  max-width: 220px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  margin: 0 auto;
  border: 1px solid var(--rule);
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.author-photo img { width: 100%; height: 100%; object-fit: cover; }

.author-block .books {
  font-family: 'Libre Baskerville', serif;
  font-size: 13px;
  letter-spacing: 0.02em;
  opacity: 0.7;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
}

/* cta final */
.final-cta {
  position: relative;
  background:
    linear-gradient(180deg, rgba(15,34,55,0.90) 0%, rgba(15,34,55,0.96) 100%),
    url("../img/capa.jpeg") center 30% / cover no-repeat;
  color: var(--paper);
  text-align: center;
  padding: 96px 24px;
  max-width: none;
  overflow: hidden;
}

.final-cta h2 { color: var(--gold); font-size: clamp(32px, 7vw, 48px); margin-top: 10px; }
.final-cta .lead { opacity: 0.9; margin-top: 14px; }

/* footer */
footer {
  text-align: center;
  padding: 32px 20px 56px;
  font-size: 13px;
  opacity: 0.65;
  max-width: none;
}

.tower {
  width: 38px;
  margin: 0 auto;
  color: var(--ink);
}

.tower svg { width: 100%; fill: currentColor; }

footer .tower { margin-bottom: 18px; }

.hero .tower, .final-cta .tower {
  color: var(--paper);
  opacity: 0.6;
  margin-top: 64px;
}

.back-to-top {
  color: var(--sky-deep);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

/* ---------- scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
    -webkit-mask-image: none;
    mask-image: none;
    transition: none;
  }
}
