/* ==================
   RESET & BASE
   ================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "ivypresto-headline", serif;
  font-weight: 100;
  color: #222;
  background: #000;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ==================
   ANNOUNCEMENT BAR
   ================== */
.announcement-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  padding: 16.8px 3rem 8.8px;
  font-family: "ivypresto-display", serif;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: #fff;
  transform: translateY(0);
  transition: transform 0.3s ease;
}

.announcement-bar--hidden {
  transform: translateY(-100%);
}

.announcement-cta {
  background: #c9745a;
  color: #fff;
  border-radius: 20px;
  padding: 0.3rem 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  font-family: "ivyepic", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  transition: background 0.2s ease;
}

.announcement-cta:hover {
  background: #a85a42;
}

/* ==================
   HERO SECTION
   ================== */
.hero {
  position: relative;
  z-index: 1;
  background-color: #000;
  overflow: hidden;
  border-radius: 35px;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 85vh;
  margin-bottom: 16px; /* reveals the rounded bottom corners against the black body bg */
  padding-top: 2.2rem;
}

/* Groups header + book info so they can be vertically
   centered together in the space left below the nav */
.hero-content {
  flex: 1;
  min-height: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Looping background video */
.hero-video {
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 10px;
  right: 10px;
  width: calc(100% - 20px);
  height: calc(100% - 20px);
  object-fit: cover;
  border-radius: 25px;
  z-index: 0;
  pointer-events: none;
}

/* ==================
   HERO NAV
   ================== */
.hero-nav {
  position: relative;
  z-index: 2;
  width: 100%;
  flex-shrink: 0;
  padding: 0 2rem;
  margin-bottom: 50px;
  display: flex;
  justify-content: center;
}

.hero-nav ul {
  list-style: none;
  display: flex;
  gap: 2.4rem;
}

.hero-nav a {
  font-family: "ivypresto-display", serif;
  font-weight: 400;
  font-style: normal;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  color: #f2bcb2;
}

.hero-nav a.nav-italic {
  font-style: italic;
}

.hero-nav a:hover {
  text-decoration: underline;
}

/* ==================
   AUTHOR NAME
   ================== */
.author-name {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 0.88;
  font-family: "ivyepic", sans-serif;
  font-weight: 900;
  font-style: normal;
  font-size: clamp(4.5rem, 12vw, 11rem);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: #d4307a;
  margin-top: 0.5rem;
  margin-bottom: -1.5rem; /* overlaps book row */
  user-select: none;
  /* Start hidden for animation */
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.9s ease 0.1s, transform 0.9s ease 0.1s;
}

.author-name.visible {
  opacity: 1;
  transform: translateY(0);
}

.author-name a {
  display: contents;
  pointer-events: auto;
  cursor: pointer;
}

/* Centered in .hero-content with the nav and book row */
.hero-content .author-name {
  flex-shrink: 0;
  margin-top: 0;
  margin-bottom: 2rem;
  color: #fff;
}

.hero-content .book-title,
.hero-content .book-teaser {
  color: #fff;
}

/* ==================
   SCROLL INDICATOR
   ================== */
.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 1.75rem;
  transform: translateX(-50%);
  z-index: 3;
  background: none;
  border: none;
  cursor: pointer;
  color: #5a3020;
  opacity: 0.55;
  padding: 0.4rem;
  transition: opacity 0.4s ease;
}

.scroll-indicator:hover {
  opacity: 0.85;
}

.scroll-indicator.scroll-indicator--hidden {
  opacity: 0;
  pointer-events: none;
}

.scroll-indicator svg {
  width: 26px;
  height: 26px;
  display: block;
  animation: scroll-bounce 1.8s ease-in-out infinite;
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ==================
   HERO BOOK ROW
   ================== */
.hero-book-row {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  padding: 0 2rem;
  max-width: 900px;
  width: 100%;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.9s ease 0.4s, transform 0.9s ease 0.4s;
}

.hero-book-row.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Book Cover */
.hero-cover img {
  width: clamp(140px, 20vw, 220px);
  height: auto;
  display: block;
  filter: drop-shadow(8px 14px 22px rgba(80, 30, 10, 0.35));
  transition: transform 0.4s ease, filter 0.4s ease;
}

.hero-cover img:hover {
  transform: translateY(-4px);
  filter: drop-shadow(10px 18px 28px rgba(80, 30, 10, 0.45));
}

/* Book Info */
.hero-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 340px;
}

.book-title {
  font-family: "ivyepic", sans-serif;
  font-weight: 700;
  font-style: normal;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #3a1e0e;
  text-align: center;
}

.book-teaser {
  font-family: "ivypresto-display", serif;
  font-weight: 400;
  font-style: normal;
  font-size: 0.82rem;
  line-height: 1.65;
  color: #5a3020;
  text-align: center;
}

/* Retailer Grid */
.retailer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.retailer-btn {
  display: block;
  border: none;
  border-radius: 6px;
  padding: 0.45rem 0.8rem;
  text-align: center;
  font-family: "ivypresto-display", serif;
  font-style: italic;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: #000;
  background: rgba(255, 255, 255, 0.6);
  transition: background 0.2s ease, color 0.2s ease;
}

.retailer-btn:hover {
  background: #c08070;
  color: #fff;
}

/* Last button spans full width if odd count */
.retailer-grid .retailer-btn:last-child:nth-child(odd) {
  grid-column: span 2;
}

/* ==================
   READER QUOTE TICKER
   ================== */
.reader-ticker {
  width: 100%;
  flex-shrink: 0;
  overflow: hidden;
  margin-top: calc(1.5rem + 20px);
  margin-bottom: 2rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.reader-ticker-track {
  display: flex;
  width: max-content;
  gap: 2.5rem;
  animation: ticker-scroll 52s linear infinite;
}

.reader-ticker:hover .reader-ticker-track {
  animation-play-state: paused;
}

.ticker-quote {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  width: 200px;
  flex-shrink: 0;
  white-space: normal;
  font-family: "ivypresto-display", serif;
  font-style: italic;
  font-weight: 400;
  font-size: 0.8rem;
  line-height: 1.3;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.8);
}

.ticker-quote em {
  font-style: normal;
  font-family: "ivyepic", sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ==================
   SYNOPSIS SECTION
   ================== */
.synopsis-section {
  background: #fff;
  padding: 7rem 2rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.synopsis-inner {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  padding: 3.5rem 4rem;
}

.synopsis-heading {
  font-family: "ivypresto-display", serif;
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.2;
  color: #1a1a1a;
  margin-bottom: 0.4rem;
}

.synopsis-inner p {
  font-family: "ivypresto-headline", serif;
  font-weight: 100;
  font-size: 0.95rem;
  line-height: 1.85;
  color: #444;
  letter-spacing: 0.01em;
}

/* ==================
   ABOUT SECTION
   ================== */
.about-section {
  background: #faf8f5;
  padding: 7rem 2rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-inner {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 4rem;
}

.about-photo img {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  filter: grayscale(100%);
  flex-shrink: 0;
}

.about-bio p {
  font-family: "ivypresto-headline", serif;
  font-weight: 100;
  font-size: 0.95rem;
  line-height: 1.85;
  color: #333;
}

/* ==================
   FOOTER
   ================== */
.site-footer {
  background: #111;
  padding: 3.5rem 2rem;
  display: flex;
  justify-content: center;
  gap: 5rem;
  flex-wrap: wrap;
}

.footer-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: "ivyepic", sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #fff;
  transition: opacity 0.2s;
}

.footer-link:hover {
  opacity: 0.6;
}

.footer-icon {
  width: 48px;
  height: 48px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111;
  flex-shrink: 0;
}

.footer-icon svg {
  width: 22px;
  height: 22px;
}

/* ==================
   SCROLL REVEAL
   ================== */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children of about-inner */
.about-inner.visible .about-photo {
  transition-delay: 0s;
}
.about-inner.visible .about-bio {
  transition-delay: 0.15s;
}

/* ==================
   RESPONSIVE
   ================== */
@media (max-width: 680px) {
  .hero {
    height: auto;
    min-height: 85vh;
    overflow: visible;
    padding-bottom: 2rem;
  }

  .hero-content {
    gap: 2rem;
  }

  .hero-book-row {
    flex-direction: column;
    gap: 2rem;
  }

  .hero-info {
    align-items: center;
    text-align: center;
    max-width: 100%;
  }

  .hero-nav ul {
    gap: 1.2rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .about-inner {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }

  .site-footer {
    gap: 2.5rem;
  }
}
