/* ==========================================================================
   MMP — Homepage
   File: assets/css/home.css
   ========================================================================== */

/* Column splits (first column's share; see .mmp-split in primary.css) */
.mmp-home-books-grid { --mmp-split: 55%; }
.mmp-home-preserve-grid { --mmp-split: 58%; }



.mmp-home-featured,
.mmp-home-imprints,
.mmp-home-books,
.mmp-home-preserve,
.mmp-home-cta {
  width: 100%;
}

.mmp-home-featured .mmp-section-header,
.mmp-home-imprints .mmp-section-header {
  max-width: 780px;
  margin-bottom: 2rem;
}

.mmp-home-featured .mmp-section-title,
.mmp-home-imprints .mmp-section-title,
.mmp-home-books .mmp-section-title,
.mmp-home-preserve .mmp-section-title {
  color: var(--mmp-page-ink);
  font-size: clamp(2rem, 3.2vw, 3rem);
  line-height: var(--mmp-h2-line-height);
  letter-spacing: var(--mmp-h2-tracking);
  margin: 0 !important;
}


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

.mmp-home-hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(560px, 72vw, 760px);
  display: flex;
  align-items: center;
  padding: clamp(6rem, 11vw, 10rem) 0 !important;
}

.mmp-home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 14% 18%, rgba(199, 151, 77, 0.22), transparent 34%),
    linear-gradient(135deg, rgba(31, 36, 41, 0.88), rgba(51, 46, 43, 0.7));
  z-index: 1;
}

.mmp-home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.32;
  pointer-events: none;
  z-index: 1;
}

.mmp-home-hero-wrap {
  position: relative;
  z-index: 2;
}

.mmp-home-hero-content {
  max-width: 860px;
  padding: 0 !important;
}

.mmp-home-hero .mmp-kicker {
  color: var(--mmp-page-gold);
  margin-bottom: 1rem !important;
}

.mmp-home-hero-title {
  color: #fff !important;
  font-size: clamp(2.65rem, 5vw, 5.25rem) !important;
  line-height: var(--mmp-display-line-height) !important;
  letter-spacing: var(--mmp-display-tracking) !important;
  max-width: min(100%, 860px);
  margin: 0 !important;
  text-wrap: balance;
}

.mmp-home-hero-lede {
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--mmp-font-editorial);
  font-size: clamp(1.25rem, 1.8vw, 1.65rem);
  line-height: 1.5;
  max-width: 760px;
  margin: 1.55rem 0 0 !important;
}

.mmp-home-hero-title,
.mmp-home-hero-lede,
.mmp-home-hero .mmp-kicker {
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.3);
}

/* Copy left, featured release right ([mmp_home_featured_release]) from
   1200px; below that, one column with the card under the buttons (two
   columns leave the card too narrow). */
.mmp-home-hero-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(32px, 4vw, 64px);
  align-items: center;
}

/* Featured release: one store card (books.css), cover beside the text: 42%
   of the card beside the copy, 30% (200-320px) when the card is full width;
   stacked to 560px. Cover sizes: card-hero-feature in inc/mmp-images.php.
   .mmp-home-hero prefix: books.css loads later and its two-column grid at
   920px has the same specificity without it. */
.mmp-home-hero .mmp-home-hero-feature .mmp-store-home ul.products {
  grid-template-columns: minmax(0, 1fr) !important;
}

.mmp-home-hero .mmp-home-hero-feature .mmp-store-home ul.products li.product {
  flex-direction: row;
}

.mmp-home-hero .mmp-home-hero-feature .mmp-store-home .astra-shop-thumbnail-wrap {
  flex: 0 0 42%;
  align-self: stretch;
  aspect-ratio: auto;
}

.mmp-home-hero .mmp-home-hero-feature .mmp-store-home .astra-shop-summary-wrap {
  min-width: 0;
}

@media (max-width: 1199px) {
  .mmp-home-hero-wrap {
    grid-template-columns: minmax(0, 1fr);
  }

  .mmp-home-hero .mmp-home-hero-feature .mmp-store-home .astra-shop-thumbnail-wrap {
    flex-basis: clamp(200px, 30%, 320px);
  }
}

@media (max-width: 560px) {
  .mmp-home-hero .mmp-home-hero-feature .mmp-store-home ul.products li.product {
    flex-direction: column;
  }

  .mmp-home-hero .mmp-home-hero-feature .mmp-store-home .astra-shop-thumbnail-wrap {
    flex-basis: auto;
    aspect-ratio: 1 / 1;
  }
}


/* ==========================================================================
   BUTTONS
   ========================================================================== */

.mmp-home-btn-row {
  display: flex !important;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 2rem !important;
}

.mmp-home-btn .wp-block-button__link {
  background: var(--mmp-page-ink) !important;
  color: var(--mmp-page-paper) !important;
  border: 1px solid var(--mmp-page-ink) !important;
  border-radius: 999px !important;
  font-family: var(--mmp-font-body);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none !important;
  padding: 14px 24px;
}

.mmp-home-btn .wp-block-button__link:hover {
  background: var(--mmp-page-blue) !important;
  border-color: var(--mmp-page-blue) !important;
  text-decoration: none !important;
}

.mmp-home-btn-outline .wp-block-button__link {
  background: transparent !important;
  color: var(--mmp-page-ink) !important;
  border-color: var(--mmp-page-border) !important;
}

.mmp-home-hero .mmp-home-btn .wp-block-button__link {
  background: var(--mmp-page-gold) !important;
  color: var(--mmp-page-ink) !important;
  border-color: var(--mmp-page-gold) !important;
}

.mmp-home-hero .mmp-home-btn .wp-block-button__link:hover {
  background: var(--mmp-page-gold-light) !important;
  border-color: var(--mmp-page-gold-light) !important;
}

.mmp-home-hero .mmp-home-btn-outline .wp-block-button__link {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.45) !important;
  backdrop-filter: blur(8px);
}

.mmp-home-hero .mmp-home-btn-outline .wp-block-button__link:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  border-color: rgba(255, 255, 255, 0.7) !important;
}


/* ==========================================================================
   FEATURED PROJECTS
   ========================================================================== */

.mmp-home-featured {
  background:
    radial-gradient(circle at 10% 18%, rgba(199, 151, 77, 0.12), transparent 32%),
    linear-gradient(180deg, var(--mmp-page-cream) 0%, var(--mmp-page-paper) 100%);
  padding: clamp(4rem, 7vw, 6.5rem) 0 !important;
}


/* ==========================================================================
   WHY BOOKS
   ========================================================================== */

.mmp-home-books {
  background: var(--mmp-page-paper);
  padding: clamp(4rem, 7vw, 6.5rem) 0 !important;
}

.mmp-home-books-grid {
  gap: clamp(2rem, 5vw, 4rem) !important;
  align-items: center !important;
  margin: 0 !important;
}

.mmp-home-books-grid > * {
  margin: 0 !important;
}

.mmp-home-section-lede {
  color: var(--mmp-page-ink);
  font-family: var(--mmp-font-editorial);
  font-size: clamp(1.2rem, 1.6vw, 1.45rem);
  line-height: 1.55;
  margin: 1rem 0 !important;
}

.mmp-home-section-body {
  color: var(--mmp-page-muted);
  font-size: 1.05rem;
  line-height: 1.75;
  margin: 1rem 0 0 !important;
}

.mmp-home-book-proof-card {
  background:
    radial-gradient(circle at 85% 15%, rgba(199, 151, 77, 0.2), transparent 34%),
    linear-gradient(135deg, var(--mmp-page-ink) 0%, var(--mmp-page-blue) 100%);
  border-radius: 28px;
  padding: clamp(2rem, 4vw, 3rem) !important;
  box-shadow: 0 20px 52px rgba(40, 48, 57, 0.18);
}

/* Quote block (Astra's blockquote border, padding and margins reset):
   the quote on a gold rule, then an attribution row with the book cover
   and the byline. The case study link sits below a thin divider. */
.mmp-home-book-proof-blockquote {
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  grid-template-areas:
    "quote quote"
    "cover cite";
  gap: 1.5rem 1rem;
  align-items: center;
}

.mmp-home-book-proof-quote {
  grid-area: quote;
  border-left: 3px solid var(--mmp-page-gold);
  padding-left: 1.25rem !important;
  color: #fff;
  font-family: var(--mmp-font-editorial);
  font-style: italic;
  font-size: clamp(1.2rem, 1.6vw, 1.45rem);
  font-weight: 400;
  line-height: 1.55;
  margin: 0 !important;
}

.mmp-home-book-proof-blockquote > .mmp-home-proof-cover {
  grid-area: cover;
  margin: 0 !important;
}

.mmp-home-proof-cover img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 3px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* Byline: the quote block's citation field, with a dash before it */
.mmp-home-book-proof-blockquote cite {
  grid-area: cite;
  margin: 0 !important;
  color: rgba(255, 255, 255, 0.68);
  font-family: var(--mmp-font-body);
  font-size: 0.9rem;
  font-style: normal;
  font-weight: 400;
  line-height: 1.4;
}

.mmp-home-book-proof-blockquote cite::before {
  content: "\2014\00a0";
}

.mmp-home-book-proof-link {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 1.25rem !important;
  margin: 1.75rem 0 0 !important;
}

.mmp-home-book-proof-link a,
.mmp-home-book-proof-link a:visited {
  color: var(--mmp-page-gold);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}

.mmp-home-book-proof-link a:hover,
.mmp-home-book-proof-link a:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 680px) {
  .mmp-home-book-proof-blockquote {
    grid-template-columns: 56px minmax(0, 1fr);
  }
}


/* ==========================================================================
   IMPRINTS
   ========================================================================== */

.mmp-home-imprints {
  background: var(--mmp-page-ink);
  color: var(--mmp-page-paper);
  padding: clamp(4rem, 7vw, 6.5rem) 0 !important;
}

.mmp-home-imprints .mmp-section-title,
.mmp-home-imprints h2,
.mmp-home-imprints h3 {
  color: var(--mmp-page-paper) !important;
}

.mmp-home-imprints p {
  color: rgba(255, 250, 241, 0.8);
}

.mmp-home-imprints .mmp-kicker {
  color: var(--mmp-page-gold);
}

.mmp-home-imprint-grid {
  gap: 1.25rem !important;
  margin: 0 !important;
}

.mmp-home-imprint-grid > * {
  margin: 0 !important;
}

.mmp-home-imprint-card {
  background: rgba(255, 250, 241, 0.08);
  border: 1px solid rgba(255, 250, 241, 0.14);
  border-radius: 22px;
  padding: clamp(1.4rem, 2.6vw, 2rem) !important;
}

/* Imprint logo */

.mmp-home-imprint-logo {
  display: flex;
  justify-content: center;
  margin: 0 0 1.5rem !important;
}

.mmp-home-imprint-logo img {
  width: 88px;
  height: 88px;

  object-fit: contain;
  display: block;

  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

/* The logo links where the card's button does (2026-10-19) */
.mmp-home-imprint-logo a {
  display: block;
  border-radius: 12px;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.mmp-home-imprint-logo a:hover,
.mmp-home-imprint-logo a:focus-visible {
  transform: translateY(-2px);
  opacity: 0.85;
}

/* Center title and content */

.mmp-home-imprint-card {
  text-align: center;
}

.mmp-home-imprint-title {
  text-align: center;
}

.mmp-home-imprint-body {
  color: rgba(255, 250, 241, 0.72);

  line-height: 1.6;

  max-width: 32ch;
  margin: 0 auto 1.25rem !important;
}

.mmp-home-imprint-link {
  display: flex;
  justify-content: center;
}

.mmp-home-imprint-title {
  color: #fff;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  line-height: var(--mmp-h3-line-height);
  margin: 0 0 0.75rem !important;
}

.mmp-home-imprint-body {
  color: rgba(255, 250, 241, 0.72);
  line-height: 1.62;
  margin: 0 0 1.25rem !important;
}

.mmp-home-imprint-link {
  margin: 18px 0 0 !important;
}

.mmp-home-imprint-link a,
.mmp-home-imprint-link a:visited,
.mmp-home-imprint-link a:hover,
.mmp-home-imprint-link a:focus,
.mmp-home-imprint-link a:active {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--mmp-page-gold);
  color: var(--mmp-page-ink) !important;
  border: 1px solid var(--mmp-page-gold);
  border-radius: 999px;
  padding: 0.55rem 0.85rem;
  font-family: var(--mmp-font-body);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none !important;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    transform 0.15s ease;
}

.mmp-home-imprint-link a:hover {
  background: var(--mmp-page-gold-light);
  border-color: var(--mmp-page-gold-light);
  color: var(--mmp-page-ink) !important;
  text-decoration: none !important;
  transform: translateY(-1px);
}


/* ==========================================================================
   PRESERVATION
   ========================================================================== */

.mmp-home-preserve {
  background:
    radial-gradient(circle at 12% 20%, rgba(199, 151, 77, 0.12), transparent 30%),
    linear-gradient(180deg, var(--mmp-page-paper) 0%, var(--mmp-page-cream) 100%);
  padding: clamp(4rem, 7vw, 6.5rem) 0 !important;
}

.mmp-home-preserve-grid {
  gap: clamp(2rem, 5vw, 4rem) !important;
  align-items: center !important;
  margin: 0 !important;
}

.mmp-home-preserve-grid > * {
  margin: 0 !important;
}

.mmp-home-preserve-card {
  background: #fff;
  border: 1px solid rgba(40, 48, 57, 0.09);
  border-left: 5px solid var(--mmp-page-gold);
  border-radius: 24px;
  padding: clamp(1.6rem, 3vw, 2.4rem) !important;
  box-shadow: 0 18px 44px rgba(40, 48, 57, 0.1);
}

.mmp-home-preserve-card-label {
  color: var(--mmp-page-blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: var(--mmp-eyebrow-tracking);
  text-transform: uppercase;
  margin: 0 0 0.85rem !important;
}

.mmp-home-preserve-card-text {
  color: var(--mmp-page-ink);
  font-family: var(--mmp-font-editorial);
  line-height: 1.55;
  margin: 0 0 1.25rem !important;
}

.mmp-home-preserve-card-link {
  margin: 0 !important;
}

.mmp-home-preserve-card-link a {
  color: var(--mmp-page-blue);
  font-weight: 800;
  text-decoration: none;
}

.mmp-home-preserve-card-link a:hover {
  color: var(--mmp-page-gold);
}


/* ==========================================================================
   CTA
   ========================================================================== */

.mmp-home-cta {
  background:
    radial-gradient(circle at 84% 18%, rgba(199, 151, 77, 0.22), transparent 34%),
    linear-gradient(135deg, var(--mmp-page-ink) 0%, var(--mmp-page-blue) 100%);
  color: var(--mmp-page-paper);
  text-align: center;
  padding: clamp(4rem, 7vw, 6rem) 0 !important;
}

.mmp-home-cta h2,
.mmp-home-cta-title {
  color: var(--mmp-page-paper) !important;
  font-size: clamp(2rem, 3.4vw, 3.35rem);
  line-height: var(--mmp-h2-line-height);
  letter-spacing: var(--mmp-h2-tracking);
  max-width: 820px;
  margin: 0.85rem auto 1rem !important;
  text-wrap: balance; /* no single word left on its own line */
}

.mmp-home-cta p {
  color: rgba(255, 250, 241, 0.82);
}

.mmp-home-cta .mmp-kicker {
  color: var(--mmp-page-gold);
}

.mmp-home-cta-body {
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 720px;
  margin: 0 auto !important;
}
.mmp-home-cta .mmp-home-btn-row {
  justify-content: center;
}

.mmp-home-cta .mmp-home-btn .wp-block-button__link {
  background: var(--mmp-page-paper) !important;
  color: var(--mmp-page-ink) !important;
  border-color: var(--mmp-page-paper) !important;
}

.mmp-home-cta .mmp-home-btn .wp-block-button__link:hover {
  background: var(--mmp-page-gold) !important;
  border-color: var(--mmp-page-gold) !important;
}

.mmp-home-cta .mmp-home-btn-outline .wp-block-button__link {
  background: transparent !important;
  color: var(--mmp-page-paper) !important;
  border-color: rgba(255, 250, 241, 0.45) !important;
}

.mmp-home-cta .mmp-home-btn-outline .wp-block-button__link:hover {
  background: rgba(255, 250, 241, 0.1) !important;
  border-color: rgba(255, 250, 241, 0.72) !important;
}


/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 921px) {
  .mmp-home-books-grid,
  .mmp-home-imprint-grid,
  .mmp-home-preserve-grid {
    flex-direction: column !important;
  }

  .mmp-home-books-copy,
  .mmp-home-books-proof,
  .mmp-home-preserve-copy,
  .mmp-home-preserve-card-col {
    flex-basis: 100% !important;
  }
}

@media (max-width: 680px) {
  .mmp-home-hero {
    min-height: 560px;
  }

  .mmp-home-btn-row {
    flex-direction: column;
    align-items: stretch;
  }

  .mmp-home-btn,
  .mmp-home-btn .wp-block-button__link {
    width: 100%;
    text-align: center;
  }

  .mmp-home-imprint-card,
  .mmp-home-book-proof-card,
  .mmp-home-preserve-card {
    border-radius: 16px;
  }

  .mmp-home-imprint-logo img {
    width: 46px;
    height: 46px;
  }
}


/* ==========================================================================
   BOOKS (homepage rebuild 2026-10-15)
   Header row with "All books" link; the cards are store cards from
   [mmp_home_featured_books] (books.css).
   ========================================================================== */

/* Header row: section header left, "All books" link right */

.mmp-home-featured-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: 2rem;
}

.mmp-home-featured-head .mmp-section-header {
  margin-bottom: 0;
}

.mmp-home-featured-all {
  flex-shrink: 0;
  margin: 0 !important;
}

.mmp-home-featured-all a {
  color: var(--mmp-page-blue);
  font-weight: 800;
  text-decoration: none;
}

.mmp-home-featured-all a:hover,
.mmp-home-featured-all a:focus {
  color: var(--mmp-page-gold);
}

@media (max-width: 680px) {
  .mmp-home-featured-head {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* ==========================================================================
   IMPRINTS — three-card layout (homepage rebuild 2026-10-15)
   Desktop: three centered cards in a row. Tablet (cards stacked full
   width): each card sits as a row, logo left, text right.
   Phones keep the centered stack.
   ========================================================================== */

/* Fix: center the body text in the stacked layout (an earlier
   margin rule with !important cancelled the auto margins). */
.mmp-home-imprints .mmp-home-imprint-body {
  margin: 0 auto 1.25rem !important;
}

/* Long button labels wrap instead of overflowing narrow cards */
.mmp-home-imprints .mmp-home-imprint-link a {
  white-space: normal;
  text-align: center;
  line-height: 1.3;
}

/* MMP logo is a dark rectangular wordmark: show it on a cream
   circle so it reads on the dark card and matches the SAB badge. */
.mmp-home-imprints .mmp-home-imprint-card--mmp .mmp-home-imprint-logo img {
  background: var(--mmp-page-paper) !important;
  border-radius: 50% !important;
  padding: 14px;
  box-sizing: border-box;
}

@media (max-width: 680px) {
  .mmp-home-imprints .mmp-home-imprint-card--mmp .mmp-home-imprint-logo img {
    padding: 5px;
  }
}

@media (min-width: 681px) and (max-width: 921px) {
  .mmp-home-imprints .mmp-home-imprint-card {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto auto;
    column-gap: clamp(1.25rem, 2.5vw, 2rem);
    align-content: center;
    text-align: left;
  }

  .mmp-home-imprints .mmp-home-imprint-logo {
    grid-column: 1;
    grid-row: 1 / span 3;
    align-self: center;
    margin: 0 !important;
  }

  .mmp-home-imprints .mmp-home-imprint-logo img {
    width: 104px;
    height: 104px;
  }

  .mmp-home-imprints .mmp-home-imprint-title,
  .mmp-home-imprints .mmp-home-imprint-body,
  .mmp-home-imprints .mmp-home-imprint-link {
    grid-column: 2;
    text-align: left;
  }

  .mmp-home-imprints .mmp-home-imprint-body {
    max-width: 44ch;
    margin: 0 0 1rem !important;
  }

  .mmp-home-imprints .mmp-home-imprint-link {
    justify-content: flex-start;
    margin: 0 !important;
  }
}


/* ==========================================================================
   PARTNERS ROW (added 2026-10-15, square logos)
   Sits between Imprints and Preservation. Square logo slots; treatment
   follows .mmp-pp-logo-img img in partners.css: grayscale, 0.5 opacity,
   full color on hover. Until square logos exist, each slot is a
   labeled dashed placeholder square (paragraph block).
   ========================================================================== */

.mmp-home-partners {
  width: 100%;
  background: #fff;
  border-bottom: 1px solid var(--mmp-page-border-light);
  padding: clamp(1.75rem, 3vw, 2.5rem) 0 !important;
}

.mmp-home-partners-wrap {
  text-align: center;
}

.mmp-home-partners-kicker {
  color: var(--mmp-page-muted);
  margin: 0 0 1.25rem !important;
}

.mmp-home-partners-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.25rem clamp(1.5rem, 3.5vw, 2.75rem);
}

/* Partner logos ([mmp_partner_logos]): wide boxes, since most logos are
   landscape; grey at 75% until hover. */
.mmp-home-partners-logos > .wp-block-image {
  margin: 0 !important;
  width: 140px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mmp-home-partners-logos .wp-block-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: grayscale(100%);
  opacity: 0.75;
  transition: opacity 0.25s ease, filter 0.25s ease;
}

.mmp-home-partners-logos .wp-block-image img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

@media (max-width: 680px) {
  .mmp-home-partners-logos > .wp-block-image {
    width: 110px;
    height: 48px;
  }
}
