/* =======================================================
   DARK BACKGROUND THEME VARIABLES
======================================================= */
.dark-background {
  --background-color: #2A1238;
  --default-color: #E7D7F7;
  --heading-color: #F8B5D2;
  --surface-color: #3D1D4C;
  --accent-color: #E378A8;
  --contrast-color: #ffffff;
}


/* =======================================================
   TEXT DROP SECTION
======================================================= */

.text-drop {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 6vw, 4rem) 0 clamp(5rem, 12vw, 8rem);
  perspective: 2000px;

  background: linear-gradient(
    to bottom,
    color-mix(in srgb, var(--background-color), black 30%) 0%,
    color-mix(in srgb, var(--background-color), black 50%) 50%,
    color-mix(in srgb, var(--background-color), black 40%) 100%
  );
}

.text-drop__overlay {
  position: absolute;
  inset: 0;
  z-index: 0;

  background:
    radial-gradient(
      circle at 50% 30%,
      rgba(0, 0, 0, 0.55) 0%,
      rgba(0, 0, 0, 0.78) 40%,
      rgba(0, 0, 0, 0.92) 100%
    ),
    linear-gradient(
      to bottom,
      rgba(20, 0, 35, 0.65),
      rgba(0, 0, 0, 0.8)
    );

  mix-blend-mode: multiply;
  opacity: 0.88;
}


/* =======================================================
   TEXT DROP LINE (TYPOGRAPHY)
======================================================= */
.text-drop__line {
  position: relative;
  z-index: 1;
  display: block;
  text-align: center;

  font-family: var(--default-font);
  width: 100%;
  max-width: 40ch;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 3rem);

  font-size: clamp(1.25rem, 4vw, 2.25rem);
  font-weight: 500;
  line-height: 1.35;
  margin-block: 0.75rem 1.5rem;

  color: var(--default-color);

  text-shadow:
    0 1px 10px rgba(0, 0, 0, 0.5),
    0 0 6px rgba(20, 0, 35, 0.25);

  transform-origin: 50% 0;
  backface-visibility: hidden;
  transform: rotateX(-120deg);
  will-change: transform, opacity;
}


/* =======================================================
   TEXT DROP IMAGES
======================================================= */
.text-drop__img-box {
  position: absolute;
  overflow: hidden;
  opacity: 0.1;
  border-radius: 0.75rem;
  transition: opacity 0.5s;
  z-index: 0;
}

.text-drop__img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  filter: brightness(0.75) saturate(0.9) contrast(0.9);
}

.text-drop__img-box:nth-of-type(1) {
  top: 8%;
  left: 10%;
  max-width: clamp(18vw, 20vw, 22vw);
}

.text-drop__img-box:nth-of-type(2) {
  top: 40%;
  right: 18%;
  max-width: clamp(20vw, 22vw, 25vw);
}

.text-drop__img-box:nth-of-type(3) {
  bottom: 10%;
  left: 25%;
  max-width: clamp(20vw, 22vw, 25vw);
}


/* =======================================================
   RESPONSIVE (MOBILE)
======================================================= */
@media (max-width: 768px) {
  .text-drop {
    padding: 3rem 0 6rem;
  }

  .text-drop__line {
    font-size: clamp(1rem, 6vw, 1.75rem);
    line-height: 1.4;
    margin-block: 0.75rem 1.25rem;
  }

  .text-drop__img-box {
    max-width: 45vw;
  }
}


/* =======================================================
   VARIANT OVERLAYS (2 & 3)
======================================================= */
.text-drop:nth-of-type(2) .text-drop__overlay,
.text-drop:nth-of-type(3) .text-drop__overlay {
  background:
    radial-gradient(
      circle at 45% 35%,
      rgba(170, 200, 255, 0.15),
      rgba(0, 0, 40, 0.92) 80%
    ),
    linear-gradient(
      to bottom,
      rgba(20, 10, 60, 0.65),
      rgba(0, 0, 0, 0.8)
    );
}


/* =======================================================
   FOOTER DARK VARIANT (TYPOGRAPHY)
======================================================= */
.footer.dark-background .text-light-emphasis {
  font-family: var(--default-font);
  color: #ffffff !important;
  opacity: 0.95;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.015em;
}

.footer.dark-background .text-light-emphasis em {
  color: #ffffff;
  font-style: italic;
}

.footer.dark-background .text-light-emphasis a {
  color: #ffffff;
  text-decoration: underline;
  opacity: 0.9;
  transition: opacity 0.25s ease;
}

.footer.dark-background .text-light-emphasis a:hover {
  opacity: 1;
}


/* =======================================================
   FOOTER NEWSLETTER BUTTON
======================================================= */
.footer-newsletter .btn-primary {
  background-color: var(--accent-color);
  color: var(--contrast-color);
  border: none;

  font-family: var(--nav-font);
  font-weight: 500;
  letter-spacing: 0.02em;

  padding: clamp(0.5rem, 1.5vw, 0.55rem)
           clamp(1.25rem, 3vw, 1.75rem);

  border-radius: 0.5rem;
  min-width: 110px;
  white-space: nowrap;

  transition: all 0.3s ease;
  box-shadow: 0 0 0.5rem color-mix(in srgb, var(--accent-color), transparent 60%);
}

.footer-newsletter .btn-primary:hover {
  background-color: color-mix(in srgb, var(--accent-color), #fff 15%);
  box-shadow: 0 0 0.75rem color-mix(in srgb, var(--accent-color), transparent 40%);
  transform: translateY(-1px);
}


/* =======================================================
   HERO MAIN CONTENT
======================================================= */
.hero-main-content {
  max-width: 50rem;            /* 800px */
  margin: 0 auto;
  text-align: center;
  padding-inline: 1.5rem;

  .hero-title {
    font-family: var(--heading-font);
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: 1.1;
    margin-bottom: 1rem;
  }

  .hero-subtitle {
    font-family: var(--default-font);
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    margin-bottom: 1.5rem;
  }

  .author h3 {
    font-family: var(--heading-font);
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    margin-bottom: 1rem;
  }

  .hero-description,
  .book-description {
    font-family: var(--default-font);
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    max-width: 40rem;
    margin: 0 auto 2rem;
    line-height: 1.7;
  }
}

.hero {
  min-height: 85vh;
  padding-top: clamp(4rem, 8vw, 6rem);
  padding-bottom: clamp(2rem, 5vw, 3rem);
}


/* =======================================================
   EMBER QUOTE/CTA BUTTONS
======================================================= */
.quote-section .quote-cta-buttons {
  margin-top: clamp(1.25rem, 2vw, 2rem);
  display: flex;
  justify-content: center;
  gap: clamp(0.75rem, 1.5vw, 1.25rem);
  flex-wrap: wrap;
}

.quote-section .btn-ember {
  display: inline-block;

  padding: clamp(0.75rem, 1.8vw, 1rem)
           clamp(1.5rem, 4vw, 2.5rem);

  font-family: var(--nav-font);
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  font-weight: 500;
  letter-spacing: 0.2px;

  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
  text-decoration: none;

  line-height: 1.1;
}

.quote-section .btn-primary-ember {
  background: linear-gradient(
    135deg,
    var(--accent-color),
    color-mix(in srgb, var(--accent-color), #000 12%)
  );
  color: var(--contrast-color) !important;
  border: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.22);
}

.quote-section .btn-primary-ember:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.28);
}

.quote-section .btn-outline-ember {
  background-color: color-mix(in srgb, #ffffff 78%, var(--accent-color) 22%);
  border: 2px solid color-mix(in srgb, var(--accent-color), #000 22%);
  color: color-mix(in srgb, var(--heading-color), #000 40%) !important;
  box-shadow: 0 0 0.6rem rgba(210, 90, 60, 0.20);
}

.quote-section .btn-outline-ember:hover {
  background-color: color-mix(in srgb, #ffffff 70%, var(--accent-color) 30%);
  border-color: color-mix(in srgb, var(--accent-color), #000 32%);
  transform: translateY(-2px);
}


    /* =========================================
       TEXT DROP — Readability + cinematic type
    ========================================= */

    /* Ensure Ovo is actually used (and provide decent fallbacks) */
    .text-drop{
      position: relative;
      overflow: hidden;
      /* optional: a minimum height that feels “scene-like” */
      min-height: clamp(28rem, 70vh, 46rem);
      display: grid;
      place-items: center;
      padding: clamp(2.25rem, 6vw, 5rem) clamp(1rem, 4vw, 3rem);
    }

    /* Stronger overlay: gradient veil + subtle vignette */
    .text-drop__overlay{
      position: absolute;
      inset: 0;
      pointer-events: none;
      z-index: 2;

      /* Layered veils for contrast on bright bokeh */
      background:
        radial-gradient(120% 90% at 50% 35%,
          rgba(8, 10, 18, 0.10) 0%,
          rgba(8, 10, 18, 0.48) 52%,
          rgba(8, 10, 18, 0.70) 100%),
        linear-gradient(180deg,
          rgba(8, 10, 18, 0.55) 0%,
          rgba(8, 10, 18, 0.35) 45%,
          rgba(8, 10, 18, 0.60) 100%);
    }

    /* Keep images behind overlay + copy */
    .text-drop__img-box{ position: absolute; inset: 0; z-index: 1; }
    .text-drop__img{ width: 100%; height: 100%; object-fit: cover; }

    /* Copy wrapper: clamped width + “glass” panel */
    .text-drop__copy{
  position: relative;
  z-index: 3;
  width: min(68ch, 92vw);
  text-align: center;

  display: grid;
  gap: clamp(0.85rem, 2.2vw, 1.4rem);

  /* keep the copy tight without being a panel */
  padding: clamp(1.1rem, 3.2vw, 1.8rem) clamp(1rem, 3vw, 1.6rem);

  /* remove “card” styling */
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

    /* Base line style (clamped, readable, more “compelling”) */
    .text-drop__line{
      font-family: "Ovo", ui-serif, Georgia, "Times New Roman", serif;
      font-weight: 400;
      letter-spacing: 0.01em;

      /* clamp the typography */
      font-size: clamp(1.1rem, 2.0vw, 1.85rem);
      line-height: 1.35;

      color: rgba(255,255,255,0.92);

      /* makes white type pop without looking like cheap glow */
      text-shadow:
        0 2px 10px rgba(0,0,0,0.55),
        0 1px 1px rgba(0,0,0,0.35);
    }

    /* Hero line bigger */
    .text-drop__line--lead{
      font-size: clamp(1.5rem, 3.0vw, 2.6rem);
      line-height: 1.2;
      color: rgba(255,255,255,0.97);
    }

    /* “Whisper” line: slightly smaller + italic */
    .text-drop__line--whisper{
      font-size: clamp(1.05rem, 1.7vw, 1.55rem);
      font-style: italic;
      opacity: 0.95;
    }

    /* Closing line: medium emphasis to land the moment */
    .text-drop__line--closer{
      font-size: clamp(1.15rem, 2.1vw, 1.9rem);
      opacity: 0.96;
    }

    /* Mobile: tighten panel + improve flow */
    @media (max-width: 640px){
      .text-drop__copy{
        width: min(52ch, 94vw);
        padding: 1.05rem 0.95rem;
        backdrop-filter: blur(9px);
        -webkit-backdrop-filter: blur(9px);
      }
      .text-drop__line{ line-height: 1.32; }
    }