/* ==========================================================================
   Landing page — what a guest sees at the bare domain.
   Offers both invitations; the guest name in ?to= is carried through.
   ========================================================================== */

.theme-landing {
  --navy: #0c2a5b;
  --navy-deep: #081c3d;
  --blush: #efd9d8;
  --cream: #fff0e4;
  --red: #931020;
  --red-deep: #5c0021;
  --gold: #e57120;

  --ink: var(--cream);
  --stage-bg: var(--navy-deep);
  --paper: var(--navy-deep);

  --tex: url('../img/wedding/tex-light.webp');
  --tex-opacity: 0.07;

  color: var(--cream);
  background: var(--navy-deep);
  min-height: 100svh;
}

.landing {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(40px, 7vh, 90px) 6vw;
  overflow: hidden;
}

.landing__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.landing__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 32%;
  opacity: 0.4;
}
.landing__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(110% 80% at 50% 40%, rgba(8, 28, 61, 0.5), rgba(8, 28, 61, 0.94) 74%),
    linear-gradient(to bottom, rgba(8, 28, 61, 0.7), rgba(8, 28, 61, 0.97));
}

.landing__inner {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: clamp(18px, 3vh, 30px);
  width: 100%;
  max-width: 900px;
  text-align: center;
}

.landing__monogram {
  width: clamp(78px, 13vw, 116px);
  aspect-ratio: 359 / 328;
  background: var(--cream);
  -webkit-mask: url('../img/wedding/monogram.webp') center / contain no-repeat;
  mask: url('../img/wedding/monogram.webp') center / contain no-repeat;
}

.landing__eyebrow {
  margin: 0;
  font-size: clamp(0.68rem, 2.4vw, 0.85rem);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  opacity: 0.85;
}

.landing__names {
  margin: 0;
  display: grid;
  justify-items: center;
  gap: 0;
}
.landing__names img { filter: brightness(0) invert(1); }
.landing__names img:first-of-type { width: clamp(150px, 26vw, 226px); }
.landing__names img:last-of-type  { width: clamp(220px, 39vw, 342px); margin-top: -0.5em; }

.landing__guest {
  position: relative;
  margin: 0;
  padding-top: 18px;
  font-family: var(--script);
  font-size: clamp(2.2rem, 7vw, 3.1rem);
  line-height: 1;
}
/* a hairline keeps the guest's name from reading as part of the couple's */
.landing__guest::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  translate: -50% 0;
  width: 46px;
  height: 1px;
  background: currentColor;
  opacity: 0.45;
}

.landing__intro {
  margin: 0;
  max-width: 46ch;
  font-size: clamp(0.95rem, 2.6vw, 1.05rem);
  opacity: 0.88;
}

/* ---------------------------------------------------------------- cards */
.landing__choices {
  display: grid;
  gap: clamp(16px, 2.6vw, 26px);
  width: 100%;
  margin-top: clamp(6px, 1.4vh, 16px);
}
@media (min-width: 760px) {
  .landing__choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.choice-card {
  position: relative;
  display: grid;
  align-content: end;
  gap: 6px;
  min-height: clamp(190px, 30vh, 280px);
  padding: clamp(20px, 3vw, 30px);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: var(--cream);
  isolation: isolate;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}
.choice-card:hover,
.choice-card:focus-visible {
  transform: translateY(-5px);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.45);
}
.choice-card:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; }

.choice-card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: scale 0.7s var(--ease);
}
.choice-card:hover img { scale: 1.05; }

.choice-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
}
.choice-card--sangjit::after {
  background: linear-gradient(to top, rgba(92, 0, 33, 0.94) 12%, rgba(147, 16, 32, 0.45) 65%, rgba(92, 0, 33, 0.25));
}
.choice-card--wedding::after {
  background: linear-gradient(to top, rgba(8, 28, 61, 0.94) 12%, rgba(12, 42, 91, 0.45) 65%, rgba(12, 42, 91, 0.25));
}

.choice-card__kicker {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  opacity: 0.9;
}
.choice-card--sangjit .choice-card__kicker { color: #f0a86a; }
.choice-card--wedding .choice-card__kicker { color: #b9cdf0; }

.choice-card__title {
  margin: 0;
  font-size: clamp(1.5rem, 4vw, 1.95rem);
  font-weight: 500;
  letter-spacing: 0.01em;
}
.choice-card__date {
  margin: 0;
  font-size: 0.95rem;
  opacity: 0.9;
}
.choice-card__go {
  margin: 10px 0 0;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.choice-card__go span { transition: translate 0.35s var(--ease); }
.choice-card:hover .choice-card__go span { translate: 5px 0; }

.landing__foot {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  opacity: 0.6;
}
