:root {
  --cream: #fbf7f0;
  --paper: #fffdf9;
  --sand: #d9c2a6;
  --taupe: #a98966;
  --brown: #4d3929;
  --ink: #2f2923;
  --sage: #8d9a83;
  --line: rgba(77, 57, 41, .16);
  --shadow: 0 24px 70px rgba(71, 49, 30, .16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: radial-gradient(circle at top, #fff 0, var(--cream) 36rem);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.invitation-lock {
  overflow: hidden;
}

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

.invite {
  position: relative;
  max-width: 520px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--paper);
  box-shadow: 0 0 0 1px var(--line), var(--shadow);
  overflow: hidden;
}

.flower-shower {
  position: fixed;
  inset: 0;
  z-index: 80;
  max-width: 520px;
  margin: 0 auto;
  pointer-events: none;
  overflow: hidden;
}

.flower-shower i {
  position: absolute;
  top: -48px;
  left: var(--x);
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 50% 18%, var(--petal-one) 0 17%, transparent 18%),
    radial-gradient(ellipse at 82% 50%, var(--petal-two) 0 17%, transparent 18%),
    radial-gradient(ellipse at 50% 82%, var(--petal-one) 0 17%, transparent 18%),
    radial-gradient(ellipse at 18% 50%, var(--petal-two) 0 17%, transparent 18%),
    radial-gradient(circle at 50% 50%, #f5c66a 0 15%, transparent 16%);
  filter: drop-shadow(0 6px 10px rgba(99, 61, 55, .22));
  opacity: .95;
  transform: translate3d(0, -40px, 0) rotate(var(--rotate));
  animation: flowerFall var(--duration) linear infinite;
  animation-delay: var(--delay);
}

.flower-shower i:nth-child(1) { --x: 7%; --size: 22px; --duration: 11s; --delay: -2s; --rotate: 18deg; --petal-one: #fff7fb; --petal-two: #f09bad; }
.flower-shower i:nth-child(2) { --x: 18%; --size: 16px; --duration: 13s; --delay: -8s; --rotate: -22deg; --petal-one: #fffaf0; --petal-two: #dfa96e; }
.flower-shower i:nth-child(3) { --x: 27%; --size: 24px; --duration: 12s; --delay: -5s; --rotate: 35deg; --petal-one: #fff4f6; --petal-two: #e5849b; }
.flower-shower i:nth-child(4) { --x: 36%; --size: 15px; --duration: 15s; --delay: -11s; --rotate: 8deg; --petal-one: #fffdf7; --petal-two: #caa574; }
.flower-shower i:nth-child(5) { --x: 46%; --size: 21px; --duration: 12.5s; --delay: -1s; --rotate: -38deg; --petal-one: #fff6f9; --petal-two: #eb8fa7; }
.flower-shower i:nth-child(6) { --x: 55%; --size: 16px; --duration: 14s; --delay: -7s; --rotate: 26deg; --petal-one: #fffaf1; --petal-two: #d4a05f; }
.flower-shower i:nth-child(7) { --x: 64%; --size: 25px; --duration: 11.5s; --delay: -4s; --rotate: -12deg; --petal-one: #fff3f5; --petal-two: #df7d95; }
.flower-shower i:nth-child(8) { --x: 73%; --size: 15px; --duration: 16s; --delay: -10s; --rotate: 44deg; --petal-one: #fffef9; --petal-two: #c6a06a; }
.flower-shower i:nth-child(9) { --x: 82%; --size: 20px; --duration: 13.5s; --delay: -6s; --rotate: -30deg; --petal-one: #fff6fa; --petal-two: #ec94aa; }
.flower-shower i:nth-child(10) { --x: 91%; --size: 18px; --duration: 12s; --delay: -3s; --rotate: 16deg; --petal-one: #fffaf2; --petal-two: #d1a15e; }
.flower-shower i:nth-child(11) { --x: 13%; --size: 14px; --duration: 17s; --delay: -13s; --rotate: -45deg; --petal-one: #fff8fb; --petal-two: #e995a7; }
.flower-shower i:nth-child(12) { --x: 68%; --size: 14px; --duration: 18s; --delay: -15s; --rotate: 32deg; --petal-one: #fffaf4; --petal-two: #cfa366; }

.invitation-content {
  transform: translateY(18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .9s ease, transform .9s ease;
}

.invite.is-open .invitation-content {
  transform: none;
  opacity: 1;
  pointer-events: auto;
  padding-bottom: 96px;
}

.invite.is-locked .invitation-content {
  max-height: 0;
  overflow: hidden;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: end center;
  padding: 26px 28px 58px;
  overflow: hidden;
  isolation: isolate;
  background: #b99d7d;
  transition: min-height .9s ease, padding .9s ease;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  background: var(--cover) center/cover;
  filter: saturate(.84) contrast(.92) brightness(.98);
  transform: scale(1.01);
  animation: coverBreath 12s ease-in-out infinite alternate;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to bottom, rgba(39, 31, 24, .02) 0%, rgba(39, 31, 24, .08) 36%, rgba(75, 64, 49, .28) 61%, rgba(180, 173, 154, .86) 100%),
    linear-gradient(to top, rgba(226, 218, 199, .88) 0%, rgba(226, 218, 199, .38) 31%, rgba(226, 218, 199, 0) 55%);
}

.hero-content {
  width: 100%;
  max-width: 390px;
  margin-inline: auto;
  text-align: center;
  color: #fffaf2;
  text-shadow: 0 2px 14px rgba(38, 31, 24, .22);
  animation: coverRise 1.2s cubic-bezier(.22, 1, .36, 1) both;
}

.invite.is-open .hero {
  min-height: 0;
  height: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
  pointer-events: none;
}

.cover-vines {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  display: none;
}

.cover-vines i {
  position: absolute;
  display: block;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(255, 253, 249, .58);
  border-left-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  opacity: .72;
  animation: floatPetal 7s ease-in-out infinite;
}

.cover-vines i:nth-child(1) {
  left: 24px;
  top: 92px;
}

.cover-vines i:nth-child(2) {
  right: 28px;
  top: 154px;
  width: 44px;
  height: 44px;
  animation-delay: -1.5s;
}

.cover-vines i:nth-child(3) {
  left: 42px;
  bottom: 260px;
  width: 38px;
  height: 38px;
  animation-delay: -3s;
}

.cover-vines i:nth-child(4) {
  right: 46px;
  bottom: 206px;
  width: 72px;
  height: 72px;
  animation-delay: -4.2s;
}

.cover-vines i:nth-child(5) {
  left: 50%;
  top: 54px;
  width: 28px;
  height: 28px;
  animation-delay: -5s;
}

.eyebrow,
.section-kicker,
.event-type {
  margin: 0 0 10px;
  color: var(--taupe);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  line-height: .95;
  letter-spacing: 0;
}

.cover-subtitle {
  margin: 0 0 9px;
  color: rgba(255, 250, 242, .95);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.16rem, 4.8vw, 1.48rem);
  font-weight: 500;
}

.hero h1 {
  display: block;
  max-width: 100%;
  color: #fffaf2;
  font-size: clamp(2.9rem, 12vw, 4.15rem);
  line-height: 1.15;
  word-break: keep-all;
  text-wrap: balance;
}

.hero h1:not(.stacked-names) span {
  font-size: .9em;
  color: #fff;
}

.hero h1.stacked-names {
  max-width: 9ch;
  margin-inline: auto;
}

.hero h1.stacked-names span,
.hero h1.stacked-names em {
  display: block;
  color: #fff;
  text-shadow: 0 2px 14px rgba(38, 31, 24, .22);
}

.cover-date {
  display: grid;
  gap: 7px;
  margin: 40px 0 38px;
  color: #fffaf2;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.12rem, 4.9vw, 1.48rem);
  line-height: 1.25;
  animation: softFade .9s ease .35s both;
}

.cover-date strong {
  font-weight: 500;
}

.guest-card {
  width: min(100%, 320px);
  margin: 0 auto 26px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fffaf2;
  backdrop-filter: none;
  animation: softFade .9s ease .5s both;
}

.guest-card span,
.guest-card small {
  display: block;
  color: rgba(255, 250, 242, .96);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.02rem, 4.5vw, 1.36rem);
  font-weight: 500;
  line-height: 1.45;
}

.guest-card strong {
  display: block;
  margin: 4px 0 0;
  color: #fffaf2;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.16rem, 4.9vw, 1.46rem);
  font-weight: 600;
  line-height: 1.35;
}

.open-invitation {
  min-width: 248px;
  min-height: 52px;
  gap: 11px;
  border: 0;
  background: rgba(114, 105, 81, .96);
  color: #fffaf2;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.28rem;
  font-weight: 600;
  box-shadow: 0 16px 32px rgba(52, 43, 32, .18);
  animation: softFade .9s ease .68s both, buttonPulse 2.8s ease-in-out 1.2s infinite;
}

.open-icon {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--brown);
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
}

.btn.primary {
  border-color: var(--brown);
  background: var(--brown);
  color: #fffaf2;
}

.btn.primary.open-invitation {
  border: 0;
  background: rgba(114, 105, 81, .96);
  color: #fffaf2;
}

.btn.ghost {
  background: transparent;
}

.btn.small {
  min-height: 38px;
  padding: 0 14px;
  font-size: .9rem;
}

.btn.full {
  width: 100%;
}

.floating-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: rgba(255, 253, 249, .92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.floating-nav a {
  padding: 14px 6px;
  text-align: center;
  color: var(--brown);
  font-size: .84rem;
  font-weight: 700;
  text-decoration: none;
}

.bottom-dock {
  position: fixed;
  left: 50%;
  bottom: 16px;
  z-index: 40;
  width: min(88vw, 360px);
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  margin: 0;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(116, 108, 85, .96);
  box-shadow: 0 20px 52px rgba(49, 41, 31, .22);
  transform: translateX(-50%);
  overflow-x: auto;
  scrollbar-width: none;
}

.invite.is-locked .bottom-dock {
  display: none;
}

.invite.is-open .bottom-dock {
  display: flex;
}

.bottom-dock::-webkit-scrollbar {
  display: none;
}

.bottom-dock a {
  min-width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fffaf2;
  text-decoration: none;
  transition: background .25s ease, color .25s ease, min-width .25s ease;
}

.bottom-dock a.active,
.bottom-dock a:hover {
  min-width: 76px;
  background: #fffaf2;
  color: #2f2923;
}

.bottom-dock svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.section {
  padding: 58px 24px;
  border-bottom: 1px solid var(--line);
}

.section h2 {
  color: var(--brown);
  font-size: 3rem;
}

.couple-script-title,
.script-heading {
  font-family: Pacifico, "Cormorant Garamond", Georgia, serif;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.cover-restu {
  margin: 14px 0 18px;
  color: rgba(255, 255, 255, .9);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.25rem;
  font-style: italic;
}

.script-heading {
  color: #756d58;
  font-size: clamp(2.45rem, 11vw, 3.6rem);
  line-height: 1.15;
}

.opening-date {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-content: end;
  gap: 18px;
  padding: 48px 28px 72px;
  text-align: center;
  overflow: hidden;
  color: #fff;
  background: #b99d7d;
  isolation: isolate;
}

.opening-date::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  background: var(--opening-cover) center/cover;
  filter: saturate(.9) contrast(.94) brightness(.96);
  transform: scale(1.02);
}

.opening-date::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(to bottom, rgba(39, 31, 24, .04) 0%, rgba(39, 31, 24, .12) 40%, rgba(75, 64, 49, .3) 63%, rgba(180, 173, 154, .82) 100%),
    linear-gradient(to top, rgba(226, 218, 199, .82) 0%, rgba(226, 218, 199, .32) 32%, transparent 58%);
}

.opening-brand {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 5px;
  margin: 0 auto 4px;
  animation: softFade .9s ease .12s both;
}

.opening-brand p {
  margin: 0;
  color: #fff;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.05rem;
  font-weight: 600;
  text-shadow: 0 2px 14px rgba(38, 31, 24, .22);
}

.opening-date h2 {
  max-width: 13ch;
  margin: 0 auto;
  color: #fff;
  font-size: clamp(2.7rem, 12vw, 4.05rem);
  line-height: 1.15;
  text-shadow: 0 2px 14px rgba(38, 31, 24, .22);
}

.opening-date h2 span {
  display: block;
  color: #fff;
}

.opening-date .stacked-names span,
.opening-date .stacked-names em {
  color: #fff;
}

.stacked-names {
  display: grid;
  justify-items: center;
  gap: 0;
}

.stacked-names em {
  display: block;
  margin: -.08em 0 -.02em;
  color: #756d58;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: .86em;
  font-style: normal;
  line-height: .8;
}

.opening-date figure {
  display: none;
}

.opening-date img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 6px;
  object-fit: cover;
}

.opening-save {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 4px;
  color: #fff;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.35rem;
  line-height: 1.25;
  text-shadow: 0 2px 14px rgba(38, 31, 24, .22);
  animation: softFade .9s ease .28s both;
}

.opening-save strong {
  font-weight: 500;
}

.opening-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.opening-particles i {
  position: absolute;
  width: 3px;
  height: 3px;
  display: block;
  border-radius: 50%;
  background: rgba(62, 77, 88, .58);
  animation: particleDrift 7s ease-in-out infinite;
}

.opening-particles i:nth-child(1) {
  left: 21%;
  top: 19%;
}

.opening-particles i:nth-child(2) {
  left: 42%;
  top: 27%;
  animation-delay: -1.2s;
}

.opening-particles i:nth-child(3) {
  right: 18%;
  top: 18%;
  animation-delay: -2s;
}

.opening-particles i:nth-child(4) {
  right: 28%;
  top: 34%;
  animation-delay: -3.1s;
}

.opening-particles i:nth-child(5) {
  left: 17%;
  bottom: 28%;
  animation-delay: -4s;
}

.opening-particles i:nth-child(6) {
  right: 14%;
  bottom: 22%;
  animation-delay: -5.1s;
}

.scripture {
  text-align: center;
  background: linear-gradient(180deg, var(--cream), #fff);
}

.scripture p {
  margin: 0 auto 16px;
  max-width: 34rem;
  color: var(--brown);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.65rem;
  line-height: 1.22;
}

.couple > p:not(.section-kicker),
.split > div p,
.gifts > p,
.qr-section p,
.footer p {
  color: #6e5a48;
  line-height: 1.7;
}

.couple-grid,
.event-list,
.gift-list,
.gallery-grid,
.wish-list {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.couple-grid article,
.event-card,
.gift-card,
.gallery-grid figure,
.wish-list article,
.panel,
.login-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .72);
}

.couple-grid article {
  padding: 20px;
}

.couple-grid span {
  color: var(--sage);
  font-weight: 800;
}

.couple-grid h3 {
  margin-top: 10px;
  color: var(--brown);
  font-size: 2.1rem;
}

.couple-showcase {
  padding-top: 0;
  text-align: center;
  background: #fffdf9;
}

.circle-strip {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin: -5px -24px 46px;
  padding: 22px 18px 0;
  background: #bdb7aa;
  overflow: hidden;
}

.circle-strip img {
  width: 78px;
  height: 78px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
}

.blessing-intro {
  max-width: 390px;
  margin: 0 auto 38px;
}

.blessing-intro p {
  margin: 0 0 10px;
  color: #2f2923;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.48rem;
  line-height: 1.3;
}

.blessing-intro strong {
  color: #7a705b;
}

.profile-card {
  max-width: 390px;
  margin: 0 auto 50px;
}

.profile-card figure {
  margin: 0 auto 22px;
  padding: 8px;
  border: 2px solid #c7c0b2;
  border-radius: 20px;
  background: #fff;
}

.profile-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  display: block;
  border-radius: 14px;
  object-fit: cover;
}

.profile-card h2 {
  color: #2f2923;
  font-family: Pacifico, "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.45rem, 10vw, 3.6rem);
  font-weight: 400;
  line-height: 1.15;
  text-transform: none;
}

.profile-card p {
  margin: 14px 0 18px;
  color: #3f382f;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.38rem;
  line-height: 1.35;
}

.social-row {
  display: flex;
  justify-content: center;
  gap: 14px;
}

.social-row span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #756d58;
  color: #fffaf2;
  font-weight: 700;
}

.big-amp {
  margin: 14px 0 42px;
  color: #10275f;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 8rem;
  font-weight: 700;
  line-height: .7;
}

.wide-collage {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 8px -24px -58px;
  padding: 28px 26px;
  background: #bdb7aa;
  border-radius: 80px 0 80px 0;
}

.wide-collage img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.wide-collage img:first-child {
  border-radius: 60px 0 60px 0;
}

.wide-collage img:last-child {
  border-radius: 0 60px 0 60px;
  transform: translateY(-34px);
}

.live-section,
.story-section,
.wishes {
  text-align: center;
  background: linear-gradient(180deg, #fffdf9, #f2eee6);
}

.live-section p,
.story-section p,
.wishes > p {
  color: #625747;
  line-height: 1.7;
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-top: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #2f2923;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.empty-video {
  display: grid;
  place-items: center;
  color: #fffaf2;
}

.story-card {
  margin-top: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .72);
  text-align: left;
}

.story-photo {
  width: min(100%, 380px);
  aspect-ratio: 4 / 3;
  margin: 24px auto 10px;
  padding: 8px;
  border: 1px solid rgba(77, 57, 41, .15);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(71, 49, 30, .12);
}

.story-photo.side {
  width: min(86%, 320px);
  margin-top: 22px;
  transform: rotate(-1.5deg);
}

.story-photo img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 6px;
  object-fit: cover;
}

.story-card span {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: #756d58;
  color: #fffaf2;
  font-weight: 700;
}

.story-card p {
  margin: 14px 0 0;
}

.wishes {
  padding-inline: 20px;
  background: #fffdf9;
}

.wish-compose {
  padding: 28px 18px 26px;
  border-radius: 78px 8px 14px 8px;
  background: #c3bdae;
}

.wish-compose h2 {
  margin-bottom: 24px;
  text-align: center;
  color: #2f2923;
  font-size: clamp(2.05rem, 8.5vw, 2.85rem);
  font-style: italic;
  font-weight: 600;
  line-height: 1.05;
  text-transform: none;
}

.wish-title {
  font-family: "Cormorant Garamond", Georgia, serif;
}

.wish-form {
  margin-top: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-align: left;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wish-form input,
.wish-form textarea {
  border: 2px solid rgba(70, 68, 73, .2);
  border-radius: 12px;
  background: #fff;
  color: #2f2923;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.32rem;
}

.wish-form textarea {
  min-height: 230px;
}

.wish-form .btn {
  width: 100%;
  min-height: 58px;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  background: #756d58;
  color: #fffaf2;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
}

.btn-icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wish-list {
  margin-top: 22px;
  display: grid;
  gap: 14px;
}

.wish-list article {
  position: relative;
  padding: 18px;
  border: 0;
  border-radius: 8px;
  background: #c3bdae;
  text-align: left;
}

.wish-list article::before {
  position: absolute;
  left: -7px;
  top: 26px;
  bottom: 26px;
  width: 7px;
  content: "";
  border-radius: 999px 0 0 999px;
  background: #10275f;
}

.wish-list strong,
.wish-list time {
  display: block;
}

.wish-list strong {
  color: #10275f;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.45rem;
  font-weight: 600;
}

.wish-list time {
  margin-top: 6px;
  color: #10275f;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.05rem;
}

.wish-list p {
  margin: 18px 0 0;
  color: #2f2923;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.32rem;
  line-height: 1.65;
}

.empty-wish {
  text-align: center;
}

.gallery-section {
  background: linear-gradient(180deg, #fffdf9, #f7efe6);
}

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

.gallery-grid figure {
  position: relative;
  min-height: 210px;
  margin: 0;
  overflow: hidden;
  background: #e8d6c1;
}

.gallery-grid figure.featured {
  min-height: 360px;
  grid-column: 1 / -1;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  display: block;
  object-fit: cover;
  transition: transform .7s ease;
}

.gallery-grid figure:hover img {
  transform: scale(1.05);
}

.gallery-grid figcaption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 8px;
  background: rgba(47, 41, 35, .58);
  color: #fffaf2;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.28rem;
  line-height: 1.1;
  backdrop-filter: blur(8px);
}

.countdown {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  margin: 4px 0 0;
  animation: softFade .9s ease .38s both;
}

.countdown div {
  min-height: 70px;
  display: grid;
  place-items: center;
  padding: 9px 4px;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 8px;
  background: rgba(255, 253, 249, .78);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px rgba(43, 35, 27, .12);
}

.countdown strong {
  color: #4a4034;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.86rem;
}

.countdown span {
  font-size: .76rem;
  color: #766c5c;
}

.event-card {
  padding: 22px;
  background: linear-gradient(145deg, #fff, #fbf4ea);
}

.event-card h3 {
  color: var(--brown);
  font-size: 2.4rem;
}

.event-card strong,
.event-card span {
  display: block;
  margin-top: 10px;
}

.event-card p:not(.event-type) {
  color: #6e5a48;
  line-height: 1.65;
}

.dresscode-section {
  text-align: center;
  background:
    linear-gradient(135deg, rgba(141, 154, 131, .16), transparent 44%),
    linear-gradient(180deg, #fffdf9, #f6eee5);
}

.dresscode-section.colors-only {
  padding-block: 34px;
}

.dresscode-section.colors-only .section-kicker {
  margin-bottom: 18px;
}

.dresscode-section p {
  margin-inline: auto;
  max-width: 24rem;
  color: #625747;
  line-height: 1.7;
}

.dresscode-swatches {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 0;
}

.dresscode-swatches span {
  width: clamp(44px, 11vw, 58px);
  height: clamp(44px, 11vw, 58px);
  border: 1px solid rgba(77, 57, 41, .18);
  border-radius: 50%;
  background: var(--swatch);
  box-shadow: 0 12px 24px rgba(77, 57, 41, .14);
}

.split {
  display: grid;
  gap: 26px;
}

.invite-form,
.form-stack {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--brown);
  font-size: .92rem;
  font-weight: 700;
}

label small {
  max-width: 100%;
  overflow-wrap: anywhere;
  color: #756251;
  font-size: .78rem;
  font-weight: 500;
  line-height: 1.35;
}

input,
textarea,
select {
  width: 100%;
  min-height: 44px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

textarea {
  min-height: 105px;
  resize: vertical;
}

.muted {
  max-width: 42rem;
}

.gift-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
}

.gift-transfer-card {
  max-width: 42rem;
  margin: 24px 0;
  padding: 18px 0 0;
}

.gift-transfer-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gift-transfer-heading h3 {
  margin: 4px 0 0;
}

.gift-transfer-note {
  margin: 8px 0 0;
  color: #756251;
  font-size: .9rem;
}

.gift-transfer-list {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.gift-transfer-item {
  position: relative;
  min-height: 178px;
  padding: 22px 22px 20px;
  overflow: hidden;
  border: 1px solid #dedbd4;
  border-radius: 16px;
  background: #fbfbfa;
  box-shadow: 0 4px 0 rgba(86, 72, 57, .1), 0 10px 24px rgba(86, 72, 57, .08);
}

.gift-transfer-item::after {
  position: absolute;
  right: -40px;
  bottom: -70px;
  width: 190px;
  height: 150px;
  border: 1px solid rgba(180, 174, 164, .34);
  border-radius: 50%;
  content: '';
  transform: rotate(-18deg);
}

.gift-transfer-logo {
  position: absolute;
  z-index: 1;
  top: 18px;
  right: 20px;
  width: 220px;
  height: 78px;
  object-fit: contain;
  object-position: right center;
}

.gift-transfer-bank {
  position: absolute;
  z-index: 1;
  top: 22px;
  right: 22px;
  max-width: 150px;
  color: #4d3929;
  text-align: right;
  font-size: .9rem;
}

.gift-card-chip {
  position: absolute;
  z-index: 1;
  top: 336px;
  left: 22px;
  width: 38px;
  height: 27px;
  border: 1px solid #b89f63;
  border-radius: 7px;
  background: #e6c982;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4);
}

.gift-card-chip::before,
.gift-card-chip::after {
  position: absolute;
  content: '';
}

.gift-card-chip::before {
  top: 0;
  left: 12px;
  width: 1px;
  height: 100%;
  background: #b89f63;
}

.gift-card-chip::after {
  top: 8px;
  left: 0;
  width: 100%;
  height: 1px;
  background: #b89f63;
}

.gift-transfer-account {
  position: relative;
  z-index: 1;
  padding-top: 78px;
}

.gift-transfer-account span,
.gift-transfer-account strong {
  display: block;
}

.gift-transfer-bank-name {
  margin-bottom: 14px;
  color: #665b4e;
  font-weight: 700;
}

.gift-transfer-label {
  color: #756251;
  font-size: .72rem;
  text-transform: uppercase;
}

.gift-transfer-number {
  margin-top: 3px;
  color: #40372f;
  font-size: 1.55rem;
  font-weight: 700;
}

.gift-transfer-holder {
  margin-top: 3px;
  color: #665b4e;
  font-size: .92rem;
}

.gift-copy {
  position: absolute;
  z-index: 1;
  right: 18px;
  bottom: 16px;
  border: 0;
  border-radius: 6px;
  padding: 8px 14px;
  background: #aaa9a7;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: .78rem;
}

.gift-copy span {
  display: inline-block;
  margin-right: 3px;
}

.gift-copy:hover {
  background: #8d8c89;
}

.admin-bank-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.admin-bank-logo {
  flex: 0 0 auto;
}

.gift-account-admin-list {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.gift-account-admin {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.gift-account-admin-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.gift-account-admin-info strong,
.gift-account-admin-info small {
  display: block;
}

.gift-account-admin-info small {
  margin-top: 3px;
  color: #756251;
  overflow-wrap: anywhere;
}

.gift-card strong,
.gift-card span,
.gift-card small {
  display: block;
}

@media (max-width: 680px) {
  .gift-transfer-item {
    min-height: 170px;
    padding-inline: 16px;
  }

  .gift-transfer-logo {
    right: 16px;
  }

  .gift-transfer-bank {
    right: 16px;
  }

  .gift-card-chip {
    left: 16px;
  }
}

.gift-card span,
.gift-card small {
  margin-top: 4px;
  color: #756251;
  font-size: .86rem;
}

.qr-section {
  text-align: center;
  background: #f4eadf;
}

.qr-section img {
  display: block;
  width: 210px;
  height: 210px;
  margin: 22px auto 14px;
  border: 10px solid #fff;
  border-radius: 8px;
}

code {
  display: inline-block;
  padding: 8px 10px;
  border-radius: 8px;
  background: #fff;
  color: var(--brown);
}

.footer.final-photo {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  padding: 52px 24px 58px;
  overflow: hidden;
  text-align: center;
  color: #fff;
  background: #8f7c68;
  isolation: isolate;
}

.footer.final-photo::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  background: var(--final-cover) center/cover;
  filter: sepia(.16) saturate(.78) contrast(.92);
  transform: scale(1.02);
}

.footer.final-photo::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(to bottom, rgba(40, 32, 25, .04) 0%, rgba(40, 32, 25, .18) 42%, rgba(121, 111, 91, .58) 72%, rgba(209, 203, 184, .82) 100%),
    linear-gradient(to top, rgba(222, 216, 198, .86) 0%, rgba(222, 216, 198, .16) 34%, transparent 56%);
}

.final-content {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 18px;
  padding-bottom: 10px;
  text-shadow: 0 2px 18px rgba(43, 35, 27, .32);
  transform: translateY(-82px);
}

.footer.final-photo p {
  margin: 0;
  color: #fff;
  font-family: "Cormorant Garamond", Georgia, serif;
  line-height: 1.36;
}

.final-thanks {
  position: absolute;
  top: 58px;
  right: 24px;
  left: 24px;
  max-width: 28rem;
  margin: 0 auto !important;
  font-family: Pacifico, "Cormorant Garamond", Georgia, serif !important;
  font-size: clamp(2.45rem, 11vw, 3.6rem) !important;
  font-weight: 400;
  line-height: 1.15;
}

.final-message {
  max-width: 30rem;
  font-size: clamp(1.12rem, 4.6vw, 1.45rem);
}

.final-respect {
  margin-top: 18px;
  font-size: clamp(1.3rem, 4.8vw, 1.6rem);
}

.footer.final-photo h2 {
  color: #fff;
  font-size: clamp(2.95rem, 12vw, 4.4rem);
  font-weight: 400;
  line-height: 1.12;
}

.footer.final-photo h2.stacked-names {
  gap: 0;
  max-width: 9ch;
}

.footer.final-photo h2.stacked-names span,
.footer.final-photo h2.stacked-names em {
  display: block;
  color: #fff;
}

.final-family {
  display: grid;
  gap: 7px;
  font-size: clamp(1.2rem, 4.7vw, 1.48rem);
}

.final-family span,
.final-family strong {
  display: block;
}

.final-family strong {
  font-weight: 700;
}

.final-qr-tab {
  position: absolute;
  right: 0;
  top: 65%;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 9px;
  width: 64px;
  padding: 18px 8px;
  border-radius: 10px 0 0 10px;
  background: rgba(255, 255, 255, .96);
  color: #687085;
  box-shadow: 0 12px 28px rgba(43, 35, 27, .2);
  text-decoration: none;
  transform: translateY(-50%);
}

.final-qr-tab strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .04em;
  writing-mode: vertical-rl;
}

.qr-mark {
  width: 22px;
  height: 22px;
  background:
    linear-gradient(#687085 0 0) 2px 2px / 7px 7px no-repeat,
    linear-gradient(#687085 0 0) 13px 2px / 7px 7px no-repeat,
    linear-gradient(#687085 0 0) 2px 13px / 7px 7px no-repeat,
    linear-gradient(#687085 0 0) 13px 13px / 3px 3px no-repeat,
    linear-gradient(#687085 0 0) 17px 17px / 3px 3px no-repeat;
}

.music-player {
  display: none;
}

.music-toggle {
  position: fixed;
  right: 12px;
  bottom: 18px;
  z-index: 30;
  width: 46px;
  height: 46px;
  display: none;
  place-items: center;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 50%;
  background: var(--brown);
  color: #fffaf2;
  box-shadow: 0 14px 32px rgba(47,41,35,.22);
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 800;
}

.invite.is-open .music-toggle {
  display: grid;
}

.music-toggle.is-paused {
  background: #fffdf9;
  color: var(--brown);
  border-color: var(--line);
}

.flash {
  position: fixed;
  left: 50%;
  top: 14px;
  z-index: 100;
  width: min(calc(100vw - 28px), 420px);
  transform: translateX(-50%);
  padding: 13px 16px;
  border: 1px solid rgba(77,57,41,.2);
  border-radius: 8px;
  background: #fffdf9;
  box-shadow: var(--shadow);
  color: var(--brown);
  font-weight: 700;
}

.admin-login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: linear-gradient(135deg, var(--cream), #e9d7c2);
}

.login-card {
  width: min(100%, 420px);
  padding: 26px;
  box-shadow: var(--shadow);
}

.login-card h1,
.admin-main h1 {
  color: var(--brown);
  font-size: 2.8rem;
}

.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  background: #f7efe6;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px;
  border-right: 1px solid var(--line);
  background: #fffdf9;
}

.admin-sidebar h2 {
  margin-bottom: 20px;
  color: var(--brown);
  font-size: 1.8rem;
}

.admin-sidebar nav {
  display: grid;
  gap: 7px;
  margin-bottom: 22px;
}

.admin-sidebar a {
  padding: 11px 12px;
  border-radius: 8px;
  color: #6a5746;
  font-weight: 700;
  text-decoration: none;
}

.admin-sidebar a.active,
.admin-sidebar a:hover {
  background: var(--brown);
  color: #fffaf2;
}

.preview-link {
  display: block;
  margin-top: 16px;
  text-align: center;
  border: 1px solid var(--line);
}

.admin-main {
  padding: 30px;
}

.admin-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.panel {
  padding: 20px;
  margin-bottom: 18px;
}

.panel h2 {
  margin-bottom: 18px;
  color: var(--brown);
  font-size: 2rem;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

.import-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.import-head h2 {
  margin: 0 0 8px;
}

.import-head p {
  margin: 0;
  color: #756251;
  line-height: 1.55;
}

.wide {
  grid-column: 1 / -1;
}

.table-panel {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th,
td {
  padding: 13px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--brown);
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

td small {
  display: block;
  margin-top: 4px;
  color: #806b58;
}

.actions {
  display: flex;
  gap: 10px;
}

.link-btn {
  border: 0;
  background: transparent;
  color: var(--brown);
  cursor: pointer;
  font-weight: 800;
}

.link-btn.danger {
  color: #9f3a31;
}

.scanner-panel {
  display: grid;
  grid-template-columns: minmax(260px, 460px) minmax(260px, 1fr);
  gap: 18px;
  align-items: start;
}

.gallery-admin {
  display: grid;
  gap: 14px;
}

.gallery-admin article {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.gallery-admin img {
  width: 150px;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  object-fit: cover;
}

.gallery-admin strong,
.gallery-admin small {
  display: block;
}

.gallery-admin small {
  margin: 5px 0 10px;
  color: #806b58;
  overflow-wrap: anywhere;
}

#scanner {
  width: 100%;
  min-height: 280px;
  border-radius: 8px;
  background: #2b211b;
}

@media (max-width: 780px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    height: auto;
  }

  .admin-sidebar nav {
    grid-template-columns: repeat(3, 1fr);
  }

  .admin-main {
    padding: 18px;
  }

  .admin-grid,
  .import-head,
  .scanner-panel,
  .gallery-admin article {
    grid-template-columns: 1fr;
  }

  .import-head {
    display: grid;
  }

  .gallery-admin img {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .section {
    padding-inline: 18px;
  }

  .section h2 {
    font-size: 2.55rem;
  }

  .countdown {
    gap: 6px;
  }

  .floating-nav a {
    font-size: .76rem;
  }

  .admin-sidebar nav {
    grid-template-columns: repeat(2, 1fr);
  }
}

@keyframes coverBreath {
  from {
    transform: scale(1.03);
  }
  to {
    transform: scale(1.1);
  }
}

@keyframes coverRise {
  from {
    transform: translateY(28px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes softFade {
  from {
    transform: translateY(14px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes buttonPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(77, 57, 41, .34);
  }
  55% {
    box-shadow: 0 0 0 12px rgba(77, 57, 41, 0);
  }
}

@keyframes floatPetal {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(16deg);
  }
  50% {
    transform: translate3d(8px, -14px, 0) rotate(28deg);
  }
}

@keyframes particleDrift {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
    opacity: .25;
  }
  45% {
    transform: translate3d(9px, -12px, 0);
    opacity: .72;
  }
}

@keyframes flowerFall {
  0% {
    transform: translate3d(0, -8vh, 0) rotate(var(--rotate));
    opacity: 0;
  }
  8% {
    opacity: .78;
  }
  48% {
    transform: translate3d(18px, 52vh, 0) rotate(calc(var(--rotate) + 150deg));
  }
  78% {
    opacity: .7;
  }
  100% {
    transform: translate3d(-16px, 108vh, 0) rotate(calc(var(--rotate) + 310deg));
    opacity: 0;
  }
}

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