:root {
  --ink: #173c40;
  --muted: #5f7c7d;
  --aqua: #8edbd8;
  --aqua-soft: #dff6f4;
  --aqua-deep: #2b9999;
  --pearl: #fbfaf6;
  --glass: rgba(255, 255, 255, 0.56);
  --stroke: rgba(70, 147, 148, 0.16);
  --shadow: 0 24px 80px rgba(34, 109, 111, 0.16);
  --radius: 30px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 8%, rgba(142,219,216,.28), transparent 30%),
    radial-gradient(circle at 85% 42%, rgba(255,255,255,.9), transparent 28%),
    linear-gradient(180deg, #f8fcfb 0%, #edf8f7 45%, #f9fbfa 100%);
  font-family: "Manrope", system-ui, sans-serif;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.11'/%3E%3C/svg%3E");
  z-index: 50;
  mix-blend-mode: soft-light;
}

main { position: relative; z-index: 2; }
.section {
  position: relative;
  width: min(100%, 640px);
  margin: 0 auto;
  min-height: 82vh;
  padding: 104px 24px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 34px;
}
.section--full { min-height: 100svh; }
.section--glass::before {
  content: "";
  position: absolute;
  inset: 8% 14px;
  border: 1px solid var(--stroke);
  border-radius: 42px;
  background: linear-gradient(150deg, rgba(255,255,255,.65), rgba(232,250,248,.44));
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  z-index: -1;
}

.section-number {
  position: absolute;
  top: 34px;
  left: 50%;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  transform: translateX(-50%);
  border: 1px solid var(--stroke);
  border-radius: 50%;
  background: rgba(255,255,255,.58);
  font-size: 10px;
  letter-spacing: .12em;
  color: rgba(23,60,64,.35);
  pointer-events: none;
}
.eyebrow {
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: .28em;
  font-size: 10px;
  font-weight: 600;
  color: var(--aqua-deep);
}
h1, h2, .roman {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
}
h1 {
  margin: 0;
  width: 100%;
  max-width: 560px;
  font-size: 56px;
  line-height: .88;
  letter-spacing: 0;
  overflow-wrap: break-word;
  text-wrap: balance;
}
h2 {
  margin: 0;
  width: 100%;
  font-size: 40px;
  line-height: .98;
  letter-spacing: 0;
  overflow-wrap: break-word;
  text-wrap: balance;
}
p { line-height: 1.75; }
.copy { width: 100%; max-width: 470px; min-width: 0; }
.copy--center { text-align: center; }
.copy--center p:last-child { color: var(--muted); }
.roman { margin: 0; font-size: 130px; line-height: .64; color: rgba(54,165,165,.22); }
.roman--small { font-size: 90px; }
.finale .roman--small { color: var(--aqua-deep); font-weight: 600; }

.cover { text-align: center; overflow: hidden; isolation: isolate; color: white; }
.cover__photo { position: absolute; inset: 0; z-index: -1; overflow: hidden; -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 76%, rgba(0,0,0,.82) 84%, rgba(0,0,0,.42) 92%, transparent 100%); mask-image: linear-gradient(to bottom, #000 0%, #000 76%, rgba(0,0,0,.82) 84%, rgba(0,0,0,.42) 92%, transparent 100%); }
.cover__photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; animation: hero-zoom 24s ease-out both; }
.cover__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,34,33,.34), rgba(12,34,33,.3) 36%, rgba(12,34,33,.42) 68%, rgba(12,34,33,.62)); }
.cover__content { position: relative; z-index: 2; color: white; text-shadow: 0 2px 12px rgba(5,20,20,.72), 0 0 28px rgba(5,20,20,.3); }
.cover .eyebrow, .cover .cover__title, .cover .cover__subtitle, .cover .scroll-cue { color: rgba(255,255,255,.98); }
.cover .roman { color: rgba(255,255,255,.66); }
.cover::before { z-index: 1; opacity: .32; background: radial-gradient(circle at 40% 30%, rgba(255,255,255,.14), rgba(158,230,225,.08) 48%, transparent 70%); }
.cover__title { margin: 22px 0 8px; font-family: "Cormorant Garamond", Georgia, serif; font-size: 24px; font-style: italic; }
.cover__subtitle { max-width: 330px; margin: 24px auto 30px; }
.cover::before {
  content: "";
  position: absolute;
  width: 360px;
  height: 560px;
  border-radius: 50% 50% 46% 54% / 34% 40% 60% 66%;
  border: 1px solid rgba(64,150,151,.18);
  transform: rotate(16deg);
  background: transparent;
  filter: drop-shadow(0 30px 70px rgba(46,145,145,.13));
}
.scroll-cue {
  position: absolute;
  bottom: 28px;
  font-size: 9px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: rgba(23,60,64,.45);
  animation: float 2.4s ease-in-out infinite;
}

.button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  min-height: 50px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.button:active { transform: scale(.98); }
.button--primary {
  color: white;
  background: linear-gradient(135deg, #48aaa9, #267e81);
  box-shadow: 0 14px 35px rgba(39,129,131,.24);
}
.button--ghost { color: var(--ink); border: 1px solid var(--stroke); background: rgba(255,255,255,.6); }
.button--wide { width: 100%; }

.portrait { min-height: 0; padding-top: 68px; }
.portrait .section-number { top: 18px; }
.portrait__scene { position: relative; width: min(100%, 420px); isolation: isolate; }
.portrait__botanicals { position: absolute; inset: -18px -24px -18px; overflow: hidden; pointer-events: none; z-index: 0; }
.portrait__botanical {
  position: absolute;
  width: clamp(168px, 46vw, 224px);
  height: auto;
  opacity: .82;
  filter: drop-shadow(0 7px 7px rgba(63, 124, 125, .17));
}
.portrait__botanical--left { left: 0; top: 18px; transform: rotate(-16deg); }
.portrait__botanical--right { right: 0; top: 36px; transform: scaleX(-1) rotate(-13deg); }
.portrait__frame {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  aspect-ratio: 4 / 5;
  border-radius: 210px 210px 34px 34px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.portrait__frame picture { position: absolute; inset: 0; display: block; }
.portrait__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; transform: scale(1.02); }
.portrait__veil { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 56%, rgba(16,80,82,.22)); }
.parents { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--stroke); }
.parents__intro { margin: 0 0 12px; color: var(--muted); font-size: 12px; }
.copy--center p.parents__names { margin: 0; color: var(--ink); font-family: "Cormorant Garamond", Georgia, serif; font-size: 26px; line-height: 1.2; }
.parents__names span { display: block; }
.parents__names .parents__and { margin: 4px 0; color: var(--aqua-deep); font-size: 19px; font-style: italic; }

.image-interlude { position: relative; width: min(calc(100% - 48px), 640px); aspect-ratio: 1.42; margin: 8px auto 36px; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent); }
.image-interlude picture, .image-interlude img { display: block; width: 100%; height: 100%; }
.image-interlude img { object-fit: cover; object-position: 50% 62%; }

.big-time { margin: 20px 0 0; font-size: 18px; letter-spacing: .14em; }
.event-facts { width: min(100%, 440px); display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
.event-facts div { padding: 15px 10px; border-top: 1px solid var(--stroke); border-bottom: 1px solid var(--stroke); text-align: center; }
.event-facts span, .event-facts strong { display: block; }
.event-facts span { margin-bottom: 5px; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .16em; }
.event-facts strong { font-family: "Cormorant Garamond", Georgia, serif; font-size: 20px; font-weight: 500; }
.countdown-label { margin: 6px 0 -20px; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .2em; }
.countdown {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  max-width: 500px;
}
.countdown div {
  padding: 18px 4px 16px;
  text-align: center;
  border-radius: 18px;
  background: rgba(255,255,255,.56);
  border: 1px solid var(--stroke);
}
.countdown strong { display: block; font-family: "Cormorant Garamond", serif; font-size: 36px; font-weight: 500; }
.countdown span { display: block; margin-top: 2px; font-size: 9px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }

.glass-card {
  width: 100%;
  max-width: 500px;
  text-align: center;
  padding: 54px 28px;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--stroke);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}
.glass-card p { color: var(--muted); }
.place { width: min(100%, 920px); }
.place__photo { width: 100%; aspect-ratio: 2.36; overflow: hidden; border-radius: 18px; }
.place__photo picture, .place__photo img { display: block; width: 100%; height: 100%; }
.place__photo img { object-fit: cover; object-position: center; }
.place__note { max-width: 330px; margin: 18px auto 0; }
.glass-card .button { margin-top: 18px; }
.button[aria-disabled="true"] { cursor: default; opacity: .78; }
.button[aria-disabled="true"] { pointer-events: none; }

.dress { min-height: 0; gap: 24px; }
.copy--center p.dress__note { display: inline-block; margin: 8px 0 0; padding: 10px 18px; border: 1px solid var(--stroke); border-radius: 999px; color: var(--ink); font-size: 12px; }
.dress__references { width: min(100%, 440px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.dress__reference { min-width: 0; margin: 0; text-align: center; }
.dress__reference img { display: block; width: 100%; height: clamp(220px, 60vw, 285px); object-fit: contain; }
.dress__reference figcaption { margin-top: 12px; color: var(--muted); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; }
.dress__reference-note { max-width: 340px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; text-align: center; }
.gifts { min-height: 0; padding-top: 64px; padding-bottom: 64px; gap: 22px; }
.gifts__icon { width: 54px; height: 41px; color: var(--aqua-deep); }
.gifts .gifts__presence { margin-top: 22px; font-family: "Cormorant Garamond", Georgia, serif; font-size: 23px; font-style: italic; }

.rsvp-form { width: min(100%, 480px); display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-row label { min-width: 0; }
.rsvp-form label > span, .rsvp-form legend { display: block; margin: 0 0 8px 4px; font-size: 10px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.rsvp-form input, .rsvp-form select, .rsvp-form textarea {
  width: 100%;
  border: 1px solid var(--stroke);
  border-radius: 16px;
  background: rgba(255,255,255,.72);
  color: var(--ink);
  padding: 15px 16px;
  font: inherit;
  outline: none;
  box-shadow: 0 1px 0 rgba(255,255,255,.8) inset;
}
.rsvp-form input:focus, .rsvp-form select:focus, .rsvp-form textarea:focus { border-color: rgba(49,153,153,.5); box-shadow: 0 0 0 4px rgba(80,190,188,.09); }
.rsvp-form fieldset { border: 0; padding: 0; margin: 0; }
.choice-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { margin: 0 !important; display: grid !important; place-items: center; min-height: 52px; border: 1px solid var(--stroke); border-radius: 16px; background: rgba(255,255,255,.6); color: var(--ink) !important; text-transform: none !important; letter-spacing: 0 !important; font-size: 13px !important; transition: .2s ease; }
.choice input:checked + span { background: rgba(100,198,196,.18); border-color: rgba(43,153,153,.38); box-shadow: 0 0 0 3px rgba(43,153,153,.07); }
.choice input:focus-visible + span { outline: 2px solid var(--aqua-deep); outline-offset: 3px; }
.form-status { min-height: 24px; margin: 0; text-align: center; font-size: 13px; color: var(--aqua-deep); }
.rsvp-deadline { margin: -2px 0 0; color: var(--muted); text-align: center; font-size: 12px; }
.rsvp-deadline strong { color: var(--ink); font-weight: 600; }

.memory-form { width: min(100%, 480px); min-width: 0; display: grid; gap: 16px; }
.memory-form label > span { display: block; margin: 0 0 8px 4px; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .14em; }
.memory-form textarea, .memory-form input[type="file"] { width: 100%; border: 1px solid var(--stroke); border-radius: 16px; background: rgba(255,255,255,.72); color: var(--ink); padding: 14px 15px; font: inherit; }
.memory-form textarea:focus, .memory-form input[type="file"]:focus { outline: none; border-color: rgba(49,153,153,.5); box-shadow: 0 0 0 4px rgba(80,190,188,.09); }
.memory-form input[type="file"] { min-width: 0; padding: 8px; font-size: 12px; }
.memory-form input[type="file"]::file-selector-button,
.memory-form input[type="file"]::-webkit-file-upload-button {
  margin-right: 9px;
  padding: 10px 13px;
  border: 0;
  border-radius: 999px;
  color: var(--ink);
  background: var(--aqua-soft);
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s ease;
}
.memory-form input[type="file"]::file-selector-button:hover,
.memory-form input[type="file"]::-webkit-file-upload-button:hover { background: #c9eeeb; }
.memory-file-name { display: block; margin: 7px 4px 0; overflow-wrap: anywhere; color: var(--muted); font-size: 11px; }
.memory-file-remove { margin: 6px 4px 0; padding: 0; border: 0; background: transparent; color: var(--aqua-deep); font: inherit; font-size: 11px; text-decoration: underline; cursor: pointer; }
.memory-note { margin: 0; color: var(--muted); font-size: 12px; text-align: center; }

.finale { text-align: center; overflow: hidden; isolation: isolate; }
.finale h2, .finale #final-name { color: #102a2d; font-weight: 600; }
.finale__photo { position: absolute; inset: 0; z-index: -1; overflow: hidden; -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.12) 10%, rgba(0,0,0,.58) 24%, #000 40%); mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.12) 10%, rgba(0,0,0,.58) 24%, #000 40%); }
.finale__photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 46%; filter: saturate(.82); }
.finale__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(248,252,251,.68), rgba(237,248,247,.56) 52%, rgba(249,251,250,.7)); }
.finale__orb { position: absolute; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(113,211,208,.32), rgba(255,255,255,.12) 56%, transparent 70%); filter: blur(2px); }
.finale .copy--center p:last-child { color: #38575a; font-size: 13px; font-weight: 500; }

.ambient { position: fixed; pointer-events: none; z-index: 0; filter: blur(20px); border-radius: 50%; }
.ambient-a { width: 300px; height: 300px; left: -170px; top: 20%; background: rgba(93,204,202,.18); }
.ambient-b { width: 320px; height: 320px; right: -190px; top: 58%; background: rgba(255,255,255,.78); }

.reveal { opacity: 0; transform: translateY(20px) scale(.995); filter: blur(7px); transition: opacity .85s ease, transform .85s cubic-bezier(.2,.7,.2,1), filter .85s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }

@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(7px); } }
@keyframes hero-zoom { from { transform: scale(1.045); } to { transform: scale(1); } }

@media (min-width: 720px) {
  .section { padding-left: 42px; padding-right: 42px; }
  .portrait__botanicals { left: -106px; right: -106px; }
  .portrait__botanical--left { left: 0; top: 24px; }
  .portrait__botanical--right { right: 0; top: 92px; }
  .portrait__frame { width: 420px; }
  h1 { font-size: 82px; }
  h2 { font-size: 52px; }
  .image-interlude { width: min(calc(100% - 84px), 760px); }
}

@media (max-width: 380px) {
  .section { padding-left: 18px; padding-right: 18px; }
  .portrait__botanicals { left: -18px; right: -18px; }
  h1 { font-size: 48px; }
  h2 { font-size: 35px; }
  .form-row { grid-template-columns: 1fr; }
  .countdown { gap: 5px; }
  .countdown div { padding-left: 2px; padding-right: 2px; }
  .countdown strong { font-size: 31px; }
  .event-facts { gap: 4px; }
  .event-facts strong { font-size: 18px; }
}

@media (max-width: 600px) {
  .place__photo { aspect-ratio: 1.28; border-radius: 14px; }
  .place__photo img { object-position: 68% center; }
  .image-interlude { width: calc(100% - 36px); aspect-ratio: 1.12; }
  .cover__photo img { object-position: 50% 42%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
