:root {
  --ink: #262823;
  --muted: #6e7168;
  --paper: #f5f2eb;
  --paper-deep: #e8e5dc;
  --sage: #aeb5a4;
  --sage-dark: #626c5f;
  --line: rgba(38, 40, 35, 0.18);
  --serif: "Cormorant Infant", "Iowan Old Style", "Times New Roman", serif;
  --sans: "Manrope", "Segoe UI", sans-serif;
  --script: "Bad Script", "Segoe Print", cursive;
  --calligraphy: "Marck Script", "Bad Script", "Segoe Print", cursive;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-weight: 300;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

::selection {
  color: var(--paper);
  background: var(--sage-dark);
}

.intro {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 46%, rgba(255, 255, 255, 0.86), transparent 34%),
    linear-gradient(125deg, #efeee8 0%, #f7f5ef 48%, #e6e6df 100%);
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.intro::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.18;
  background:
    repeating-linear-gradient(17deg, transparent 0 3px, rgba(48, 49, 44, 0.06) 4px),
    repeating-linear-gradient(103deg, transparent 0 7px, rgba(255, 255, 255, 0.24) 8px);
}

.intro--gone {
  visibility: hidden;
  opacity: 0;
}

.intro__copy {
  position: absolute;
  z-index: 3;
  top: 9vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.intro__copy span {
  font-family: var(--serif);
  font-size: 0.78rem;
  font-style: italic;
  letter-spacing: 0.08em;
}

.intro__copy strong {
  font-family: var(--script);
  font-size: clamp(2rem, 4vw, 3.7rem);
  font-weight: 400;
}

.intro__botanical {
  position: absolute;
  z-index: 2;
  width: min(36vw, 520px);
  height: min(74vh, 760px);
  opacity: 0.72;
  background: url("assets/flowers.jpg") center / cover no-repeat;
  filter: saturate(0.4) contrast(0.86) brightness(1.14);
  mix-blend-mode: multiply;
  mask-image: linear-gradient(to bottom, transparent 0%, #000 15%, #000 70%, transparent 100%);
}

.intro__botanical--left {
  left: -12vw;
  bottom: -12vh;
  rotate: -18deg;
}

.intro__botanical--right {
  top: -12vh;
  right: -13vw;
  rotate: 158deg;
}

.envelope {
  position: relative;
  z-index: 4;
  width: min(68vw, 560px);
  height: min(40vw, 330px);
  min-height: 235px;
  padding: 0;
  cursor: pointer;
  border: 0;
  background: transparent;
  filter: drop-shadow(0 24px 24px rgba(45, 44, 39, 0.15));
  perspective: 1200px;
}

.envelope__back,
.envelope__front,
.envelope__flap {
  position: absolute;
  inset: 0;
  display: block;
}

.envelope__back {
  border: 1px solid #dad8cf;
  background: #eceae3;
}

.envelope__letter {
  position: absolute;
  z-index: 1;
  right: 6%;
  bottom: 8%;
  left: 6%;
  height: 86%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  color: var(--ink);
  border: 1px solid #ddd9ce;
  background: #faf8f2;
  transition: transform 1s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.envelope__letter small {
  font-size: 0.63rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.envelope__letter b {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 400;
  letter-spacing: 0.12em;
}

.envelope__letter em {
  font-family: var(--script);
  font-size: clamp(1.2rem, 2.4vw, 2rem);
  font-weight: 400;
}

.envelope__front {
  z-index: 2;
  background: linear-gradient(145deg, #f6f4ee, #e5e3dc);
  clip-path: polygon(0 38%, 50% 76%, 100% 38%, 100% 100%, 0 100%);
}

.envelope__flap {
  z-index: 3;
  transform-origin: top;
  background: linear-gradient(155deg, #e2e0d8, #f3f1eb);
  clip-path: polygon(0 0, 100% 0, 50% 72%);
  transition: transform 0.75s cubic-bezier(0.45, 0, 0.2, 1);
}

.envelope__seal {
  position: absolute;
  z-index: 5;
  top: 42%;
  left: 50%;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  transform: translate(-50%, -50%);
  color: #f1ede5;
  border-radius: 50%;
  background: #6f776a;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.5) inset,
    0 4px 10px rgba(45, 49, 43, 0.25);
  font-family: var(--serif);
  font-size: 1rem;
  letter-spacing: -0.08em;
  transition: transform 0.4s ease, opacity 0.35s ease;
}

.intro--opening .envelope__flap {
  z-index: 0;
  transform: rotateX(180deg);
}

.intro--opening .envelope__seal {
  transform: translate(-50%, -50%) scale(0.55);
  opacity: 0;
}

.intro--opening .envelope__letter {
  transform: translateY(-60%);
}

.intro__hint {
  position: absolute;
  z-index: 4;
  bottom: 6vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  border: 0;
  background: none;
  color: var(--ink);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.intro__hint i {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-style: normal;
  animation: float 1.8s ease-in-out infinite;
}

.music-control {
  position: fixed;
  z-index: 50;
  right: 1.4rem;
  top: 5.9rem;
  bottom: auto;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 44px;
  padding: 0.55rem 0.85rem;
  cursor: pointer;
  color: #f5f2eb;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(45, 48, 42, 0.9);
  backdrop-filter: blur(8px);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.music-control__bars {
  display: flex;
  align-items: center;
  gap: 2px;
  width: 15px;
  height: 14px;
}

.music-control__bars i {
  width: 2px;
  height: 4px;
  background: currentColor;
}

.music-control.is-playing .music-control__bars i {
  animation: equalizer 0.8s ease-in-out infinite alternate;
}

.music-control.is-playing .music-control__bars i:nth-child(2) {
  animation-delay: -0.35s;
}

.music-control.is-playing .music-control__bars i:nth-child(3) {
  animation-delay: -0.6s;
}

.site {
  opacity: 0;
  transition: opacity 0.8s ease 0.1s;
}

.site--visible {
  opacity: 1;
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background:
    linear-gradient(rgba(244, 242, 235, 0.88), rgba(244, 242, 235, 0.92)),
    url("assets/flowers.jpg") center / cover;
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, transparent 49.9%, rgba(50, 52, 46, 0.08) 50%, transparent 50.1%),
    radial-gradient(circle at 16% 72%, rgba(126, 139, 118, 0.18), transparent 24%);
}

.nav {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr 1fr 80px 1fr 1fr;
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.7rem 2rem;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.nav a {
  font-size: 0.62rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.nav a:hover {
  opacity: 0.55;
}

.nav__monogram {
  font-family: var(--calligraphy);
  font-size: 1.3rem !important;
  font-style: normal;
  letter-spacing: -0.12em !important;
}

.hero__paper {
  position: relative;
  z-index: 2;
  display: flex;
  width: min(800px, calc(100% - 3rem));
  min-height: 640px;
  margin: 5vh auto 7vh;
  padding: clamp(3rem, 8vw, 6.5rem) 2rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid rgba(82, 83, 76, 0.22);
  background: rgba(249, 247, 241, 0.76);
  box-shadow: 0 30px 80px rgba(60, 62, 55, 0.12);
  backdrop-filter: blur(6px);
}

.hero__paper::before,
.hero__paper::after {
  position: absolute;
  width: 46px;
  height: 46px;
  content: "";
  border-color: rgba(64, 66, 60, 0.35);
}

.hero__paper::before {
  top: 16px;
  left: 16px;
  border-top: 1px solid;
  border-left: 1px solid;
}

.hero__paper::after {
  right: 16px;
  bottom: 16px;
  border-right: 1px solid;
  border-bottom: 1px solid;
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.hero h1 {
  display: flex;
  margin: 0;
  flex-direction: column;
  font-family: var(--serif);
  font-size: clamp(4.2rem, 9.4vw, 8.2rem);
  font-weight: 400;
  line-height: 0.71;
  letter-spacing: -0.055em;
}

.hero h1 span {
  margin: -0.06em 0 -0.08em;
  font-family: var(--script);
  font-size: 0.54em;
  line-height: 1;
}

.hero__date {
  display: flex;
  width: min(570px, 90%);
  margin: 3rem 0 2rem;
  padding: 0.85rem 0;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.hero__date span {
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero__date strong {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  font-weight: 500;
  letter-spacing: 0.08em;
}

.hero__note {
  max-width: 590px;
  margin: 0 0 2rem;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 1.16rem;
  line-height: 1.6;
}

.text-link {
  display: inline-flex;
  padding-bottom: 0.25rem;
  align-items: center;
  gap: 0.8rem;
  border-bottom: 1px solid;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero__side-note {
  position: absolute;
  z-index: 3;
  top: 50%;
  right: 1.4rem;
  margin: 0;
  transform: rotate(90deg) translateX(50%);
  transform-origin: right;
  font-family: var(--serif);
  font-size: 0.7rem;
  font-style: italic;
  letter-spacing: 0.08em;
}

.hero__flower {
  position: absolute;
  z-index: 1;
  width: 330px;
  height: 460px;
  background: url("assets/flowers.jpg") center / cover;
  filter: saturate(0.35) brightness(1.1);
  mix-blend-mode: multiply;
  opacity: 0.45;
  mask-image: radial-gradient(ellipse, #000 30%, transparent 74%);
}

.hero__flower--one {
  bottom: -130px;
  left: -100px;
  rotate: 16deg;
}

.hero__flower--two {
  top: 20px;
  right: -130px;
  rotate: 190deg;
}

.countdown-section {
  padding: clamp(5rem, 10vw, 8rem) 1.5rem;
  color: #f1eee6;
  background: #343a33;
  text-align: center;
}

.script-note {
  margin: 0;
  font-family: var(--script);
  font-size: clamp(1.5rem, 3vw, 2.4rem);
}

.countdown-section h2,
.section-heading h2,
.location h2,
.gifts h2,
.wishlist h2,
.rsvp h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.5rem, 7vw, 6.6rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(100px, 180px));
  max-width: 780px;
  margin: 3.5rem auto 0;
  justify-content: center;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.countdown__item {
  padding: 1.8rem 0.8rem 1.5rem;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}

.countdown__item:last-child {
  border-right: 0;
}

.countdown__item strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.countdown__item span {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.56rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section {
  padding: clamp(5.5rem, 10vw, 9rem) max(1.5rem, calc((100vw - 1180px) / 2));
}

.section-heading {
  display: flex;
  align-items: flex-start;
  gap: clamp(2rem, 6vw, 5rem);
}

.section-number {
  display: inline-block;
  margin-top: 0.4rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid;
  font-family: var(--serif);
  font-size: 0.82rem;
}

.story {
  overflow: hidden;
  background: #e9e7df;
}

.story__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  max-width: 1180px;
  margin: 5rem auto 0;
  align-items: center;
  gap: 2rem;
}

.story-card {
  position: relative;
}

.story-card h3 {
  margin: 0 0 1rem;
  font-family: var(--serif);
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 500;
  line-height: 1;
}

.story-card p {
  color: var(--muted);
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 1.65;
}

.story-card__date {
  margin-bottom: 1rem !important;
  color: var(--ink) !important;
  font-family: var(--sans) !important;
  font-size: 0.62rem !important;
  font-weight: 500;
  letter-spacing: 0.18em;
}

.story-card--first {
  grid-column: 1 / 5;
}

.story-card--second {
  grid-column: 8 / 13;
}

.story-card--third {
  grid-column: 1 / 6;
}

.polaroid {
  z-index: 1;
  margin: 0;
  padding: 0.7rem 0.7rem 1.4rem;
  background: #f8f6f0;
  box-shadow: 0 18px 35px rgba(48, 50, 44, 0.12);
}

.polaroid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.55) contrast(0.93) sepia(0.08);
}

.polaroid figcaption {
  padding-top: 0.7rem;
  font-family: var(--script);
  font-size: 1rem;
  text-align: center;
}

.polaroid--city {
  grid-column: 6 / 10;
  height: 470px;
  rotate: 3deg;
}

.polaroid--cafe {
  grid-column: 2 / 7;
  height: 390px;
  rotate: -4deg;
}

.polaroid--mountain {
  grid-column: 7 / 12;
  height: 430px;
  rotate: 2deg;
}

.schedule {
  color: #f0ede5;
  background: #31362f;
}

.section-heading--light {
  border-bottom-color: rgba(255, 255, 255, 0.4);
}

.schedule__list {
  max-width: 940px;
  margin: 4.5rem 0 0 auto;
}

.schedule__item {
  display: grid;
  grid-template-columns: 48px 140px 1fr;
  padding: 1.6rem 0;
  align-items: baseline;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.schedule__item:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.schedule__index {
  opacity: 0.5;
  font-size: 0.55rem;
  letter-spacing: 0.12em;
}

.schedule time {
  font-family: var(--serif);
  font-size: 1.4rem;
}

.schedule h3 {
  display: inline;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 400;
}

.schedule p {
  margin: 0.45rem 0 0;
  color: rgba(240, 237, 229, 0.62);
  font-family: var(--serif);
  font-size: 1.05rem;
}

.location {
  position: relative;
  display: grid;
  min-height: 860px;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  background: #deddd5;
}

.location__photo {
  min-height: 630px;
  background:
    linear-gradient(rgba(41, 46, 39, 0.15), rgba(41, 46, 39, 0.15)),
    url("assets/mountain-couple.jpg") center 58% / cover;
  filter: grayscale(0.35) saturate(0.65);
}

.location__card {
  position: relative;
  width: calc(100% + 4rem);
  max-width: 620px;
  margin-left: -4rem;
  padding: clamp(3rem, 6vw, 5.5rem);
  background: #f5f2eb;
  box-shadow: 0 25px 50px rgba(50, 52, 46, 0.11);
}

.location__card .section-number {
  position: absolute;
  top: 2rem;
  right: 2rem;
}

.location__name {
  margin: 2rem 0 0.25rem !important;
  color: var(--ink) !important;
  font-family: var(--script) !important;
  font-size: 2rem !important;
}

.location address {
  margin-bottom: 2rem;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-style: normal;
  line-height: 1.5;
}

.location__card > p {
  color: var(--muted);
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.6;
}

.button {
  display: inline-flex;
  min-height: 48px;
  margin-top: 1.3rem;
  padding: 0.85rem 1.25rem;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border: 1px solid var(--ink);
  background: transparent;
  font-size: 0.61rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

button.button {
  cursor: pointer;
}

.button:hover {
  color: var(--paper);
  background: var(--ink);
}

.button--dark {
  color: var(--paper);
  background: var(--ink);
}

.button--dark:hover {
  color: var(--ink);
  background: transparent;
}

.dress {
  background: #f5f2eb;
}

.dress__content {
  display: grid;
  grid-template-columns: 1.2fr 2fr 0.8fr;
  margin-top: 4.5rem;
  align-items: center;
  gap: 3rem;
}

.dress__lead {
  font-family: var(--serif);
  font-size: 1.28rem;
  line-height: 1.55;
}

.dress__aside {
  color: var(--muted);
  font-family: var(--serif);
  font-size: 0.95rem;
  font-style: italic;
  line-height: 1.5;
}

.palette {
  display: flex;
  justify-content: center;
}

.palette__item {
  display: flex;
  width: 78px;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}

.palette__item span {
  width: 70px;
  height: 130px;
  border-radius: 999px 999px 0 0;
  box-shadow: 0 0 0 1px rgba(20, 20, 18, 0.08) inset;
}

.palette__item:nth-child(even) {
  margin-top: 1.8rem;
}

.palette__item small {
  font-family: var(--serif);
  font-size: 0.74rem;
}

.gifts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: 0;
  padding-bottom: 0;
  background: #e6e3dc;
}

.gifts__wish,
.gifts__bottle {
  min-height: 670px;
  padding: clamp(4rem, 7vw, 7rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.gifts__wish p {
  max-width: 480px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 1.12rem;
  line-height: 1.65;
}

.gifts__bottle {
  align-items: center;
  color: #f1eee6;
  background:
    linear-gradient(rgba(54, 60, 52, 0.87), rgba(54, 60, 52, 0.92)),
    url("assets/cafe-couple.jpg") center / cover;
  text-align: center;
}

.gifts__bottle-icon {
  display: grid;
  width: 76px;
  height: 132px;
  margin-bottom: 1.5rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 38px 38px 8px 8px;
  font-family: var(--serif);
  font-size: 2rem;
}

.gifts__bottle h3 {
  margin: 1rem 0;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4vw, 4rem);
  font-weight: 400;
  line-height: 1;
}

.gifts__bottle > p:last-child {
  max-width: 490px;
  color: rgba(241, 238, 230, 0.78);
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 1.65;
}

.wishlist {
  text-align: center;
}

.wishlist__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 1080px;
  margin: 4rem auto 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.wishlist__grid article {
  padding: 2.8rem 2.2rem;
  border-right: 1px solid var(--line);
}

.wishlist__grid article:last-child {
  border-right: 0;
}

.wishlist__grid span {
  color: var(--muted);
  font-size: 0.58rem;
  letter-spacing: 0.15em;
}

.wishlist__grid h3 {
  margin: 1rem 0;
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 500;
}

.wishlist__grid p {
  color: var(--muted);
  font-family: var(--serif);
  line-height: 1.5;
}

.rsvp {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(3rem, 8vw, 8rem);
  color: #efede6;
  background: #30352f;
}

.rsvp__heading > p:last-child {
  max-width: 430px;
  margin-top: 2rem;
  color: rgba(239, 237, 230, 0.67);
  font-family: var(--serif);
  font-size: 1.1rem;
  line-height: 1.65;
}

.rsvp__form {
  display: grid;
  gap: 1.4rem;
}

.rsvp__form > label,
.rsvp__form fieldset > legend,
.form-row label {
  display: grid;
  gap: 0.6rem;
  color: rgba(239, 237, 230, 0.7);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.rsvp__form input[type="text"],
.rsvp__form select,
.rsvp__form textarea {
  width: 100%;
  padding: 0.85rem 0;
  color: #efede6;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 0;
  outline: 0;
  background: transparent;
  font-family: var(--serif);
  font-size: 1.08rem;
  letter-spacing: 0;
  text-transform: none;
}

.rsvp__form input:focus,
.rsvp__form select:focus,
.rsvp__form textarea:focus {
  border-bottom-color: #fff;
}

.rsvp__form select option {
  color: var(--ink);
}

.rsvp__form textarea {
  resize: vertical;
}

.rsvp__form fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.rsvp__form fieldset legend {
  margin-bottom: 0.8rem;
}

.radio {
  display: inline-flex !important;
  margin-right: 1.5rem;
  align-items: center;
  gap: 0.55rem !important;
  color: #efede6 !important;
  cursor: pointer;
  font-family: var(--serif);
  font-size: 1rem !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.radio input {
  accent-color: #adb4a5;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.rsvp__form .button {
  width: 100%;
  border-color: rgba(255, 255, 255, 0.5);
}

.rsvp__success {
  display: flex;
  min-height: 430px;
  padding: 3rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  text-align: center;
}

.rsvp__success > span {
  display: grid;
  width: 70px;
  height: 70px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  font-family: var(--serif);
  font-style: italic;
}

.rsvp__success h3 {
  margin: 1.6rem 0 0.5rem;
  font-family: var(--serif);
  font-size: 2.7rem;
  font-weight: 400;
}

.rsvp__success p {
  color: rgba(239, 237, 230, 0.7);
  font-family: var(--serif);
}

.rsvp__success button {
  margin-top: 1.2rem;
  cursor: pointer;
  color: inherit;
  border: 0;
  border-bottom: 1px solid;
  background: none;
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

footer {
  display: flex;
  min-height: 490px;
  padding: 5rem 1.5rem 2rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(rgba(244, 242, 235, 0.86), rgba(244, 242, 235, 0.93)),
    url("assets/flowers.jpg") center 64% / cover;
  text-align: center;
}

footer p {
  margin: 0;
  font-family: var(--script);
  font-size: 2rem;
}

footer strong {
  font-family: var(--serif);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 400;
  letter-spacing: -0.05em;
}

footer > span {
  margin-top: 1rem;
  font-size: 0.65rem;
  letter-spacing: 0.22em;
}

footer small {
  margin-top: 4rem;
  color: var(--muted);
  font-size: 0.55rem;
}

@keyframes float {
  50% {
    transform: translateY(6px);
  }
}

@keyframes equalizer {
  to {
    height: 13px;
  }
}

@media (max-width: 900px) {
  .nav {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .nav a:not(.nav__monogram) {
    display: none;
  }

  .nav__monogram {
    grid-column: 2;
  }

  .hero__paper {
    min-height: 620px;
  }

  .story__grid {
    grid-template-columns: 1fr 1fr;
  }

  .story-card--first,
  .story-card--second,
  .story-card--third,
  .polaroid--city,
  .polaroid--cafe,
  .polaroid--mountain {
    grid-column: auto;
  }

  .polaroid--city,
  .polaroid--cafe,
  .polaroid--mountain {
    height: 380px;
  }

  .location {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .location__photo {
    min-height: 520px;
  }

  .location__card {
    width: calc(100% - 2rem);
    margin: -6rem auto 0;
  }

  .dress__content {
    grid-template-columns: 1fr;
  }

  .dress__aside {
    max-width: 430px;
  }

  .gifts {
    grid-template-columns: 1fr;
  }

  .gifts__wish,
  .gifts__bottle {
    min-height: 570px;
  }

  .rsvp {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .intro__copy {
    top: 8vh;
  }

  .intro__botanical {
    width: 60vw;
  }

  .intro__botanical--left {
    left: -28vw;
  }

  .intro__botanical--right {
    right: -30vw;
  }

  .envelope {
    width: 90vw;
    height: 58vw;
  }

  .envelope__letter b {
    font-size: 1.85rem;
  }

  .envelope__seal {
    width: 48px;
    height: 48px;
  }

  .music-control {
    right: 0.8rem;
    top: 4.7rem;
  }

  .music-control > span:last-child {
    display: none;
  }

  .nav {
    padding: 1.2rem;
  }

  .hero__paper {
    width: calc(100% - 1.5rem);
    min-height: 670px;
    margin-top: 1.5rem;
    padding-right: 1.2rem;
    padding-left: 1.2rem;
  }

  .hero h1 {
    font-size: clamp(3.8rem, 21vw, 5.8rem);
  }

  .hero__date {
    gap: 0.5rem;
  }

  .hero__date span {
    font-size: 0.5rem;
  }

  .hero__date strong {
    font-size: 1.05rem;
  }

  .hero__side-note {
    display: none;
  }

  .countdown {
    grid-template-columns: repeat(2, 1fr);
    max-width: 360px;
  }

  .countdown__item:nth-child(2) {
    border-right: 0;
  }

  .countdown__item:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }

  .section-heading {
    gap: 1.2rem;
  }

  .section-heading h2,
  .location h2,
  .gifts h2,
  .wishlist h2,
  .rsvp h2 {
    font-size: 3.3rem;
  }

  .story__grid {
    display: flex;
    margin-top: 3.5rem;
    flex-direction: column;
    gap: 2.5rem;
  }

  .story-card,
  .polaroid {
    width: 100%;
  }

  .story-card--second {
    order: 4;
  }

  .story-card--third {
    order: 5;
  }

  .polaroid--mountain {
    order: 6;
  }

  .schedule__item {
    grid-template-columns: 36px 75px 1fr;
  }

  .schedule p {
    font-size: 0.92rem;
  }

  .location__photo {
    min-height: 420px;
  }

  .location__card {
    padding: 3.5rem 2rem;
  }

  .palette {
    margin-left: -0.5rem;
    justify-content: flex-start;
    overflow-x: auto;
    padding: 0.5rem;
  }

  .palette__item {
    min-width: 66px;
  }

  .palette__item span {
    width: 58px;
    height: 105px;
  }

  .gifts__wish,
  .gifts__bottle {
    min-height: 560px;
    padding: 4rem 1.5rem;
  }

  .wishlist__grid {
    grid-template-columns: 1fr;
  }

  .wishlist__grid article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .wishlist__grid article:last-child {
    border-bottom: 0;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Editorial envelope composition */
.intro {
  background: #f8f7f3;
}

.intro::after {
  opacity: 0.1;
}

.intro__copy {
  top: 5.5vh;
  gap: 0;
}

.intro__copy span {
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.intro__copy strong {
  font-family: var(--calligraphy);
  font-size: clamp(1.15rem, 2vw, 1.65rem);
  font-style: normal;
  letter-spacing: 0.03em;
}

.intro__botanical {
  z-index: 7;
  width: min(25vw, 330px);
  height: min(65vh, 650px);
  pointer-events: none;
  opacity: 1;
  background: url("assets/floral-cascade.webp") center / contain no-repeat;
  filter: drop-shadow(0 12px 20px rgba(55, 59, 48, 0.08));
  mix-blend-mode: normal;
  mask-image: none;
}

.intro__botanical--left {
  bottom: 48%;
  left: calc(50% - min(42vw, 420px));
  transform: translateY(50%) rotate(-7deg);
  rotate: 0deg;
}

.intro__botanical--right {
  top: 50%;
  right: calc(50% - min(48vw, 480px));
  transform: translateY(-15%) rotate(-2deg);
  rotate: 0deg;
}

.envelope {
  width: min(76vw, 690px);
  height: min(45vw, 405px);
  filter: drop-shadow(0 26px 28px rgba(45, 44, 39, 0.16));
}

.envelope__cover {
  position: absolute;
  z-index: 8;
  inset: 0;
  display: block;
  overflow: hidden;
  border: 1px solid #d8d5cc;
  background:
    linear-gradient(105deg, rgba(255, 255, 255, 0.5), transparent 38%),
    repeating-linear-gradient(12deg, transparent 0 5px, rgba(93, 91, 83, 0.025) 6px),
    #efeee8;
  box-shadow: 0 2px 0 rgba(255, 255, 255, 0.65) inset;
  transition:
    transform 0.75s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.5s ease 0.35s;
}

.envelope__stamps {
  height: auto;
  position: absolute;
  top: 7.5%;
  right: 5.5%;
  width: 31%;
  filter: sepia(0.08) saturate(0.8);
}

.envelope__postmark {
  position: absolute;
  top: 25%;
  right: 20%;
  display: block;
  width: 38%;
  padding: 0.35rem 0;
  color: rgba(45, 46, 42, 0.44);
  border-top: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(-7deg);
  font-size: clamp(0.38rem, 0.7vw, 0.54rem);
  letter-spacing: 0.16em;
  text-align: center;
}

.envelope__welcome {
  position: absolute;
  top: 48%;
  left: 50%;
  display: block;
  transform: translate(-50%, -50%) rotate(-2deg);
  font-family: var(--script);
  font-size: clamp(2rem, 4.2vw, 3.45rem);
  font-weight: 400;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
}

.envelope__welcome small {
  display: block;
  margin-top: 1.8rem;
  font-family: var(--serif);
  font-size: 0.23em;
  font-style: normal;
  letter-spacing: 0.38em;
}

.intro--opening .envelope__cover {
  transform: translateY(-12%) rotateX(24deg) scale(1.025);
  opacity: 0;
}

.intro--opening .intro__botanical {
  transition: transform 0.9s ease, opacity 0.55s ease 0.35s;
  opacity: 0;
}

.intro--opening .intro__botanical--left {
  transform: translate(-12%, 48%) rotate(-12deg);
}

.intro--opening .intro__botanical--right {
  transform: translate(12%, -12%) rotate(5deg);
}

.intro__hint {
  bottom: 3.8vh;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 2.4vw, 1.55rem);
  letter-spacing: 0.08em;
}

.intro__hint span::after {
  content: "…";
}

.intro__hint i {
  display: none;
}

.hero {
  min-height: 1120px;
  padding-bottom: 9rem;
  background: #f8f7f3;
}

.hero::before {
  opacity: 0.35;
  background:
    linear-gradient(90deg, transparent 49.93%, rgba(50, 52, 46, 0.1) 50%, transparent 50.07%),
    repeating-linear-gradient(8deg, transparent 0 5px, rgba(63, 65, 58, 0.018) 6px);
}

.hero__collage {
  position: relative;
  z-index: 2;
  width: min(680px, calc(100% - 3rem));
  height: 800px;
  margin: clamp(2.8rem, 6vw, 5.5rem) auto 0;
}

.hero__envelope-back {
  position: absolute;
  z-index: 1;
  right: 6%;
  bottom: 2%;
  left: 6%;
  height: 53%;
  border: 1px solid #d8d5cc;
  background:
    linear-gradient(145deg, transparent 0 49.8%, rgba(167, 163, 152, 0.26) 50%, transparent 50.2%),
    linear-gradient(215deg, transparent 0 49.8%, rgba(167, 163, 152, 0.22) 50%, transparent 50.2%),
    linear-gradient(150deg, #f3f1eb, #e5e2d8);
  box-shadow: 0 28px 50px rgba(47, 45, 39, 0.16);
}

.hero__envelope-back::before {
  position: absolute;
  inset: 0;
  content: "";
  clip-path: polygon(0 0, 50% 55%, 100% 0);
  background: linear-gradient(155deg, #e2dfd5, #f7f5ef);
}

.hero-polaroid {
  position: absolute;
  z-index: 3;
  width: 45%;
  margin: 0;
  padding: 1.1rem 1.1rem 3.8rem;
  background: #f1f0eb;
  box-shadow: 0 12px 24px rgba(36, 36, 31, 0.2);
}

.hero-polaroid img {
  width: 100%;
  height: 290px;
  object-fit: cover;
  filter: grayscale(1) contrast(0.9);
}

.hero-polaroid--one {
  top: 10%;
  left: 12%;
  transform: rotate(-6deg);
}

.hero-polaroid--two {
  z-index: 2;
  top: 0;
  right: 11%;
  transform: rotate(5deg);
}

.save-card {
  position: absolute;
  z-index: 7;
  top: 45%;
  left: 17%;
  display: grid;
  width: 66%;
  min-height: 205px;
  grid-template-columns: 54px 1fr;
  overflow: hidden;
  border: 1px solid #d4d0c4;
  border-radius: 4px;
  transform: rotate(1.5deg);
  background:
    repeating-linear-gradient(11deg, transparent 0 5px, rgba(70, 69, 64, 0.025) 6px),
    #f7f3e9;
  box-shadow: 0 16px 28px rgba(48, 46, 40, 0.14);
}

.save-card__side {
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 2px dotted rgba(50, 50, 46, 0.34);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 0.48rem;
  letter-spacing: 0.16em;
}

.save-card > div {
  display: flex;
  padding: 1.6rem 1.2rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.save-card p {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.45rem;
  text-transform: uppercase;
}

.save-card strong {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 400;
  letter-spacing: 0.12em;
}

.save-card em {
  font-family: var(--script);
  font-size: 1.5rem;
  font-weight: 400;
}

.hero__monogram {
  position: absolute;
  z-index: 5;
  right: 0;
  bottom: 13%;
  left: 0;
  font-family: var(--calligraphy);
  font-size: 3.5rem;
  text-align: center;
}

.hero__floral {
  height: auto;
  position: absolute;
  z-index: 8;
  width: 42%;
  pointer-events: none;
  filter: drop-shadow(0 12px 20px rgba(46, 48, 42, 0.12));
}

.hero__floral--top {
  top: -5%;
  left: -10%;
  transform: rotate(-18deg);
}

.hero__floral--bottom {
  right: -15%;
  bottom: -2%;
  transform: rotate(-8deg);
}

.hero__invitation-copy {
  position: relative;
  z-index: 3;
  width: min(900px, calc(100% - 3rem));
  margin: -1.4rem auto 0;
  text-align: center;
}

.hero__invitation-copy p,
.hero__invitation-copy small {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero__invitation-copy h1 {
  display: block;
  margin: 0.4rem 0 0.7rem;
  font-family: var(--calligraphy);
  font-size: clamp(3.2rem, 7vw, 6.2rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.01em;
}

.hero__invitation-copy h1 span {
  display: inline;
  margin: 0 0.1em;
  font-family: var(--calligraphy);
  font-size: 0.7em;
}

.rsvp {
  position: relative;
  overflow: hidden;
  color: var(--ink);
  background: #efede7;
}

.rsvp__paper {
  position: absolute;
  z-index: 1;
  top: 4rem;
  left: 5%;
  display: flex;
  width: min(34vw, 420px);
  aspect-ratio: 1 / 0.83;
  padding: 2.5rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: rotate(-2deg);
  border: 1px solid #d6d1c6;
  background:
    repeating-linear-gradient(12deg, transparent 0 5px, rgba(56, 55, 51, 0.025) 6px),
    #f7f3e8;
  box-shadow: 0 16px 28px rgba(48, 46, 40, 0.12);
  font-family: var(--serif);
  line-height: 0.72;
  text-transform: uppercase;
}

.rsvp__paper span,
.rsvp__paper strong {
  font-size: clamp(2.1rem, 4.4vw, 4rem);
  font-weight: 400;
}

.rsvp__paper em {
  z-index: 1;
  margin: 0.02em 0 -0.08em;
  font-family: var(--script);
  font-size: clamp(3.5rem, 7vw, 6.5rem);
  font-weight: 400;
  text-transform: none;
}

.rsvp__calla {
  height: auto;
  position: absolute;
  z-index: 4;
  top: 5%;
  left: 21%;
  width: min(26vw, 340px);
  max-width: none;
  transform: rotate(62deg);
  filter: drop-shadow(0 12px 18px rgba(30, 34, 26, 0.15));
  pointer-events: none;
}

.rsvp__heading {
  position: relative;
  z-index: 2;
  padding-top: min(29vw, 340px);
}

.rsvp__heading > p:last-child {
  color: var(--muted);
}

#rsvp-content {
  position: relative;
  z-index: 3;
  align-self: center;
  padding: clamp(2rem, 5vw, 4rem);
  color: #efede6;
  background: #242522;
  box-shadow: 0 22px 44px rgba(38, 38, 34, 0.18);
}

.rsvp__success {
  border-color: rgba(255, 255, 255, 0.24);
}

@media (max-width: 900px) {
  .hero {
    min-height: 1030px;
  }

  .hero__collage {
    transform: scale(0.92);
    transform-origin: top center;
  }

  .rsvp {
    padding-top: 31rem;
  }

  .rsvp__paper {
    top: 4rem;
    left: 12%;
    width: min(64vw, 430px);
  }

  .rsvp__calla {
    top: 5rem;
    left: 43%;
    width: min(39vw, 300px);
  }

  .rsvp__heading {
    padding-top: 0;
  }
}

@media (max-width: 620px) {
  .intro__copy {
    top: 3vh;
  }

  .intro__botanical {
    width: 44vw;
    height: 55vh;
  }

  .intro__botanical--left {
    bottom: 57%;
    left: -7vw;
  }

  .intro__botanical--right {
    top: 58%;
    right: -14vw;
  }

  .envelope {
    width: 88vw;
    height: 58vw;
    min-height: 220px;
  }

  .envelope__stamps {
    width: 34%;
  }

  .envelope__postmark {
    top: 28%;
    right: 19%;
  }

  .envelope__welcome {
    top: 54%;
    font-size: clamp(1.75rem, 9vw, 2.55rem);
  }

  .envelope__welcome small {
    margin-top: 0.8rem;
  }

  .intro__hint {
    bottom: 5vh;
    font-size: 1rem;
  }

  .hero {
    min-height: 810px;
    padding-bottom: 5rem;
  }

  .hero__collage {
    width: 680px;
    max-width: none;
    height: 800px;
    margin-top: 1.5rem;
    margin-left: 50%;
    transform: translateX(-50%) scale(0.57);
    transform-origin: top center;
  }

  .hero__invitation-copy {
    margin-top: -315px;
  }

  .hero__invitation-copy h1 {
    font-size: clamp(2.6rem, 13vw, 4rem);
  }

  .rsvp {
    padding-top: 24rem;
  }

  .rsvp__paper {
    top: 3.5rem;
    left: 7%;
    width: 76vw;
  }

  .rsvp__calla {
    top: 5rem;
    left: 46%;
    width: 49vw;
  }

  #rsvp-content {
    margin: 0 -0.25rem;
    padding: 2rem 1.4rem;
  }
}
