/*
 * Molly Flynn — Books
 *
 * V2026.09.22
 * Build: 1
 *
 * Styles the Books section, including book presentation, series and purchase information, the About the Author treatment, and Books-specific responsive behavior.
 */

/* ---------- 20. Books page ---------- */
.mf-books-page {
  margin-top: 0.25rem;
}

.mf-book-entry-title {
  margin: 0.65rem 0 1.35rem;
  text-align: center;
}

.mf-book-entry-title-mist {
  position: relative;
  display: inline-block;
  max-width: 100%;
  padding: 0.7rem 1.25rem;
  isolation: isolate;
}

.mf-book-entry-title-mist::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -0.8rem -1.35rem;
  background:
    radial-gradient(ellipse 34% 62% at 14% 56%, rgba(192, 214, 229, 0.40) 0%, rgba(159, 186, 208, 0.15) 58%, transparent 100%),
    radial-gradient(ellipse 48% 72% at 38% 43%, rgba(224, 235, 242, 0.78) 0%, rgba(190, 211, 226, 0.48) 50%, transparent 100%),
    radial-gradient(ellipse 48% 68% at 64% 56%, rgba(214, 229, 238, 0.70) 0%, rgba(170, 198, 216, 0.32) 54%, transparent 100%),
    radial-gradient(ellipse 34% 56% at 88% 42%, rgba(203, 222, 234, 0.48) 0%, rgba(159, 186, 208, 0.17) 57%, transparent 100%);
  filter: blur(0.58rem);
}

.mf-book-entry-title-image {
  display: block;
  width: min(80%, 26rem);
  height: auto;
  margin: 0 auto;
}

.mf-book-entry-intro {
  display: grid;
  grid-template-columns: minmax(12rem, 16.5rem) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  max-width: 48rem;
  margin: 0 auto 2rem;
}

.mf-book-entry-cover {
  position: relative;
  width: min(100%, 16.5rem);
  margin: 0 auto;
  perspective: 900px;
  filter: drop-shadow(0.65rem 0.85rem 1rem rgba(0, 0, 0, 0.44));
}

.mf-book-entry-cover::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0.7%;
  right: -0.35rem;
  width: 0.44rem;
  height: 98.6%;
  border-radius: 0 0.2rem 0.2rem 0;
  background: linear-gradient(
    to right,
    #c9bea5 0%,
    #eee6d4 35%,
    #b4aa94 100%
  );
  box-shadow: inset -1px 0 rgba(0, 0, 0, 0.28);
  transform: skewY(-0.7deg);
}

.mf-book-entry-cover::after {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 2% -0.55rem -0.5rem 3%;
  border-radius: 0.42rem;
  background: rgba(0, 0, 0, 0.30);
  filter: blur(0.4rem);
}

.mf-book-entry-cover img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.22rem 0.12rem 0.12rem 0.22rem;
  box-shadow:
    inset 1px 0 rgba(255, 255, 255, 0.10),
    0 0 0 1px rgba(255, 255, 255, 0.045);
  transform: rotateY(-1.2deg) rotateZ(-0.12deg);
  transform-origin: center left;
}

.mf-book-entry-details {
  min-width: 0;
  padding: clamp(0.85rem, 2vw, 1.15rem);
  border: 1px solid var(--mf-border);
  border-radius: 0.9rem;
  background:
    linear-gradient(145deg, rgba(185, 198, 243, 0.045), transparent 48%),
    var(--mf-panel-soft);
  box-shadow:
    0 0.65rem 1.7rem rgba(0, 0, 0, 0.15),
    inset 0 1px rgba(255, 255, 255, 0.03);
}

.mf-book-entry-series {
  margin-top: 0;
  color: var(--mf-spectral);
  font-weight: 700;
  letter-spacing: 0.015em;
}

.mf-book-entry-formats {
  color: var(--mf-text-muted);
}

.mf-book-entry-actions {
  margin: 1.05rem 0;
}

.mf-book-entry-credit {
  margin-bottom: 0;
  color: var(--mf-text-muted);
  font-size: 0.9rem;
}

.mf-book-entry-synopsis {
  max-width: 48rem;
  margin: 0 auto;
}

.mf-book-entry-synopsis > :first-child {
  margin-top: 0;
}

.mf-book-entry-synopsis > :last-child {
  margin-bottom: 0;
}

/* Molly's own words briefly materialize within the synopsis. */
.mf-molly-voice {
  margin: 1.6rem 0;
  padding: 0.15rem 0.5rem;
  color: #d0d5fa;
  font-size: 1.04em;
  line-height: 1.65;
  text-shadow:
    0 0 0.24rem rgba(185, 198, 243, 0.30),
    0 0 0.72rem rgba(143, 220, 255, 0.12);
}

.mf-book-entry--coming-soon {
  max-width: 44rem;
  margin: 0 auto;
  text-align: center;
}

.mf-book-entry--coming-soon h3 {
  margin-bottom: 0.35rem;
}

.mf-book-entry-status {
  margin-top: 0;
  color: var(--mf-spectral);
  font-weight: 700;
  letter-spacing: 0.025em;
}

.mf-book-entry-teaser {
  max-width: 38rem;
  margin: 1rem auto 0;
}

/* ---------- 21. Books page — About the Author ---------- */
.mf-about-author {
  max-width: 50rem;
  margin: 0 auto;
}

.mf-about-author-heading {
  margin: 0 0 1.1rem;
  text-align: center;
  line-height: 1;
}

.mf-author-wordmark {
  display: block;
  width: min(78%, 22rem);
  height: auto;
  margin: 0 auto;
}

.mf-about-author-content {
  display: grid;
  grid-template-columns: minmax(15rem, 21rem) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 2.75rem);
  align-items: start;
}

.mf-author-photo {
  margin: 0;
}

.mf-author-photo img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--mf-border);
  border-radius: 0.85rem;
  box-shadow: 0 0.8rem 2rem rgba(0, 0, 0, 0.28);
}

.mf-author-photo figcaption {
  margin-top: 0.55rem;
  color: var(--mf-text-muted);
  font-size: 0.82rem;
  font-style: italic;
  line-height: 1.4;
  text-align: center;
}

.mf-author-bio {
  min-width: 0;
}

.mf-author-bio > :first-child {
  margin-top: 0;
}

.mf-author-bio > :last-child {
  margin-bottom: 0;
}

.mf-author-link {
  font-weight: 600;
}



/* Give the author section a stronger break from the book listings. */
.mf-books-page > .mf-fade-divider:last-of-type {
  margin-top: 3.25rem;
  margin-bottom: 3.5rem;
}

.mf-about-author {
  padding-top: 0.15rem;
  margin-bottom: 3.25rem;
}

/* Books-page layout collapses when the cover/details pairing becomes cramped. */
@media (max-width: 44rem) {
  .mf-book-entry-title {
    margin-top: 0.5rem;
    margin-bottom: 1.35rem;
  }

  .mf-book-entry-title-mist {
    padding: 0.6rem 0.9rem;
  }

  .mf-book-entry-title-image {
    width: 94%;
  }

  .mf-book-entry-intro {
    grid-template-columns: 1fr;
    gap: 1.45rem;
    margin-bottom: 1.7rem;
  }

  .mf-book-entry-cover {
    width: min(66vw, 15.5rem);
  }

  .mf-book-entry-details {
    width: min(100%, 34rem);
    margin: 0 auto;
    padding: 0.95rem 1.1rem;
  }

  .mf-book-entry-details .mf-book-entry-series {
    margin-bottom: 0.65rem;
  }

  .mf-book-entry-details .mf-book-entry-formats {
    margin: 0.65rem 0;
  }

  .mf-book-entry-details .mf-book-entry-credit {
    margin: 0.65rem 0;
  }

  .mf-book-entry-details .mf-book-entry-actions {
    margin: 0.8rem 0 0;
  }

  .mf-molly-voice {
    margin: 1.4rem 0;
    padding-right: 0.25rem;
    padding-left: 0.25rem;
  }


  .mf-books-page > .mf-fade-divider:last-of-type {
    margin-top: 2.5rem;
    margin-bottom: 2.75rem;
  }

  .mf-about-author {
    margin-bottom: 2.5rem;
  }

  .mf-about-author-heading {
    margin-bottom: 0.95rem;
  }

  .mf-about-author-content {
    grid-template-columns: 1fr;
    gap: 1.35rem;
  }

  .mf-author-wordmark {
    width: min(86%, 20rem);
  }

  .mf-author-photo {
    width: min(100%, 30rem);
    margin: 0 auto;
  }
}
