/* ============================================================
   pages/home.css — Homepage-specific styles
   ============================================================ */

/* ============================================================
   HERO SECTION
   ============================================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    160deg,
    var(--predawn-blue) 0%,
    var(--dusk-charcoal) 100%
  );
  overflow: hidden;
  /* Remove the nav offset for the hero — it's full viewport */
  margin-top: calc(-1 * var(--nav-height));
  padding-top: var(--nav-height);
}

/* Background texture layer */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../../images/placeholders/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.12;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-xxl) var(--space-md);
  max-width: 800px;
  margin: 0 auto;
  gap: 0;
}

.hero__series-mark {
  font-family: var(--font-cinzel);
  font-weight: 400;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: var(--tracking-cinzel);
  color: var(--vellum);
  font-size: clamp(22px, 4vw, 52px);
  line-height: 1.1;
  margin-bottom: 16px;
}

.hero__rule {
  display: block;
  height: 1px;
  background: var(--frost-silver);
  border: none;
  width: 100%;
  margin-bottom: 24px;
  opacity: 0.6;
}

.hero__tagline {
  font-family: var(--font-fell);
  font-style: italic;
  font-size: clamp(14px, 2vw, 20px);
  color: var(--frost-silver);
  line-height: 1.5;
  margin-bottom: 32px;
}

.hero__cta {
  /* Uses .btn-primary */
}


/* ============================================================
   BOOK I PANEL (Section 1 below fold)
   ============================================================ */

.home-book-panel {
  background-color: var(--dusk-charcoal);
  padding: var(--space-xxl) 0;
}

@media (min-width: 768px) {
  .home-book-panel .grid-2col {
    align-items: center;
    gap: var(--space-xl);
  }
}


/* ============================================================
   NEWSLETTER CTA PANEL (Section 3)
   ============================================================ */

.home-newsletter-panel {
  background-color: var(--dusk-charcoal);
  padding: var(--space-xxl) 0;
  text-align: center;
}

.home-newsletter-panel .newsletter-heading {
  font-family: var(--font-cormorant);
  font-weight: 600;
  font-style: italic;
  font-size: 32px;
  color: var(--vellum);
  margin-bottom: var(--space-sm);
}

.home-newsletter-panel .newsletter-subhead {
  font-family: var(--font-jost);
  font-weight: 300;
  font-size: 16px;
  color: var(--ash-gray);
  margin-bottom: var(--space-lg);
}


/* ============================================================
   BLOG PREVIEW (Section 4)
   ============================================================ */

.home-blog-preview {
  background-color: var(--iron-dark);
  padding: var(--space-xxl) 0;
}

.home-blog-preview__heading {
  font-family: var(--font-cinzel);
  font-size: 11px;
  letter-spacing: var(--tracking-caps-lg);
  text-transform: uppercase;
  color: var(--ash-gray);
  text-align: center;
  margin-bottom: var(--space-lg);
}


/* ============================================================
   AUTHOR SECTION (Section 5)
   ============================================================ */

.home-author-panel {
  background-color: var(--iron-dark);
  padding: var(--space-xxl) 0;
}

.home-author-panel__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  justify-content: center;
}

.home-author-panel__eyebrow {
  font-family: var(--font-cinzel);
  font-size: 11px;
  letter-spacing: var(--tracking-caps-lg);
  text-transform: uppercase;
  color: var(--ash-gray);
}

.home-author-panel__bio {
  font-family: var(--font-palatino);
  font-size: 17px;
  line-height: 1.65;
  color: var(--vellum);
}

.home-author-panel__image {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

@media (min-width: 768px) {
  .home-author-panel .grid-2col {
    align-items: center;
  }
}
