/* HOME CSS v1 - if you don't see changes, you're not loading this file */
/* Home-page only. */

/* =========================================================
   HOME FINAL - full-page photo + crisp paper cards (single source of truth)
   ========================================================= */

/* Kill the dot grid overlay on home (it dirties the photo) */
.home-page::before { opacity: 0; }

.home-page {
  --sun-x: 90%;
  --sun-y: 68%;
}

/* Full-page photo background stays behind everything */
.home-page .page {
  min-height: 100vh;
  background:
    radial-gradient(
      ellipse at 55% 22%,
      rgba(252, 248, 240, 0.26) 0%,
      rgba(252, 248, 240, 0.12) 42%,
      rgba(25, 18, 14, 0.06) 100%
    ),
    linear-gradient(
      rgba(247, 236, 221, 0.28),
      rgba(233, 213, 183, 0.16)
    ),
    url("/assets/photos/antica.png") center / cover no-repeat;
}

/* Home header + nav: stable on photo */
.home-page .site-header {
  position: sticky;
  top: 0;
  z-index: 2;
  background: transparent;
  border-bottom: none;
  backdrop-filter: none;
  padding-top: 24px;
  isolation: isolate;
  box-shadow: none;
}

.home-page .site-header-inner {
  position: relative;
  z-index: 1;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
}

.home-page .site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(252, 248, 240, 0.82) 0%,
    rgba(252, 248, 240, 0.34) 55%,
    rgba(252, 248, 240, 0.00) 100%
  );
  pointer-events: none;
  z-index: 0;
}

.home-page .brand-copy {
  display: none;
}

.home-page .brand-crest {
  width: clamp(76px, 9vw, 118px);
}

.home-page .nav-rsvp {
  display: none;
}

.home-page .site-nav > a,
.home-page .nav-details > summary {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: rgba(33, 24, 18, 0.84);
}

.home-page .nav-actions a {
  background: rgba(248, 239, 227, 0.26);
  border-color: rgba(90, 71, 58, 0.34);
  color: rgba(44, 33, 27, 0.92);
}

/* Hero wrapper: layout only, no visible card layer */
.home-page .hero-invite-card {
  position: relative;
  display: inline-block;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  z-index: 1;
}

.home-page .hero-names {
  font-family: "Amoresa Aged", "Amoresa", var(--script);
  font-size: clamp(3.3rem, 7.2vw, 5.9rem);
  letter-spacing: 0.01em;
  font-weight: 400;
  line-height: 1.18;
  margin: 12px 0 8px;
  display: inline-block;
  padding-top: 0.16em;
  padding-bottom: 0.12em;
  color: #4a2c1d;
}

/* Prevent script swashes from clipping */
.home-page .hero-invite,
.home-page .hero-invite-card {
  overflow: visible;
}

/* Localized spotlight behind hero stack (avoid global dim) */
.home-page .hero-invite {
  position: relative;
}

.home-page .hero-invite::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%);
  width: min(980px, 92vw);
  height: 420px;
  background: radial-gradient(
    ellipse at center,
    rgba(252, 248, 240, 0.26) 0%,
    rgba(252, 248, 240, 0.1) 42%,
    rgba(252, 248, 240, 0) 72%
  );
  pointer-events: none;
  z-index: 0;
}

@supports (-webkit-background-clip: text) or (background-clip: text) {
  .home-page .hero-names {
    background-image:
      radial-gradient(
        circle at var(--sun-x) var(--sun-y),
        rgba(255, 252, 236, 0.98) 0%,
        rgba(255, 224, 168, 0.58) 14%,
        rgba(255, 224, 168, 0.00) 46%
      ),
      linear-gradient(
        90deg,
        rgba(120, 165, 140, 0.18) 0%,
        rgba(120, 165, 140, 0.00) 44%
      ),
      linear-gradient(
        180deg,
        #fff1d8 0%,
        #f7d29a 18%,
        #d6a35a 42%,
        #9a5c33 72%,
        #4a2617 100%
      );
    background-size: 170% 170%, 100% 100%, 100% 100%;
    background-position: 50% 50%, 0 0, 0 0;
    background-blend-mode: screen, soft-light, normal;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 0.45px rgba(33, 20, 14, 0.28);
    text-shadow:
      -0.7px -0.7px 0 rgba(120, 165, 140, 0.20),
      0 0 18px rgba(255, 228, 170, 0.22),
      0 10px 26px rgba(0, 0, 0, 0.14);
    filter: saturate(1.06) contrast(1.04);
  }
}

@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .home-page .hero-names {
    color: #4a2c1d;
    text-shadow: 0 10px 26px rgba(0, 0, 0, 0.14);
  }
}

/* Home hero microtype contrast */
.home-page .hero-eyebrow span {
  font-size: clamp(0.88rem, 1.08vw, 0.98rem);
  font-weight: 600;
  letter-spacing: 0.28em;
  color: rgba(33, 24, 18, 0.82);
  text-shadow: 0 1px 0 rgba(252, 248, 240, 0.22);
}

.home-page .hero-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 auto 6px;
  color: rgba(48, 36, 29, 0.94);
}

.home-page .hero-eyebrow .hero-eyebrow-prefix,
.home-page .hero-eyebrow .hero-eyebrow-suffix {
  font-size: clamp(0.84rem, 1.05vw, 0.98rem);
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.home-page .hero-eyebrow .hero-eyebrow-word {
  font-size: clamp(1.02rem, 1.45vw, 1.26rem);
  letter-spacing: 0.1em;
  font-weight: 500;
  text-transform: uppercase;
}

.home-page .hero-date {
  font-size: clamp(1.02rem, 1.45vw, 1.26rem);
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgba(33, 24, 18, 0.74);
  margin: 0;
  text-shadow: 0 1px 0 rgba(252, 248, 240, 0.22);
}

.home-page .hero-actions {
  margin-top: 0;
  display: inline-flex;
  gap: 12px;
}

.home-page .hero-actions .btn {
  min-width: 190px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.84rem;
  letter-spacing: 0.18em;
  border-radius: 999px;
  padding: 11px 24px;
  background: rgba(252, 248, 240, 0.46);
  border: 1px solid rgba(33, 24, 18, 0.3);
  color: rgba(33, 24, 18, 0.86);
}

.home-page .hero-actions .btn.secondary {
  background: rgba(245, 237, 227, 0.38);
  color: rgba(33, 24, 18, 0.78);
  border-color: rgba(60, 45, 30, 0.28);
}

.home-page .hero-actions .btn:hover,
.home-page .hero-actions .btn:focus-visible {
  background: rgba(252, 248, 240, 0.62);
  border-color: rgba(33, 24, 18, 0.42);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.home-page .hero-meta {
  margin-bottom: 22px;
}

.home-page .hero-badge {
  background: rgba(241, 231, 217, 0.7);
  border: 1px solid rgba(109, 88, 71, 0.22);
  color: rgba(48, 36, 30, 0.88);
}

/* OVERVIEW: force 2-column grid + equal heights (override generic .overview) */
.home-page .overview.home-overview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: stretch;
  padding: 18px 0 66px;
}

@media (max-width: 980px) {
  .home-page .site-header {
    padding-top: 14px;
  }

  .home-page .site-nav > a,
  .home-page .nav-details > summary {
    font-size: 0.68rem;
    letter-spacing: 0.16em;
  }

  .home-page .brand-crest {
    width: clamp(64px, 19vw, 92px);
  }

  .home-page .hero-invite {
    padding: 24px 0 18px;
  }

  .home-page .hero-invite-card {
    width: min(100%, 760px);
    padding: 26px 20px 22px;
  }

  .home-page .hero-date {
    letter-spacing: 0.08em;
  }

  .home-page .hero-actions .btn {
    min-width: 0;
    width: min(250px, 100%);
    font-size: 0.82rem;
    padding: 12px 18px;
  }

  .home-page .hero-actions {
    width: auto;
    flex-wrap: wrap;
    justify-content: center;
  }

  .home-page .hero-panel p {
    font-size: clamp(1rem, 4vw, 1.22rem);
  }
}

@media (max-width: 900px) {
  .home-page .overview.home-overview {
    grid-template-columns: 1fr;
  }
}

/* Overview cards: same material system as hero */
.home-page .hero-card,
.home-page .hero-panel {
  background: rgba(252, 248, 240, 0.82);
  border: 1px solid rgba(60, 45, 30, 0.18);
  border-radius: var(--radius);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;

  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Fix oversized text in main cards */
.home-page .hero-title,
.home-page .panel-title {
  font-size: clamp(1.7rem, 2.3vw, 2.55rem);
  line-height: 1.08;
  margin-bottom: 14px;
}

/* Left card meta line */
.home-page .hero-date-inline {
  margin: 0 0 14px;
  font-size: 12.5px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(33, 24, 18, 0.62);
}

.home-page .hero-panel p {
  font-size: 15.5px;
  line-height: 1.55;
  margin: 0 0 12px;
  color: rgba(33, 24, 18, 0.86);
}

/* Bottom-align CTA and signoff */
.home-page .hero-inline-cta {
  margin-top: auto;
  align-self: flex-start;
}

.home-page .hero-signoff {
  margin-top: auto !important;
  font-size: 14.5px !important;
  font-style: italic;
  color: rgba(33, 24, 18, 0.70);
}

/* QUICK LINKS: readable cards on photo */
.home-page .home-quick-links .card {
  background: rgba(252, 248, 240, 0.82);
  border: 1px solid rgba(60, 45, 30, 0.18);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.10);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.home-page .home-quick-links .btn,
.home-page .home-quick-links a.btn {
  border-radius: 999px;
}

.home-page .home-quick-links .pill {
  background: rgba(241, 231, 217, 0.75);
  border: 1px solid rgba(109, 88, 71, 0.26);
  color: rgba(48, 36, 30, 0.88);
}

/* Keep title crisp */
.home-page .home-quick-links .section-title {
  position: relative;
  display: inline-block;
  padding: 10px 22px;
  text-shadow: 0 8px 18px rgba(0, 0, 0, 0.10);
  color: rgba(33, 24, 18, 0.92);
}

.home-page .home-quick-links .section-title::before {
  content: "";
  position: absolute;
  inset: -16px -34px;
  border-radius: 999px;
  background: radial-gradient(
    ellipse at center,
    rgba(252, 248, 240, 0.70) 0%,
    rgba(252, 248, 240, 0.26) 56%,
    rgba(252, 248, 240, 0.00) 78%
  );
  filter: blur(12px);
  z-index: -1;
}

.home-page .footer {
  margin-top: 26px;
  border-top-color: rgba(255, 255, 255, 0.26);
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.34);
}

.home-page .footer p {
  color: inherit;
}

/* Remove decorative lines/ornaments in hero on home */
.home-page .site-header-inner::after,
.home-page .hero-eyebrow::before,
.home-page .hero-eyebrow::after,
.home-page .hero-divider,
.home-page .hero-divider::before,
.home-page .hero-divider::after {
  content: none !important;
  display: none !important;
}

