/**
 * FAAIZA MUNIR - AUTHOR WEBSITE
 * Editorial Hero, Byline Banner & Featured Book Section Styles
 *
 * Colour System:
 * - Base: soft off-white (#FAF8F5)
 * - Text: near black (#141312)
 * - Primary accent: strong green / deep teal-green (#0E4D3C)
 * - Secondary accent: bright coral / pink (#E83D58)
 * - Optional accents: cobalt, muted purple, golden yellow used sparingly
 */

/* -------------------------------------------------------------
   1. HERO SECTION (Opening Literary Spread)
   ------------------------------------------------------------- */
.hero-editorial {
  position: relative;
  background-color: var(--bg-primary);
  margin-top: 0;
  padding-top: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: 0;
  min-height: clamp(500px, 70vh, 650px);
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Full-Bleed Author Background Spread (Seamless Left Blend, Zero Top Gap) */
.hero-backdrop-spread {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
}

.hero-backdrop-spread::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(
    to right,
    rgba(250, 248, 245, 0.85) 0%,
    rgba(250, 248, 245, 0.6) 28%,
    rgba(250, 248, 245, 0) 48%
  );
  z-index: 2;
}

.hero-backdrop-img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: right bottom;
  display: block;
  z-index: 1;
}



.hero-content-container {
  position: relative;
  z-index: 3;
  width: 100%;
  padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.hero-editorial-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
}

/* Left Column: Focused, Natural Literary Hierarchy (Aligned with Author Face) */
.hero-editorial-text {
  display: flex;
  flex-direction: column;
  max-width: 520px;
  transform: translateY(clamp(-1.25rem, -2.5vw, -2.25rem));
}

.hero-editorial-spacer {
  min-height: 10px;
}

.hero-author-name {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 4.4vw, 3.6rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.hero-subtitle {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: var(--space-md);
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.35em;
}

.hero-subtitle-prefix {
  color: var(--color-book-green);
  font-weight: 500;
}

.hero-subtitle-book {
  color: var(--color-book-pink);
  font-style: italic;
  font-weight: 600;
}

.hero-tagline {
  font-family: var(--font-sans);
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  color: var(--text-secondary);
  line-height: var(--lh-normal);
  margin-bottom: var(--space-xl);
  max-width: 38ch;
}

/* Editorial CTA Pair */
.hero-actions-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md);
}

.btn-editorial-solid {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background-color: var(--text-primary);
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-decoration: none;
  border-radius: var(--radius-none);
  border: 1px solid var(--text-primary);
  transition: background-color var(--duration-fast) var(--ease),
    border-color var(--duration-fast) var(--ease),
    transform var(--duration-fast) var(--ease);
}

.btn-editorial-solid:hover {
  background-color: var(--color-accent-main);
  border-color: var(--color-accent-main);
  transform: translateY(-1px);
}

.btn-editorial-solid svg {
  width: 14px;
  height: 14px;
  transition: transform var(--duration-fast) var(--ease);
}

.btn-editorial-solid:hover svg {
  transform: translateX(3px);
}

.btn-editorial-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background-color: transparent;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-decoration: none;
  border-radius: var(--radius-none);
  border: 1px solid var(--border-rule-dark);
  transition: background-color var(--duration-fast) var(--ease),
    border-color var(--duration-fast) var(--ease),
    color var(--duration-fast) var(--ease),
    transform var(--duration-fast) var(--ease);
}

.btn-editorial-outline:hover {
  background-color: var(--text-primary);
  border-color: var(--text-primary);
  color: #FFFFFF;
  transform: translateY(-1px);
}

.btn-editorial-outline svg {
  width: 14px;
  height: 14px;
  transition: transform var(--duration-fast) var(--ease);
}

.btn-editorial-outline:hover svg {
  transform: translateX(3px);
}

/* -------------------------------------------------------------
   2. BYLINE BANNER (Bold Editorial Graphic Moment)
   "Four sisters. One dead body. And a hunt for the perfect husband."
   ------------------------------------------------------------- */
.byline-banner {
  background-color: var(--color-accent-main);
  color: #FFFFFF;
  padding: clamp(var(--space-lg), 3.2vw, var(--space-2xl)) 0;
  border-top: 1px solid var(--border-rule-dark);
  border-bottom: 1px solid var(--border-rule-dark);
  position: relative;
  overflow: hidden;
}

.byline-banner-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.byline-banner-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: var(--space-xs);
}

.byline-banner-eyebrow::before,
.byline-banner-eyebrow::after {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.35);
}

.byline-banner-quote {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.7vw, 2.25rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: #FFFFFF;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.byline-quote-line {
  display: block;
}

/* -------------------------------------------------------------
   3. FEATURED BOOK SECTION (Arranged Murder)
   ------------------------------------------------------------- */
.book-feature-section {
  padding-top: clamp(var(--space-2xl), 5vw, var(--space-4xl));
  padding-bottom: clamp(var(--space-2xl), 5vw, var(--space-4xl));
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-rule);
  position: relative;
  overflow: hidden;
}

.book-feature-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.15fr;
  align-items: stretch;
  gap: clamp(var(--space-xl), 5vw, var(--space-4xl));
}

/* Book Cover Column (Left Column) */
.book-cover-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  position: relative;
  padding: 0;
}

/* 3D Perspective & Cursor Tracking Stage */
.book-stage-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1200px;
  position: relative;
  padding: 0 var(--space-sm) 28px;
}

.book-cover-plate {
  position: relative;
  width: min(100%, 350px);
  aspect-ratio: 666 / 1024;
  border-radius: 2px 8px 8px 2px;
  transform-style: preserve-3d;
  will-change: transform;
  cursor: grab;
  transition: box-shadow var(--duration-normal) var(--ease);
  box-shadow: -8px 14px 32px rgba(0, 0, 0, 0.16), 0 2px 6px rgba(0, 0, 0, 0.08);
}

.book-cover-plate:active {
  cursor: grabbing;
}

.book-cover-plate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 2px 8px 8px 2px;
  pointer-events: none;
  user-select: none;
}

/* Realistic Paperback Spine Fold (Left Edge) */
.book-cover-plate::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 20px;
  height: 100%;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.22) 0%, rgba(255, 255, 255, 0.25) 45%, rgba(0, 0, 0, 0.14) 100%);
  border-radius: 2px 0 0 2px;
  pointer-events: none;
  z-index: 3;
}

/* Dynamic Glare Reflection Overlay (tracks mouse in JS) */
.book-glare {
  position: absolute;
  inset: 0;
  border-radius: 2px 8px 8px 2px;
  pointer-events: none;
  z-index: 4;
  opacity: 0;
  mix-blend-mode: overlay;
  transition: opacity var(--duration-normal) var(--ease);
}

/* Dynamic Realistic Under-Book Shadow */
.book-ambient-shadow {
  position: absolute;
  bottom: -24px;
  left: 8%;
  width: 84%;
  height: 30px;
  background: radial-gradient(ellipse at center, rgba(22, 21, 20, 0.28) 0%, rgba(0, 0, 0, 0) 70%);
  filter: blur(12px);
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}

/* Right Content Column */
.book-info-column {
  display: flex;
  flex-direction: column;
}

.book-kicker {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-accent-main);
  margin-bottom: var(--space-xs);
  display: flex;
  align-items: center;
  gap: 8px;
}

.book-kicker::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 2px;
  background-color: var(--color-accent-main);
}

.book-info-column {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
}

.book-feature-title {
  font-family: var(--font-serif);
  font-size: var(--text-title-lg);
  font-weight: 600;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.book-feature-tagline {
  font-family: var(--font-serif);
  font-size: var(--text-body-lead);
  font-style: italic;
  color: var(--color-accent-sec);
  font-weight: 500;
  margin-bottom: var(--space-xl);
  line-height: var(--lh-snug);
}

.book-feature-synopsis {
  font-family: var(--font-sans);
  font-size: var(--text-body);
  color: var(--text-secondary);
  line-height: 1.72;
  margin-bottom: 1.15rem;
}

/* Thin Ruled Metadata Strip */
.book-metadata-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md) var(--space-lg);
  padding: var(--space-md) 0;
  margin-top: auto;
  margin-bottom: 4px;
  border-top: 1px solid var(--border-rule);
  border-bottom: 1px solid var(--border-rule);
}

.metadata-entry {
  display: flex;
  flex-direction: column;
}

.metadata-label {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--tracking-caps);
  color: var(--text-muted);
  margin-bottom: 2px;
}

.metadata-val {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
}

/* Pre-order Retailers Under Book */
.book-retailers-card {
  width: min(100%, 350px);
  margin-top: var(--space-xs);
  display: flex;
  flex-direction: column;
}

.book-retailers-card .retailer-row-label {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--tracking-caps);
  color: var(--text-muted);
  margin-bottom: var(--space-xs);
  text-align: left;
}

.book-retailers-card .retailer-links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 0;
}

.book-retailers-card .btn-retailer-rect {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  font-size: 0.82rem;
  font-weight: 500;
  flex: 1 1 auto;
  text-align: center;
  white-space: nowrap;
}

.book-explore-wrap {
  margin-top: var(--space-md);
  padding-bottom: 2px;
  display: flex;
  align-items: center;
}

/* General Pre-order Retailers (Clean Rectangular Buttons) */
.retailer-row-label {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--tracking-caps);
  color: var(--text-muted);
  margin-bottom: var(--space-xs);
}

.retailer-links-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.btn-retailer-rect {
  display: inline-flex;
  align-items: center;
  padding: 9px 18px;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-rule);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  border-radius: var(--radius-none);
  transition: border-color var(--duration-fast) var(--ease),
    background-color var(--duration-fast) var(--ease),
    color var(--duration-fast) var(--ease);
}

.btn-retailer-rect:hover {
  border-color: var(--color-accent-main);
  background-color: var(--color-accent-main-soft);
  color: var(--color-accent-main);
}

.link-editorial-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease);
}

.link-editorial-arrow:hover {
  color: var(--color-accent-main);
}

.link-editorial-arrow svg {
  width: 15px;
  height: 15px;
  transition: transform var(--duration-fast) var(--ease);
}

.link-editorial-arrow:hover svg {
  transform: translateX(4px);
}

/* -------------------------------------------------------------
   RESPONSIVE LAYOUT
   ------------------------------------------------------------- */
@media (max-width: 900px) {
  .hero-editorial {
    margin-top: 0;
    padding-top: 1.5rem;
    padding-bottom: 0;
    min-height: auto;
    display: flex;
    flex-direction: column;
  }

  .hero-backdrop-spread {
    position: relative;
    top: auto;
    width: 100%;
    height: 380px;
    order: -1;
    display: block;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .hero-backdrop-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right bottom;
  }

  .hero-backdrop-spread::after {
    width: 100%;
    height: 120px;
    top: auto;
    bottom: 0;
    left: 0;
    background: linear-gradient(to bottom, transparent, var(--bg-primary));
  }

  .hero-content-container {
    padding-top: 1.5rem;
    padding-bottom: 2.5rem;
  }

  .hero-editorial-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .hero-editorial-text {
    transform: none;
  }

  .hero-editorial-spacer {
    display: none;
  }

  .book-feature-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .book-cover-column {
    order: -1;
    align-items: center;
    justify-content: flex-start;
  }

  .book-cover-plate {
    max-width: 290px;
  }

  .book-retailers-card {
    max-width: 290px;
  }

  .book-info-column {
    height: auto;
  }

  .book-metadata-strip {
    margin-top: var(--space-xl);
    margin-bottom: 0;
  }
}

@media (max-width: 540px) {
  .hero-author-name {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1.15rem;
  }

  .hero-tagline {
    font-size: 1.05rem;
  }

  .hero-actions-group {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-sm);
  }

  .btn-editorial-solid,
  .btn-editorial-outline {
    justify-content: center;
  }

  .book-metadata-strip {
    grid-template-columns: 1fr;
  }

  .retailer-links-row {
    flex-direction: column;
  }

  .btn-retailer-rect {
    justify-content: center;
  }
}
/* Home book block without synopsis (synopsis lives on Books page) */
.book-info-column { justify-content: center; }
.book-info-column .book-metadata-strip { margin-top: var(--space-xl); }
.book-info-column .book-synopsis-link { margin-top: var(--space-md); align-self: flex-start; }

/* Press quotes floating around the cover on Home (like a book jacket) */
.cover-quote { position: absolute; z-index: 3; margin: 0; pointer-events: none; }
.cover-quote blockquote { margin: 0; font-family: var(--font-serif); }
.cover-quote figcaption { font-family: var(--font-sans); font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.cover-quote figcaption::before { content: "— "; }
.cover-quote--card { top: -3%; left: -12%; width: 200px; padding: 14px 16px; background: var(--bg-surface); border-top: 3px solid var(--color-accent-sec); box-shadow: 0 10px 28px rgba(0,0,0,0.14); transform: rotate(-4deg); }
.cover-quote--card blockquote { font-size: 0.98rem; line-height: 1.4; color: var(--text-secondary); }
.cover-quote--card blockquote strong { font-weight: 600; color: var(--text-primary); }
.cover-quote--card figcaption { margin-top: 8px; color: var(--color-accent-main); }
.cover-quote--sticker { bottom: -22px; right: -46px; width: 138px; height: 138px; border-radius: 50%; background: var(--color-accent-sec); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 14px; box-shadow: 0 10px 24px rgba(232,61,88,0.35); transform: rotate(8deg); }
.cover-quote--sticker blockquote { font-size: 1.2rem; font-style: italic; line-height: 1.15; color: #fff; }
.cover-quote--sticker figcaption { margin-top: 6px; color: rgba(255,255,255,0.92); font-size: 0.6rem; }
@media (max-width: 1100px) { .cover-quote--card { left: -6%; width: 175px; } .cover-quote--card blockquote { font-size: 0.9rem; } }
@media (max-width: 540px) {
  .cover-quote--card { top: -5%; left: -2%; width: 140px; padding: 9px 11px; }
  .cover-quote--card blockquote { font-size: 0.78rem; }
  .cover-quote--sticker { width: 82px; height: 82px; right: -20px; bottom: -30px; padding: 8px; }
  .cover-quote--sticker blockquote { font-size: 0.8rem; }
  .cover-quote--sticker figcaption { font-size: 0.45rem; margin-top: 3px; }
}

.book-info-column .home-teaser { margin-top: var(--space-md); }
/* Centre the sticker text: balanced lines, no dash, name on one line */
.cover-quote--sticker blockquote { text-wrap: balance; width: 100%; }
.cover-quote--sticker figcaption { white-space: nowrap; }
.cover-quote--sticker figcaption::before { content: none; }
.cover-quote--sticker figcaption { padding-top: 5px; border-top: 1px solid rgba(255,255,255,0.7); }
.cover-quote--sticker .sticker-handle { display: block; margin-top: 2px; font-weight: 500; text-transform: none; letter-spacing: 0.02em; opacity: 0.85; }
/* Sticker moved to the top-right corner of the cover */
.cover-quote--sticker { top: -34px; bottom: auto; right: -46px; }
@media (max-width: 540px) { .cover-quote--sticker { top: -26px; bottom: auto; right: -20px; } }
/* Sticker sits on a still wrapper so it doesn't tilt with the book */
.cover-anchor { position: relative; width: min(100%, 350px); }
.cover-anchor .book-cover-plate { width: 100%; }
@media (max-width: 900px) { .cover-anchor { max-width: 290px; } }
.cover-anchor .cover-quote--sticker { z-index: 5; }
/* Gold star sitting half on, half off the top of the sticker */
.sticker-star { position: absolute; top: 0; left: 50%; width: 30px; height: 30px; transform: translate(-50%, -50%); fill: #E9B949; stroke: #C8922A; stroke-width: 0.8; filter: drop-shadow(0 2px 3px rgba(0,0,0,0.25)); }
@media (max-width: 540px) { .sticker-star { width: 20px; height: 20px; } }
/* Star follows the sticker's angle, centred over the quote */
.sticker-star { left: 50%; transform: translate(-50%, -50%); }
.sticker-star { width: 40px; height: 40px; }
@media (max-width: 540px) { .sticker-star { width: 26px; height: 26px; } }
.sticker-q { font-size: 1.7em; line-height: 0; vertical-align: -0.28em; font-style: normal; }
/* Bigger quote text on the sticker */
.sticker-q { font-size: 1em; vertical-align: baseline; line-height: inherit; }
.cover-quote--sticker blockquote { font-size: 1.5rem; line-height: 1.05; }
@media (max-width: 540px) { .cover-quote--sticker blockquote { font-size: 0.95rem; } }
.cover-quote--sticker .sticker-handle { margin-top: -1px; line-height: 1; }
/* Star sits flat inside the pink circle, near the top (no shadow) */
.sticker-star { top: 9px; width: 22px; height: 22px; transform: translateX(-50%); filter: none; stroke: none; }
@media (max-width: 540px) { .sticker-star { top: 5px; width: 13px; height: 13px; } }
.cover-quote--sticker { padding-top: 22px; }
@media (max-width: 540px) { .cover-quote--sticker { padding-top: 14px; } }
.sticker-star { top: 7px; width: 30px; height: 30px; }
.cover-quote--sticker { padding-top: 30px; }
@media (max-width: 540px) { .sticker-star { top: 4px; width: 18px; height: 18px; } .cover-quote--sticker { padding-top: 18px; } }
/* Phone sticker: a bit bigger so the name fits inside the circle */
@media (max-width: 540px) {
  .cover-quote--sticker { width: 104px; height: 104px; top: -30px; right: -22px; padding: 22px 8px 8px; }
  .cover-quote--sticker blockquote { font-size: 0.95rem; line-height: 1.05; }
  .cover-quote--sticker figcaption { font-size: 0.42rem; letter-spacing: 0.05em; margin-top: 4px; padding-top: 4px; }
  .sticker-star { top: 5px; width: 18px; height: 18px; }
}
/* Gold star removed: text back to the centre of the circle */
.cover-quote--sticker { padding: 14px; }
@media (max-width: 540px) { .cover-quote--sticker { padding: 8px; } }
