/* =========================================================
   SMALL TOWN MAHJ — SIMPLIFIED LANDING PAGE
   Four moments only: hero, photos, brief about, invitation.
   ========================================================= */

/* Keep the landing page breathing. The mat should be visible between moments. */
.landing-moments,
.landing-about,
.landing-invite {
  padding-block: clamp(5rem, 9vw, 8rem);
}

/* ---------------------------------------------------------
   Photo shuffle
   --------------------------------------------------------- */
.landing-moments {
  background:
    radial-gradient(circle at 18% 72%, rgba(239,120,105,.08), transparent 23rem),
    radial-gradient(circle at 78% 25%, rgba(79,131,185,.14), transparent 28rem),
    transparent;
}

.landing-moments__stage {
  display: grid;
  grid-template-columns: minmax(280px,.72fr) minmax(440px,1.28fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 8rem);
}

.landing-moments__copy {
  position: relative;
  z-index: 4;
}

.landing-moments__copy h2 {
  max-width: 7.5em;
  margin: 0 0 1.2rem;
  color: #fffaf0;
  font-size: clamp(3.5rem, 6vw, 6.2rem);
  line-height: .92;
}

.landing-moments__copy > p:not(.eyebrow) {
  max-width: 27rem;
  color: rgba(255,250,240,.74);
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  line-height: 1.45;
}

.landing-photo-shuffle {
  min-height: 520px;
}

.landing-photo-shuffle .photo-shuffle__stack {
  width: min(440px, 36vw);
}

/* ---------------------------------------------------------
   Brief about — one porcelain object, not another webpage band
   --------------------------------------------------------- */
.landing-about {
  background: transparent;
}

.landing-about__panel {
  position: relative;
  display: grid;
  width: min(1080px, calc(100vw - 140px));
  grid-template-columns: minmax(0,1.25fr) minmax(220px,.75fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  border: 2px solid rgba(18,77,152,.72);
  border-radius: 22px 15px 25px 16px;
  background:
    radial-gradient(circle at 82% 16%, rgba(255,255,255,.82), transparent 24rem),
    #fff9ee;
  box-shadow:
    0 8px 0 #c9baa4,
    0 12px 0 rgba(3,31,73,.42),
    0 30px 48px rgba(0,10,35,.3),
    inset 0 0 0 7px rgba(79,131,185,.07);
  color: #17385f;
  padding: clamp(2.4rem, 5vw, 4.8rem);
  transform: rotate(.28deg);
}

.landing-about__panel::after {
  position: absolute;
  right: -3rem;
  bottom: -2.7rem;
  width: 18rem;
  height: 13rem;
  background: url('/decor/porcelain-sprig.svg') center/contain no-repeat;
  content: '';
  opacity: .1;
  pointer-events: none;
  transform: rotate(-8deg);
}

.landing-about__copy {
  position: relative;
  z-index: 2;
}

.landing-about__copy .eyebrow {
  color: #124d98;
}

.landing-about__copy h2 {
  max-width: 7em;
  margin: 0 0 1.2rem;
  color: #082f67;
  font-size: clamp(3.3rem, 5.4vw, 5.7rem);
  line-height: .94;
}

.landing-about__copy > p:not(.eyebrow) {
  max-width: 42rem;
  margin-bottom: 1.8rem;
  color: #4f637b;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.75;
}

.landing-about__link {
  color: #124d98;
  border-bottom-color: rgba(18,77,152,.45);
}

.landing-about__mark {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  align-content: center;
  min-height: 280px;
}

.landing-about__tile {
  display: grid;
  width: 112px;
  aspect-ratio: .74;
  place-items: center;
  border: 2px solid #124d98;
  border-radius: 8px 7px 10px 6px;
  background: #fffdf7;
  box-shadow: 0 7px 0 #c7b69b, 0 15px 24px rgba(0,18,49,.2);
  color: #e26358;
  font-family: var(--serif);
  font-size: 4rem;
  transform: rotate(-6deg);
}

.landing-about__line {
  margin-top: 2rem;
  color: #124d98;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  transform: rotate(2deg);
}

/* ---------------------------------------------------------
   Final invitation — intentionally short
   --------------------------------------------------------- */
.landing-invite {
  padding-top: clamp(4rem, 8vw, 7rem);
  padding-bottom: clamp(5rem, 9vw, 8rem);
}

.landing-invite__inner {
  position: relative;
  text-align: center;
}

.landing-invite__inner::before,
.landing-invite__inner::after {
  position: absolute;
  top: 50%;
  width: clamp(42px, 8vw, 120px);
  height: 1px;
  background: rgba(255,250,240,.26);
  content: '';
}

.landing-invite__inner::before { left: 0; }
.landing-invite__inner::after { right: 0; }

.landing-invite__inner h2 {
  max-width: 10em;
  margin: 0 auto 2rem;
  color: #fffaf0;
  font-size: clamp(3.2rem, 5.6vw, 5.8rem);
  line-height: .95;
}

.landing-invite__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.4rem 2rem;
  flex-wrap: wrap;
}

/* The footer should feel like a signature after this landing page, not another section. */
body:has(.landing-invite) .site-footer__invitation {
  display: none;
}

body:has(.landing-invite) .site-footer__top {
  grid-template-columns: minmax(240px,1fr) minmax(300px,1fr);
  padding-block: 2rem;
}

body:has(.landing-invite) .site-footer__nav {
  grid-column: auto;
  justify-content: flex-end;
}

/* ---------------------------------------------------------
   Tablet + mobile
   --------------------------------------------------------- */
@media (max-width: 980px) {
  .landing-moments__stage {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .landing-moments__copy {
    width: min(620px, 100%);
  }

  .landing-photo-shuffle {
    min-height: 470px;
  }

  .landing-photo-shuffle .photo-shuffle__stack {
    width: min(420px, 58vw);
  }

  .landing-about__panel {
    width: min(760px, calc(100vw - 90px));
    grid-template-columns: 1fr minmax(150px,.38fr);
    gap: 2rem;
  }

  .landing-about__mark {
    min-height: 220px;
  }
}

@media (max-width: 680px) {
  .landing-moments,
  .landing-about,
  .landing-invite {
    padding-block: 4.25rem;
  }

  .landing-moments__copy h2 {
    font-size: clamp(3.15rem, 13vw, 4.35rem);
  }

  .landing-moments__copy > p:not(.eyebrow) {
    font-size: 1.1rem;
  }

  .landing-photo-shuffle {
    min-height: 405px;
  }

  .landing-photo-shuffle .photo-shuffle__stack {
    width: min(330px, 74vw);
  }

  .landing-about__panel {
    width: calc(100vw - 56px);
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 2.5rem 1.35rem 2rem;
    border-radius: 18px 11px 20px 12px;
    transform: none;
  }

  .landing-about__copy h2 {
    font-size: clamp(3.05rem, 13vw, 4.2rem);
  }

  .landing-about__copy > p:not(.eyebrow) {
    line-height: 1.62;
  }

  .landing-about__mark {
    min-height: 140px;
    grid-template-columns: auto 1fr;
    align-items: center;
    justify-items: start;
    gap: 1rem;
  }

  .landing-about__tile {
    width: 72px;
    font-size: 2.6rem;
  }

  .landing-about__line {
    margin: 0;
    font-size: .6rem;
  }

  .landing-invite {
    padding-top: 3.75rem;
    padding-bottom: 4.8rem;
  }

  .landing-invite__inner::before,
  .landing-invite__inner::after {
    display: none;
  }

  .landing-invite__inner h2 {
    font-size: clamp(3rem, 13vw, 4.15rem);
  }

  .landing-invite__actions {
    flex-direction: column;
    gap: 1rem;
  }

  body:has(.landing-invite) .site-footer__top {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  body:has(.landing-invite) .site-footer__nav {
    justify-content: flex-start;
  }
}
