:root {
  color-scheme: light;
  --serif: "Baskerville", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: "Avenir Next", "Segoe UI", Arial, sans-serif;
  --paper: #faf1e1;
  --surface: #fff8ec;
  --ink: #482a22;
  --muted: #76584a;
  --accent: #79313a;
  --line: #dbc19d;
  --wash: #efdfc6;
  --velvet: #3e1621;
  --deep: #1c0d13;
  --gold: #d3ab6a;
  --bright: #f5ddb0;
  --frame-ink: #501c25;
  --frame-accent: #744328;
  --frame-start: 27%;
  --frame-end: 19%;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 16px/1.64 var(--sans);
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
a { color: inherit; }
button { font: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #498987; outline-offset: 4px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.03; }
h2 { margin-bottom: .47em; font-size: clamp(2.65rem, 6vw, 4.9rem); letter-spacing: -.045em; text-wrap: balance; }
img { max-width: 100%; display: block; }
.content { width: min(calc(100% - 40px), 1130px); margin-inline: auto; }
.section { padding-block: clamp(55px, 9vw, 112px); }
.section-heading { margin-bottom: 26px; }
.centered { text-align: center; }
.kicker {
  margin-bottom: 12px;
  color: var(--accent);
  font: 700 .73rem/1.35 var(--sans);
  letter-spacing: .19em;
  text-transform: uppercase;
}
.ornament { display: inline-block; color: var(--gold); font-size: 1.2rem; line-height: 1; }
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 21px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  background: transparent;
  font-size: .77rem;
  font-weight: 700;
  letter-spacing: .035em;
  text-decoration: none;
  cursor: pointer;
}
.pill:hover { background: color-mix(in srgb, currentColor 8%, transparent); }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 13px;
  min-height: 64px;
  padding: 9px max(20px, calc((100vw - 1130px) / 2));
  border-bottom: 1px solid color-mix(in srgb, var(--gold) 46%, transparent);
  color: var(--bright);
  background: var(--deep);
}
.top-mark {
  min-width: 44px;
  height: 44px;
  padding: 0 6px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  font: .91rem var(--serif);
  text-decoration: none;
}
.topbar nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: clamp(11px, 3vw, 32px); }
.topbar nav a { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-decoration: none; }
.topbar nav a:hover { text-decoration: underline; text-underline-offset: 5px; }

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  justify-items: center;
  overflow: hidden;
  padding: clamp(15px, 3.8vw, 42px) 18px;
  background: var(--deep);
  color: var(--bright);
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: -22%;
  background: var(--scene) center / cover;
  filter: blur(42px);
  opacity: .35;
}
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: radial-gradient(ellipse at 50% 42%, transparent 12%, var(--deep) 83%);
}
.hero-frame {
  width: min(100%, 560px);
  aspect-ratio: 2 / 3;
  container-type: inline-size;
  display: grid;
  grid-template-columns: 17% minmax(0, 1fr) 17%;
  grid-template-rows: var(--frame-start) minmax(0, 1fr) var(--frame-end);
  align-items: center;
  background: var(--scene) center / 100% 100% no-repeat, var(--paper);
  outline: 1px solid var(--gold);
  outline-offset: 5px;
  box-shadow: 0 28px 95px #0009, 0 0 0 7px #1c10136b;
  color: var(--frame-ink);
  text-align: center;
}
.hero-copy {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
  padding-inline: 1px;
}
.hero-crest {
  width: clamp(35px, 10.5cqi, 61px);
  height: clamp(35px, 10.5cqi, 61px);
  display: grid;
  place-items: center;
  margin: 0 auto clamp(5px, 1.9cqi, 12px);
  border: 1px solid currentColor;
  outline: 1px solid color-mix(in srgb, currentColor 36%, transparent);
  outline-offset: 3px;
  border-radius: 50%;
  color: var(--frame-accent);
  font: 400 clamp(.78rem, 2.9cqi, 1.1rem) var(--serif);
}
.hero .kicker {
  margin-bottom: clamp(6px, 2cqi, 12px);
  color: var(--frame-accent);
  font-size: clamp(.46rem, 1.85cqi, .68rem);
  letter-spacing: .15em;
}
.hero h1 {
  margin: 0 0 clamp(7px, 3cqi, 17px);
  font-size: clamp(1.65rem, 10.6cqi, 4.15rem);
  line-height: .89;
  letter-spacing: -.063em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.hero h1 > span { display: block; }
.hero h1[tabindex="-1"]:focus { outline: none; }
.hero .amp { margin: .12em 0 .13em; color: var(--frame-accent); font-size: .48em; font-style: italic; letter-spacing: 0; }
.hero-copy.long-names h1 { font-size: clamp(1.13rem, 6.5cqi, 2.65rem); line-height: 1; }
.hero-date, .hero-place {
  margin-bottom: clamp(1px, .65cqi, 4px);
  font-size: clamp(.6rem, 2.65cqi, .91rem);
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.hero-date { font-weight: 750; }
.hero-place { color: var(--frame-accent); }
.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  margin-top: clamp(3px, 1.5cqi, 10px);
  color: var(--frame-ink);
  font-size: clamp(.56rem, 2.35cqi, .76rem);
  font-weight: 700;
  text-underline-offset: 4px;
}
.hero-folio {
  position: absolute;
  top: 48%;
  display: none;
  color: var(--bright);
  font-size: .69rem;
  font-weight: 700;
  letter-spacing: .17em;
  text-transform: uppercase;
  opacity: .82;
}
.folio-left { left: max(24px, calc((100vw - 1130px) / 2)); }
.folio-right { right: max(24px, calc((100vw - 1130px) / 2)); }

.date-section {
  padding-block: clamp(45px, 7vw, 86px);
  border-block: 1px solid var(--gold);
  color: var(--bright);
  background: radial-gradient(ellipse at 50% 8%, var(--velvet), var(--deep) 90%);
}
.date-section .kicker { color: var(--gold); }
.date-card {
  max-width: 620px;
  margin-inline: auto;
  border: 1px solid var(--gold);
  outline: 1px solid #d7b67555;
  outline-offset: 5px;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 50% 10%, #fffaf0, transparent 70%),
    var(--paper);
  box-shadow: 0 15px 44px #0004;
  text-align: center;
}
.date-card summary {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 21px 13px;
  color: var(--accent);
  cursor: pointer;
  list-style: none;
}
.date-card summary::-webkit-details-marker { display: none; }
.date-card .reveal-prompt, .date-card .reveal-open { font-size: .8rem; font-weight: 720; }
.date-card .reveal-open, .date-card[open] .reveal-prompt { display: none; }
.date-card[open] .reveal-open { display: inline; }
.revealed { padding: 4px 14px 26px; animation: reveal .5s ease both; }
.revealed h3 { margin-bottom: 7px; font-size: clamp(1.8rem, 5vw, 3.4rem); overflow-wrap: anywhere; }
.revealed p { margin-bottom: 6px; color: var(--muted); }
.revealed .pill { margin-top: 9px; }
@keyframes reveal { from { opacity: 0; transform: translateY(-7px); } to { opacity: 1; transform: translateY(0); } }

.wax-seal {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  margin-inline: auto;
  border: 1px solid var(--gold);
  outline: 1px solid #f2d9a277;
  outline-offset: 4px;
  border-radius: 48% 52% 46% 54% / 54% 48% 52% 46%;
  color: var(--bright);
  background: radial-gradient(ellipse at 32% 26%, color-mix(in srgb, var(--accent) 77%, #d6a775), var(--velvet) 78%);
  box-shadow: inset 0 0 0 4px #e4b9772e, inset 0 0 0 6px #150c132e, 0 5px 13px #0004;
  font: 1.12rem var(--serif);
}
.small-seal { width: 45px; height: 45px; font-size: .79rem; }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 490px; margin: 31px auto 0; border-block: 1px solid #d5b27366; }
.countdown div { display: grid; justify-items: center; padding: 12px 4px; }
.countdown div + div { border-left: 1px solid #d5b27366; }
.countdown strong { font: 400 clamp(1.75rem, 4.5vw, 2.65rem)/1 var(--serif); font-variant-numeric: tabular-nums; }
.countdown span { margin-top: 5px; color: var(--gold); font-size: .65rem; font-weight: 700; letter-spacing: .055em; text-transform: uppercase; }

.letter {
  position: relative;
  max-width: 875px;
  margin-inline: auto;
  padding: clamp(44px, 8.8vw, 106px) clamp(22px, 6vw, 80px);
  border: 1px solid var(--line);
  outline: 1px solid var(--line);
  outline-offset: -9px;
  background: radial-gradient(ellipse at 50% 29%, var(--surface), var(--paper) 76%);
  box-shadow: 0 14px 45px color-mix(in srgb, var(--accent) 10%, transparent);
  text-align: center;
}
.letter-corner { position: absolute; color: var(--gold); font: 2rem var(--serif); line-height: 1; }
.top-left { top: 16px; left: 17px; transform: rotate(18deg); }
.top-right { top: 16px; right: 17px; transform: scaleX(-1) rotate(18deg); }
.bottom-left { bottom: 16px; left: 17px; transform: scaleY(-1) rotate(18deg); }
.bottom-right { bottom: 16px; right: 17px; transform: scale(-1) rotate(18deg); }
.message { max-width: 600px; margin: 0 auto 18px; color: var(--muted); font: italic 400 clamp(1.17rem, 3vw, 1.7rem)/1.5 var(--serif); overflow-wrap: anywhere; }

.portrait-section {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: center;
  gap: clamp(14px, 4vw, 52px);
  padding-top: 0;
}
.portrait-image { padding: 9px; border: 1px solid var(--line); background: var(--surface); box-shadow: 0 12px 27px #26121319; }
.portrait-image img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.portrait-copy { padding: 15px 0; }
.portrait-copy h2 { overflow-wrap: anywhere; }

.celebrations { border-block: 1px solid var(--line); background: var(--wash); }
.event-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 247px), 1fr)); gap: 16px; }
.event-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 20px 22px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 8px 22px #28140e12;
}
.event-card::before {
  content: "";
  align-self: stretch;
  height: clamp(80px, 13vw, 119px);
  margin: 0 -20px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--scene) center 13% / cover;
}
.event-card:nth-child(3n + 2)::before { background-position: center 4%; }
.event-card:nth-child(3n + 3)::before { background-position: center 91%; }
.event-number { margin-bottom: 9px; color: var(--accent); font-size: .68rem; font-weight: 750; letter-spacing: .15em; }
.event-card h3 { margin-bottom: 9px; font-size: clamp(1.72rem, 3vw, 2.5rem); overflow-wrap: anywhere; }
.event-card p { margin-bottom: 6px; color: var(--muted); font-size: .91rem; overflow-wrap: anywhere; }
.event-card .event-date { color: var(--ink); font-weight: 700; }
.event-card a { margin-top: auto; padding-top: 7px; color: var(--accent); font-size: .81rem; font-weight: 700; text-underline-offset: 4px; }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 215px), 1fr)); gap: clamp(10px, 2vw, 20px); }
.gallery-grid img, .sample-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  padding: 7px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 10px 24px #28140e16;
  object-fit: cover;
}
.sample-photo {
  display: grid;
  place-content: center;
  gap: 6px;
  color: var(--bright);
  background: linear-gradient(#180c1380, #180c13bc), var(--scene) center 22% / cover;
  text-align: center;
}
.sample-photo:nth-child(2) { background-position: center, center 65%; }
.sample-photo:nth-child(3) { background-position: center, center 86%; }
.sample-photo strong { font: italic 400 clamp(1.55rem, 5vw, 3.4rem)/1 var(--serif); }
.sample-photo span { font-size: .72rem; }
.rsvp-panel {
  position: relative;
  padding: clamp(35px, 8vw, 78px) 18px;
  border: 1px solid var(--line);
  outline: 1px solid var(--line);
  outline-offset: -8px;
  background: var(--surface);
  text-align: center;
}
.rsvp-panel .ornament { margin-bottom: 13px; }

footer {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 40px 18px 46px;
  border-top: 1px solid var(--gold);
  color: var(--bright);
  background: var(--deep);
  text-align: center;
}
.footer-mark { font: italic 400 1.7rem var(--serif); }
footer p { margin: 0; font: 1.42rem var(--serif); overflow-wrap: anywhere; }
footer a { color: var(--gold); font-size: .77rem; text-underline-offset: 4px; }
.music {
  position: fixed;
  right: 14px;
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 3;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--bright);
  background: var(--deep);
  box-shadow: 0 6px 20px #0004;
  font: 700 .77rem var(--sans);
  cursor: pointer;
}
.music span:first-child { color: var(--gold); font-size: 1.14rem; }
.noscript { text-align: center; }

.opening {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  color: var(--bright);
  background: transparent;
}
.opening[open] { display: grid; place-items: center; }
.opening::backdrop { background: var(--deep); }
body:has(.opening[open]) { overflow: hidden; }
.opening-card {
  position: relative;
  width: min(calc(100% - 52px), 448px);
  max-height: calc(100dvh - 38px);
  overflow-y: auto;
  padding: clamp(23px, 5vw, 47px) 20px;
  border: 1px solid var(--gold);
  outline: 1px solid #d7b87571;
  outline-offset: -8px;
  background: radial-gradient(ellipse at 50% 0, var(--velvet), var(--deep) 92%);
  box-shadow: 0 26px 65px #0008;
  text-align: center;
  transition: opacity .4s ease, transform .55s ease;
}
.opening-card .ornament { margin-bottom: 11px; }
.opening-card .kicker { margin-bottom: 20px; color: var(--gold); }
.opening-card h2 { margin: 17px 0 6px; font-size: clamp(1.8rem, 6vw, 3.5rem); overflow-wrap: anywhere; }
.opening-card p:not(.kicker) { margin-bottom: 15px; color: var(--bright); font-size: .8rem; }
.opening-button { border-color: var(--gold); color: var(--bright); }
.opening-skip {
  display: block;
  margin: 12px auto 0;
  padding: 5px 8px;
  border: 0;
  color: var(--bright);
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 4px;
  font-size: .74rem;
  cursor: pointer;
}
[data-theme="lotus"] {
  --paper: #faf0df; --surface: #fff8eb; --ink: #4f2e20; --muted: #79523d;
  --accent: #954e36; --line: #ddbc95; --wash: #f1ddc2; --velvet: #663523; --deep: #2f1913;
  --gold: #dcb174; --bright: #f7deb4; --frame-ink: #532f20; --frame-accent: #77502e;
  --frame-start: 27%; --frame-end: 21%;
}
[data-theme="garden"] {
  --paper: #f9f2e6; --surface: #fff9f0; --ink: #343c28; --muted: #56604a;
  --accent: #566749; --line: #d2c7a9; --wash: #e8e8d7; --velvet: #394a33; --deep: #1a271d;
  --gold: #c9ad76; --bright: #f3e5bc; --frame-ink: #3b4430; --frame-accent: #66533a;
  --frame-start: 24%; --frame-end: 17%;
}
[data-theme="garden"] .hero h1 { font-style: italic; }
[data-theme="modern"] {
  --paper: #f4eee4; --surface: #fcf7ee; --ink: #302821; --muted: #645649;
  --accent: #6f5640; --line: #d6c4aa; --wash: #eae0d1; --velvet: #332a24; --deep: #151210;
  --gold: #cfae79; --bright: #f3ddb3; --frame-ink: #f9e7c9; --frame-accent: #e5c28b;
  --frame-start: 23%; --frame-end: 27%;
}
[data-theme="modern"] .pill, [data-theme="modern"] .top-mark { border-radius: 1px; }
[data-theme="modern"] .hero-frame { background-color: var(--deep); }

@media (min-width: 1050px) { .hero-folio { display: block; } }
@media (max-width: 650px) {
  .topbar { min-height: 56px; padding: 8px 15px; }
  .top-mark { min-width: 39px; height: 39px; }
  .hero { padding-inline: 8px; }
  .hero-frame { outline-offset: 3px; }
  .portrait-section { grid-template-columns: 1fr; text-align: center; }
  .portrait-copy { padding: 0; }
  .event-card::before { height: 92px; }
}
@media (max-width: 360px) {
  .topbar nav { gap: 10px; }
  .topbar nav a { font-size: .66rem; }
  .hero-crest { width: 29px; height: 29px; }
  .hero .kicker { margin-bottom: 5px; }
  .hero h1 { margin-bottom: 6px; }
  .hero-link { margin-top: 1px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .opening-card, .gate { transition: none; }
  .revealed { animation: none; }
}

/* Guest entrance, petals, scroll reveals and photo viewer. */
:root {
  --petal-1: #a12b45;
  --petal-2: #e58c93;
  --petal-3: #efc276;
  --petal-4: #f9d9bc;
  --entrance-time: 1.58s;
}
[data-theme="lotus"] {
  --petal-1: #e2733b;
  --petal-2: #f6ad48;
  --petal-3: #ffda8e;
  --petal-4: #d65c57;
}
[data-theme="garden"] {
  --petal-1: #d897a6;
  --petal-2: #f6cdc7;
  --petal-3: #fff0dc;
  --petal-4: #91a479;
}
[data-theme="modern"] {
  --petal-1: #bd9150;
  --petal-2: #f7e6bc;
  --petal-3: #d7b680;
  --petal-4: #fff7e9;
}

.opening { isolation: isolate; }
.opening::backdrop { transition: background .42s ease; }
.opening.is-opening::backdrop { background: transparent; }
.opening-scenery {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(#180d1380, #12090dd4), var(--scene) center 34% / cover;
  transition: opacity .65s ease;
}
.opening.is-opening .opening-scenery { opacity: 0; }

.gate {
  --side: -1;
  position: absolute;
  inset-block: -1%;
  left: -1%;
  z-index: 1;
  width: 52%;
  border-inline-end: 2px solid #e6bb76;
  transform-origin: left 45%;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 55% 13%, #bc49646b 0%, transparent 67%),
    linear-gradient(0deg, #16091080, #6b1f3429 58%, #16091065),
    repeating-linear-gradient(92deg, #260d18 0%, #641b33 4%, #8c2e48 7%, #430e22 13%, #200910 16%);
  box-shadow: inset 0 0 74px #16040caa, inset -7px 0 0 #f0bc6e38, 10px 0 28px #160410a0;
}
.gate-right {
  --side: 1;
  right: -1%;
  left: auto;
  transform-origin: right 45%;
  border-inline-end: 0;
  border-inline-start: 2px solid #e6bb76;
  box-shadow: inset 0 0 74px #16040caa, inset 7px 0 0 #f0bc6e38, -10px 0 28px #160410a0;
}
.gate::before {
  content: "";
  position: absolute;
  inset: 5% 7%;
  border: 1px solid #ffe0a53c;
  border-radius: 50% 50% 3px 3px / 14% 14% 3px 3px;
  outline: 1px solid #17081268;
  outline-offset: 5px;
  pointer-events: none;
}
.gate-trim {
  position: absolute;
  inset: 0 3px 0 auto;
  width: clamp(7px, 2.5vw, 20px);
  background:
    repeating-linear-gradient(36deg, #ffdf9c55 0 1px, transparent 1px 5px),
    linear-gradient(90deg, #473119, #cc9a4d 28%, #f6d793 52%, #a67330 79%, #432a19);
  box-shadow: 0 0 17px #200b13c8;
}
.gate-right .gate-trim { right: auto; left: 3px; }
.gate-tie {
  position: absolute;
  top: 65%;
  right: 12%;
  width: clamp(32px, 8vw, 90px);
  height: clamp(17px, 3vw, 37px);
  transform: rotate(-13deg);
  border-bottom: 4px double #ecc98c;
  border-radius: 0 0 70% 75%;
  filter: drop-shadow(0 2px 2px #271018);
}
.gate-right .gate-tie { right: auto; left: 12%; transform: rotate(13deg) scaleX(-1); }
.gate-tie::after {
  content: "";
  position: absolute;
  bottom: -18px;
  left: 45%;
  width: 7px;
  height: 19px;
  border-radius: 5px 5px 2px 2px;
  background: repeating-linear-gradient(90deg, #a97c45 0 1px, #f5ce85 1px 3px);
}
.gate-emblem {
  position: absolute;
  top: 24%;
  left: 42%;
  display: grid;
  width: clamp(28px, 6vw, 80px);
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid #e7bc7380;
  border-radius: 50%;
  color: #f1d094ad;
  font: clamp(.9rem, 3vw, 2.4rem) var(--serif);
  box-shadow: 0 0 0 5px #d8a86016;
}
.opening-valance {
  position: absolute;
  z-index: 2;
  top: -1px;
  left: 0;
  width: 100%;
  height: clamp(62px, 19dvh, 185px);
  color: #cd9953;
  filter: drop-shadow(0 8px 11px #10080b8c);
  pointer-events: none;
}
.opening-valance .valance-fabric { fill: var(--velvet); }
.opening-valance .valance-edge { fill: none; stroke: currentColor; stroke-width: 2; vector-effect: non-scaling-stroke; }
.opening-valance .valance-thread { fill: none; stroke: currentColor; opacity: .48; vector-effect: non-scaling-stroke; }
.opening-aura {
  position: absolute;
  z-index: 3;
  inset: 0;
  opacity: 0;
  background: radial-gradient(ellipse at center, #ffe2a548, #f5bf6e14 35%, transparent 67%);
  pointer-events: none;
}
.opening-card {
  z-index: 4;
  width: min(calc(100% - 36px), 456px);
  max-height: calc(100dvh - 32px);
  padding-block: clamp(24px, 4.5vh, 45px);
  background: radial-gradient(ellipse at 50% 0, var(--velvet), var(--deep) 92%);
  box-shadow: 0 32px 80px #000a, inset 0 0 26px #0003;
}
.opening[open] .opening-card { animation: invitation-card-in .62s cubic-bezier(.19,1,.22,1) both; }
.opening-card .opening-prompt {
  max-width: 24ch;
  margin: 0 auto 18px;
  color: var(--bright);
  opacity: .85;
  font-size: .82rem;
}
.opening-card .opening-button {
  border-color: #f0c983;
  color: var(--deep);
  background: linear-gradient(135deg, #fbe2ac, #cf9f5a);
  box-shadow: 0 5px 23px #d7a86038;
  transition: transform .2s ease, box-shadow .25s ease;
}
.opening-card .opening-button:hover { transform: translateY(-2px); box-shadow: 0 8px 27px #e9b66d67; }
.opening-card .opening-button:active { transform: scale(.97); }
.opening-card .opening-skip { min-height: 36px; }
.opening.is-opening .opening-card { animation: invitation-card-out .58s cubic-bezier(.55,0,.58,1) both; pointer-events: none; }
.opening.is-opening .opening-aura { animation: invitation-light 1.15s .17s ease both; }
.opening.is-opening .opening-valance { animation: valance-lift 1.24s .16s cubic-bezier(.24,.85,.25,1) both; }
.opening.is-opening .gate { animation: velvet-sweep var(--entrance-time) cubic-bezier(.25,.72,.25,1) both; }

@keyframes invitation-card-in {
  from { opacity: 0; transform: translateY(18px) scale(.96); }
  to { opacity: 1; transform: none; }
}
@keyframes invitation-card-out {
  0% { opacity: 1; transform: none; }
  38% { opacity: .95; transform: scale(.965); }
  100% { opacity: 0; transform: translateY(-35px) scale(1.04); }
}
@keyframes invitation-light {
  0%, 100% { opacity: 0; }
  33% { opacity: .66; }
}
@keyframes valance-lift {
  0% { transform: none; }
  27% { transform: translateY(-13%) scaleY(.95); }
  100% { transform: translateY(-110%) scaleY(.58); }
}
@keyframes velvet-sweep {
  0% { transform: translateX(0) scaleX(1) skewY(0deg); }
  16% { transform: translateX(calc(var(--side) * 2%)) scaleX(.99) skewY(calc(var(--side) * -1deg)); }
  62% { transform: translateX(calc(var(--side) * 55%)) scaleX(.66) skewY(calc(var(--side) * -3deg)); }
  86% { transform: translateX(calc(var(--side) * 91%)) scaleX(.56) skewY(calc(var(--side) * 1deg)); }
  100% { transform: translateX(calc(var(--side) * 116%)) scaleX(.48) skewY(0deg); }
}

[data-theme="lotus"] .gate {
  border-color: #d9a36a;
  background:
    radial-gradient(ellipse at 50% 19%, #f1a26949, transparent 72%),
    repeating-linear-gradient(0deg, transparent 0 18px, #22100853 19px 21px),
    linear-gradient(90deg, #371910, #75452d 39%, #542a20 86%, #35160e);
  box-shadow: inset 0 0 70px #26100bb0, inset 0 0 0 8px #efb87730;
}
[data-theme="lotus"] .gate::before {
  inset: 9% 13%;
  border: 5px double #e0b7848c;
  border-radius: 50% 50% 2% 2% / 12% 12% 2% 2%;
}
[data-theme="lotus"] .gate-tie { display: none; }
[data-theme="lotus"] .gate-emblem { top: 64%; color: #ffdf9d; border: 3px double #ddb279; background: #743a24; }
[data-theme="lotus"] .opening-valance { color: #e1ad68; }
[data-theme="lotus"] .opening.is-opening .gate { animation-name: courtyard-doors; }
@keyframes courtyard-doors {
  0% { transform: perspective(920px) rotateY(0deg); }
  24% { transform: perspective(920px) rotateY(calc(var(--side) * -18deg)); }
  72% { transform: perspective(920px) rotateY(calc(var(--side) * -78deg)) translateX(calc(var(--side) * 8%)); }
  100% { transform: perspective(920px) rotateY(calc(var(--side) * -90deg)) translateX(calc(var(--side) * 31%)); }
}

[data-theme="garden"] .gate {
  border-color: #b99d6e;
  background:
    linear-gradient(130deg, #fffae4b3, #b6b89448 52%, #fff4dba6),
    repeating-linear-gradient(92deg, #dcccb2 0%, #f5e6cf 6%, #fff8e2 11%, #d2bca2 17%);
  box-shadow: inset 0 0 60px #75624465, 0 0 35px #231c0e54;
}
[data-theme="garden"] .gate::before {
  inset: 5% 9%;
  opacity: .72;
  border-color: #aa8e62;
  background: var(--scene) center 15% / cover;
  mix-blend-mode: multiply;
  mask-image: linear-gradient(#000 15%, #0005 61%, transparent 95%);
}
[data-theme="garden"] .gate-trim { background: linear-gradient(90deg, #9b805a, #e8d0a5, #b09168); }
[data-theme="garden"] .gate-emblem { display: none; }
[data-theme="garden"] .opening-valance .valance-fabric { fill: #e9dac1; }
[data-theme="garden"] .opening.is-opening .gate { animation-name: garden-drape; }
@keyframes garden-drape {
  0% { transform: none; }
  22% { transform: translate3d(calc(var(--side) * 7%), -2%, 0) rotate(calc(var(--side) * 2deg)); }
  66% { transform: translate3d(calc(var(--side) * 56%), -25%, 0) rotate(calc(var(--side) * 10deg)) scaleX(.75); }
  100% { transform: translate3d(calc(var(--side) * 110%), -53%, 0) rotate(calc(var(--side) * 13deg)) scaleX(.55); }
}

[data-theme="modern"] .gate {
  border-color: #d5b27a;
  background:
    repeating-conic-gradient(from 135deg at 50% 0%, #e8ca9334 0 1deg, transparent 1deg 10deg),
    linear-gradient(145deg, #161411, #322923 55%, #0a0908);
  box-shadow: inset 0 0 50px #000a;
}
[data-theme="modern"] .gate::before {
  inset: 5% 8%;
  border: 4px double #d4b4828f;
  border-radius: 1px;
  outline: 1px solid #a88c6566;
}
[data-theme="modern"] .gate-tie, [data-theme="modern"] .opening-valance { display: none; }
[data-theme="modern"] .gate-emblem { top: 70%; border-radius: 1px; transform: rotate(45deg); }
[data-theme="modern"] .opening.is-opening .gate { animation-name: deco-split; }
@keyframes deco-split {
  0% { transform: none; }
  20% { transform: translate3d(calc(var(--side) * 3%), calc(var(--side) * 1.5%), 0); }
  100% { transform: translate3d(calc(var(--side) * 17%), calc(var(--side) * 112%), 0); }
}

.hero.is-arriving .hero-frame { animation: scene-entrance 1.65s .15s cubic-bezier(.2,.78,.24,1) both; }
.hero.is-arriving .hero-copy > * { animation: type-entrance .83s both; }
.hero.is-arriving .hero-copy > :nth-child(1) { animation-delay: .58s; }
.hero.is-arriving .hero-copy > :nth-child(2) { animation-delay: .68s; }
.hero.is-arriving .hero-copy > :nth-child(3) { animation-delay: .79s; }
.hero.is-arriving .hero-copy > :nth-child(n + 4) { animation-delay: .95s; }
@keyframes scene-entrance {
  from { opacity: .3; transform: translate3d(0, 22px, 0) scale(.955); }
  to { opacity: 1; transform: none; }
}
@keyframes type-entrance {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: none; }
}

.petal-layer { position: fixed; z-index: 7; inset: 0; overflow: hidden; pointer-events: none; contain: strict; }
.opening .petal-layer { position: absolute; z-index: 5; }
.petal {
  position: absolute;
  width: var(--size);
  height: calc(var(--size) * .76);
  left: var(--x);
  top: -25px;
  border-radius: 79% 24% 66% 29%;
  background: linear-gradient(145deg, color-mix(in srgb, var(--petal-color), white 32%), var(--petal-color) 62%, color-mix(in srgb, var(--petal-color), #5e2630 20%));
  box-shadow: inset 0 -1px 2px #53243c35, 0 2px 5px #1b0d1736;
  transform-origin: center center;
  animation: petal-fall var(--fall-time) var(--delay) cubic-bezier(.32,.25,.54,.93) both;
}
.petal:nth-child(4n + 1) { --petal-color: var(--petal-1); }
.petal:nth-child(4n + 2) { --petal-color: var(--petal-2); }
.petal:nth-child(4n + 3) { --petal-color: var(--petal-3); }
.petal:nth-child(4n + 4) { --petal-color: var(--petal-4); }
.petal:nth-child(5n + 2) { border-radius: 50% 50% 28% 55%; }
@keyframes petal-fall {
  0% { opacity: 0; transform: translate3d(0, 0, 0) rotate(var(--angle)) rotateY(0deg); }
  12% { opacity: .95; }
  48% { transform: translate3d(calc(var(--drift) * -.37), 43dvh, 0) rotate(calc(var(--angle) + 105deg)) rotateY(68deg); }
  82% { opacity: .87; }
  100% { opacity: 0; transform: translate3d(var(--drift), calc(100dvh + 45px), 0) rotate(calc(var(--angle) + 295deg)) rotateY(192deg); }
}
.petal.is-burst {
  top: var(--origin-y);
  left: var(--origin-x);
  animation-name: petal-burst;
  animation-timing-function: cubic-bezier(.17,.77,.35,1);
}
@keyframes petal-burst {
  0% { opacity: 0; transform: translate3d(0, 0, 0) scale(.35) rotate(var(--angle)); }
  16% { opacity: .99; }
  43% { opacity: 1; transform: translate3d(calc(var(--drift) * .67), var(--lift), 0) scale(1) rotate(calc(var(--angle) + 82deg)); }
  100% { opacity: 0; transform: translate3d(var(--drift), 115px, 0) scale(.75) rotate(calc(var(--angle) + 250deg)); }
}

.scroll-meter { position: fixed; z-index: 6; inset: 0 0 auto; height: 3px; background: #14090d24; pointer-events: none; }
.scroll-meter span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(var(--scroll-progress, 0));
  transform-origin: left center;
  background: linear-gradient(90deg, var(--accent), var(--gold), var(--bright));
}
.has-scroll-motion .hero::before { transform: translate3d(0, var(--scene-drift, 0px), 0); }
.scroll-reveal {
  transition: opacity .74s ease, transform .8s cubic-bezier(.18,.72,.24,1);
  transition-delay: var(--reveal-delay, 0ms);
}
.scroll-reveal:not(.in-view):not(:focus-within) { opacity: 0; transform: translate3d(0, 24px, 0); }
.letter.scroll-reveal:not(.in-view):not(:focus-within) { transform: translate3d(0, 30px, 0) scale(.985); }
.event-card.scroll-reveal.in-view { transition: opacity .74s ease, transform .7s cubic-bezier(.18,.72,.24,1), box-shadow .25s ease; }
@media (hover: hover) {
  .has-scroll-motion .event-card.in-view:hover { transform: translateY(-5px); box-shadow: 0 15px 32px #39251e20; }
}
.has-scroll-motion .date-card[open] .small-seal { animation: seal-reveal .67s cubic-bezier(.22,.72,.24,1.12) both; }
@keyframes seal-reveal {
  0% { transform: rotate(0deg) scale(1); }
  29% { transform: rotate(-9deg) scale(.88); }
  68% { transform: rotate(5deg) scale(1.09); }
  100% { transform: none; }
}
footer .footer-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 6px 0; }
footer .footer-actions .pill { border-color: color-mix(in srgb, var(--gold) 70%, transparent); color: var(--bright); }
.petal-wish { margin: 14px auto 0; }
.photo-tile {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}
.photo-zoom {
  position: absolute;
  right: 13px;
  bottom: 13px;
  display: grid;
  width: 33px;
  height: 33px;
  place-items: center;
  border: 1px solid #fff7e280;
  border-radius: 50%;
  color: #fff6e9;
  background: #2d171ecc;
  font-size: 1.1rem;
}
.photo-viewer {
  width: min(calc(100% - 24px), 900px);
  max-height: calc(100dvh - 20px);
  padding: 0;
  overflow: auto;
  border: 1px solid var(--gold);
  color: var(--bright);
  background: var(--deep);
  box-shadow: 0 20px 70px #0009;
}
.photo-viewer::backdrop { background: #110a11d9; }
.photo-viewer .album-bar, .photo-viewer .album-nav {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 14px;
}
.photo-viewer .album-bar h2 { margin: 0; font: .86rem var(--sans); letter-spacing: .08em; }
.photo-viewer .album-stage { display: grid; place-items: center; touch-action: pan-y; background: #10090d; }
.photo-viewer .album-stage img { display: block; width: 100%; height: min(70dvh, 680px); object-fit: contain; }
.photo-viewer .album-nav { justify-content: center; }
.photo-viewer .album-nav p { margin: 0; min-width: 90px; text-align: center; font-size: .83rem; }
.photo-viewer button {
  min-height: 44px; min-width: 44px; padding: 5px 10px; border: 1px solid var(--gold); border-radius: 99px;
  color: var(--bright); background: transparent; cursor: pointer;
}
.photo-viewer button:hover { background: #fff1d81b; }
.has-scroll-motion .photo-viewer[open] { animation: invitation-card-in .35s ease both; }

@media (max-width: 420px) {
  .opening-valance { height: clamp(53px, 13dvh, 100px); }
  .opening-card .kicker { margin-bottom: 13px; }
  .opening-card .wax-seal { width: 58px; height: 58px; }
  .gate-tie { top: 70%; }
}
@media (prefers-reduced-motion: reduce) {
  .opening[open] .opening-card, .opening.is-opening .gate, .opening.is-opening .opening-valance,
  .opening.is-opening .opening-aura, .hero.is-arriving .hero-frame, .hero.is-arriving .hero-copy > *,
  .has-scroll-motion .date-card[open] .small-seal, .has-scroll-motion .photo-viewer[open] { animation: none; }
  .scroll-reveal, .scroll-reveal:not(.in-view):not(:focus-within) { opacity: 1; transform: none; transition: none; }
  .has-scroll-motion .hero::before { transform: none; }
  .petal-layer, .petal-wish { display: none !important; }
}
@media print {
  .opening, .scroll-meter, .petal-layer, .music, .footer-actions, .petal-wish { display: none !important; }
  .scroll-reveal, .scroll-reveal:not(.in-view):not(:focus-within) { opacity: 1; transform: none; }
}

.motion-disabled { scroll-behavior: auto; }
.motion-disabled .opening[open] .opening-card, .motion-disabled .revealed { animation: none; }
.motion-disabled .opening::backdrop, .motion-disabled .opening-button { transition: none; }
.motion-disabled .scroll-reveal, .motion-disabled .scroll-reveal:not(.in-view):not(:focus-within) {
  opacity: 1; transform: none; transition: none;
}


/* Suban and Jasmin */
html[data-theme="lotus"] {
  --paper: #fbf5e9;
  --surface: #fffbf3;
  --ink: #203831;
  --muted: #5c594b;
  --accent: #205348;
  --line: #d9c49f;
  --wash: #f2e7d5;
  --deep: #18332d;
  --gold: #b38a50;
  --bright: #fff0d4;
  --frame-ink: #203831;
  --frame-accent: #795432;
  --petal-1: #b74637;
  --petal-2: #e9a956;
  --petal-3: #ffdb8d;
  --petal-4: #f8e4c1;
}

.topbar {
  min-height: 68px;
  background: #193a32;
  color: #fff0d4;
}
.top-mark {
  min-width: 43px;
  height: 43px;
  border-color: #d0ac72;
}
.topbar nav { gap: clamp(14px, 3.8vw, 31px); }
.topbar nav a {
  font-size: clamp(.72rem, 2.5vw, .82rem);
  letter-spacing: .025em;
  padding-block: 10px;
}

.hero.couple-hero {
  padding: clamp(25px, 4.2vw, 60px) 20px clamp(28px, 4.3vw, 63px);
  border-bottom: 5px double #b38a50;
  background:
    radial-gradient(ellipse at 12% 2%, #fffdf4 0%, #fffdf400 50%),
    linear-gradient(123deg, #f6ebd6 0%, #fbf5e9 51%, #eee0c6 100%);
}
.couple-hero::before, .couple-hero::after { content: none; }
.couple-hero .hero-frame {
  display: grid;
  grid-template-columns: minmax(0, .87fr) minmax(0, 1.13fr);
  grid-template-rows: auto;
  gap: clamp(24px, 5vw, 81px);
  align-items: center;
  width: min(100%, 1130px);
  aspect-ratio: auto;
  container-type: normal;
  outline: 0;
  box-shadow: none;
  background: transparent;
  text-align: left;
}
.couple-hero .hero-copy { grid-area: auto; padding: 15px 0; }
.couple-hero .kicker {
  margin: 0 0 18px;
  color: #785333;
  font-size: .72rem;
  letter-spacing: .15em;
}
.couple-hero h1 {
  margin: 0 0 24px;
  font-size: clamp(4.3rem, 8.35vw, 8.25rem);
  line-height: .82;
  letter-spacing: -.062em;
}
.couple-hero h1 .amp {
  margin: .06em 0 .09em;
  color: #936138;
  font-size: .5em;
  line-height: .96;
}
.couple-hero .hero-copy.long-names h1 {
  font-size: clamp(2.35rem, 5.8vw, 5.65rem);
}
.couple-hero .hero-date {
  margin-bottom: 5px;
  color: #203831;
  font-size: clamp(.98rem, 1.65vw, 1.18rem);
  letter-spacing: .01em;
}
.couple-hero .hero-place {
  margin-bottom: 0;
  color: #65513d;
  font-size: clamp(.84rem, 1.45vw, 1rem);
  line-height: 1.45;
}
.couple-hero .hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 24px;
}
.couple-hero .primary-action {
  border-color: #205348;
  color: #fff6e1;
  background: #205348;
}
.couple-hero .primary-action:hover { background: #173b33; }
.couple-hero .direction-action { background: #fff8e8; }
.couple-hero .direction-action:hover { background: #ede3ce; }
.couple-photo {
  position: relative;
  margin: 0;
  min-width: 0;
  padding: 8px;
  border: 1px solid #b68b51;
  outline: 1px solid #b68b5160;
  outline-offset: 4px;
  background: #fff9ee;
  box-shadow: 0 18px 43px #53392026;
}
.couple-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 56%;
}
.couple-photo::before, .couple-photo::after {
  content: "";
  position: absolute;
  z-index: 1;
  width: 26px;
  height: 26px;
  border-color: #c09b66;
  border-style: solid;
  pointer-events: none;
}
.couple-photo::before { top: 3px; left: 3px; border-width: 2px 0 0 2px; }
.couple-photo::after { bottom: 3px; right: 3px; border-width: 0 2px 2px 0; }

.date-section .section-heading { margin-bottom: 24px; }
.date-section h2 { color: #25453b; }
.letter h2 { color: #25453b; }
.celebrations .section-heading h2, .gallery-section h2 { color: #25453b; }
.schedule-zone { margin: -7px 0 0; color: var(--muted); font-size: .84rem; }
.event-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 2.2vw, 23px);
}
.event-card {
  --event-trim: #b77a27;
  min-height: 207px;
  padding: 24px clamp(15px, 2vw, 24px) 21px;
  border-top: 4px solid var(--event-trim);
  background: #fffbf3;
  box-shadow: 0 10px 23px #5b482011;
}
.event-card:nth-child(2) { --event-trim: #28665a; }
.event-card:nth-child(3) { --event-trim: #984b35; }
.event-card::before { content: none; }
.event-card h3 { color: #243c33; }
.event-card .event-date { margin-block: 3px 8px; color: #593e28; }
.event-card a { display: inline-flex; align-items: center; min-height: 44px; }
.gallery-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 2vw, 20px);
}
.gallery-grid img {
  aspect-ratio: 2 / 3;
  padding: 5px;
  object-position: 50% 58%;
}
.gallery-grid .photo-tile:nth-child(4) img { object-position: 50% 63%; }
.gallery-grid .photo-zoom { border-color: #fff0d480; background: #173a33da; }
.gallery-grid .photo-tile:focus-visible { outline-offset: 4px; }

@media (max-width: 760px) {
  .hero.couple-hero { padding: 27px 19px 31px; }
  .couple-hero .hero-frame {
    grid-template-columns: minmax(0, 1fr);
    width: min(100%, 520px);
    gap: 20px;
    text-align: center;
  }
  .couple-hero .hero-copy { padding: 0; }
  .couple-hero .kicker { margin: 0 0 11px; font-size: .64rem; }
  .couple-hero h1 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: baseline;
    gap: 0 .15em;
    margin: 0 0 12px;
    font-size: clamp(2.8rem, 11.45vw, 5.55rem);
    line-height: .94;
  }
  .couple-hero h1 .amp { margin: 0; font-size: .58em; }
  .couple-hero .hero-actions { justify-content: center; margin-top: 16px; }
  .couple-hero .pill { padding-inline: 14px; }
  .couple-photo { padding: 5px; outline-offset: 3px; }
  .event-grid { grid-template-columns: minmax(0, 1fr); }
  .event-card { min-height: auto; padding: 19px 18px 13px; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 355px) {
  .topbar { padding-inline: 12px; }
  .topbar nav { gap: 9px; }
  .couple-hero h1 { font-size: clamp(2.32rem, 12vw, 2.8rem); }
}

