:root {
  --bg: #f4f2ee;
  --surface: #f8f7f4;
  --white: #ffffff;
  --ink: #1f1f1d;
  --muted: #6f6c66;
  --accent: #7c5f46;
  --sage: #6f7a69;
  --border: #d8d4cd;
  --container: min(1080px, 94vw);
}

@font-face {
  font-family: "Great Vibes Local";
  src: url("./assets/Great_Vibes/GreatVibes-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  line-height: 1.52;
}

img {
  max-width: 100%;
  display: block;
}

.background-shape {
  display: none;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  letter-spacing: 0.02em;
}

h1 {
  font-size: clamp(2.45rem, 6.4vw, 4.45rem);
  font-weight: 500;
}

h2 {
  font-size: clamp(1.86rem, 4.1vw, 2.7rem);
  font-weight: 500;
}

h3 {
  font-size: clamp(1.18rem, 2.3vw, 1.58rem);
  font-weight: 600;
}

p {
  margin: 0;
}

.hero {
  width: 100%;
  margin: 0;
  padding: 2.75rem 1rem 2rem;
  text-align: center;
  background: var(--bg);
  border-top: 0;
  border-bottom: 1px solid var(--border);
}

.hero-eyebrow {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--sage);
  margin-bottom: 0.7rem;
}

.hero h1 {
  margin-bottom: 0.35rem;
  font-family: "Great Vibes Local", "Great Vibes", "Allura", "Snell Roundhand", "Brush Script MT", cursive;
  font-size: clamp(3.2rem, 8.2vw, 6rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.03;
}

.hero-names {
  font-family: "Great Vibes Local", "Great Vibes", "Allura", "Snell Roundhand", "Brush Script MT", cursive !important;
  font-weight: 400;
}

.hero-meta {
  color: var(--ink);
  font-size: clamp(1.02rem, 2vw, 1.22rem);
}

.hero-address {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.15rem;
}

.countdown {
  margin: 1.45rem auto 0;
  width: min(640px, 100%);
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(80px, 1fr));
  gap: 0.45rem;
}

.countdown-block {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 0.72rem 0.55rem;
}

.countdown-block span {
  display: block;
  font-size: clamp(1.3rem, 2.6vw, 2rem);
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  line-height: 1;
  color: var(--accent);
}

.countdown-block small {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

#countdown-label {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.75rem;
}

.hero-photo {
  width: 100vw;
  margin: 1.55rem calc(50% - 50vw) 0;
  border: 1px solid var(--border);
  background: transparent;
  position: relative;
  overflow: hidden;
}

.hero-photo img {
  width: 100%;
  height: clamp(240px, 34vw, 610px);
  object-fit: contain;
  background: var(--bg);
  filter: saturate(0.86) brightness(1.03);
}

.hero-photo figcaption {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.74);
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: clamp(2.45rem, 6.5vw, 5rem);
  font-style: italic;
  letter-spacing: 0.02em;
  text-shadow: 0 3px 14px rgba(17, 17, 17, 0.22);
  background: linear-gradient(to bottom, rgba(40, 40, 40, 0.08), rgba(40, 40, 40, 0.16));
}

.top-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  width: 100%;
  margin: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(248, 247, 244, 0.96);
  backdrop-filter: blur(5px);
  box-shadow: 0 3px 10px rgba(32, 30, 24, 0.045);
}

.menu-toggle {
  display: none;
  width: var(--container);
  margin: 0 auto;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: transparent;
  color: var(--ink);
  padding: 0.72rem 0;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-links {
  list-style: none;
  width: var(--container);
  margin: 0 auto;
  padding: 0.6rem 0;
  display: flex;
  justify-content: center;
  gap: 1.05rem;
  flex-wrap: wrap;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.71rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 0.2rem;
  border-bottom: 1px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
  border-color: var(--accent);
}

main {
  width: var(--container);
  margin: 0 auto;
}

.section {
  margin-top: 1.95rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--border);
}

.section-anchor {
  scroll-margin-top: 84px;
}

.section-title {
  margin-bottom: 0.72rem;
}

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--sage);
  font-size: 0.7rem;
  margin-bottom: 0.16rem;
}

.cards.two-up {
  display: grid;
  gap: 1.35rem;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
}

.card {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}

.card ul {
  margin: 0.55rem 0 0.8rem;
  padding-left: 1.1rem;
  color: var(--muted);
}

.agenda-heading {
  margin-top: 1.4rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

.agenda-list {
  list-style: none;
  padding: 0;
  margin: 0.58rem 0 0;
}

.agenda-list li {
  border-top: 1px solid var(--border);
  padding: 0.68rem 0;
  display: grid;
  gap: 0.08rem 0.9rem;
  grid-template-columns: minmax(104px, 122px) minmax(0, 1fr);
  align-items: start;
}

.agenda-time {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sage);
}

.agenda-content {
  display: grid;
  gap: 0.12rem;
}

.agenda-item-title {
  font-size: 0.92rem;
  color: var(--ink);
  font-weight: 600;
}

.agenda-note {
  font-size: 0.82rem;
  color: var(--muted);
}

.agenda-attire {
  margin-top: 0.28rem;
  font-size: 0.83rem;
  color: var(--muted);
}

.map-link {
  display: inline-block;
  margin-top: 0.1rem;
}

.text-link {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid #cdb8a6;
  padding-bottom: 0.06rem;
}

.card--invite {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.card--invite img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border: 1px solid var(--border);
}

.memory-lane {
  width: min(980px, 100%);
}

.memory-lane-stage {
  margin: 0;
  position: relative;
  border: 1px solid var(--border);
  background: transparent;
  overflow: hidden;
}

#memory-lane-image {
  width: 100%;
  height: clamp(430px, 66vw, 940px);
  object-fit: contain;
  transition: opacity 560ms ease, transform 960ms ease;
  transform-origin: center center;
  background: transparent;
  cursor: zoom-in;
}

#memory-lane-image.is-fading {
  opacity: 0.28;
  transform: scale(1.02);
}

.memory-lane-expand {
  position: absolute;
  top: 0.66rem;
  right: 0.66rem;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: rgba(14, 14, 14, 0.48);
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 0.5rem;
  cursor: pointer;
}

.memory-lane-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  background: rgba(4, 4, 4, 0.88);
  padding: 2rem;
}

.memory-lane-modal[hidden] {
  display: none;
}

.memory-lane-modal img {
  width: auto;
  max-width: min(96vw, 1500px);
  max-height: 88vh;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: #101010;
}

.memory-lane-close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.85);
  background: rgba(12, 12, 12, 0.52);
  color: #fff;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.5rem 0.6rem;
  cursor: pointer;
}

body.memory-lane-open {
  overflow: hidden;
}

.partner-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.partner-card {
  border-top: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  padding: 0.72rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.24rem;
  height: 100%;
}

.partner-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.partner-card-link:hover h3 {
  color: var(--accent);
}

.partner-card p {
  color: var(--muted);
  margin-top: 0.18rem;
  font-size: 0.85rem;
}

.logo-wrap {
  border: 1px solid var(--border);
  border-radius: 0;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  margin-bottom: 0.58rem;
  overflow: hidden;
  padding: 0.6rem;
}

.logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-wrap--photo {
  padding: 0.6rem;
  background: #f2f0ea;
}

.logo-wrap--photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-wrap--dark {
  background: #080808;
}

.logo-wrap--light {
  background: #f3f3f3;
}

.logo-wrap.missing-asset {
  background: #f9f6ef;
  border: 1px dashed #cdbba8;
}

.missing-asset-label {
  padding: 0.75rem;
  text-align: center;
  text-transform: uppercase;
  font-size: 0.69rem;
  letter-spacing: 0.09em;
  color: var(--accent);
}

.registry-wrap {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.registry-wrap p {
  color: var(--muted);
  margin-bottom: 0.52rem;
  font-size: 0.9rem;
}

.registry-status {
  margin-top: 0.48rem;
  margin-bottom: 0.05rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.button {
  display: block;
  width: 100%;
  text-decoration: none;
  background: var(--ink);
  color: #fff;
  border: 1px solid var(--ink);
  padding: 0.72rem 0.9rem;
  border-radius: 0;
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  transition: background-color 160ms ease, color 160ms ease;
  text-align: center;
}

.button:hover {
  background: transparent;
  color: var(--ink);
}

.registry-wrap iframe {
  margin-top: 0.66rem;
  width: 100%;
  height: min(92vh, 1100px);
  min-height: 840px;
  border: 1px solid var(--border);
  border-radius: 0;
  background: #fff;
}

.registry-wrap.embed-disabled iframe {
  display: none;
}

.site-footer {
  width: var(--container);
  margin: 1.7rem auto 2rem;
  border-top: 1px solid var(--border);
  padding-top: 0.72rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.78rem;
}

.reveal {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 280ms ease, transform 280ms ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 920px) {
  .cards.two-up,
  .partner-grid {
    grid-template-columns: 1fr;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    width: var(--container);
    padding: 0.45rem 0 0.7rem;
    justify-content: flex-start;
    gap: 0.48rem 0.9rem;
  }

  .top-nav.open .nav-links {
    display: flex;
  }

  .section-anchor {
    scroll-margin-top: 70px;
  }

  .registry-wrap iframe {
    min-height: 760px;
  }

  .agenda-list li {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}

@media (max-width: 660px) {
  .hero {
    padding-top: 2rem;
    padding-bottom: 1.55rem;
  }

  .countdown-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #memory-lane-image {
    height: 300px;
  }

  .hero-photo figcaption {
    font-size: clamp(2.2rem, 10vw, 3.6rem);
  }

  .registry-wrap iframe {
    min-height: 680px;
    height: 76vh;
  }
}
