/* ==========================================================================
   MMP — Million Memory Project imprint page
   File: assets/css/million-memory-project.css
   ========================================================================== */

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


.mmp-mmp-hero-wrap,
.mmp-mmp-section-wrap,
.mmp-mmp-cta-inner {
  margin-inline: auto;
}

/* HERO */

.mmp-mmp-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 12%, rgba(216, 180, 106, 0.38), transparent 34%),
    radial-gradient(circle at 8% 88%, rgba(63, 84, 97, 0.18), transparent 38%),
    linear-gradient(135deg, var(--mmp-page-paper), var(--mmp-page-cream));
  padding-block: 86px 104px !important;
}

.mmp-mmp-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(63, 84, 97, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(63, 84, 97, 0.08) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.38;
  pointer-events: none;
}

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

.mmp-mmp-hero-grid {
  gap: 64px !important;
  align-items: center;
}

.mmp-mmp-hero-lede {
  margin-top: 20px !important;
  color: var(--mmp-page-blue);
  font-family: var(--mmp-font-editorial);
  font-size: clamp(1.35rem, 2.35vw, 1.8rem);
  line-height: 1.34;
}

.mmp-mmp-hero-body {
  color: var(--mmp-page-muted);
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 640px;
}

.mmp-mmp-hero-body {
  margin-top: 22px !important;
}

/* BUTTONS */

.mmp-mmp-btn-row {
  display: flex !important;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 34px !important;
}

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

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

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

/* SECTIONS */

.mmp-mmp-section {
  padding-block: 92px !important;
}

.mmp-mmp-section h2 {
  color: var(--mmp-page-ink) !important;
  max-width: 900px;
}

.mmp-mmp-section p {
  color: var(--mmp-page-muted);
}

/* WHY + BOOK (2026-10-23): while the imprint has one book, the "why"
   copy and its photo sit left and the book card right, in one section.
   With more books, go back to a separate three-across portfolio section. */

.mmp-mmp-feature .mmp-why-grid {
  --mmp-split: 60%;
  align-items: flex-start !important;
}

.mmp-mmp-feature .mmp-why-copy .mmp-why-image {
  max-width: none;
  margin: 32px 0 0 !important;
}

.mmp-mmp-feature .mmp-imprint-books {
  margin-top: 0;
}

/* One card, full column width. The extra class outranks books.css's
   two-across tablet rule, which loads later with equal specificity. */
.mmp-mmp-feature .mmp-mmp-feature-books .mmp-imprint-books ul.products {
  grid-template-columns: minmax(0, 1fr) !important;
}

/* Stacked (900px, primary.css): the card keeps a card size. */
@media (max-width: 900px) {
  .mmp-mmp-feature .mmp-mmp-feature-books .mmp-imprint-books ul.products {
    max-width: 420px;
  }
}

/* STORYBOOK FLOW */

.mmp-mmp-storybook {
  background:
    radial-gradient(circle at 18% 18%, rgba(216, 180, 106, 0.24), transparent 34%),
    linear-gradient(135deg, var(--mmp-page-blue), var(--mmp-page-ink));
  color: var(--mmp-page-paper);
}

.mmp-mmp-storybook h2,
.mmp-mmp-storybook h3 {
  color: var(--mmp-page-paper) !important;
}

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

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

.mmp-mmp-flow {
  gap: 22px !important;
  margin-top: 44px !important;
}

.mmp-mmp-step {
  background: rgba(255, 250, 241, 0.08);
  border: 1px solid rgba(255, 250, 241, 0.17);
  border-radius: 26px;
  padding: 30px !important;
}

.mmp-mmp-step:nth-child(1) {
  background: rgba(255, 250, 241, 0.10);
}

.mmp-mmp-step:nth-child(2) {
  background: rgba(216, 180, 106, 0.16);
}

.mmp-mmp-step:nth-child(3) {
  background: rgba(107, 124, 122, 0.22);
}

/* GALLERY */

/* Grid, main and side images: shared with the AMP page, see "Imprint page galleries" in primary.css. */

.mmp-mmp-image {
  margin: 0 !important;
}

.mmp-mmp-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* CTA */

.mmp-mmp-cta {
  background:
    radial-gradient(circle at 15% 20%, rgba(216, 180, 106, 0.34), transparent 32%),
    radial-gradient(circle at 90% 80%, rgba(107, 124, 122, 0.20), transparent 38%),
    var(--mmp-page-ink);
  color: var(--mmp-page-paper);
  text-align: center;
  padding-block: 96px !important;
}

.mmp-mmp-cta-inner {
  max-width: 880px;
}

.mmp-mmp-cta h2 {
  color: var(--mmp-page-paper) !important;
}

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

.mmp-mmp-cta p {
  color: rgba(255, 250, 241, 0.82);
  margin: 24px auto 0 !important;
  max-width: 680px;
}

.mmp-mmp-cta .mmp-mmp-btn-row {
  justify-content: center;
}

.mmp-mmp-cta .mmp-mmp-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-mmp-cta .mmp-mmp-btn-outline .wp-block-button__link {
  background: transparent !important;
  color: var(--mmp-page-paper) !important;
  border-color: rgba(255, 250, 241, 0.55) !important;
}

/* RESPONSIVE */

@media (max-width: 900px) {
  .mmp-mmp-hero,
  .mmp-mmp-section,
  .mmp-mmp-cta {
    padding-top: 68px !important;
    padding-bottom: 68px !important;
  }

  .mmp-mmp-hero-grid,
  .mmp-mmp-flow {
    flex-direction: column !important;
  }
}

@media (max-width: 620px) {

  .mmp-mmp-step {
    border-radius: 22px;
    padding: 24px !important;
  }
}
/* ==========================================================================
   HERO — MMP brown (2026-10-15)
   Ink-to-clay, matching the Million Memory Project section on the
   Imprints page. Text, buttons and grid lines flip to light; the dark
   tree logo is recolored to paper until a light logo file exists.
   ========================================================================== */

.mmp-mmp-hero {
  background:
    radial-gradient(circle at 88% 12%, rgba(216, 180, 106, 0.22), transparent 34%),
    linear-gradient(135deg, var(--mmp-page-ink), var(--mmp-page-clay));
  color: var(--mmp-page-paper);
}

.mmp-mmp-hero::before {
  background:
    linear-gradient(90deg, rgba(255, 250, 241, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 250, 241, 0.06) 1px, transparent 1px);
  background-size: 64px 64px;
}

.mmp-mmp-hero .mmp-mmp-hero-lede {
  color: var(--mmp-page-paper);
}

.mmp-mmp-hero .mmp-mmp-hero-body {
  color: rgba(255, 250, 241, 0.88);
}

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

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

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

.mmp-mmp-hero .wp-block-image img {
  filter: brightness(0) invert(1) sepia(0.12);
}

/* Page grid (2026-10-19): the inner .mmp-container(-wide) sets the gutter,
   so sections add none of their own (content lines up with the header). */

/* Redesign (2026-10-19): portfolio of the imprint's books (store cards,
   books.css) on white. */
.mmp-mmp-portfolio {
  background: var(--mmp-white);
}
