:root {
  --cream: #fbf6ee;
  --ink: #4a2430;
  --maroon: #6d2233;
  --maroon-deep: #4a0b16;
  --gold: #b08a3f;
  --gold-soft: #d4b25e;
  --gold-dim: #7d5e28;
  --line: rgba(176, 138, 63, 0.72);
  --serif: "Playfair Display", Georgia, serif;
  --body: "Cormorant Garamond", Georgia, serif;
  --sans: Montserrat, "Segoe UI", sans-serif;
  --script: "Great Vibes", cursive;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-bottom: 96px; }
body {
  margin: 0;
  min-height: 100svh;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 20px;
  line-height: 1.45;
}
body.locked { overflow: hidden; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
img, video { max-width: 100%; }
::selection { background: #ead7a4; color: var(--maroon-deep); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
[hidden] { display: none !important; }

#loader {
  min-height: 100svh;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 16px;
  text-align: center;
  color: var(--gold-dim);
  font-family: var(--sans);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 11px;
}
.loader-gem, .ornament b, .diamond, .dot {
  width: 9px;
  height: 9px;
  background: var(--gold);
  transform: rotate(45deg);
  box-shadow: 0 0 10px rgba(176, 138, 63, 0.45);
}
.noscript { padding: 24px; text-align: center; }

#cover {
  position: fixed;
  inset: 0;
  z-index: 50;
  overflow: hidden;
  background: #2a1014;
  color: #f8f1e4;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}
#cover.is-leaving { opacity: 0; visibility: hidden; }
.cover-still, #cover video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cover-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(28, 8, 12, 0.28), transparent 24%, transparent 42%, rgba(22, 6, 10, 0.45) 68%, rgba(16, 4, 8, 0.78));
}
.cover-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  text-align: center;
  padding: 0 22px 11vh;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}
.cover-label {
  margin: 0;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: #f0d78a;
}
.cover-greeting {
  margin: 18px 0 0;
  font-style: italic;
  font-size: 24px;
}
.cover-names {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 0 12px;
  margin: 6px 0 0;
  font-family: var(--script);
  font-size: clamp(52px, 13vw, 92px);
  font-weight: 400;
  line-height: 0.9;
  color: #f6e7c1;
}
.cover-names em { font-style: normal; color: #f0b7c4; font-size: 0.72em; }
.cover-date {
  margin: 8px 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 4vw, 30px);
}
.enter {
  margin-top: 22px;
  border: 0;
  border-radius: 999px;
  padding: 14px 28px;
  background: linear-gradient(#f0e0ae, #b08a3f);
  color: #3d2910;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}
#cover .music-fab { top: 18px; bottom: auto; right: 18px; }

#stage { position: relative; }
.bloom { position: fixed; pointer-events: none; z-index: 4; mix-blend-mode: multiply; }
.bloom.top, .bloom.bottom { position: absolute; }
.bloom .pic { width: 100%; height: 100%; background-repeat: no-repeat; background-size: cover; }
.bloom.left, .bloom.right { top: 0; bottom: 0; width: clamp(108px, 24vw, 460px); }
.bloom.left { left: 0; -webkit-mask-image: linear-gradient(90deg, #000 34%, transparent 96%); mask-image: linear-gradient(90deg, #000 34%, transparent 96%); }
.bloom.right { right: 0; -webkit-mask-image: linear-gradient(270deg, #000 34%, transparent 96%); mask-image: linear-gradient(270deg, #000 34%, transparent 96%); }
.bloom.right .pic { transform: scaleX(-1); }
.bloom.top, .bloom.bottom { left: 0; right: 0; }
.bloom.top { top: 0; height: clamp(78px, 16vh, 190px); -webkit-mask-image: linear-gradient(#000 18%, transparent); mask-image: linear-gradient(#000 18%, transparent); }
.bloom.bottom { bottom: 0; height: clamp(70px, 13vh, 160px); -webkit-mask-image: linear-gradient(transparent, #000 72%); mask-image: linear-gradient(transparent, #000 72%); }
.bloom.bottom .pic { transform: scaleY(-1); }

#butterflies { position: fixed; inset: 0; z-index: 6; pointer-events: none; overflow: hidden; }
.butterfly { position: absolute; left: var(--x); top: var(--y); width: var(--s); animation: wander var(--d) ease-in-out var(--delay) infinite alternate; }
.butterfly .wings { transform-box: fill-box; transform-origin: center; animation: flap 0.7s ease-in-out infinite; }
.petal {
  position: absolute;
  top: -12px;
  width: 8px;
  height: 12px;
  border-radius: 80% 10% 80% 10%;
  background: #e4b3c0;
  opacity: 0.7;
  animation: fall linear infinite;
}
@keyframes wander {
  from { transform: translate3d(0, 0, 0) rotate(var(--rot)); }
  to { transform: translate3d(var(--dx), var(--dy), 0) rotate(calc(var(--rot) * -1)); }
}
@keyframes flap { 50% { transform: scaleX(0.42); } }
@keyframes fall { to { transform: translate3d(var(--drift), 108vh, 0) rotate(280deg); } }

.sheet {
  position: relative;
  z-index: 2;
  width: min(540px, 100%);
  margin: 0 auto;
  padding: clamp(28px, 7vh, 64px) 12px 132px;
}
.block, .frame { scroll-margin-top: 16px; text-align: center; margin: 0 6px 42px; }
.kicker, .year, .hero-time, .hero-venue, .hint, .shade span, .tick span {
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
.kicker { margin: 0; color: var(--gold-dim); font-size: 11px; }
h1, h2, h3 { font-weight: 500; }
h2 {
  margin: 8px 0 0;
  font-family: var(--serif);
  font-size: clamp(34px, 7vw, 48px);
  color: var(--maroon);
  line-height: 1.05;
}
.ornament { display: flex; align-items: center; gap: 8px; width: 148px; margin: 16px auto; }
.ornament i { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-soft)); }
.ornament i:last-child { background: linear-gradient(90deg, var(--gold-soft), transparent); }
.ornament b { flex: none; }

.frame { position: relative; padding: 54px 26px 40px; }
.frame::before, .frame::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
.frame::before { inset: 10px; border: 1.5px solid rgba(176, 138, 63, 0.85); }
.frame::after { inset: 16px; border: 1px solid rgba(176, 138, 63, 0.4); }
.corner { position: absolute; width: 26px; height: 26px; z-index: 1; }
.corner.tl { top: 4px; left: 4px; border-top: 1px solid var(--gold); border-left: 1px solid var(--gold); }
.corner.tr { top: 4px; right: 4px; border-top: 1px solid var(--gold); border-right: 1px solid var(--gold); }
.corner.bl { bottom: 4px; left: 4px; border-bottom: 1px solid var(--gold); border-left: 1px solid var(--gold); }
.corner.br { bottom: 4px; right: 4px; border-bottom: 1px solid var(--gold); border-right: 1px solid var(--gold); }
.diamond { position: absolute; left: 50%; z-index: 1; }
.diamond.top { top: 6px; transform: translateX(-50%) rotate(45deg); }
.diamond.bottom { bottom: 6px; transform: translateX(-50%) rotate(45deg); }

.names {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(54px, 13vw, 78px);
  line-height: 0.88;
  color: #6b1d32;
}
.names em, .fullnames em {
  display: block;
  font-family: var(--script);
  font-style: normal;
  color: var(--gold);
  font-size: 0.58em;
  line-height: 1;
  margin: 2px 0;
}
.tagline, .lede, .chapter p, .event-note, .thanks p, .film-caption, .area {
  margin: 12px auto 0;
  max-width: 34ch;
  font-size: 22px;
}
.tagline, .lede { font-style: italic; }
.hero-date {
  margin: 16px 0 0;
  font-family: var(--script);
  font-size: 44px;
  color: var(--maroon);
  line-height: 1;
}
.hero-time { margin: 12px 0 0; font-size: 12px; color: var(--maroon); letter-spacing: 0.34em; }
.hero-venue { margin: 14px 0 0; font-size: 12px; color: var(--gold-dim); line-height: 1.7; }

.portrait { margin: 22px auto 8px; width: min(100%, 360px); }
.portrait img { display: block; width: 100%; aspect-ratio: 3/4; object-fit: cover; border: 1px solid var(--line); }
.panel {
  margin: 18px 8px 0;
  padding: 26px 18px 22px;
  border: 1px solid rgba(176, 138, 63, 0.4);
  background: rgba(255, 252, 248, 0.35);
}
.fullnames {
  margin: 8px 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(28px, 6vw, 36px);
  color: var(--maroon);
  line-height: 1.15;
}
.fullnames em { display: inline; font-size: 0.9em; margin: 0 4px; }
.timeline { position: relative; margin: 34px 8px 0; padding-left: 36px; text-align: left; }
.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: linear-gradient(var(--gold-soft), rgba(176, 138, 63, 0.15));
}
.chapter { position: relative; padding: 0 0 26px; }
.dot {
  position: absolute;
  left: -32px;
  top: 6px;
  width: 8px;
  height: 8px;
  box-shadow: none;
}
.year { margin: 0; font-size: 11px; color: var(--gold-dim); }
.chapter h3 {
  margin: 2px 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 30px;
  color: var(--maroon);
}
.chapter p { margin: 6px 0 0; max-width: 36ch; }
.closing {
  margin: 8px 0 0;
  font-family: var(--script);
  font-size: 40px;
  color: var(--maroon);
}

.ticks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 22px; }
.tick {
  border: 1px solid var(--line);
  background: rgba(255, 252, 247, 0.55);
  padding: 14px 2px 12px;
}
.tick b {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 7vw, 40px);
  color: var(--maroon);
  letter-spacing: 0;
}
.tick span { display: block; margin-top: 4px; font-size: 8px; letter-spacing: 0.16em; color: var(--gold-dim); }
.count-sub { margin-top: 8px; }

.facts { list-style: none; margin: 18px 0 0; padding: 0; font-size: 24px; }
.facts li + li { margin-top: 4px; }
.hotline-fact { margin-top: 14px !important; }
.hotline-fact span, .hotline-foot > span {
  display: block;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-dim);
}
.hotline-num {
  color: var(--maroon);
  font-family: var(--serif);
  font-style: italic;
  text-decoration: none;
}
a.hotline-num { border-bottom: 1px solid rgba(176, 138, 63, 0.7); }
.hotline-card { margin-top: 26px; }
.hotline-line, .hotline-foot { margin: 6px 0 0; font-size: 32px; line-height: 1.3; }
.hotline-sep { color: var(--gold-dim); font-style: italic; }
.hotline-foot { margin-top: 22px; font-size: 28px; }
.gold-btn, .link-btn, .submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  border: 0;
  border-radius: 999px;
  padding: 13px 22px;
  background: linear-gradient(#f0e0ae, #b08a3f);
  color: #3d2910;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
}
.link-btn { border: 1px solid var(--gold); background: transparent; color: var(--maroon); }
.hint { margin: 8px 0 0; font-size: 9px; letter-spacing: 0.16em; color: var(--gold-dim); }
.style { margin: 10px 0 0; font-family: var(--serif); font-style: italic; font-size: 32px; color: var(--maroon); }
.shades { display: flex; justify-content: center; gap: 14px; margin-top: 18px; }
.shade { display: grid; justify-items: center; gap: 6px; }
.shade i { width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(74, 11, 22, 0.15); }
.shade span { font-size: 8px; letter-spacing: 0.14em; color: var(--gold-dim); }

.player { position: relative; margin: 18px auto 0; width: min(100%, 420px); border: 1px solid var(--line); padding: 7px; background: #1a0c10; }
.player video { display: block; width: 100%; max-height: 72vh; object-fit: cover; background: #1a0c10; }
.play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 74px;
  height: 74px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(#f3e4b8, #b08a3f);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}
.play span {
  display: block;
  width: 0;
  height: 0;
  margin-left: 6px;
  border-left: 18px solid #3d2910;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
}
.film-caption { font-style: italic; }
.photos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.photos button { display: block; padding: 0; border: 0; background: none; overflow: hidden; }
.photos img { display: block; width: 100%; aspect-ratio: 3/4; object-fit: cover; transition: transform 0.8s ease; }
.photos button:hover img, .photos button:focus-visible img { transform: scale(1.04); }
.photos .wide { grid-column: 1 / -1; }
.photos .wide img { aspect-ratio: 4/5; }
.photos figcaption { margin-top: 6px; font-style: italic; font-size: 16px; color: var(--gold-dim); }

.area { font-style: italic; }
.map { margin: 18px 8px 0; border: 1px solid var(--line); overflow: hidden; min-height: 220px; background: #efe6da; }
.map iframe { display: block; width: 100%; height: 240px; border: 0; }

.rsvp-form { margin-top: 8px; text-align: left; }
.field { display: block; margin-top: 16px; }
.field span, .stepper p {
  display: block;
  margin-bottom: 6px;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dim);
}
.field input, .field textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  padding: 8px 2px;
  border-radius: 0;
}
.field textarea { min-height: 72px; resize: vertical; }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.choice button {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--maroon);
  border-radius: 999px;
  padding: 12px 8px;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.choice button.on-yes { background: var(--maroon); color: var(--cream); border-color: var(--maroon); }
.choice button.on-no { background: #3c2c30; color: var(--cream); border-color: #3c2c30; }
.stepper { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.stepper p { margin: 0; }
.stepper div { display: flex; align-items: center; gap: 10px; }
.stepper button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--maroon);
}
.stepper b { min-width: 1ch; font-family: var(--serif); font-size: 28px; font-weight: 500; }
.submit { width: 100%; }
.form-error { min-height: 1.2em; color: #8d2434; font-style: italic; }
.thanks h3 { margin: 8px 0 0; font-family: var(--serif); font-style: italic; font-size: 36px; color: var(--maroon); }
.byline { margin-top: 14px; font-style: italic; }

.footer { padding-bottom: 12px; }
.footer-date { margin: 8px 0 0; font-family: var(--script); font-size: 42px; color: var(--maroon); }
.sign { margin: 8px 0 0; font-family: var(--serif); font-style: italic; font-size: 28px; color: var(--maroon); }

.dock {
  position: fixed;
  z-index: 30;
  left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: flex;
  gap: 2px;
  padding: 6px;
  background: rgba(255, 252, 248, 0.94);
  border: 1px solid rgba(176, 138, 63, 0.35);
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(74, 11, 22, 0.12);
  backdrop-filter: blur(10px);
}
.dock a {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--maroon);
  text-decoration: none;
}
.dock a.active { background: var(--gold); color: white; }
.dock svg, .music-fab svg { width: 18px; height: 18px; display: block; }
.music-fab {
  position: fixed;
  z-index: 31;
  right: 14px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: white;
  background: radial-gradient(circle at 40% 35%, #edd9a4, #b08a3f 58%, #8a6828);
  box-shadow: 0 8px 20px rgba(140, 109, 42, 0.35);
}
.music-fab.is-on { box-shadow: 0 0 0 6px rgba(176, 138, 63, 0.18), 0 8px 20px rgba(140, 109, 42, 0.35); }

#lightbox {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 54px 18px 28px;
  background: rgba(22, 8, 12, 0.9);
}
#lightbox img { max-width: min(92vw, 760px); max-height: 78vh; object-fit: contain; }
#lightbox p { position: absolute; left: 0; right: 0; bottom: 18px; margin: 0; text-align: center; color: #f6e7c1; font-style: italic; }
.lb-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 252, 248, 0.16);
  color: white;
  font-size: 22px;
}
.lb-nav { top: auto; bottom: 50%; width: 42px; height: 42px; }
.lb-prev { left: 12px; right: auto; }
.lb-next { right: 12px; }

@media (max-width: 720px) {
  .bloom.left, .bloom.right { width: 84px; }
  .sheet { padding-left: 42px; padding-right: 42px; }
  .frame { padding-left: 16px; padding-right: 16px; }
  .names { font-size: 52px; }
}
@media (min-width: 760px) {
  .dock a { width: 40px; height: 40px; }
  .sheet { padding-left: 18px; padding-right: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .butterfly, .butterfly .wings, .petal, .photos img { animation: none; transition: none; }
}
@media print {
  .bloom, #butterflies, .dock, .music-fab, #cover, #loader { display: none !important; }
  body { background: white; }
  .sheet { width: auto; padding: 0; }
}
