:root {
  --ink: #443d49;
  --purple: #6a5579;
  --purple-deep: #51445a;
  --lavender: #f0eaf3;
  --cream: #f8f3ec;
  --paper: #fffdf9;
  --gold: #c79b5c;
  --gold-soft: #ddc49d;
  --line: #e5ddea;
  --z-background: 0;
  --z-decor-back: 1;
  --z-media: 2;
  --z-content: 3;
  --z-decor-front: 4;
  --z-controls: 5;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: "Arimo", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 6;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--purple-deep);
  font-size: 13px;
  font-weight: 700;
  transform: translateY(-180%);
  transition: transform 180ms ease;
}

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

.site-shell {
  width: 100%;
  background: var(--cream);
  overflow-x: clip;
}

.canva-page {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 0;
  margin-top: -1px;
  place-items: center;
  overflow: clip;
  isolation: isolate;
}

.page-stage {
  position: relative;
  width: min(100%, 430px);
  height: auto;
  min-height: 0;
  overflow: clip;
  isolation: isolate;
}

.page-panel {
  position: absolute;
  inset-inline: 0;
  z-index: var(--z-background);
}

.decor {
  position: absolute;
  z-index: var(--z-decor-back);
  display: block;
  max-width: none;
  pointer-events: none;
  user-select: none;
}

.page-rule {
  display: block;
  width: 74px;
  height: 1px;
  margin-inline: auto;
  background: currentColor;
  opacity: 0.82;
}

.welcome__overline,
.welcome__copy h2,
.welcome__portrait figcaption,
.story__copy h2,
.story__note,
.calendar__heading h2,
.calendar__date,
.calendar-card__top,
.calendar-grid--days,
.timeline__heading h2,
.timeline-event time,
.location__time,
.location__copy h2,
.dress__card h2,
.countdown-card h2,
.countdown-grid strong,
.quote__content h2,
.quote__content blockquote,
.contacts__heading h2,
.contact-card__copy strong,
.rsvp__intro h2,
.final__copy h2,
.final__date {
  font-family: "Cormorant Garamond", Georgia, serif;
}

.image-frame {
  position: relative;
}

.image-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: #d8c9dc;
  color: var(--paper);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 44px;
  opacity: 0;
}

.has-image-error img {
  visibility: hidden;
}

.has-image-error .image-fallback {
  opacity: 1;
}

/* Canva v2 page 01 */

.canva-page-01,
.hero__stage {
  background: var(--purple-deep);
}

.hero__stage {
  height: max(100svh, calc(min(100vw, 430px) * 2.1641026));
  min-height: 692px;
  color: var(--paper);
}

.hero__background {
  position: absolute;
  inset: 0;
  z-index: var(--z-background);
  display: block;
  background: var(--purple);
  transform: scale(1);
  transform-origin: center;
  pointer-events: none;
}

.hero-decor-shell {
  position: absolute;
  z-index: var(--z-decor-back);
  display: block;
  pointer-events: none;
  user-select: none;
}

.hero-decor-image {
  display: block;
  width: 100%;
  height: 100%;
}

.hero__magnolia--top {
  top: -3.5%;
  left: 8.9%;
  width: 60%;
  height: 28.5%;
  transform: rotate(-63deg);
}

.hero__tulips {
  top: 32.8%;
  left: 65.1%;
  width: 40.1%;
  height: 27.4%;
  transform: rotate(-21deg);
}

.hero__magnolia--bottom {
  top: 52.6%;
  left: 9.9%;
  width: 87.5%;
  height: 41.6%;
  transform: rotate(-22deg) scale(-1);
}

.hero__kicker {
  position: absolute;
  top: 5.7%;
  right: 4.7%;
  z-index: var(--z-content);
  margin: 0;
  display: grid;
  width: 84px;
  font-size: clamp(12px, 3.45vw, 14px);
  font-weight: 700;
  letter-spacing: 0.24em;
  line-height: 1.2;
}

.hero-polaroid-shell {
  position: absolute;
  z-index: var(--z-content);
  width: 31.8%;
  height: 20.6%;
}

.hero-polaroid-shell--bride {
  top: 15.8%;
  left: 11%;
}

.hero-polaroid-shell--groom {
  top: 15.9%;
  left: 58%;
  width: 32.7%;
}

.hero-polaroid {
  position: relative;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 6px 6px 0;
  background: var(--paper);
  color: #49434b;
  box-shadow: 0 1px 0 rgb(50 42 55 / 20%);
}

.hero-polaroid--bride {
  rotate: -8deg;
}

.hero-polaroid--groom {
  rotate: 8deg;
}

.hero-polaroid__photo {
  width: 100%;
  height: 68%;
  overflow: hidden;
  background: #d9ccd9;
}

.hero-polaroid__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-polaroid--bride .hero-polaroid__photo img {
  object-position: 50% 51%;
}

.hero-polaroid--groom .hero-polaroid__photo img {
  object-position: 50% 48%;
}

.hero-polaroid__caption {
  position: absolute;
  inset: 72% 5px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px 0 4px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  letter-spacing: -0.025em;
  line-height: 1.16;
  text-align: center;
}

.hero-polaroid__caption--bride {
  flex-direction: column;
  font-size: clamp(12.5px, 3.33vw, 14px);
}

.hero-polaroid__caption--bride > span {
  color: inherit;
  font-size: inherit;
  font-style: inherit;
  white-space: nowrap;
}

.hero-polaroid__caption--groom {
  font-size: clamp(13px, 3.33vw, 14.5px);
  white-space: nowrap;
}

.hero-polaroid__caption--groom span {
  color: #cf6a83;
  font-size: 1.05em;
  font-style: normal;
}

.hero-date {
  position: absolute;
  top: 19.5%;
  left: 43%;
  z-index: var(--z-content);
  display: grid;
  width: 15%;
  justify-items: center;
  color: #ead49e;
  font-size: clamp(22px, 6.45vw, 28px);
  font-weight: 400;
  line-height: 0.95;
}

.hero-date i {
  width: 80%;
  height: 1px;
  margin: 4px 0 5px;
  background: #ead49e;
}

.hero__names {
  position: absolute;
  top: 39.4%;
  left: 10%;
  z-index: var(--z-content);
  display: grid;
  width: 80%;
  justify-items: center;
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(36px, 10.35vw, 48px);
  font-weight: 400;
  line-height: 1.05;
  text-align: center;
}

.hero__star {
  margin: 1px 0 10px;
  color: #ead49e;
  font-size: 0.7em;
  line-height: 1;
}

.hero__scroll-cue {
  position: absolute;
  bottom: 4.8%;
  left: 50%;
  z-index: var(--z-controls);
  padding: 8px;
  color: #e5ddea;
  font-size: clamp(10px, 2.8vw, 13px);
  text-decoration: none;
  transform: translateX(-50%);
}

/* The hero stays visible by default; external JS explicitly arms the hidden state. */
.hero-enter {
  opacity: 1;
  translate: 0 0;
}

.js.hero-armed .hero-enter {
  transition: opacity var(--hero-duration, 760ms) ease var(--hero-delay, 0ms), translate var(--hero-duration, 760ms) cubic-bezier(0.2, 0.7, 0.2, 1) var(--hero-delay, 0ms), transform var(--hero-duration, 760ms) ease var(--hero-delay, 0ms);
}

.js.hero-armed:not(.hero-ready):not(.hero-animation-fallback) .hero-enter {
  opacity: 0;
  translate: var(--hero-enter-x, 0) var(--hero-enter-y, 14px);
}

.js.hero-armed:not(.hero-ready):not(.hero-animation-fallback) .hero-enter--background {
  transform: scale(1.012);
}

.hero-enter--background {
  --hero-delay: 0ms;
  --hero-duration: 820ms;
  --hero-enter-y: 0;
}

.hero-enter--floral-top {
  --hero-delay: 180ms;
  --hero-enter-x: -14px;
  --hero-enter-y: -14px;
}

.hero-enter--label {
  --hero-delay: 430ms;
  --hero-enter-y: -10px;
}

.hero-enter--polaroid-left {
  --hero-delay: 650ms;
  --hero-enter-x: -26px;
  --hero-enter-y: 10px;
}

.hero-enter--polaroid-right {
  --hero-delay: 830ms;
  --hero-enter-x: 26px;
  --hero-enter-y: 10px;
}

.hero-enter--date {
  --hero-delay: 1080ms;
  --hero-enter-y: 14px;
}

.hero-enter--bride-name {
  --hero-delay: 1320ms;
  --hero-enter-y: 16px;
}

.hero-enter--star {
  --hero-delay: 1530ms;
  --hero-enter-y: 12px;
}

.hero-enter--groom-name {
  --hero-delay: 1720ms;
  --hero-enter-y: 16px;
}

.hero-enter--floral-right {
  --hero-delay: 1920ms;
  --hero-enter-x: 14px;
  --hero-enter-y: 4px;
}

.hero-enter--floral-bottom {
  --hero-delay: 2110ms;
  --hero-enter-x: -10px;
  --hero-enter-y: 14px;
}

.hero-enter--scroll-cue {
  --hero-delay: 2320ms;
  --hero-duration: 640ms;
  --hero-enter-y: 9px;
}

.js.hero-armed:not(.hero-ready):not(.hero-animation-fallback) .hero-date i {
  transform: scaleX(0);
}

.js.hero-armed .hero-date i {
  transform-origin: center;
  transition: transform 560ms ease 1260ms;
}

@keyframes hero-star-pulse {
  0%, 100% { scale: 1; }
  50% { scale: 1.09; }
}

.js.hero-ready .hero-enter--star {
  animation: hero-star-pulse 480ms ease 2050ms 1 both;
}

@keyframes hero-floral-sway-left {
  0%, 100% { translate: 0 0; rotate: 0deg; }
  50% { translate: -5px -3px; rotate: -1.1deg; }
}

@keyframes hero-floral-sway-right {
  0%, 100% { translate: 0 0; rotate: 0deg; }
  50% { translate: 5px 4px; rotate: 1.2deg; }
}

@keyframes hero-floral-float {
  0%, 100% { translate: 0 0; rotate: 0deg; }
  48% { translate: 3px -6px; rotate: 0.7deg; }
}

@keyframes hero-floral-breathe {
  0%, 100% { scale: 1; opacity: 0.94; }
  50% { scale: 1.01; opacity: 1; }
}

.hero-enter--floral-top .hero-decor-image {
  animation: hero-floral-sway-left 22s ease-in-out 2.5s infinite;
}

.hero-enter--floral-right .hero-decor-image {
  animation: hero-floral-sway-right 18s ease-in-out 2.9s infinite;
}

.hero-enter--floral-bottom .hero-decor-image {
  animation: hero-floral-float 27s ease-in-out 3.1s infinite;
}

.hero-animation-fallback .hero-enter {
  opacity: 1 !important;
  translate: 0 0 !important;
  transition: none !important;
}

.hero-animation-fallback .hero-enter--background {
  transform: scale(1) !important;
}

.welcome__overline.is-personalized {
  max-width: min(88vw, 390px);
  margin-inline: auto;
  text-wrap: balance;
}

/* Canva v2 page 02 */

.canva-page-02,
.welcome__stage {
  background: var(--cream);
}

/* Keep the Canva floral continuation visible across pages 02–04. */
.canva-page-02,
.canva-page-03,
.canva-page-04,
.welcome__stage,
.story__stage,
.calendar__stage {
  overflow: visible;
}

.canva-page-02 {
  z-index: 3;
  margin-bottom: -1px;
}

.canva-page-03 {
  z-index: 2;
  margin-bottom: -1px;
}

.canva-page-04 {
  z-index: 1;
}

.welcome__stage {
  display: grid;
  gap: 38px;
  justify-items: center;
  padding: clamp(48px, 13vw, 62px) 24px clamp(76px, 18vw, 92px);
}

.welcome__copy {
  position: relative;
  z-index: var(--z-content);
  width: min(100%, 390px);
  text-align: center;
}

.welcome__overline {
  margin: 0;
  color: var(--purple);
  font-size: clamp(34px, 10vw, 46px);
  font-weight: 400;
  line-height: 1.05;
}

.welcome__copy h2 {
  margin: 24px 0 26px;
  font-size: clamp(32px, 9.3vw, 43px);
  font-weight: 400;
  line-height: 1.08;
}

.welcome__copy .page-rule {
  margin-bottom: 24px;
  color: #7b685a;
}

.welcome__body {
  max-width: 360px;
  margin: 0 auto 22px;
  color: #777178;
  font-size: clamp(16px, 4.35vw, 19px);
  line-height: 1.48;
}

.welcome__copy .welcome__body + .page-rule {
  margin-bottom: 18px;
}

.welcome__closing {
  margin: 0;
  color: #777178;
  font-size: clamp(16px, 4.3vw, 19px);
  line-height: 1.4;
}

.welcome__portrait {
  position: relative;
  z-index: var(--z-media);
  width: min(76vw, 326px);
  aspect-ratio: 0.68;
  margin: 0;
  padding: 3px;
  border: 2px solid var(--purple);
  background: var(--paper);
}

.welcome__portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 48%;
}

.welcome__portrait figcaption {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  width: 100%;
  color: var(--purple);
  font-size: clamp(14px, 3.8vw, 16px);
  font-style: italic;
  text-align: center;
}

.couple-caption__ampersand {
  font-family: Georgia, "Times New Roman", serif;
  font-style: normal;
  font-weight: 400;
}

.welcome__floral--top {
  top: -24px;
  right: -78px;
  left: auto;
  width: 205px;
  height: auto;
  transform: rotate(129deg) scaleY(-1);
}

.welcome__floral--bottom-left {
  top: auto;
  bottom: -54px;
  left: -66px;
  width: 206px;
  height: auto;
  transform: rotate(129deg) scaleY(-1);
}

.welcome__floral--bottom-right {
  top: auto;
  right: -22px;
  bottom: -46px;
  left: auto;
  width: 142px;
  height: auto;
  transform: rotate(34deg);
}

/* Canva v2 page 03 */

.canva-page-03,
.story__stage {
  background: var(--cream);
}

.story__stage {
  display: grid;
  gap: 34px;
  justify-items: center;
  padding: clamp(60px, 15vw, 76px) 22px clamp(76px, 19vw, 96px);
}

.story__copy {
  position: relative;
  z-index: var(--z-content);
  width: min(100%, 390px);
  text-align: center;
}

.story__eyebrow {
  margin: 0;
  color: var(--gold);
  font-size: clamp(13px, 3.6vw, 16px);
  line-height: 1.3;
  font-weight: 700;
}

.story__copy h2 {
  margin: 22px 0 0;
  font-size: clamp(44px, 12.2vw, 58px);
  font-weight: 400;
  line-height: 0.98;
}

.story__body {
  max-width: 350px;
  margin: 30px auto 20px;
  color: #777178;
  font-size: clamp(16px, 4.35vw, 19px);
  line-height: 1.48;
}

.story__copy .page-rule {
  color: #8f7b99;
}

.story__note {
  margin: 20px 0 0;
  color: #7a6687;
  font-size: clamp(23px, 6.5vw, 30px);
  font-style: italic;
}

.story__photo {
  position: relative;
  z-index: var(--z-media);
  width: min(88vw, 378px);
  aspect-ratio: 0.72;
  margin: 0;
  border: 3px solid var(--purple);
  background: var(--paper);
  overflow: hidden;
}

.story__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.story__decor--right {
  top: 300px;
  right: -90px;
  left: auto;
  width: 132px;
  height: auto;
  transform: rotate(-14deg);
}

.story__decor--bottom {
  top: auto;
  bottom: -62px;
  left: -58px;
  width: 158px;
  height: auto;
  transform: rotate(-12deg) scaleX(-1);
}

/* Canva v2 page 04 */

.canva-page-04,
.calendar__stage {
  background: var(--lavender);
}

.calendar__stage {
  display: grid;
  gap: 34px;
  justify-items: center;
  padding: clamp(58px, 15vw, 76px) 20px clamp(76px, 18vw, 92px);
}

.calendar__heading {
  position: relative;
  z-index: var(--z-content);
  width: min(100%, 390px);
  text-align: center;
}

.calendar__eyebrow {
  margin: 0 0 22px;
  color: var(--gold);
  font-size: clamp(13px, 3.6vw, 16px);
  line-height: 1.3;
  font-weight: 700;
}

.calendar__heading h2 {
  margin: 0;
  font-size: clamp(48px, 13vw, 62px);
  font-weight: 400;
  line-height: 1;
}

.calendar__intro {
  max-width: 350px;
  margin: 24px auto 0;
  color: #777178;
  font-size: clamp(16px, 4.25vw, 19px);
  line-height: 1.45;
}

.calendar__date {
  margin: 22px 0 0;
  color: #806b8c;
  font-size: clamp(38px, 10vw, 48px);
  line-height: 1;
}

.calendar-card {
  position: relative;
  z-index: var(--z-content);
  width: min(92vw, 396px);
  min-height: 430px;
  padding: 28px 20px 22px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.calendar-card__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  color: #675671;
}

.calendar-card__top strong {
  font-size: clamp(28px, 7.8vw, 36px);
}

.calendar-card__top span {
  font-size: clamp(25px, 6.8vw, 32px);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
}

.calendar-grid--weekdays {
  margin-top: 30px;
  font-size: 12px;
  text-transform: uppercase;
}

.calendar-grid--days {
  grid-auto-rows: 48px;
  height: calc(100% - 82px);
  align-items: center;
  margin-top: 7px;
  font-size: clamp(15px, 4vw, 18px);
}

.calendar-grid .empty {
  visibility: hidden;
}

.wedding-day {
  position: relative;
  z-index: 0;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  justify-self: center;
  border: 1px solid var(--purple);
  border-radius: 50%;
}

.wedding-day::after {
  content: "";
  position: absolute;
  inset: -4px;
  z-index: -1;
  border: 1px solid var(--gold);
  border-radius: 50%;
}

.calendar__decor--tulips {
  top: 118px;
  right: -86px;
  left: auto;
  width: 145px;
  height: auto;
  transform: rotate(-21deg);
}

.calendar__decor--bottom {
  top: auto;
  right: -78px;
  bottom: -78px;
  left: auto;
  width: 290px;
  height: auto;
  transform: rotate(-146deg) scaleX(-1);
}

/* Canva v2 page 05 */

.canva-page-05,
.timeline__stage {
  background: var(--purple-deep);
}

.timeline__stage {
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  justify-content: center;
  padding: clamp(54px, 10vh, 88px) 24px;
}

.timeline__panel {
  inset: 0;
  background: var(--purple-deep);
}

.timeline__heading {
  position: relative;
  z-index: var(--z-content);
  width: min(100%, 580px);
  margin: 0 auto 42px;
  color: var(--paper);
}

.timeline__eyebrow {
  margin: 0 0 10px;
  color: var(--gold-soft);
  font-size: clamp(14px, 4vw, 17px);
  line-height: 1.3;
  font-weight: 700;
}

.timeline__heading h2 {
  margin: 0;
  font-size: clamp(58px, 17vw, 78px);
  font-weight: 400;
  line-height: 0.95;
}

.timeline__events {
  position: relative;
  z-index: var(--z-content);
  display: grid;
  width: min(100%, 580px);
  margin: 0 auto;
  gap: clamp(36px, 8vh, 54px);
  color: var(--paper);
}

.timeline-event {
  display: grid;
  grid-template-columns: clamp(68px, 19vw, 88px) minmax(0, 1fr);
  min-height: 96px;
  align-items: center;
  gap: clamp(20px, 5vw, 30px);
}

.timeline-event img {
  display: block;
  width: clamp(68px, 19vw, 88px);
  height: auto;
  max-height: 82px;
  object-fit: contain;
}

.timeline-event time {
  display: block;
  margin-bottom: 8px;
  color: var(--gold-soft);
  font-size: clamp(34px, 9.5vw, 44px);
  line-height: 1;
}

.timeline-event h3 {
  margin: 0;
  font-size: clamp(20px, 5.5vw, 26px);
  font-weight: 400;
  line-height: 1.25;
}

.timeline__tulips {
  top: 24px;
  right: -42px;
  left: auto;
  width: 150px;
  height: auto;
  opacity: 0.78;
  transform: rotate(-21deg);
}

/* Canva v2 pages 06–07 */

.canva-page-06,
.canva-page-07,
.location__stage {
  background: var(--cream);
}

.canva-page-06,
.canva-page-07,
.canva-page-08,
.location__stage,
.dress__stage {
  overflow: visible;
}

.canva-page-06 {
  z-index: 3;
}

.canva-page-07 {
  z-index: 2;
}

.canva-page-08 {
  z-index: 1;
}

.location__stage {
  display: grid;
  gap: 34px;
  justify-items: center;
  padding: clamp(54px, 13vw, 70px) 24px clamp(72px, 17vw, 88px);
}

.location__panel {
  inset: 0;
  background: var(--cream);
}

.location__copy {
  position: relative;
  z-index: var(--z-content);
  width: min(100%, 390px);
  text-align: center;
}

.canva-page-06 .location__copy {
  top: auto;
  left: auto;
}

.canva-page-07 .location__copy {
  top: auto;
  left: auto;
  width: min(100%, 390px);
}

.location__eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: clamp(14px, 3.8vw, 17px);
  line-height: 1.3;
  font-weight: 700;
}

.location__time {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-size: clamp(34px, 9vw, 42px);
}

.location__copy h2 {
  margin: 0 0 20px;
  color: var(--purple);
  font-size: clamp(43px, 12vw, 58px);
  font-weight: 400;
  line-height: 1.02;
}

.location__name {
  margin: 0 0 10px;
  font-size: clamp(17px, 4.6vw, 20px);
  font-weight: 700;
}

.location__copy address {
  margin: 0 0 24px;
  color: #777178;
  font-size: clamp(16px, 4.3vw, 19px);
  line-height: 1.45;
  font-style: normal;
}

.location__button {
  position: relative;
  z-index: var(--z-controls);
  display: inline-flex;
  min-width: 190px;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 10px 22px;
  border: 1px solid #a493b6;
  border-radius: 999px;
  background: var(--paper);
  color: #5c5062;
  font-size: clamp(15px, 4vw, 17px);
  text-decoration: none;
}

.location__button span:last-child {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 2px;
  background: #8397ad;
  color: #fff;
  font-size: 14px;
}

.location__photo {
  position: relative;
  z-index: var(--z-media);
  width: min(90vw, 390px);
  margin: 0;
  border: 2px solid var(--purple);
  background: var(--paper);
  overflow: hidden;
}

.canva-page-06 .location__photo {
  top: auto;
  left: auto;
  width: min(90vw, 390px);
  aspect-ratio: 16 / 9;
}

.canva-page-07 .location__photo {
  top: auto;
  left: auto;
  width: min(86vw, 370px);
  aspect-ratio: 4 / 3;
}

.location__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.canva-page-06 .location__photo img {
  object-position: 51% 51%;
}

.canva-page-07 .location__photo img {
  object-position: 50% 55%;
}

.canva-page-06 .location__decor--top-left {
  top: -28px;
  left: -54px;
  width: 148px;
  height: auto;
  transform: rotate(31deg) scaleX(-1);
}

.canva-page-06 .location__decor--right {
  top: 286px;
  right: -102px;
  left: auto;
  width: 152px;
  height: auto;
  transform: rotate(74deg) scaleX(-1);
}

.canva-page-06 .location__decor--bottom-left {
  top: auto;
  bottom: -52px;
  left: -62px;
  width: 170px;
  height: auto;
  transform: rotate(24deg);
}

.canva-page-07 .location__decor--top-left {
  top: 62px;
  left: -78px;
  width: 140px;
  height: auto;
  transform: rotate(24deg);
}

.canva-page-07 .location__decor--right {
  top: 300px;
  right: -90px;
  left: auto;
  width: 135px;
  height: auto;
  transform: rotate(-15deg);
}

.canva-page-07 .location__decor--bottom-left {
  top: auto;
  bottom: -55px;
  left: -45px;
  width: 145px;
  height: auto;
  transform: rotate(15deg) scaleX(-1);
}

/* Canva v2 page 08 */

.canva-page-08,
.dress__stage {
  background: var(--lavender);
}

.dress__stage {
  display: grid;
  justify-items: center;
  padding: clamp(62px, 15vw, 80px) 20px clamp(76px, 18vw, 94px);
}

.dress__panel {
  inset: 0;
  background: var(--lavender);
}

.dress__card {
  position: relative;
  z-index: var(--z-content);
  width: min(88vw, 620px);
  min-height: 0;
  padding: clamp(32px, 8vw, 44px) clamp(24px, 6vw, 36px);
  border: 1px solid var(--line);
  background: var(--paper);
  text-align: center;
}

.dress__eyebrow {
  margin: 0;
  color: var(--gold);
  font-size: clamp(18px, 4.9vw, 23px);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
}

.dress__card h2 {
  margin: 8px 0 26px;
  color: var(--purple);
  font-size: clamp(46px, 12.5vw, 60px);
  font-weight: 400;
  line-height: 1;
}

.dress__lead {
  margin: 0 0 24px;
  font-size: clamp(16px, 4.35vw, 19px);
  line-height: 1.48;
}

.dress__card .page-rule {
  width: 116px;
  color: var(--gold);
}

.dress__closing {
  margin: 25px 0 0;
  color: #777178;
  font-size: clamp(18px, 4.9vw, 22px);
  line-height: 1.38;
}

.dress__decor--top {
  top: 36px;
  right: -52px;
  left: auto;
  width: 148px;
  height: auto;
  transform: rotate(-18deg);
}

.dress__decor--bottom {
  top: auto;
  right: -52px;
  bottom: -72px;
  left: auto;
  width: 230px;
  height: auto;
  transform: rotate(-130deg) scaleX(-1);
}

/* Canva v2 page 09 */

.canva-page-09 {
  background: #403547;
}

.countdown__stage {
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: clamp(50px, 8vh, 76px) 20px;
  background: #403547;
}

.countdown__backdrop {
  position: absolute;
  inset: 0;
  z-index: var(--z-background);
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.countdown__overlay {
  position: absolute;
  inset: 0;
  z-index: var(--z-decor-back);
  background: rgb(64 53 71 / 39%);
}

.countdown-card {
  position: relative;
  z-index: var(--z-content);
  width: min(88vw, 430px);
  min-height: 0;
  padding: clamp(34px, 9vw, 48px) clamp(24px, 7vw, 34px);
  border: 1px solid rgb(255 255 255 / 38%);
  background: rgb(255 253 249 / 88%);
  text-align: center;
}

.countdown__eyebrow {
  margin: 0;
  color: var(--gold);
  font-size: clamp(14px, 3.8vw, 17px);
  font-weight: 700;
}

.countdown-card h2 {
  margin: 6px 0 31px;
  font-size: clamp(43px, 11.8vw, 56px);
  font-weight: 400;
  line-height: 1.05;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px 20px;
}

.countdown-grid div {
  display: grid;
  min-height: 102px;
  place-items: center;
  align-content: center;
  border: 1px solid var(--line);
  background: rgb(255 253 249 / 84%);
}

.countdown-grid strong {
  color: var(--purple);
  font-size: clamp(38px, 10vw, 48px);
  font-weight: 400;
  line-height: 1;
}

.countdown-grid span {
  margin-top: 10px;
  color: #29242c;
  font-size: clamp(14px, 3.7vw, 16px);
  font-weight: 700;
}

.countdown-finished {
  margin: 30px 0 0;
  color: var(--purple);
  font-size: 24px;
}

/* Canva v2 page 10 */

.canva-page-10,
.quote__stage {
  background: var(--lavender);
}

.canva-page-10,
.canva-page-11,
.quote__stage,
.contacts__stage {
  overflow: visible;
}

.canva-page-10 {
  z-index: 2;
}

.canva-page-11 {
  z-index: 1;
}

.quote__stage {
  display: grid;
  justify-items: center;
  padding: clamp(220px, 56vw, 240px) 24px clamp(118px, 29vw, 138px);
}

.quote__panel {
  inset: 0;
  background: var(--lavender);
}

.quote__content {
  position: relative;
  z-index: var(--z-content);
  width: min(82vw, 360px);
  margin: 0;
  color: #796884;
  text-align: center;
}

.quote__content h2 {
  margin: 0;
  color: var(--purple);
  font-size: clamp(44px, 12vw, 58px);
  font-weight: 400;
}

.quote__mark {
  display: block;
  height: 55px;
  margin-top: 8px;
  color: var(--gold-soft);
  font-family: Georgia, serif;
  font-size: 58px;
  font-weight: 700;
  line-height: 1;
}

.quote__content blockquote {
  margin: 0;
  font-size: clamp(18px, 4.9vw, 22px);
  line-height: 1.48;
}

.quote__content .page-rule {
  width: 116px;
  margin-top: 28px;
  color: var(--gold);
}

.quote__content figcaption {
  margin-top: 30px;
  color: #6e6670;
  font-size: clamp(14px, 3.8vw, 16px);
  font-weight: 700;
}

.quote__decor--left {
  top: 12px;
  left: -48px;
  width: 140px;
  height: auto;
  transform: rotate(15deg) scaleX(-1);
}

.quote__decor--right {
  top: 38px;
  right: -54px;
  left: auto;
  width: 172px;
  height: auto;
  transform: rotate(74deg) scaleX(-1);
}

.quote__decor--bottom {
  top: auto;
  right: -120px;
  bottom: -130px;
  left: auto;
  width: 220px;
  height: auto;
  transform: rotate(-126deg) scaleX(-1);
}

/* Canva v2 page 11 */

.canva-page-11,
.contacts__stage {
  background: var(--lavender);
}

.contacts__stage {
  display: grid;
  gap: 34px;
  justify-items: center;
  padding: clamp(78px, 19vw, 96px) 24px clamp(82px, 20vw, 104px);
}

.contacts__panel {
  inset: 0;
  background: var(--lavender);
}

.contacts__heading {
  position: relative;
  z-index: var(--z-content);
  width: min(100%, 380px);
  text-align: center;
}

.contacts__eyebrow {
  margin: 0;
  color: var(--gold);
  font-size: clamp(14px, 3.8vw, 17px);
  font-weight: 700;
}

.contacts__heading h2 {
  margin: 4px 0 15px;
  color: var(--purple);
  font-size: clamp(48px, 13vw, 62px);
  font-weight: 400;
}

.contacts__heading p:last-child {
  margin: 0;
  color: #777178;
  font-size: clamp(16px, 4.3vw, 19px);
  line-height: 1.42;
}

.contacts__list {
  position: relative;
  z-index: var(--z-controls);
  display: grid;
  width: min(88vw, 378px);
  justify-items: center;
}

.contact-card {
  display: grid;
  width: 100%;
  min-height: 112px;
  grid-template-columns: 78px 1fr;
  align-items: center;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--purple);
  text-decoration: none;
}

.contact-card__icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  justify-self: center;
  border: 1px solid #c6b3d1;
  border-radius: 50%;
  font-size: 26px;
  transform: rotate(-25deg);
}

.contact-card__copy {
  display: grid;
  min-width: 0;
}

.contact-card__copy strong {
  font-size: clamp(27px, 7.2vw, 34px);
  font-weight: 400;
  line-height: 1;
}

.contact-card__copy small {
  margin-top: 4px;
  color: #777178;
  font-size: clamp(21px, 5.6vw, 27px);
}

.contacts__heart {
  display: block;
  height: 43px;
  color: var(--gold);
  font-size: 38px;
  line-height: 1.15;
}

.contacts__decor--left {
  top: auto;
  bottom: -52px;
  left: -48px;
  width: 155px;
  height: auto;
  transform: rotate(15deg) scaleX(-1);
}

/* Canva v2 page 12 */

.canva-page-12,
.rsvp__stage {
  background: var(--cream);
}

.rsvp__stage {
  display: grid;
  gap: 34px;
  justify-items: center;
  padding: clamp(58px, 14vw, 74px) 16px clamp(76px, 18vw, 94px);
}

.rsvp__panel {
  inset: 0;
  background: var(--cream);
}

.rsvp__intro {
  position: relative;
  z-index: var(--z-content);
  width: min(94vw, 405px);
  text-align: center;
}

.rsvp__eyebrow {
  margin: 0;
  color: var(--gold);
  font-size: clamp(16px, 4.5vw, 20px);
  line-height: 1.3;
  font-weight: 700;
}

.rsvp__intro h2 {
  margin: 10px 0 16px;
  color: var(--purple);
  font-size: clamp(48px, 13vw, 66px);
  font-weight: 400;
  line-height: 1;
}

.rsvp__intro p:last-child {
  margin: 0;
  color: #777178;
  font-size: clamp(17px, 4.8vw, 21px);
  line-height: 1.35;
}

.rsvp-form {
  position: relative;
  z-index: var(--z-controls);
  width: min(92vw, 560px);
  min-height: 0;
  padding: clamp(22px, 6vw, 32px);
  border: 1px solid var(--line);
  background: var(--paper);
}

.field {
  display: grid;
  margin: 0 0 16px;
  padding: 0;
  border: 0;
}

.field label,
.field legend {
  margin: 0 0 8px;
  padding: 0;
  color: #39323b;
  font-size: clamp(15px, 4vw, 17px);
  font-weight: 600;
  line-height: 1.3;
}

.field input[type="text"],
.field textarea {
  width: 100%;
  min-height: clamp(52px, 14vw, 58px);
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 0;
  outline: 0;
  background: #fff;
  color: var(--ink);
  font-size: clamp(16px, 4.4vw, 18px);
}

.field textarea {
  min-height: clamp(110px, 30vw, 140px);
  resize: vertical;
}

.field--honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.choice-field {
  gap: 8px;
}

.radio-card {
  display: flex;
  min-height: clamp(56px, 15vw, 64px);
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: #6d6670;
  font-size: clamp(16px, 4.3vw, 18px);
  font-weight: 400;
}

.radio-card input {
  width: 21px;
  height: 21px;
  margin: 0;
  accent-color: var(--purple);
}

.field-error {
  min-height: 0;
  color: #9d4057;
  font-size: 14px;
  line-height: 1.25;
}

.field-error:not(:empty) {
  padding-top: 3px;
}

.rsvp-form__submit {
  width: 100%;
  min-height: clamp(58px, 16vw, 64px);
  margin-top: 4px;
  border: 0;
  border-radius: 999px;
  background: var(--purple);
  color: #fff;
  font-size: clamp(17px, 4.7vw, 19px);
  font-weight: 700;
  cursor: pointer;
}

.rsvp-form__submit:disabled {
  cursor: wait;
  opacity: 0.66;
}

.form-status {
  min-height: 20px;
  margin: 10px 0 0;
  color: var(--purple);
  font-size: 14px;
  line-height: 1.3;
  text-align: center;
}

.rsvp__decor--left {
  top: 360px;
  left: -82px;
  width: 190px;
  height: auto;
  transform: rotate(-160deg);
}

.rsvp__decor--right {
  top: 18px;
  right: -92px;
  left: auto;
  width: 142px;
  height: auto;
  transform: rotate(-11deg);
}

/* Canva v2 page 13 */

.canva-page-13,
.final__stage {
  background: #403547;
}

.final__stage {
  height: max(100svh, 692px);
}

.final__photo {
  position: absolute;
  inset: 0;
  z-index: var(--z-background);
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

.final__overlay {
  position: absolute;
  inset: 0;
  z-index: var(--z-decor-back);
  background: rgb(64 53 71 / 45%);
}

.final__copy {
  position: absolute;
  inset: 0;
  z-index: var(--z-content);
  color: #fff;
  text-align: center;
}

.final__eyebrow {
  position: absolute;
  top: 27.5%;
  left: 11.5%;
  width: 77%;
  margin: 0;
  font-size: clamp(14px, 3.8vw, 17px);
  font-weight: 700;
}

.final__copy h2 {
  position: absolute;
  top: 37.8%;
  left: 9%;
  width: 82%;
  margin: 0;
  font-size: clamp(38px, 10.5vw, 50px);
  font-style: italic;
  font-weight: 400;
  line-height: 1.08;
}

.final__date {
  position: absolute;
  top: 66.7%;
  left: 11.5%;
  width: 77%;
  margin: 0;
  font-size: clamp(41px, 11.3vw, 54px);
  line-height: 1;
}

/* Canva v2 controls */

.floating-rsvp {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: var(--z-controls);
  display: inline-flex;
  max-width: calc(100vw - 32px);
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid rgb(255 255 255 / 48%);
  border-radius: 999px;
  background: var(--purple-deep);
  box-shadow: 0 10px 30px rgb(45 34 50 / 22%);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 220ms ease, transform 220ms ease;
}

.floating-rsvp svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.floating-rsvp.is-hidden {
  pointer-events: none;
  opacity: 0;
  transform: translateY(16px);
}

:where(a, button, input, textarea):focus-visible {
  outline: 3px solid #d3a557;
  outline-offset: 3px;
}

/* Canva v2 animations */

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

.js.reveal-ready .reveal {
  opacity: 0;
  transition: opacity 720ms ease var(--reveal-delay, 0ms), transform 720ms cubic-bezier(0.2, 0.7, 0.2, 1) var(--reveal-delay, 0ms);
}

.js.reveal-ready .reveal--left {
  transform: translateX(-20px);
}

.js.reveal-ready .reveal--right {
  transform: translateX(20px);
}

.js.reveal-ready .reveal--up {
  transform: translateY(22px);
}

.js.reveal-ready .reveal--scale {
  transform: scale(0.97);
}

.js.reveal-ready .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes floral-sway-left {
  0%, 100% {
    translate: 0 0;
    rotate: 0deg;
  }

  50% {
    translate: -6px -3px;
    rotate: -1.1deg;
  }
}

@keyframes floral-sway-right {
  0%, 100% {
    translate: 0 0;
    rotate: 0deg;
  }

  50% {
    translate: 6px 3px;
    rotate: 1.15deg;
  }
}

@keyframes floral-float {
  0%, 100% {
    translate: 0 0;
    rotate: 0deg;
  }

  45% {
    translate: 3px -7px;
    rotate: 0.55deg;
  }
}

@keyframes floral-breathe {
  0%, 100% {
    scale: 1;
    opacity: 0.88;
  }

  50% {
    scale: 1.012;
    opacity: 1;
  }
}

.decor-sway {
  animation: floral-float 20s ease-in-out -7s infinite;
  will-change: translate, rotate, scale, opacity;
}

.decor-sway--reverse {
  animation-name: floral-sway-right;
  animation-duration: 24s;
  animation-delay: -13s;
}

.calendar__decor--bottom {
  animation-name: floral-breathe;
  animation-duration: 26s;
  animation-delay: -16s;
}

.welcome__floral--bottom-left,
.story__decor--bottom,
.location__decor--bottom-left,
.dress__decor--top,
.quote__decor--left,
.rsvp__decor--left {
  animation-name: floral-sway-left;
  animation-duration: 22s;
  animation-delay: -10s;
}

/* Canva v2 responsive */

@media (min-width: 601px) {
  .page-stage {
    width: min(520px, 100%);
  }

  .hero__stage,
  .timeline__stage,
  .countdown__stage,
  .final__stage {
    min-height: max(100svh, 900px);
  }

  .hero-polaroid__caption {
    font-size: 12px;
  }

  .calendar-card {
    padding-inline: 28px;
  }

  .calendar-grid--days {
    grid-auto-rows: minmax(42px, 1fr);
  }

  .rsvp-form {
    padding-inline: 32px;
  }
}

@media (min-width: 1024px) {
  .page-stage {
    width: min(620px, 100%);
  }

  .hero__kicker,
  .contacts__eyebrow {
    font-size: 17px;
  }

  .hero__names {
    font-size: 52px;
  }

  .welcome__overline {
    font-size: 40px;
  }

  .contact-card__copy strong {
    font-size: 30px;
  }
}

@media (max-width: 389px) {
  .hero__stage {
    height: max(100svh, calc(100vw * 2.1641026));
  }

  .hero-polaroid {
    padding: 4px 4px 0;
  }

  .welcome__copy .page-rule {
    margin-bottom: 20px;
  }

  .welcome__body {
    margin-bottom: 12px;
  }

  .calendar-card {
    padding: 20px 14px 14px;
  }

  .calendar-grid--weekdays {
    margin-top: 20px;
  }

  .calendar-grid--days {
    grid-auto-rows: minmax(31px, 1fr);
  }

  .countdown-card {
    padding-inline: 24px;
  }

  .floating-rsvp span {
    max-width: 150px;
  }
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto;
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
    transition-duration: 0.01ms;
  }

  .js.reveal-ready .reveal {
    opacity: 1;
    transform: none;
  }

  .js.hero-armed .hero-enter {
    opacity: 1;
    translate: 0 0;
    transition: none;
  }

  .js.hero-armed .hero-enter--background {
    transform: none;
  }

  .js.hero-ready .hero-enter--star {
    animation: none;
    scale: 1;
  }

  .decor-sway,
  .hero-decor-image {
    animation: none;
    translate: 0 0;
    rotate: 0deg;
    scale: 1;
  }
}
