@font-face {
  font-family: "Bodoni Moda";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("./public/fonts/bodoni-moda-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Bodoni Moda";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("./public/fonts/bodoni-moda-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("./public/fonts/dm-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("./public/fonts/dm-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Pinyon Script";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./public/fonts/pinyon-script-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Pinyon Script";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./public/fonts/pinyon-script-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --ground: #f7efdf;
  --paper: #fff9ec;
  --paper-edge: #e4d4b9;
  --ink: #574438;
  --ink-soft: #624c3f;
  --olive: #6d785f;
  --olive-deep: #4c5844;
  --gold: #795720;
  --gold-light: #795720;
  --rose: #7d202b;
  --rose-deep: #52141d;
  --body-font: "Bodoni Moda", Georgia, serif;
  --display-font: "Pinyon Script", "Brush Script MT", cursive;
  --ui-font: "DM Sans", "Avenir Next", sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  background: var(--ground);
  scrollbar-color: var(--gold-light) var(--ground);
}

body {
  margin: 0;
  background:
    radial-gradient(ellipse at 50% 10%, rgb(255 255 255 / 56%), transparent 52%),
    var(--ground);
  color: var(--ink);
  font-family: var(--body-font);
  font-size: 1.12rem;
  font-weight: 500;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::selection,
body *::selection {
  color: var(--paper);
  background: var(--olive-deep);
}

a {
  color: inherit;
  text-underline-offset: 0.25em;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid var(--gold-light);
  outline-offset: 4px;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  z-index: 40;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 1rem;
  background: var(--paper);
  color: var(--olive-deep);
  box-shadow: 0 5px 18px rgb(41 37 25 / 15%);
  font-family: var(--ui-font);
  transform: translateY(calc(-100% - 0.75rem));
  transition: transform 180ms ease;
}

.skip-link:focus-visible {
  transform: translateY(0);
}

.opening-screen {
  position: fixed;
  z-index: 30;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 0;
  overflow: hidden;
  background: var(--ground);
  text-align: center;
  transition: opacity 850ms var(--ease), visibility 850ms var(--ease), background 700ms ease;
}

.opening-stage {
  position: relative;
  width: min(28rem, 50svh);
  aspect-ratio: 888 / 1575;
  perspective: 1200px;
  filter: drop-shadow(0 22px 30px rgb(55 44 31 / 13%));
}

.envelope-button {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transform-style: preserve-3d;
  transform-origin: 50% 8%;
  transition: transform 940ms var(--ease), opacity 700ms var(--ease);
  -webkit-tap-highlight-color: transparent;
}

.envelope-button:hover .wax-seal {
  transform: translate(-50%, -50%) scale(1.035) rotate(-1deg);
}

.envelope-image {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 350ms ease;
}

.envelope-button::before {
  position: absolute;
  z-index: 5;
  inset: 0;
  background: url("./public/images/envelope-clean.jpg") center / 100% 100% no-repeat;
  clip-path: polygon(0 0, 100% 0, 50% 50.8%);
  content: "";
  transform-origin: 50% 0;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  transition: transform 2100ms cubic-bezier(.25,.1,.25,1), opacity 1800ms ease;
}

.envelope-flap {
  position: absolute;
  inset: 0;
  display: block;
  background: url("./public/images/envelope-clean.jpg") center / 100% 100% no-repeat;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  transition: transform 2100ms cubic-bezier(.25,.1,.25,1), opacity 1700ms ease;
}

.envelope-flap-left {
  z-index: 3;
  clip-path: polygon(0 0, 50% 50.8%, 0 100%);
  transform-origin: 0 50%;
  transition-delay: 450ms;
}

.envelope-flap-right {
  z-index: 3;
  clip-path: polygon(100% 0, 100% 100%, 50% 50.8%);
  transform-origin: 100% 50%;
  transition-delay: 600ms;
}

.envelope-flap-bottom {
  z-index: 4;
  clip-path: polygon(0 100%, 100% 100%, 50% 50.8%);
  transform-origin: 50% 100%;
  transition-delay: 750ms;
}

.wax-seal {
  position: absolute;
  z-index: 6;
  top: 50.8%;
  left: 50%;
  display: grid;
  width: clamp(7.15rem, 31.5%, 9.5rem);
  aspect-ratio: 1;
  place-items: center;
  transform: translate(-50%, -50%);
  transition: transform 500ms var(--ease), opacity 420ms ease;
}

.wax-seal > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.opening-instructions {
  position: absolute;
  z-index: 7;
  top: 69%;
  left: 50%;
  display: grid;
  width: max-content;
  max-width: calc(100% - 1.5rem);
  place-items: center;
  padding: 0.25rem 0.45rem;
  color: #765e44;
  font-family: var(--body-font);
  font-size: clamp(0.62rem, 1.65vw, 0.82rem);
  letter-spacing: 0.1em;
  line-height: 1.2;
  white-space: nowrap;
  transform: translateX(-50%);
}

.opening-screen.is-opening .envelope-button {
  transform: translateY(-0.7rem) scale(0.99);
}

.opening-screen.is-opening .envelope-button::before {
  opacity: 0;
  transform: rotateX(-174deg);
}

.opening-screen.is-opening .envelope-flap-left {
  opacity: 0;
  transform: rotateY(-174deg);
}

.opening-screen.is-opening .envelope-flap-right {
  opacity: 0;
  transform: rotateY(174deg);
}

.opening-screen.is-opening .envelope-flap-bottom {
  opacity: 0;
  transform: rotateX(172deg);
}

.opening-screen.is-opening .envelope-image {
  opacity: 0;
}

.opening-screen.is-opening .wax-seal,
.opening-screen.is-opening .opening-instructions {
  opacity: 0;
}

.opening-screen.is-opening .wax-seal {
  transform: translate(-50%, -50%) scale(0.68) rotate(8deg);
}

.opening-screen.is-opening {
  background: transparent;
}

.opening-screen.is-departing {
  opacity: 0;
  visibility: hidden;
}

.invitation {
  min-height: 100vh;
}

.invitation-sheet {
  container-type: inline-size;
  width: min(100%, 30rem);
  min-height: 100vh;
  margin-inline: auto;
  overflow: clip;
  background: var(--ground);
  box-shadow: 0 8px 32px rgb(101 79 48 / 10%);
}

.hero-section {
  position: relative;
  height: min(176cqw, 58rem);
  min-height: min(176cqw, 58rem);
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(180deg, #f7efdf, #f2e5d1 54%, #f7efdf);
}

.hero-section::before {
  content: none;
}

.hero-background {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.hero-art {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 50%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 11px 24px rgb(70 49 32 / 15%));
  transform: translateX(-50%);
}

.hero-architecture {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
}

.hero-flowers {
  position: absolute;
  z-index: 3;
  bottom: 2.5%;
  width: 27%;
  height: 30%;
  object-fit: contain;
  pointer-events: none;
  transform-origin: 50% 92%;
}

.hero-flowers-left {
  left: -3%;
  animation: flower-sway-left 12s ease-in-out infinite;
  animation-delay: 1.7s;
}

.hero-flowers-right {
  right: -3%;
  transform: scaleX(-1);
  animation: flower-sway-right 13.5s ease-in-out infinite;
  animation-delay: 1.9s;
}

.hero-flower-bloom {
  position: absolute;
  z-index: 4;
  top: 27%;
  right: 15%;
  width: clamp(2.5rem, 9vw, 3.4rem);
  aspect-ratio: 1;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.35) rotate(-18deg);
}

.hero-flower-bloom img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 7px rgb(91 57 37 / 18%));
}

.rose-petal-burst {
  position: absolute;
  z-index: 4;
  inset: 0;
  overflow: visible;
  pointer-events: none;
}

.rose-petal {
  position: absolute;
  top: var(--start-y, 29%);
  left: var(--start-x, 83%);
  width: clamp(1.4rem, 5.5vw, 2.2rem);
  height: auto;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.12);
}

.petal-1 { --petal-x: -5rem; --petal-y: 9rem; --petal-turn: -115deg; }
.petal-2 { --petal-x: -9rem; --petal-y: 14rem; --petal-turn: -48deg; }
.petal-3 { --petal-x: -13rem; --petal-y: 18rem; --petal-turn: 35deg; }
.petal-4 { --petal-x: -18rem; --petal-y: 13rem; --petal-turn: 125deg; }
.petal-5 { --petal-x: -15rem; --petal-y: 21rem; --petal-turn: 190deg; }
.petal-6 { --petal-x: -8rem; --petal-y: 24rem; --petal-turn: 240deg; }
.petal-7 { --petal-x: -4rem; --petal-y: 17rem; --petal-turn: 310deg; }
.petal-8 { --petal-x: -20rem; --petal-y: 17rem; --petal-turn: 355deg; }

.invitation.is-open .rose-petal {
  animation: rose-petal-burst 4800ms cubic-bezier(.2,.35,.4,1) var(--petal-delay, 3300ms) both;
}

.invitation.is-open .hero-flower-bloom {
  animation: flower-appears 1200ms cubic-bezier(.2,.65,.3,1) var(--bloom-delay, 2900ms) both, bloom-float 4200ms ease-in-out calc(var(--bloom-delay, 2900ms) + 1200ms) infinite;
}

.hero-content {
  position: absolute;
  inset: 0;
  z-index: 5;
  text-align: center;
}

.hero-date {
  position: absolute;
  top: 19%;
  left: 50%;
  display: grid;
  gap: 0.15rem;
  width: max-content;
  max-width: 65%;
  color: var(--gold);
  transform: translateX(-50%);
}

.hero-date span {
  font-family: var(--display-font);
  font-size: clamp(1.8rem, 6vw, 2.5rem);
  line-height: 1.1;
}

.hero-date time {
  color: var(--gold);
  font-size: clamp(1.3rem, 4vw, 1.8rem);
  letter-spacing: 0.06em;
}

.hero-names {
  position: absolute;
  top: 32%;
  left: 50%;
  display: grid;
  justify-items: center;
  gap: 0;
  width: 64%;
  margin: 0;
  color: var(--gold);
  font-family: var(--display-font);
  font-size: clamp(2.7rem, 9.5vw, 3.45rem);
  font-weight: 400;
  line-height: 1;
  text-shadow: 0 1px 0 rgb(255 249 236 / 90%);
  transform: translateX(-50%);
}

.hero-names .name-line {
  display: block;
  line-height: 1.02;
}

.hero-names .name-join {
  display: block;
  margin-block: 0.06em 0.12em;
  font-size: 0.4em;
  line-height: 1;
}

.invitation.is-open .hero-art {
  animation: hero-photo-in 1450ms var(--ease) 1550ms both;
}

.invitation.is-open .hero-background {
  animation: hero-background-in 1600ms var(--ease) 1450ms both;
}

.invitation.is-open .hero-architecture {
  animation: hero-architecture-in 1450ms var(--ease) 1650ms both;
}

.invitation.is-open .hero-date,
.invitation.is-open .hero-names {
  animation: hero-copy-in 1050ms var(--ease) both;
}

.invitation.is-open .hero-date {
  animation-delay: 1750ms;
}

.invitation.is-open .hero-names {
  animation-delay: 1900ms;
}

.message-section,
.schedule-section,
.details-section {
  padding: 1.1rem 0.35rem;
}

.paper-card {
  position: relative;
  width: 100%;
  isolation: isolate;
  background: #f8eedc;
}

.paper-art {
  position: absolute;
  z-index: -1;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
}

.paper-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 5.3rem clamp(2.1rem, 8vw, 3rem);
  text-align: center;
}

.message-card {
  min-height: 37rem;
  aspect-ratio: 2 / 3;
}

.message-copy .script-kicker {
  margin: 0 0 0.8rem;
}

.script-kicker {
  color: var(--gold);
  font-family: var(--display-font);
  font-size: clamp(2rem, 6.5vw, 2.8rem);
  line-height: 1.05;
}

.message-copy h2 {
  max-width: 15ch;
  margin: 0;
  color: var(--gold);
  font-size: clamp(1.75rem, 6vw, 2.25rem);
  font-weight: 400;
  line-height: 1.2;
  text-wrap: balance;
}

.message-copy > p:not(.script-kicker) {
  max-width: 31ch;
  margin: 1.25rem 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.12rem, 3.8vw, 1.3rem);
  font-weight: 500;
  line-height: 1.55;
  text-wrap: pretty;
}

.countdown-section {
  padding: 4.1rem 1rem 4.5rem;
  background: #faf1e1;
  text-align: center;
}

.countdown-inner {
  width: 100%;
}

.script-heading {
  margin: 0;
  color: var(--gold);
  font-family: var(--body-font);
  font-size: clamp(1.8rem, 6vw, 2.3rem);
  font-weight: 500;
  line-height: 1.2;
  text-wrap: balance;
}

.countdown {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1.12fr) auto minmax(0, 1.12fr);
  align-items: start;
  gap: 0.15rem;
  margin: 1.75rem auto 0;
  color: var(--gold-light);
  font-variant-numeric: lining-nums tabular-nums;
}

.countdown-part {
  display: grid;
  min-width: 0;
  gap: 0.2rem;
}

.countdown-part > span {
  color: var(--gold-light);
  font-size: clamp(1.75rem, 7.7vw, 2.8rem);
  line-height: 1.1;
}

.countdown-part small {
  color: #80673e;
  font-family: var(--body-font);
  font-size: clamp(0.72rem, 2.9vw, 0.8rem);
  letter-spacing: 0.03em;
}

.countdown-separator {
  padding-top: 0.04em;
  color: var(--gold-light);
  font-size: clamp(1.45rem, 6.3vw, 2.25rem);
  line-height: 1;
}

.countdown-rule {
  display: block;
  width: min(100%, 19rem);
  height: 1px;
  margin: 2.2rem auto 0;
  background: #d7c49e;
}

.countdown-inner > p {
  margin: 1.1rem 0 0;
  color: #79644a;
  font-style: italic;
}

.schedule-section {
  padding-block: 1.1rem;
}

.schedule-card {
  min-height: 42rem;
}

.schedule-copy {
  justify-content: flex-start;
  padding-top: 7.2rem;
  padding-bottom: 3.4rem;
}

.schedule-copy h2 {
  margin: 0;
  color: var(--gold);
  font-family: var(--body-font);
  font-size: clamp(1.9rem, 6.3vw, 2.45rem);
  font-weight: 500;
  line-height: 1.18;
  text-wrap: balance;
}

.schedule-note {
  margin: 0.75rem 0 0;
  color: #574438;
  font-family: var(--ui-font);
  font-size: 0.875rem;
  letter-spacing: 0.02em;
}

.event-timeline {
  position: relative;
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 0;
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.event-timeline::before {
  position: absolute;
  top: 1.1rem;
  bottom: 1.1rem;
  left: 50%;
  width: 1px;
  background: #b8a88e;
  content: "";
}

.event-timeline li {
  position: relative;
  display: grid;
  min-height: 4.25rem;
  grid-template-columns: minmax(0, 1fr) 2.7rem minmax(0, 1fr);
  align-items: center;
}

.event-timeline time {
  padding-right: 0.6rem;
  color: #725b49;
  font-size: clamp(1.15rem, 4.5vw, 1.45rem);
  text-align: right;
  white-space: nowrap;
}

.timeline-marker {
  position: relative;
  z-index: 1;
  display: block;
  width: 0.55rem;
  height: 0.55rem;
  justify-self: center;
  border: 1px solid #85725f;
  border-radius: 50%;
  background: #85725f;
}

.timeline-marker.flower-marker {
  width: 2.7rem;
  height: 2.7rem;
  border: 0;
  background: transparent;
}

.flower-marker img {
  display: block;
  width: 3.35rem;
  height: 3.35rem;
  object-fit: contain;
}

.timeline-event {
  padding-left: 0.6rem;
  color: #725b49;
  font-size: clamp(0.98rem, 3.7vw, 1.13rem);
  line-height: 1.3;
}

.music-note {
  width: 100%;
  margin-top: 1.15rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgb(155 113 45 / 35%);
  color: var(--ink-soft);
  text-align: center;
}

.music-note > p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.45;
  text-wrap: balance;
}

.venue-section {
  padding: 4.3rem 1.3rem 4.8rem;
  background: #faf2e4;
  text-align: center;
}

.venue-copy {
  max-width: 25rem;
  margin-inline: auto;
}

.venue-copy .script-kicker {
  margin: 0;
}

.venue-copy .script-heading {
  margin-top: 0.1rem;
}

.venue-copy > p:not(.script-kicker) {
  margin: 0.9rem 0 0;
  color: #6c594a;
  font-size: 1.05rem;
}

.venue-copy address {
  margin-top: 0.7rem;
  color: #755e4b;
  font-size: 1.2rem;
  font-style: normal;
  line-height: 1.45;
}

.venue-copy .menu-note {
  color: #765b32;
  font-size: 0.96rem;
}

.map-link,
.venue-link {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  margin-top: 0.8rem;
  color: #65513b;
  font-family: var(--ui-font);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25rem;
}

.venue-link {
  display: flex;
  width: fit-content;
  margin-inline: auto;
}

.map-frame {
  position: relative;
  width: min(100%, 23rem);
  aspect-ratio: 1 / 1;
  margin: 2rem auto 0;
  overflow: hidden;
  border: 2px solid #c99a52;
  border-radius: 1.1rem;
  background: #e7ddcb;
  box-shadow: 0 9px 26px rgb(81 61 36 / 14%);
}

.map-frame::before {
  position: absolute;
  z-index: 1;
  inset: 0.35rem;
  border: 1px solid rgb(248 238 218 / 75%);
  border-radius: 0.65rem;
  content: "";
  pointer-events: none;
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  filter: sepia(0.08) saturate(0.78);
}

.details-section {
  display: grid;
  gap: 1.1rem;
  padding-top: 1rem;
}

.dress-card {
  min-height: 31rem;
  aspect-ratio: 2 / 3;
}

.dress-copy {
  padding-inline: 3.1rem;
}

.dress-copy .script-kicker {
  margin: 0 0 0.65rem;
}

.dress-note {
  max-width: 27ch;
  margin: 0.8rem 0 0;
  color: var(--ink-soft);
  font-size: 1.08rem;
  line-height: 1.55;
}

.rsvp-block {
  padding: 3.3rem 1.25rem 3.8rem;
  background: #faf1e2;
  text-align: center;
}

.rsvp-block .script-kicker {
  margin: 0;
  font-size: clamp(1.85rem, 6.2vw, 2.45rem);
}

.rsvp-block .script-heading {
  margin-top: 0.15rem;
}

.rsvp-block > p:not(.script-kicker, .rsvp-prompt) {
  max-width: 31ch;
  margin: 0.8rem auto 0;
  color: #6c594a;
  font-size: 1.04rem;
}

.rsvp-seal {
  position: relative;
  display: grid;
  width: 6.4rem;
  aspect-ratio: 1;
  place-items: center;
  margin: 1.7rem auto 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: transform 320ms var(--ease);
}

.rsvp-seal > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.rsvp-seal:hover {
  transform: translateY(-3px) rotate(-2deg);
}

.rsvp-prompt {
  margin: 0.6rem 0 0;
  color: var(--gold);
  font-family: var(--body-font);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  font-style: italic;
}

.rsvp-form {
  display: grid;
  width: min(100%, 27rem);
  gap: 0.6rem;
  margin: 1.8rem auto 0;
  text-align: left;
  animation: form-in 520ms var(--ease) both;
}

.rsvp-form > label,
.rsvp-form legend {
  color: var(--olive-deep);
  font-family: var(--ui-font);
  font-size: 0.9rem;
  font-weight: 600;
}

.rsvp-form > input {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid #b9aa90;
  border-radius: 2px;
  background: #fffdf8;
  color: var(--ink);
  font-family: var(--ui-font);
  font-size: 0.96rem;
}

.rsvp-form > input::placeholder {
  color: #615c50;
  opacity: 1;
}

.rsvp-form fieldset {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1rem;
  margin: 0.75rem 0 0.45rem;
  padding: 0;
  border: 0;
}

.rsvp-form legend {
  margin-bottom: 0.6rem;
  padding: 0;
}

.choice-label {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.45rem;
  color: #554d42;
  cursor: pointer;
  font-family: var(--ui-font);
  font-size: 0.89rem;
  line-height: 1.45;
}

.choice-label input {
  width: 1rem;
  height: 1rem;
  flex: 0 0 1rem;
  margin: 0.16rem 0 0;
  accent-color: var(--olive);
}

.rsvp-submit {
  display: inline-flex;
  min-height: 3.4rem;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 0.5rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--rose-deep);
  border-radius: 2px;
  background: #ead7b5;
  color: #682c35;
  font-family: var(--body-font);
  font-size: 1.05rem;
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease;
}

.rsvp-submit:hover {
  background: #f0dfc0;
  transform: translateY(-2px);
}

.form-note {
  margin: 0.15rem 0 0;
  color: #554e42;
  font-family: var(--ui-font);
  font-size: 0.8rem;
  text-align: center;
}

.closing-section {
  padding: 3.3rem 0 1.8rem;
  background:
    radial-gradient(ellipse at 50% 0%, rgb(255 255 255 / 56%), transparent 48%),
    var(--ground);
  text-align: center;
}

.closing-copy {
  padding-inline: 1rem;
}

.closing-copy .script-kicker {
  margin: 0;
}

.closing-names {
  margin: 0.2rem 0 0;
  color: var(--gold);
  font-family: var(--display-font);
  font-size: clamp(2.8rem, 9.2vw, 3.7rem);
  line-height: 1.1;
}

.closing-names span {
  display: inline-block;
  margin-inline: 0.04em;
  color: var(--gold-light);
  font-family: var(--body-font);
  font-size: 0.55em;
  font-style: italic;
  vertical-align: 0.2em;
}

.closing-copy > p:last-child {
  margin: 0.2rem 0 0;
  color: #6e5846;
  font-style: italic;
}

.couple-art {
  position: relative;
  width: 100%;
  margin: 1.5rem auto 0;
  padding: 0.7rem;
  width: 92%;
  border: 1px solid #c6a66b;
  border-radius: 48% 48% 8% 8% / 26% 26% 5% 5%;
  overflow: hidden;
}

.couple-art > img:first-child {
  border-radius: 48% 48% 8% 8% / 26% 26% 5% 5%;
}

.couple-art img {
  display: block;
  width: 100%;
  height: auto;
}

.couple-art .footer-flowers {
  position: absolute;
  z-index: 1;
  bottom: 0;
  width: 25%;
  height: 38%;
  object-fit: contain;
  pointer-events: none;
  transform-origin: 50% 92%;
}

.footer-flowers-left {
  left: -5%;
  animation: flower-sway-left 8.8s ease-in-out infinite;
}

.footer-flowers-right {
  right: -5%;
  transform: scaleX(-1);
  animation: flower-sway-right 9.4s ease-in-out infinite;
}

.music-credit {
  margin: 1.6rem 1rem 0;
  color: #574d3f;
  font-family: var(--ui-font);
  font-size: 0.72rem;
  line-height: 1.55;
}

.music-credit a {
  color: #5c4a30;
}

.sound-control {
  position: fixed;
  z-index: 20;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  display: inline-flex;
  min-height: 3.35rem;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0.9rem 0.45rem 0.65rem;
  border: 1px solid rgb(229 215 188 / 75%);
  border-radius: 999px;
  background: var(--rose);
  box-shadow: 0 8px 20px rgb(38 25 17 / 24%);
  color: #fff7e9;
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease;
}

.sound-control:hover {
  background: var(--rose-deep);
  transform: translateY(-2px);
}

.sound-icon {
  width: 1.45rem;
  height: 1.45rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.sound-icon-playing path:first-child,
.sound-icon-paused path:first-child {
  fill: currentColor;
  stroke: none;
}

.sound-icon-paused {
  display: none;
}

.sound-control[aria-pressed="false"] .sound-icon-playing {
  display: none;
}

.sound-control[aria-pressed="false"] .sound-icon-paused {
  display: block;
}

.sound-copy {
  display: grid;
  line-height: 1.15;
  text-align: left;
}

.sound-copy strong {
  font-family: var(--ui-font);
  font-size: 0.75rem;
  font-weight: 600;
}

.sound-copy small {
  color: #f6dfb9;
  font-family: var(--ui-font);
  font-size: 0.72rem;
}

.audio-message {
  position: fixed;
  z-index: 19;
  right: 1rem;
  bottom: 4.9rem;
  max-width: min(23rem, calc(100vw - 2rem));
  margin: 0;
  padding: 0.7rem 0.95rem;
  background: var(--paper);
  box-shadow: 0 8px 24px rgb(38 25 17 / 17%);
  color: var(--ink);
  font-family: var(--ui-font);
  font-size: 0.83rem;
}

.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal {
  transition: opacity 800ms var(--ease), transform 900ms var(--ease);
}

.js .reveal-rise:not(.is-visible) {
  opacity: 0;
  transform: translateY(28px);
}

.audio-message.is-visible {
  animation: message-in 420ms var(--ease) both;
}

.no-js .opening-screen,
.no-js .skip-link,
.no-js .sound-control {
  display: none;
}

.no-js .invitation[hidden] {
  display: block !important;
}

@keyframes cue-bob {
  0%, 100% { transform: translateY(-2px); }
  50% { transform: translateY(4px); }
}

@keyframes hero-photo-in {
  from { opacity: 0; transform: translate(-50%, 1.5rem) scale(0.97); }
  to { opacity: 1; transform: translate(-50%, 0) scale(1); }
}

@keyframes hero-architecture-in {
  from { opacity: 0; transform: scale(1.025); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes hero-background-in {
  from { opacity: 0; transform: scale(1.025); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes flower-appears {
  0% { opacity: 0; transform: scale(0.35) rotate(-18deg); }
  70% { opacity: 1; transform: scale(1.12) rotate(5deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}

@keyframes hero-copy-in {
  from { opacity: 0; translate: 0 0.8rem; }
  to { opacity: 1; translate: 0 0; }
}

@keyframes rose-petal-burst {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.12) rotate(0); }
  10% { opacity: 0.95; }
  35% { opacity: 0.96; transform: translate(calc(-50% + var(--petal-x) * .42), calc(-50% + var(--petal-y) * .22)) scale(.95) rotate(calc(var(--petal-turn) * .35)); }
  68% { opacity: 0.88; transform: translate(calc(-50% + var(--petal-x) * .72 + 1rem), calc(-50% + var(--petal-y) * .62)) scale(.8) rotate(calc(var(--petal-turn) * .72)); }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--petal-x)), calc(-50% + var(--petal-y))) scale(0.66) rotate(var(--petal-turn));
  }
}

@keyframes flower-sway-left {
  0%, 100% { transform: rotate(-1.3deg) translateY(0); }
  50% { transform: rotate(1.7deg) translateY(-5px); }
}

@keyframes flower-sway-right {
  0%, 100% { transform: scaleX(-1) rotate(-1.6deg) translateY(0); }
  50% { transform: scaleX(-1) rotate(1.2deg) translateY(-6px); }
}

@keyframes rose-drift {
  0%, 100% { opacity: 0; transform: translate(0, -8px) rotate(-18deg) scale(0.8); }
  16%, 78% { opacity: 0.9; }
  50% { opacity: 0.72; transform: translate(14px, 31px) rotate(34deg) scale(1); }
}

@keyframes wave-pulse {
  from { transform: scaleY(0.45); }
  to { transform: scaleY(1); }
}

@keyframes message-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@media (max-width: 760px) {
  body {
    font-size: 1.08rem;
  }

  .opening-stage {
    width: min(28rem, 50svh);
  }

  .opening-instructions {
    top: 69%;
    padding-block: 0.3rem;
    letter-spacing: 0.08em;
  }

  .invitation-sheet {
    width: 100%;
  }

  .message-section,
  .schedule-section,
  .details-section {
    padding-inline: 0.25rem;
  }

  .paper-copy {
    padding-inline: 2.05rem;
  }

  .message-copy h2 {
    max-width: 16ch;
    font-size: clamp(1.65rem, 6.3vw, 2.05rem);
  }

  .message-copy > p:not(.script-kicker) {
    font-size: 1.08rem;
  }

  .countdown-section {
    padding-inline: 0.8rem;
  }

  .countdown {
    gap: 0.1rem;
  }

  .countdown-part > span {
    font-size: clamp(1.72rem, 7.4vw, 2.5rem);
  }

  .countdown-separator {
    font-size: clamp(1.35rem, 6vw, 1.95rem);
  }

  .schedule-card {
    min-height: 42rem;
  }

  .schedule-copy {
    padding-inline: 2.05rem;
  }

  .schedule-copy h2 {
    font-size: clamp(1.9rem, 6.3vw, 2.35rem);
  }

  .event-timeline li {
    grid-template-columns: minmax(0, 1fr) 2.2rem minmax(0, 1fr);
  }

  .event-timeline time {
    padding-right: 0.38rem;
  }

  .timeline-event {
    padding-left: 0.38rem;
  }

  .details-section {
    gap: 0.4rem;
  }

  .sound-control {
    right: max(0.75rem, env(safe-area-inset-right));
    bottom: max(0.75rem, env(safe-area-inset-bottom));
    min-height: 3.1rem;
    gap: 0.5rem;
    padding: 0.4rem 0.72rem 0.4rem 0.52rem;
  }

  .hero-art {
    top: 50%;
    width: 100%;
    height: 50%;
  }

  .hero-flowers {
    width: 27%;
    height: 30%;
  }

  .invitation.is-rsvp-open .sound-control {
    top: max(0.75rem, env(safe-area-inset-top));
    bottom: auto;
  }

  .sound-icon {
    width: 1.3rem;
    height: 1.3rem;
  }

  .audio-message {
    right: 0.75rem;
    bottom: calc(max(0.75rem, env(safe-area-inset-bottom)) + 4.25rem);
  }
}

@media (max-width: 360px) {
  .countdown-section {
    padding-inline: 0.45rem;
  }

  .countdown-part small {
    font-size: 0.72rem;
  }

  .countdown-part > span {
    font-size: 1.62rem;
  }

  .countdown-separator {
    font-size: 1.25rem;
  }

  .paper-copy,
  .schedule-copy {
    padding-inline: 1.7rem;
  }

  .hero-names {
    font-size: 2.75rem;
  }
}

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

  .js .reveal-rise:not(.is-visible) {
    opacity: 1;
    transform: none;
  }

  .invitation.is-open .hero-art,
  .invitation.is-open .hero-background,
  .invitation.is-open .hero-architecture,
  .invitation.is-open .hero-flower-bloom,
  .invitation.is-open .hero-date,
  .invitation.is-open .hero-names {
    animation-delay: 0ms !important;
  }

  .rose-petal {
    display: none;
  }
}

/* Roses follow the opening envelope and frame the central copy. */
.bloom-1 { top: 18%; right: 12%; --bloom-delay: 2850ms; }
.bloom-2 { top: 32%; left: 8%; right: auto; width: 2.5rem; --bloom-delay: 3000ms; }
.bloom-3 { top: 46%; right: 9%; width: 2.8rem; --bloom-delay: 3100ms; }
.bloom-4 { top: 59%; left: 12%; right: auto; --bloom-delay: 3200ms; }
.bloom-5 { top: 69%; right: 11%; width: 2.4rem; --bloom-delay: 3300ms; }
.bloom-6 { top: 13%; left: 17%; right: auto; width: 2rem; --bloom-delay: 2950ms; }
@keyframes bloom-float {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-9px) rotate(5deg); }
}

/* Invitation ticket: readable text, die-cut sides and perforated stub. */
.celebration-payment {
  position: relative;
  width: min(100%, 25rem);
  margin: 2.2rem auto;
  padding: .65rem;
  background: #f1e3cb;
  color: #71502c;
  mask-image: radial-gradient(circle at 0 66%, transparent 11px, #000 12px), radial-gradient(circle at 100% 66%, transparent 11px, #000 12px);
  mask-composite: intersect;
}
.ticket-menu, .ticket-payment { border: 1px solid #b8975c; }
.ticket-menu { padding: 1rem 1rem 1.5rem; border-bottom: 0; }
.ticket-payment { position: relative; padding: 1.4rem .5rem 1rem; border-top: 1px dashed #b8975c; }
.celebration-payment p { margin: .4rem 0; }
.ticket-ornament { width: 7rem; height: 1.2rem; fill: none; stroke: #a57c3d; stroke-width: 1; }
.ticket-title { font-family: var(--display-font); font-size: 2rem; line-height: 1.2; }
.ticket-price { font-family: var(--body-font); font-size: 2.6rem; line-height: 1.15; }
.ticket-price span { display: block; margin-top: .35rem; font-size: 1rem; }
.ticket-provider { font-family: var(--body-font); font-size: 1.4rem; }
.revolut-iban { font-family: var(--ui-font); font-size: clamp(.78rem, 3.2vw, .9rem); letter-spacing: .025em; overflow-wrap: anywhere; user-select: all; }
 .rsvp-submit {
  position: relative;
  min-height: 3.8rem;
  padding: 1.05rem 1.5rem;
  border: 2px solid #a57c3d;
  border-radius: .6rem;
  background-color: #ead7b5;
  background-image: linear-gradient(180deg, #fff8e9, #ead7b5);
  color: #682c35;
  font-weight: 600;
  letter-spacing: .015em;
  box-shadow: inset 0 1px 0 #fffdf6, 0 4px 0 #b89b6c, 0 8px 14px rgb(48 38 24 / 14%);
  transition: transform 220ms ease, background 220ms ease, box-shadow 220ms ease;
  animation: invitation-button-breathe 4s ease-in-out infinite;
}
.rsvp-submit:hover {
  background-color: #f0dfc0;
  background-image: linear-gradient(180deg, #fffdf5, #f0dfc0);
  color: #54202a;
  transform: translateY(-2px);
}
.rsvp-submit:active { transform: translateY(2px); animation: none; box-shadow: inset 0 1px 0 #fffdf6, 0 1px 0 #b89b6c, 0 3px 8px rgb(48 38 24 / 12%); }
.rsvp-submit:focus-visible { outline: 2px solid #682c35; outline-offset: 5px; }

.rsvp-submit svg { width: 1.3rem; height: 1.3rem; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform 250ms ease; }
.rsvp-submit:hover svg { transform: translateX(4px); }
@keyframes invitation-button-breathe {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -2px; }
}

.couple-art .footer-flowers { width: 40%; height: 48%; bottom: -2%; object-position: center bottom; }
.couple-art .footer-flowers-left { left: -7%; animation-duration: 6s; }
.couple-art .footer-flowers-right { right: -7%; animation-duration: 7s; }
@media (prefers-reduced-motion: reduce) {
  .couple-art .footer-flowers { animation: none; }
}

.sound-control {
  width: 3.4rem;
  height: 3.4rem;
  min-height: 3.4rem;
  padding: 0;
  justify-content: center;
  border: 2px solid #a57c3d;
  border-radius: 50%;
  background: #ead7b5;
  background-image: linear-gradient(180deg, #fff8e9, #ead7b5);
  color: #682c35;
  box-shadow: inset 0 1px 0 #fffdf6, 0 3px 0 #b89b6c, 0 6px 12px rgb(48 38 24 / 14%);
}
.sound-control:hover { background: #fff8e9; color: #54202a; }
.sound-control:focus-visible { outline: 2px solid #682c35; outline-offset: 4px; }
.hero-section.has-returned .rose-petal { animation-delay: calc(var(--petal-delay, 3300ms) - 3300ms); }
.hero-section.has-returned .hero-flower-bloom { animation-delay: calc(var(--bloom-delay, 2900ms) - 2850ms), calc(var(--bloom-delay, 2900ms) - 1650ms); }
.hero-section.roses-reset .rose-petal, .hero-section.roses-reset .hero-flower-bloom { animation: none !important; }

.countdown-clock { display: block; width: clamp(8rem, 32vw, 10.5rem); height: auto; margin: 0 auto 1.5rem; }

.venue-illustration { display: block; width: 100%; max-width: 25rem; height: auto; margin: 0 auto 1.5rem; }
