﻿:root {
  --chamois: #FFF8E3;
  --tangerine: #C14A09;
  --dusty-orange: #C14A09;
  --paper: #FFF8E3;
  --glass-cream: #FFF8E3;
  --glass-warm-shadow: rgba(193, 74, 9, .18);
  --card-ink: rgba(193, 74, 9, .88);
  --card-ink-soft: rgba(193, 74, 9, .68);
  --page-end-brown: #B0540F;
  --letter-bg: #6B673F;
  --sans: "Noto Sans", Arial, sans-serif;
  --serif: "Playfair Display", "Times New Roman", serif;
  --script: "Times New Roman", "Playfair Display", serif;
}

@font-face {
  font-family: "Ceremonious Three";
  src: url("img/blossom/fonts/ceremonious-three.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Sloop Script Pro";
  src: url("img/blossom/Sloop Script Pro/Sloop Script Pro.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Sloop Script Pro";
  src: url("img/blossom/Sloop Script Pro/Sloop Script Pro Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Sloop Script Pro";
  src: url("img/blossom/Sloop Script Pro/Sloop Script Pro Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; }

html {
  background: var(--page-end-brown);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--dusty-orange);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.2px;
}

img { display: block; max-width: 100%; }
a { color: inherit; }

.desktop-only { display: none; }

.mobile-card {
  position: relative;
  width: min(100%, 430px);
  min-height: 100svh;
  margin: 0 auto;
  overflow: hidden;
  background: var(--paper);
}

.letter-intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  background: var(--letter-bg);
  box-shadow: 0 220px 0 220px var(--letter-bg);
  transition:
    opacity 700ms cubic-bezier(.2, .78, .2, 1),
    visibility 700ms step-end;
}

.letter-intro::before {
  content: "";
  position: absolute;
  inset: 0;
  display: none;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 248, 227, .18), transparent 42%),
    linear-gradient(180deg, rgba(255, 248, 227, .08), rgba(193, 74, 9, .14));
}

.letter-intro.is-open {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.letter-button {
  --letter-shift: clamp(-86px, -18vw, -68px);
  --letter-y: 28px;
  position: relative;
  z-index: 1;
  display: block;
  width: clamp(600px, 160vw, 660px);
  max-width: none;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transform: translate(var(--letter-shift), var(--letter-y));
  animation: letterCoverIn 900ms cubic-bezier(.16, .84, .22, 1) both;
}

.letter-button img {
  width: 100%;
  height: auto;
  user-select: none;
  pointer-events: none;
}

.letter-button:active {
  transform: translate(var(--letter-shift), var(--letter-y)) scale(.985);
}

html.has-letter,
body.has-letter {
  background: var(--letter-bg);
}

body.has-letter {
  overflow: hidden;
}

body.has-letter .mobile-card {
  background: var(--letter-bg);
}

body.has-letter .mobile-card > :not(.letter-intro) {
  visibility: hidden;
}

@keyframes letterCoverIn {
  0% {
    opacity: 0;
    filter: blur(8px);
    transform: translate3d(var(--letter-shift), calc(var(--letter-y) + 22px), 0) scale(.97);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(var(--letter-shift), var(--letter-y), 0) scale(1);
  }
}
.marquee {
  position: relative;
  z-index: 5;
  width: 100%;
  height: 33px;
  overflow: hidden;
  background: var(--dusty-orange);
  color: var(--paper);
  font-size: 14px;
  font-weight: 700;
  line-height: 33px;
  white-space: nowrap;
}

.marquee span {
  display: inline-block;
  min-width: max-content;
  animation: marquee 18s linear infinite;
}

.marquee--top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes letterIn {
  0% {
    opacity: 0;
    filter: blur(7px);
    transform: translate3d(0, 13px, 0);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0);
  }
}

@keyframes photoBloom {
  0% {
    opacity: 0;
    filter: blur(10px);
    transform: scale(0.82);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
  }
}

@keyframes riseIn {
  0% {
    opacity: 0;
    filter: blur(8px);
    transform: translate3d(0, 30px, 0);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0);
  }
}

@keyframes buttonIn {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes bloomIn {
  0% {
    opacity: 0;
    transform: translate3d(0, 32px, 0) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

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

.motion-ready .reveal-soft {
  opacity: 0;
  filter: blur(5px);
  transform: translate3d(0, 22px, 0);
  transition:
    opacity 1200ms cubic-bezier(.2, .78, .2, 1),
    filter 1200ms cubic-bezier(.2, .78, .2, 1),
    transform 1200ms cubic-bezier(.2, .78, .2, 1);
}

.motion-ready .reveal-soft.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translate3d(0, 0, 0);
}

.hero {
  position: relative;
  z-index: 2;
  height: 756px;
  padding-top: 139px;
  text-align: center;
}

.motion-ready .char {
  display: inline-block;
  opacity: 0;
  filter: blur(7px);
  transform: translate3d(0, 13px, 0);
  animation: letterIn 980ms cubic-bezier(.2, .78, .2, 1) forwards;
  animation-delay: var(--char-delay, 0ms);
}

.motion-ready .char--space {
  width: 0.28em;
}

.couple {
  margin: 0 0 7px;
  font-size: 14px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.hero h1 {
  position: relative;
  width: 100%;
  left: 50%;
  margin: 0 0 41px;
  transform: translateX(-50%);
  color: var(--dusty-orange);
  font-family: var(--serif);
  font-size: 35px;
  font-weight: 500;
  line-height: 0.94;
  letter-spacing: -1.2px;
  text-transform: uppercase;
}

.hero h1 span { display: block; }
.hero h1 .hero-line {
  white-space: nowrap;
}

.hero h1 em {
  position: static;
  display: inline;
  font-family: "Ceremonious Three", "Times New Roman", serif;
  font-size: 50px;
  font-style: normal;
  font-weight: 400;
  line-height: 0.75;
  text-transform: none;
  letter-spacing: -1px;
  white-space: nowrap;
}

.hero h1 span:last-child {
  margin-top: 0;
}

.hero-photo {
  width: 340px;
  height: auto;
  margin: -14px auto 31px;
  object-fit: contain;
}

.motion-ready .hero-photo {
  opacity: 0;
  filter: blur(10px);
  transform: scale(0.82);
  transform-origin: center;
  animation: photoBloom 1500ms cubic-bezier(.16, .84, .22, 1) 1450ms forwards;
}

.hero-text {
  margin: 0 auto 43px;
  color: var(--dusty-orange);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  text-transform: uppercase;
}

.motion-ready .hero-text {
  opacity: 0;
  filter: blur(8px);
  transform: translate3d(0, 30px, 0);
  animation: riseIn 1200ms cubic-bezier(.2, .78, .2, 1) 2300ms forwards;
}

.motion-ready .music-btn {
  opacity: 0;
  transform: scale(0.9);
  animation: buttonIn 1000ms cubic-bezier(.2, .78, .2, 1) 2850ms forwards;
}

.music-btn {
  position: relative;
  z-index: 3;
  display: grid;
  width: 108px;
  height: 108px;
  margin: 0 auto;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--tangerine);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.music-sticker {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
  filter: drop-shadow(0 14px 22px rgba(193, 74, 9, .18));
}

.music-sticker__paper {
  fill: rgba(255, 248, 227, .92);
  stroke: rgba(193, 74, 9, .38);
  stroke-width: 1.2;
}

.music-sticker__ring {
  fill: none;
  stroke: rgba(193, 74, 9, .34);
  stroke-width: 1;
  stroke-dasharray: 1.5 5;
}

.music-sticker__text {
  fill: var(--tangerine);
  font: 700 7.2px/1 var(--sans);
  letter-spacing: .02em;
}

.music-sticker__center {
  fill: var(--tangerine);
}

.music-sticker__play,
.music-sticker__pause {
  fill: var(--paper);
}

.music-sticker__pause {
  opacity: 0;
}

.music-btn.is-playing .music-sticker__paper {
  fill: #FFF8E3;
}

.music-btn.is-playing .music-sticker__play {
  opacity: 0;
}

.music-btn.is-playing .music-sticker__pause {
  opacity: 1;
}

.invitation {
  position: relative;
  z-index: 1;
  padding: 0;
  text-align: center;
}

.card-image {
  position: relative;
  left: 50%;
  width: min(670px, 160%);
  max-width: none;
  height: auto;
  margin: 0;
  translate: var(--card-center-shift, -50%) var(--card-y-shift, 0);
}

.dear-card-image {
  --card-center-shift: -49.8%;
  --card-y-shift: -34px;
  width: min(630px, 150%);
}

.info-card {
  position: relative;
  left: 50%;
  width: min(746px, 178%);
  max-width: none;
  margin: 0;
  container-type: inline-size;
  color: #fff;
  text-align: center;
  translate: -49.8% 0;
}

.motion-ready .info-card.reveal-soft {
  filter: none;
}

.info-card-bg {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  user-select: none;
  pointer-events: none;
}

.info-card-copy {
  position: absolute;
  inset: 0;
  color: #fff;
  pointer-events: none;
}

.info-main-title {
  position: absolute;
  top: 12.2%;
  left: 50%;
  width: 44%;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(25px, 6.55vw, 33px);
  font-size: 4.42cqw;
  font-weight: 400;
  line-height: .98;
  letter-spacing: 0;
  transform: translateX(-50%);
}

.info-main-title__top {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: .09em;
  max-width: none;
  white-space: nowrap;
  flex-wrap: nowrap;
}

.info-main-title__top > span {
  display: block;
  flex: 0 0 auto;
  white-space: nowrap;
}

.info-main-title > span:not(.info-main-title__top) {
  display: block;
}

.info-script {
  display: inline-block;
  font-family: "Ceremonious Three", var(--script);
  font-size: 1.35em;
  font-weight: 400;
  line-height: .6;
  text-transform: none;
  transform: translate(-.16em, .08em);
}

.info-item {
  position: absolute;
  left: 50%;
  width: 43%;
  transform: translateX(-50%);
}

.info-item--gifts { top: 31%; }
.info-item--flowers { top: 43.8%; }
.info-item--kids { top: 65.6%; }

.info-item h3 {
  margin: 0 0 11px;
  color: #fff;
  font-family: "Playfair Display", var(--serif);
  font-size: min(18px, 4.2vw);
  font-size: 2.42cqw;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.055em;
  text-transform: uppercase;
}

.info-item p {
  margin: 0;
  color: #fff;
  font-family: "Montserrat", var(--sans);
  font-size: min(10.7px, 2.5vw);
  font-size: 1.43cqw;
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: 0;
  text-transform: uppercase;
}

.place-section {
  position: relative;
  margin-top: -28px;
  padding: 18px 0 38.8px;
  text-align: center;
}

.place-card {
  position: relative;
  display: block;
  left: 50%;
  width: min(494px, 115%);
  max-width: none;
  translate: -50% 0;
}

.place-card img {
  width: 100%;
  height: auto;
  margin: 0;
  object-fit: contain;
}

.place-map-link {
  position: absolute;
  left: 39.35%;
  top: 81.54%;
  width: 21.88%;
  height: 7.13%;
  display: block;
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(255, 248, 227, .34);
}

.place-map-link:focus-visible {
  outline: 2px solid rgba(255, 248, 227, .92);
  outline-offset: 3px;
}

.timing {
  position: relative;
  padding: 0;
  text-align: center;
}

.timing-image {
  width: 100%;
  height: auto;
  margin: 0;
  object-fit: contain;
  display: block;
}

.bus {
  position: relative;
  margin-top: clamp(12px, 3.8vw, 26px);
  background: #FFF8E3;
  overflow: hidden;
}

.bus-crop {
  height: min(168px, 39vw);
  overflow: hidden;
}

.bus-image {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  transform: translateY(max(-77px, -17.8vw));
}

.dress {
  position: relative;
  overflow: hidden;
  background: #FFF8E3;
  text-align: center;
}

.dress-card {
  position: relative;
  left: 50%;
  width: min(746px, 178%);
  aspect-ratio: 1 / 1;
  max-width: none;
  margin: 0;
  container-type: inline-size;
  color: var(--dusty-orange);
  text-align: center;
  translate: -50% 0;
}

.motion-ready .dress-card.reveal-soft {
  filter: none;
}

.dress-heading {
  position: absolute;
  top: 8.45%;
  left: 50%;
  width: 46%;
  transform: translateX(-50%);
}

.dress-heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 4.05cqw;
  font-weight: 600;
  line-height: .9;
  letter-spacing: 0;
}

.dress-heading p {
  margin: .1em 0 0;
  font-family: "Sloop Script Pro", "Ceremonious Three", var(--script);
  font-size: 5.35cqw;
  font-weight: 400;
  line-height: .66;
  letter-spacing: 0;
}

.dress-copy {
  position: absolute;
  top: 19.4%;
  left: 50%;
  width: 56%;
  margin: 0;
  color: #C14A09;
  font-family: "Montserrat", var(--sans);
  font-size: 1.42cqw;
  font-weight: 600;
  line-height: 1.33;
  letter-spacing: 0;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.dress-palette {
  position: absolute;
  top: 30.5%;
  left: 50%;
  display: grid;
  width: 27.8%;
  margin: 0;
  padding: 0;
  gap: 1.35cqw;
  list-style: none;
  transform: translateX(-50%);
}

.dress-swatch {
  display: grid;
  height: 5.35cqw;
  min-height: 0;
  align-content: center;
  justify-items: start;
  padding: 0 1.75cqw;
  border-radius: 1.75cqw;
  color: #fff;
  font-family: "Montserrat", var(--sans);
  font-size: 1.36cqw;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0;
  text-align: left;
  text-transform: uppercase;
}

.dress-swatch--sunshine,
.dress-swatch--tangerine,
.dress-swatch--butter {
  color: #C14A09;
}

.dress-swatch--sunshine { background: #FADE85; }
.dress-swatch--blossom { background: #F3B2AE; }
.dress-swatch--tangerine { background: #F5B268; }
.dress-swatch--cashmere { background: #A4B8CF; }
.dress-swatch--harvest { background: #D37638; }
.dress-swatch--butter { background: #F4E4B5; }
.dress-swatch--dusty { background: #F88F58; }
.dress-swatch--olive { background: #8B8A56; }
.dress-swatch--hazelnut { background: #C9B197; }

.dress-inspiration {
  position: absolute;
  top: 91.8%;
  left: 50%;
  width: 34%;
  color: #C14A09;
  transform: translateX(-50%);
}

.dress-inspiration p {
  margin: 0 0 .16em;
  font-family: "Sloop Script Pro", "Ceremonious Three", var(--script);
  font-size: 3.55cqw;
  font-weight: 400;
  line-height: .68;
  letter-spacing: 0;
  white-space: nowrap;
}

.dress-inspiration strong {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: .45em;
  font-family: "Montserrat", var(--sans);
  font-size: 1.28cqw;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

.dress-gallery-trigger {
  padding: 0;
  border: 0;
  border-bottom: .14em solid currentColor;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(193, 74, 9, .14);
}

.dress-gallery-trigger:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: .28em;
}

.dress-inspiration em {
  font-family: "Sloop Script Pro", "Ceremonious Three", var(--script);
  font-size: 2.45em;
  font-style: normal;
  font-weight: 400;
  line-height: .45;
}

.style-gallery {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  justify-items: center;
  overflow: hidden;
  background: rgba(255, 248, 227, .74);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  backdrop-filter: blur(14px);
  transition:
    opacity 420ms cubic-bezier(.2, .78, .2, 1),
    visibility 420ms step-end;
}

.style-gallery.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition:
    opacity 420ms cubic-bezier(.2, .78, .2, 1),
    visibility 0ms step-start;
}

.style-gallery__page {
  position: relative;
  width: min(100%, 430px);
  height: 100svh;
  padding: 74px 18px 34px;
  overflow-y: auto;
  background: #FFF8E3;
  color: var(--dusty-orange);
  outline: 0;
  transform: translateY(18px);
  transition: transform 420ms cubic-bezier(.2, .78, .2, 1);
}

.style-gallery.is-open .style-gallery__page {
  transform: translateY(0);
}

.style-gallery__close {
  position: fixed;
  top: 16px;
  right: max(16px, calc((100vw - 430px) / 2 + 16px));
  z-index: 1;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(193, 74, 9, .2);
  border-radius: 50%;
  background: rgba(255, 248, 227, .84);
  color: var(--dusty-orange);
  font: 400 32px/1 var(--serif);
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(193, 74, 9, .1);
  backdrop-filter: blur(10px);
}

.style-gallery__close:focus-visible {
  outline: 2px solid rgba(193, 74, 9, .7);
  outline-offset: 3px;
}

.style-gallery__header {
  margin-bottom: 24px;
  text-align: center;
}

.style-gallery__header p {
  margin: 0 0 7px;
  font-family: "Sloop Script Pro", "Ceremonious Three", var(--script);
  font-size: 44px;
  font-weight: 400;
  line-height: .72;
}

.style-gallery__header h2 {
  margin: 0;
  font-family: "Montserrat", var(--sans);
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.style-gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.style-gallery__grid img {
  position: relative;
  z-index: 0;
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  border-radius: 4px;
  object-fit: cover;
  background: rgba(193, 74, 9, .08);
  cursor: zoom-in;
  transition:
    transform 260ms cubic-bezier(.2, .78, .2, 1),
    box-shadow 260ms cubic-bezier(.2, .78, .2, 1),
    border-radius 260ms cubic-bezier(.2, .78, .2, 1);
}

.style-gallery__grid img:nth-child(3n + 1) {
  transform-origin: left center;
}

.style-gallery__grid img:nth-child(3n + 2) {
  transform-origin: center;
}

.style-gallery__grid img:nth-child(3n) {
  transform-origin: right center;
}

.style-gallery__grid img.is-zoomed {
  z-index: 5;
  border-radius: 6px;
  cursor: zoom-out;
  box-shadow: 0 18px 38px rgba(95, 38, 7, .26);
  transform: scale(1.9);
}

body.gallery-open {
  overflow: hidden;
}

.details {
  position: relative;
  min-height: 0;
  padding: 18px 0 0;
  text-align: center;
}

.rsvp {
  position: relative;
  overflow: hidden;
  margin-top: 22px;
  padding: 0 0 46px;
  background: #FFF8E3;
  text-align: center;
}

.rsvp-image {
  position: relative;
  left: 50%;
  display: block;
  width: min(746px, 178%);
  max-width: none;
  height: min(370px, 89vw);
  margin: 0;
  object-fit: cover;
  object-position: center 20%;
  translate: -50% 0;
}

.rsvp-form {
  display: grid;
  gap: 18px;
  padding: 0 28px;
  color: var(--dusty-orange);
  text-align: left;
}

.rsvp-form__fields {
  display: grid;
  gap: 24px;
}

.rsvp-field {
  display: grid;
  gap: 14px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.rsvp-field > span,
.rsvp-field legend {
  display: block;
  max-width: 100%;
  color: var(--dusty-orange);
  font-family: "Montserrat", var(--sans);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.36;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.rsvp-field-note {
  margin: 0;
  color: rgba(193, 74, 9, .72);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.25;
}

.rsvp-form input:not([type="radio"]):not([type="checkbox"]) {
  width: 100%;
  height: 52px;
  min-width: 0;
  padding: 0 19px;
  border: 2px solid rgba(193, 74, 9, .44);
  border-radius: 999px;
  background: transparent;
  color: var(--dusty-orange);
  font: 600 15px/1.2 "Montserrat", var(--sans);
  outline: 0;
  text-transform: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.rsvp-form ::placeholder {
  color: rgba(193, 74, 9, .32);
  text-transform: uppercase;
}

.rsvp-form input:not([type="radio"]):not([type="checkbox"]):focus {
  border-color: rgba(193, 74, 9, .82);
  box-shadow: 0 0 0 4px rgba(193, 74, 9, .08);
}

.rsvp-options {
  display: grid;
  gap: 14px;
}

.rsvp-option {
  position: relative;
  display: block;
  color: rgba(193, 74, 9, .76);
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(193, 74, 9, .12);
}

.rsvp-option input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.rsvp-option span {
  position: relative;
  display: flex;
  min-height: 30px;
  align-items: center;
  gap: 16px;
  font-family: "Montserrat", var(--sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  text-transform: none;
}

.rsvp-option span::before {
  content: "";
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border: 2px solid rgba(193, 74, 9, .38);
  background: transparent;
  transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.rsvp-check {
  position: absolute;
  left: 2px;
  top: 50%;
  width: 24px;
  height: 24px;
  opacity: 0;
  overflow: visible;
  fill: none;
  stroke: var(--dusty-orange);
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
  transform: translateY(-50%);
  transition: opacity 120ms ease;
}

.rsvp-check path {
  vector-effect: non-scaling-stroke;
}

.rsvp-option--radio span::before {
  border-radius: 50%;
}

.rsvp-option--checkbox span::before {
  border-radius: 0;
}

.rsvp-option input:checked + span {
  color: var(--dusty-orange);
}

.rsvp-option--radio input:checked + span::before {
  border-color: rgba(193, 74, 9, .86);
  background:
    radial-gradient(circle, var(--dusty-orange) 42%, transparent 46%),
    transparent;
}

.rsvp-option--checkbox input:checked + span::before {
  border-color: rgba(193, 74, 9, .86);
  background: rgba(193, 74, 9, .05);
}

.rsvp-option--checkbox input:checked + span .rsvp-check {
  opacity: 1;
  animation: checkDraw 520ms cubic-bezier(.16, .84, .22, 1) forwards;
}

.rsvp-option input:focus-visible + span::before {
  box-shadow: 0 0 0 4px rgba(193, 74, 9, .1);
}

@keyframes checkDraw {
  0% {
    stroke-dashoffset: 24;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

.rsvp-submit {
  height: 56px;
  margin-top: 2px;
  border: 0;
  border-radius: 999px;
  background: var(--dusty-orange);
  color: var(--paper);
  font: 800 13px/1 "Montserrat", var(--sans);
  letter-spacing: .07em;
  text-transform: uppercase;
  box-shadow: 0 12px 26px rgba(193, 74, 9, .08);
  cursor: pointer;
}

.rsvp-submit:disabled {
  opacity: .62;
}

.rsvp-form.is-submitted .rsvp-form__fields,
.rsvp-success {
  display: none;
}

.rsvp-form.is-submitted {
  margin-top: clamp(14px, 4vw, 22px);
}

.rsvp-form.is-submitted .rsvp-success {
  display: grid;
}

.rsvp-success {
  min-height: 360px;
  place-items: center;
  padding: 44px 20px;
  border: 2px solid rgba(193, 74, 9, .24);
  border-radius: 34px;
  text-align: center;
}

.rsvp-success p {
  margin: 0;
  color: var(--dusty-orange);
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 500;
  line-height: 1.05;
}

.form-note {
  min-height: 20px;
  margin: 0;
  color: var(--dusty-orange);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}

.rsvp-form.is-submitted .form-note {
  display: none;
}

.contacts {
  --question-top-crop: max(-152px, -35vw);
  position: relative;
  overflow: hidden;
  margin-top: -18px;
  background: #FFF8E3;
  padding: 0;
  text-align: center;
}

.contacts::after {
  content: "";
  display: block;
  height: max(132px, calc(env(safe-area-inset-bottom) + 96px));
  margin-top: -1px;
  background: var(--page-end-brown);
}

.question-card {
  position: relative;
  left: 50%;
  --image-center-shift: -51%;
  z-index: 1;
  display: block;
  width: min(746px, 178%);
  max-width: none;
  height: auto;
  margin: var(--question-top-crop) 0 0;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, transparent 18px, #000 118px);
  mask-image: linear-gradient(180deg, transparent 0, transparent 18px, #000 118px);
  translate: var(--image-center-shift) 0;
}

.motion-ready .question-card.reveal-soft {
  filter: none;
}

.question-image {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  margin: 0;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
}

.question-phone-link,
.question-chat-link {
  position: absolute;
  display: block;
  overflow: hidden;
  color: transparent;
  font-size: 0;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(255, 248, 227, .34);
}

.question-phone-link--bride {
  left: 53.2%;
  top: 40.35%;
  width: 17.8%;
  height: 5.35%;
}

.question-phone-link--planner {
  left: 28.5%;
  top: 48.85%;
  width: 22.4%;
  height: 5.35%;
}

.question-chat-link {
  left: 49.55%;
  top: 70.88%;
  width: 20.6%;
  height: 5.1%;
}

.question-phone-link:focus-visible,
.question-chat-link:focus-visible {
  outline: 2px solid rgba(193, 74, 9, .72);
  outline-offset: 3px;
}

@media (min-width: 768px) {
  body {
    display: grid;
    min-height: 100vh;
    place-items: center;
  }

  .mobile-card { display: none; }
  .marquee--top { display: none; }
  .desktop-only {
    display: grid;
    min-height: 100vh;
    width: 100%;
    place-items: center;
    background: var(--paper);
  }

  .desktop-card {
    width: 430px;
    color: var(--dusty-orange);
    text-align: center;
  }

  .desktop-title {
    margin: 0 0 18px;
    font-family: var(--serif);
    font-size: 47px;
    line-height: 1;
  }
  .desktop-title span { display: block; }
  .desktop-title em {
    font-family: var(--script);
    font-style: italic;
    font-weight: 400;
  }

  .qr-link {
    display: block;
    width: 260px;
    margin: 0 auto 28px;
    background: transparent;
    box-shadow: none;
  }

  .qr {
    display: block;
    width: 100%;
    height: auto;
    box-shadow: none;
  }

  .desktop-card p:last-child {
    margin: 0 auto;
    max-width: 386px;
    font-size: 12px;
    line-height: 1.45;
  }
}

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

  .motion-ready .char,
  .motion-ready .hero-photo,
  .motion-ready .hero-text,
  .motion-ready .music-btn,
  .motion-ready .reveal-soft {
    opacity: 1 !important;
    filter: none !important;
  }

  .motion-ready .char,
  .motion-ready .hero-photo,
  .motion-ready .hero-text,
  .motion-ready .music-btn,
  .motion-ready .reveal-soft {
    transform: none !important;
  }
}
