:root {
  --paper: #e9e7dc;
  --paper-deep: #dedccf;
  --ink: #171614;
  --muted: #77736a;
  --accent: #8d8490;
  --line: rgba(23, 22, 20, .16);
  --white: #f8f7f1;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  overflow-x: hidden;
}
button, a { font: inherit; }

.splash {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 38%, rgba(255,255,255,.55), transparent 34%),
    var(--paper);
  transition: opacity .9s ease, visibility .9s ease;
}
.splash.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.splash-inner { text-align: center; width: min(90vw, 620px); padding: 32px; position: relative; z-index: 2; }
.eyebrow {
  letter-spacing: .28em;
  text-transform: uppercase;
  font-size: 10px;
  color: var(--muted);
  margin: 0 0 18px;
}
.monogram {
  width: 76px; height: 76px; border: 1px solid var(--line);
  border-radius: 50%; display: grid; place-items: center;
  margin: 0 auto 22px; font-family: var(--serif); font-size: 22px;
}
.splash h1, .hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(64px, 11vw, 108px);
  line-height: .8;
  margin: 0;
  letter-spacing: -.055em;
}
.splash-date { font-family: var(--serif); font-size: 21px; margin: 28px 0; }
.open-btn {
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  padding: 15px 22px;
  min-width: 190px;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  gap: 22px;
  transition: .25s ease;
}
.open-btn:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); }
.arrow { font-size: 18px; line-height: 1; }
.tap-note { color: var(--muted); font-size: 11px; margin-top: 20px; }

.splash-flower {
  position: absolute; width: 280px; height: 280px; border-radius: 50%;
  border: 1px solid rgba(23,22,20,.05);
  filter: blur(.2px);
}
.flower-a { left: -180px; bottom: -130px; box-shadow: 100px -25px 0 -50px rgba(255,255,255,.7), 170px 30px 0 -70px rgba(255,255,255,.6); }
.flower-b { right: -190px; top: -150px; box-shadow: -80px 70px 0 -55px rgba(128,141,111,.2), -140px 100px 0 -65px rgba(128,141,111,.18); }

.invitation { opacity: 0; transition: opacity 1s ease; }
.invitation.visible { opacity: 1; }

.section { position: relative; width: min(1120px, 92vw); margin: 0 auto; }

.hero {
  min-height: 100svh;
  padding: 90px 0 70px;
  display: grid;
  grid-template-columns: 1fr .92fr;
  align-items: center;
  gap: clamp(30px, 6vw, 85px);
}
.hero-copy { padding-left: 5vw; position: relative; z-index: 2; }
.hero-copy h1 { font-size: clamp(70px, 9vw, 120px); margin-bottom: 32px; }
.ornament { font-size: 18px; color: var(--accent); margin-bottom: 22px; }
.intro { max-width: 430px; line-height: 1.8; color: #5f5b54; font-size: 14px; }
.hero h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(30px, 4vw, 47px);
  line-height: 1;
  margin: 25px 0 8px;
}
.parenthetical { color: var(--muted); font-family: var(--serif); font-size: 17px; }
.portrait-card {
  position: relative; overflow: hidden; border-radius: 48% 48% 46% 46%;
  box-shadow: 0 30px 70px rgba(40,38,32,.14);
  aspect-ratio: 1.02;
  transform: rotate(1deg);
}
.portrait-card img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 26%;
  transform: scale(1.16);
  filter: saturate(.8) contrast(.96);
}
.hero-orbit {
  position: absolute; width: 540px; height: 540px; right: -250px; top: 12%;
  border: 1px solid rgba(23,22,20,.08); border-radius: 50%;
}
.event-meta {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: 1fr auto 1fr auto 1.2fr;
  align-items: center; gap: 24px; padding-top: 20px;
  border-top: 1px solid var(--line);
}
.event-meta > div:not(.meta-divider) { display: flex; flex-direction: column; gap: 7px; }
.meta-label { font-size: 9px; letter-spacing: .2em; color: var(--muted); }
.event-meta strong { font-family: var(--serif); font-size: 21px; font-weight: 500; }
.meta-divider { width: 1px; height: 30px; background: var(--line); }

.countdown-section {
  text-align: center;
  padding: 120px 0;
  border-top: 1px solid var(--line);
}
.countdown-section h2, .message-card h2, .family-section > h2, .location-copy h2, .closing h2 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(42px, 6vw, 70px); line-height: .9; margin: 0 0 38px;
}
.countdown { display: flex; justify-content: center; gap: 12px; }
.count-box {
  width: clamp(74px, 13vw, 120px); aspect-ratio: .9;
  border: 1px solid var(--line); display: flex; flex-direction: column;
  justify-content: center; align-items: center; background: rgba(255,255,255,.14);
}
.count-box span { font-family: var(--serif); font-size: clamp(32px, 5vw, 50px); line-height: 1; }
.count-box small { margin-top: 8px; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .15em; }
.countdown-note { color: var(--muted); font-size: 12px; margin-top: 26px; }

.message-section {
  min-height: 620px; display: grid; place-items: center;
  border-top: 1px solid var(--line); overflow: hidden;
}
.message-card {
  width: min(650px, 88vw); text-align: center; padding: 70px 45px;
  background: rgba(255,255,255,.23); border: 1px solid rgba(23,22,20,.08);
  position: relative; z-index: 2;
}
.message-card h2 { font-size: clamp(40px, 5vw, 58px); margin-bottom: 25px; }
.message-card p:not(.eyebrow) { color: #625f58; line-height: 1.9; font-size: 14px; }
.signature { font-family: var(--serif); font-size: 20px; margin-top: 34px; }
.leaf-decoration { position: absolute; font-size: 220px; color: rgba(106,119,91,.13); font-family: var(--serif); }
.left-leaf { left: -55px; bottom: -85px; transform: rotate(-25deg); }
.right-leaf { right: -55px; top: -90px; transform: rotate(155deg); }

.family-section { padding: 120px 0; border-top: 1px solid var(--line); }
.family-section > .eyebrow, .family-section > h2 { text-align: center; }
.family-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 50px 80px; margin-top: 55px;
}
.family-column { padding-top: 20px; border-top: 1px solid var(--line); }
.family-column h3 { font-family: var(--serif); font-size: 28px; font-weight: 500; margin: 0 0 18px; }
.family-column p { margin: 9px 0; color: #514D48; font-family: var(--serif); font-size: 16px; }
.family-column.full { grid-column: 1 / -1; }
.grandchildren { columns: 2; column-gap: 70px; }

.location-section {
  display: grid; grid-template-columns: .8fr 1.2fr; gap: 55px;
  padding: 100px 0; border-top: 1px solid var(--line);
  align-items: stretch;
}
.location-copy { padding: 30px 0; }
.location-copy h2 { font-size: clamp(44px, 5vw, 62px); margin-bottom: 20px; }
.location-copy > p:not(.eyebrow) { color: var(--muted); line-height: 1.8; max-width: 420px; }
.map-btn {
  display: inline-block; margin-top: 18px; color: var(--ink);
  text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 5px;
  font-size: 12px; letter-spacing: .04em;
}
.map-wrap { min-height: 420px; border-radius: 3px; overflow: hidden; box-shadow: 0 20px 60px rgba(40,38,32,.13); }
.map-wrap iframe { width: 100%; height: 100%; min-height: 420px; border: 0; filter: grayscale(.8) sepia(.08); }

.closing { text-align: center; padding: 100px 0 130px; }
.closing-line { width: 80px; height: 1px; background: var(--line); margin: 0 auto 35px; }
.closing-flower { color: var(--accent); font-size: 20px; margin-bottom: 25px; }
.closing h2 { margin-bottom: 20px; }
.closing p { font-family: var(--serif); font-size: 22px; margin: 0 0 18px; }
.closing span { font-size: 10px; letter-spacing: .25em; color: var(--muted); }

.music-toggle {
  position: fixed; right: 20px; bottom: 20px; z-index: 20;
  width: 42px; height: 42px; border: 1px solid var(--line);
  border-radius: 50%; background: rgba(233,231,220,.85); backdrop-filter: blur(8px);
  cursor: pointer; color: var(--ink); display: grid; place-items: center;
}

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding-top: 65px; text-align: center; }
  .hero-copy { padding-left: 0; order: 1; }
  .portrait-card { order: 2; width: 86%; margin: 0 auto; }
  .hero-copy .intro { margin-left: auto; margin-right: auto; }
  .event-meta { order: 3; grid-template-columns: 1fr; text-align: center; gap: 14px; }
  .event-meta > div:not(.meta-divider) { align-items: center; }
  .meta-divider { width: 55px; height: 1px; margin: 0 auto; }
  .hero-orbit { width: 360px; height: 360px; right: -200px; top: 7%; }
  .countdown-section { padding: 85px 0; }
  .countdown { gap: 7px; }
  .count-box { width: 22vw; }
  .message-section { min-height: 570px; }
  .message-card { padding: 55px 25px; }
  .family-section { padding: 85px 0; }
  .family-grid { grid-template-columns: 1fr; gap: 35px; }
  .family-column.full { grid-column: auto; }
  .grandchildren { columns: 1; }
  .location-section { grid-template-columns: 1fr; gap: 30px; padding: 75px 0; }
  .map-wrap, .map-wrap iframe { min-height: 360px; }
  .left-leaf { left: -110px; }
  .right-leaf { right: -110px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
