﻿:root {
  --cream: #f7f0e3;
  --cream-light: #fbf7ee;
  --brown: #4a331f;
  --brown-mid: #6b4a2c;
  --brown-deep: #3a2716;
  --mustard: #d9a21b;
  --gold: #a8842c;
  --ink: #4a3b2a;
  --muted: #8d7f68;
  --serif: "Cormorant Garamond", Georgia, serif;
  --script: "Pinyon Script", "Great Vibes", cursive;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --card: 440px;
  --heart-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 96' preserveAspectRatio='none'%3E%3Cpath fill='%23000' d='M50 91.6C22 68 0 48.6 0 30.6 0 12.6 13.6 0 30 0c10 0 17 5.5 20 12 3-6.5 10-12 20-12 16.4 0 30 12.6 30 30.6C100 48.6 78 68 50 91.6z'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--serif);
  font-weight: 300;
  color: var(--ink);
  background: #e6ded0;
  -webkit-font-smoothing: antialiased;
}

body.is-locked { overflow: hidden; }

img { display: block; max-width: 100%; }

/* The whole invitation lives in a phone-width column */
.shell {
  position: relative;
  max-width: var(--card);
  margin: 0 auto;
  background: var(--cream);
  box-shadow: 0 0 60px rgba(74, 51, 31, 0.18);
  opacity: 0;
  transition: opacity 1.1s var(--ease) 0.2s;
}

.shell.is-visible { opacity: 1; }

section { position: relative; }

/* ============ Envelope, lace and heart (shared by cover + RSVP) ============ */
.env {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 82%;
  aspect-ratio: 1.5;
  transform: translateX(-50%);
}

.env__body {
  position: absolute;
  inset: 0;
  background: linear-gradient(170deg, #7c5836 0%, #6b4a2c 55%, #573a20 100%);
  border-radius: 2px;
  box-shadow: 0 16px 30px rgba(46, 30, 14, 0.36), inset 0 1px 0 rgba(255, 240, 214, 0.16);
}

/* The open flap folded behind the card */
.env__flapback {
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: 62%;
  height: 46%;
  background: linear-gradient(180deg, #5e4026, #7a5533);
  clip-path: polygon(0 100%, 50% 0, 100% 100%);
}

/* The two front folds that meet in the middle */
.env__left,
.env__right {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 52%;
}

.env__left {
  left: 0;
  background: linear-gradient(112deg, rgba(255, 240, 214, 0.12), rgba(30, 18, 8, 0.22));
  clip-path: polygon(0 0, 100% 62%, 0 100%);
}

.env__right {
  right: 0;
  background: linear-gradient(248deg, rgba(255, 240, 214, 0.1), rgba(30, 18, 8, 0.24));
  clip-path: polygon(100% 0, 100% 100%, 0 62%);
}

.env__mono {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16%;
  z-index: 2;
  font-family: var(--script);
  font-size: clamp(20px, 6vw, 26px);
  line-height: 0.92;
  color: rgba(255, 248, 233, 0.62);
  text-align: center;
}

.env__mono i { display: block; font-style: normal; margin-left: 10px; }

/* Round lace mat â€” the dotted border reads as a crocheted edge */
.doily {
  position: absolute;
  left: 50%;
  z-index: 2;
  aspect-ratio: 1;
  background: #f4eee2;
  background-clip: padding-box;
  border: 9px dotted #f4eee2;
  border-radius: 50%;
  transform: translateX(-50%);
  filter: drop-shadow(0 4px 7px rgba(52, 33, 14, 0.3));
}

.doily--round {
  top: 9%;
  width: 74%;
}

.doily--small { top: 16%; width: 56%; }

.doily::before {
  content: "";
  position: absolute;
  inset: 7%;
  border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(120, 96, 62, 0.13) 0 2deg, rgba(255, 255, 255, 0) 2deg 4.6deg);
  -webkit-mask: radial-gradient(circle, transparent 54%, #000 56%);
  mask: radial-gradient(circle, transparent 54%, #000 56%);
}

.doily::after {
  content: "";
  position: absolute;
  inset: 22%;
  border: 1px dashed rgba(120, 96, 62, 0.3);
  border-radius: 50%;
}

/* Heart card */
.heart {
  position: absolute;
  left: 50%;
  top: 7%;
  z-index: 3;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  width: 66%;
  aspect-ratio: 1 / 0.96;
  padding: 0 12% 10%;
  transform: translateX(-50%);
  -webkit-mask-image: var(--heart-mask);
  mask-image: var(--heart-mask);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  filter: drop-shadow(0 9px 13px rgba(46, 29, 12, 0.34));
}

.heart--gold { background: linear-gradient(150deg, #dfa81c 0%, #d59d16 46%, #bb8712 100%); }
.heart--cream {
  background: linear-gradient(150deg, #fffdf7, #faf3e4);
  filter: drop-shadow(0 6px 12px rgba(46, 29, 12, 0.34)) drop-shadow(0 1px 1px rgba(46, 29, 12, 0.3));
}

.heart__sheen {
  position: absolute;
  inset: 0;
  background: linear-gradient(126deg, rgba(255, 252, 238, 0.3) 0%, rgba(255, 252, 238, 0) 44%);
}

.heart__tag {
  position: relative;
  font-size: clamp(8px, 2.2vw, 10px);
  letter-spacing: 0.06em;
  color: rgba(255, 251, 240, 0.85);
}

.heart__names {
  position: relative;
  display: grid;
  justify-items: center;
  font-family: var(--script);
  font-size: clamp(28px, 9vw, 38px);
  line-height: 1.18;
  color: #fffdf6;
}

.heart__names i,
.heart__names b { font-style: normal; font-weight: 400; }

.heart__rsvp {
  font-family: var(--script);
  font-size: clamp(40px, 13vw, 56px);
  color: var(--gold);
}

/* ============ Cover ============ */
.cover {
  position: fixed;
  inset: 0;
  left: 0;
  right: 0;
  z-index: 20;
  max-width: var(--card);
  margin: 0 auto;
  overflow: hidden;
  background: #cfc3aa;
  transition: opacity 1.1s var(--ease), visibility 1.1s;
}

.cover__art {
  position: absolute;
  inset: 0;
  background: url("assets/cover.jpg") center 26% / cover no-repeat;
  animation: drift 26s ease-in-out infinite alternate;
}

@keyframes drift {
  to { transform: scale(1.07); }
}

.cover .envelope {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 78%;
  aspect-ratio: 0.95;
  padding: 0;
  border: 0;
  background: none;
  transform: translate(-50%, -46%);
  cursor: pointer;
}

.cover .env { width: 100%; }

.cover__hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 7%;
  margin: 0;
  padding: 12px 0;
  font-size: clamp(17px, 5vw, 23px);
  letter-spacing: 0.2em;
  color: #fffefa;
  text-align: center;
  text-shadow: 0 1px 3px rgba(46, 30, 12, 0.6), 0 2px 16px rgba(46, 30, 12, 0.5);
  background: linear-gradient(180deg, rgba(60, 40, 18, 0) 0%, rgba(60, 40, 18, 0.22) 50%, rgba(60, 40, 18, 0) 100%);
  animation: breathe 3.2s ease-in-out infinite;
}

@keyframes breathe {
  50% { opacity: 0.5; }
}

.cover.is-opening .heart { transform: translate(-50%, -56vh) scale(1.12); opacity: 0; transition: transform 1s var(--ease), opacity 0.7s ease; }
.cover.is-opening .doily { transform: translateX(-50%) scale(0.9); opacity: 0; transition: all 0.8s var(--ease); }
.cover.is-opening .env { transform: translateX(-50%) translateY(24px); opacity: 0; transition: all 0.9s var(--ease) 0.2s; }
.cover.is-opening .cover__hint { animation: none; opacity: 0; transition: opacity 0.5s ease; }
.cover.is-zooming .cover__art { transform: scale(1.22); transition: transform 1.3s var(--ease); }

.cover.is-open { opacity: 0; visibility: hidden; pointer-events: none; }

/* ============ Silver tray still life ============ */
.tray { padding: 34px 20px 6px; }

.tray__plate {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  background: url("assets/tray.jpg") center / contain no-repeat;
}

.tray__envelope {
  position: absolute;
  left: 17%;
  top: 15%;
  width: 33%;
  aspect-ratio: 1.36;
  background: linear-gradient(168deg, #7c5836, #5f4126);
  border-radius: 2px;
  box-shadow: 0 8px 16px rgba(46, 30, 14, 0.3);
  transform: rotate(-3deg);
}

/* Sunflower-lined inside of the little envelope */
.tray__envelope i {
  position: absolute;
  left: 8%;
  right: 8%;
  top: -34%;
  height: 62%;
  background: url("assets/cover.jpg") center 30% / 190% no-repeat;
  clip-path: polygon(0 0, 100% 0, 100% 42%, 50% 100%, 0 42%);
  box-shadow: inset 0 0 0 3px rgba(252, 246, 234, 0.8);
}

/* Front folds of the little envelope, so it is not a flat rectangle */
.tray__envelope::before,
.tray__envelope::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 52%;
}

.tray__envelope::before {
  left: 0;
  background: linear-gradient(112deg, rgba(255, 240, 214, 0.12), rgba(30, 18, 8, 0.2));
  clip-path: polygon(0 0, 100% 58%, 0 100%);
}

.tray__envelope::after {
  right: 0;
  background: linear-gradient(248deg, rgba(255, 240, 214, 0.1), rgba(30, 18, 8, 0.22));
  clip-path: polygon(100% 0, 100% 100%, 0 58%);
}

.tray__strip {
  position: absolute;
  right: 8%;
  top: 4%;
  display: grid;
  gap: 3px;
  width: 25%;
  padding: 4px;
  background: #fdf9f0;
  transform: rotate(6deg);
  box-shadow: 0 8px 18px rgba(46, 30, 14, 0.26);
}

.tray__strip img { aspect-ratio: 1 / 0.92; object-fit: cover; }

.tray__doily {
  position: absolute;
  left: 12%;
  bottom: 16%;
  width: 44%;
  aspect-ratio: 1;
  background: #f4eee2;
  background-clip: padding-box;
  border: 8px dotted #f4eee2;
  border-radius: 50%;
  filter: drop-shadow(0 3px 6px rgba(52, 33, 14, 0.25));
}

.tray__heart {
  position: absolute;
  left: 15%;
  bottom: 19%;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 2px;
  width: 39%;
  aspect-ratio: 1 / 0.96;
  padding-bottom: 8%;
  background: linear-gradient(150deg, #6d4b2d, #573a20);
  -webkit-mask-image: var(--heart-mask);
  mask-image: var(--heart-mask);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  filter: drop-shadow(0 6px 10px rgba(46, 29, 12, 0.3));
}

.tray__save {
  font-family: var(--script);
  font-size: clamp(15px, 4.6vw, 19px);
  line-height: 1.15;
  color: #fdf7ea;
  text-align: center;
}

.tray__date {
  font-size: clamp(11px, 3.2vw, 13px);
  letter-spacing: 0.08em;
  color: rgba(253, 247, 234, 0.85);
}

/* Vinyl record doubling as the music button */
.vinyl {
  position: absolute;
  right: 9%;
  bottom: 17%;
  display: grid;
  place-items: center;
  width: 34%;
  aspect-ratio: 1;
  padding: 0;
  background:
    repeating-radial-gradient(circle, #1d1a18 0 2px, #262220 2px 4px);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 10px 20px rgba(30, 20, 10, 0.4);
  cursor: pointer;
}

.vinyl__label {
  display: grid;
  place-items: center;
  width: 58%;
  aspect-ratio: 1;
  font-family: var(--script);
  font-size: clamp(20px, 6.5vw, 28px);
  line-height: 0.85;
  color: var(--brown-deep);
  background: radial-gradient(circle, #e0a91f, #cc9412);
  border-radius: 50%;
}

.vinyl__label i { font-style: normal; margin-left: 8px; }

.vinyl__play {
  position: absolute;
  width: 17%;
  aspect-ratio: 1;
  background: rgba(255, 253, 246, 0.82);
  border-radius: 50%;
}

.vinyl__play::after {
  content: "";
  position: absolute;
  left: 38%;
  top: 50%;
  width: 34%;
  height: 40%;
  background: var(--brown-deep);
  transform: translate(-25%, -50%);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.vinyl[aria-pressed="true"] { animation: spin 4s linear infinite; }
.vinyl[aria-pressed="true"] .vinyl__play::after { clip-path: polygon(0 0, 34% 0, 34% 100%, 0 100%, 0 0, 66% 0, 100% 0, 100% 100%, 66% 100%); }

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============ Names ============ */
.names { padding: 10px 24px 46px; text-align: center; }

.names__tag {
  margin: 0 0 14px;
  font-size: clamp(12px, 3.4vw, 14px);
  letter-spacing: 0.04em;
  color: var(--brown-mid);
}

.names__script {
  display: grid;
  margin: 0;
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(46px, 15vw, 66px);
  line-height: 1.14;
  color: var(--brown);
}

/* ============ Painted bands ============ */
.band {
  padding: 0;
  background: url("assets/cover.jpg") center 30% / cover no-repeat;
}

.band--count {
  display: grid;
  justify-items: center;
  padding: 52px 18px 56px;
}

/* Soft scrim so the white script stays readable over the painting */
.band--count::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 46%;
  background: linear-gradient(180deg, rgba(48, 32, 14, 0) 0%, rgba(48, 32, 14, 0.34) 60%, rgba(48, 32, 14, 0.42) 100%);
}

.band--count > * { position: relative; z-index: 1; }

.lace {
  position: relative;
  width: 100%;
  padding: 22px 14px;
  background: #f6f1e6;
  background-clip: padding-box;
  border: 10px dotted #f6f1e6;
  box-shadow: 0 6px 16px rgba(46, 30, 14, 0.22);
}

.lace::before {
  content: "";
  position: absolute;
  inset: 6px;
  background: repeating-linear-gradient(45deg, rgba(120, 96, 62, 0.07) 0 1px, rgba(255, 255, 255, 0) 1px 9px),
    repeating-linear-gradient(-45deg, rgba(120, 96, 62, 0.07) 0 1px, rgba(255, 255, 255, 0) 1px 9px),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0) 58%, rgba(120, 96, 62, 0.06) 100%);
}

.lace__oval {
  position: relative;
  padding: 26px 18px 22px;
  background: var(--cream-light);
  border-radius: 50% / 34%;
}

.lace__title {
  margin: 0 0 10px;
  font-family: var(--script);
  font-size: clamp(24px, 7vw, 30px);
  color: var(--brown);
}

.clock {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.clock li { position: relative; }

.clock li + li::before {
  content: ":";
  position: absolute;
  left: -8px;
  top: 0;
  font-size: clamp(18px, 5.4vw, 23px);
  line-height: 1.16;
  color: var(--brown-mid);
}

.clock strong {
  display: block;
  font-size: clamp(20px, 6vw, 26px);
  font-weight: 300;
  font-variant-numeric: tabular-nums;
  color: var(--brown);
}

.clock span {
  font-size: clamp(8px, 2.4vw, 9.5px);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.lace__done {
  margin: 6px 0 0;
  font-style: italic;
  color: var(--brown-mid);
}

.band__script {
  margin: 26px 0 0;
  font-family: var(--script);
  font-size: clamp(30px, 9vw, 42px);
  color: #fffdf4;
  text-shadow: 0 2px 12px rgba(46, 30, 12, 0.45);
}

.band__date {
  margin: 2px 0 0;
  font-size: clamp(15px, 4.4vw, 19px);
  letter-spacing: 0.18em;
  color: #fffdf4;
  text-shadow: 0 2px 12px rgba(46, 30, 12, 0.5);
}

/* ============ Invitation wording ============ */
.invitation {
  padding: 52px 26px 46px;
  text-align: center;
  background: var(--cream);
}

.invitation__parents {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  font-size: clamp(14px, 3.8vw, 16px);
  color: var(--ink);
}

.invitation__parents p { display: grid; gap: 4px; margin: 0; }

.invitation__parents em { font-style: normal; color: var(--muted); }

.invitation__body {
  margin: 26px auto 0;
  max-width: 30ch;
  font-size: clamp(14.5px, 3.9vw, 16.5px);
  line-height: 1.85;
  color: var(--ink);
}

.invitation__couple {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 4px;
  margin-top: 18px;
}

.invitation__nick {
  font-family: var(--script);
  font-size: clamp(38px, 12vw, 54px);
  line-height: 1.1;
  color: var(--brown);
}

/* Fade the icon's flat background out so only the drawn lines remain */
.invitation__icon {
  width: clamp(58px, 19vw, 82px);
  mix-blend-mode: darken;
  filter: contrast(1.3) brightness(0.92);
  -webkit-mask: radial-gradient(circle, #000 50%, transparent 68%);
  mask: radial-gradient(circle, #000 50%, transparent 68%);
}

.invitation__full {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
  font-size: clamp(13px, 3.6vw, 15px);
  color: var(--brown-mid);
}

/* ============ Photo bands ============ */
.photos--pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--cream);
}

.photos--pair img { aspect-ratio: 3 / 4; object-fit: cover; }

/* ============ Order of the day ============ */
.day {
  padding: 54px 26px 58px;
  text-align: center;
  background: var(--brown);
  color: #f6ecdb;
}

.day__eyebrow {
  margin: 0 0 6px;
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(246, 236, 219, 0.65);
}

.day__list {
  display: grid;
  gap: 42px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}

.day__list li { display: grid; justify-items: center; gap: 4px; }

.day__list img {
  width: clamp(100px, 31vw, 132px);
  mix-blend-mode: lighten;
  filter: saturate(0.2) brightness(1.5) contrast(1.3);
  -webkit-mask: radial-gradient(circle, #000 52%, transparent 72%);
  mask: radial-gradient(circle, #000 52%, transparent 72%);
}

.day__time {
  font-size: clamp(21px, 6vw, 25px);
  letter-spacing: 0.08em;
}

.day__label {
  font-size: clamp(15px, 4.2vw, 17px);
  color: rgba(246, 236, 219, 0.82);
}

/* ============ Film strip ============ */
.strip {
  display: grid;
  gap: 22px;
  padding: 48px 34px;
  background: var(--cream);
}

.strip figure {
  margin: 0;
  padding: 9px 9px 34px;
  background: #fdfaf3;
  box-shadow: 0 12px 24px -14px rgba(60, 42, 22, 0.5);
}

.strip figure:nth-child(1) { transform: rotate(-2deg); }
.strip figure:nth-child(2) { transform: rotate(1.5deg); }
.strip figure:nth-child(3) { transform: rotate(-1deg); }

.strip img { aspect-ratio: 4 / 3; object-fit: cover; }

/* ============ Location ============ */
.place {
  padding: 50px 26px 56px;
  text-align: center;
  background: var(--cream);
}

.place__map {
  overflow: hidden;
  margin-bottom: 22px;
  border: 1px solid rgba(107, 74, 44, 0.25);
}

.place__map iframe {
  display: block;
  width: 100%;
  height: 190px;
  border: 0;
  filter: saturate(0.75) sepia(0.12);
}

.place__name {
  margin: 0;
  font-size: clamp(16px, 4.6vw, 19px);
  letter-spacing: 0.2em;
  color: var(--brown);
}

.place__note {
  margin: 8px 0 22px;
  font-size: 14.5px;
  font-style: italic;
  color: var(--muted);
}

/* Outlined pill buttons */
.pill {
  display: inline-block;
  padding: 12px 40px;
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.3em;
  text-decoration: none;
  color: var(--gold);
  background: none;
  border: 1px solid var(--gold);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.35s, color 0.35s;
}

.pill:hover { color: var(--cream-light); background: var(--gold); }

.pill--onDark {
  position: absolute;
  left: 50%;
  bottom: 9%;
  z-index: 4;
  color: #fdf8ec;
  border-color: rgba(253, 248, 236, 0.75);
  transform: translateX(-50%);
}

.pill--onDark:hover { color: var(--brown); background: rgba(253, 248, 236, 0.9); }

.pill--solid {
  justify-self: center;
  color: var(--cream-light);
  background: var(--brown-mid);
  border-color: var(--brown-mid);
}

.pill--solid:hover { background: var(--brown); border-color: var(--brown); }

/* ============ Sunflowers & pets ============ */
.cute {
  position: relative;
  overflow: hidden;
  padding: 40px 26px 48px;
  text-align: center;
  background: var(--cream);
}

/* The stickers share the section background, so they read as cut-outs */
.cute__flower {
  position: absolute;
  width: 26%;
  mix-blend-mode: darken;
  -webkit-mask: radial-gradient(circle, #000 46%, transparent 64%);
  mask: radial-gradient(circle, #000 46%, transparent 64%);
}

.cute__flower--1 { left: -4%; top: 6%; width: 32%; transform: rotate(-12deg); }
.cute__flower--2 { right: -3%; top: 18%; width: 22%; transform: rotate(14deg); }
.cute__flower--3 { left: 6%; bottom: 4%; width: 20%; transform: rotate(8deg); }
.cute__flower--4 { right: 8%; bottom: 2%; width: 26%; transform: rotate(-6deg); }

.cute__pet {
  position: relative;
  width: 56%;
  margin: 12px auto 0;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 50%;
  box-shadow: 0 14px 28px -16px rgba(60, 42, 22, 0.6);
}

.cute__pet img { width: 100%; height: 100%; object-fit: cover; }

.cute__note {
  position: relative;
  margin: 20px 0 0;
  font-size: clamp(14px, 4vw, 16px);
  font-style: italic;
  color: var(--muted);
}

/* ============ RSVP ============ */
.band--rsvp {
  position: relative;
  height: 112vw;
  max-height: 480px;
}

.band--rsvp .env {
  width: 72%;
  bottom: 6%;
}

.band--rsvp .heart {
  top: 16%;
  width: 46%;
  padding: 0 9% 8%;
}

.band--rsvp .doily--small { top: 21%; width: 54%; }

.rsvp {
  padding: 46px 26px 54px;
  text-align: center;
  background: var(--cream);
}

/* Same eyebrow, but on a cream background */
.rsvp .day__eyebrow { color: var(--gold); }

.rsvp__deadline {
  margin: 10px 0 0;
  font-size: 15px;
  font-style: italic;
  color: var(--muted);
}

.rsvp__form {
  display: grid;
  gap: 20px;
  margin-top: 30px;
  text-align: left;
}

.rsvp__form label > span,
.rsvp__form legend {
  display: block;
  margin-bottom: 6px;
  font-size: 10.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}

.rsvp__form input[type="text"],
.rsvp__form input[type="number"],
.rsvp__form textarea {
  width: 100%;
  padding: 8px 2px;
  font-family: var(--serif);
  font-size: 17px;
  color: var(--ink);
  background: none;
  border: 0;
  border-bottom: 1px solid rgba(107, 74, 44, 0.3);
  border-radius: 0;
}

.rsvp__form input:focus,
.rsvp__form textarea:focus { outline: none; border-bottom-color: var(--gold); }

.rsvp__form fieldset { margin: 0; padding: 0; border: 0; }

.radio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 18px;
  font-size: 16px;
  cursor: pointer;
}

.radio input { accent-color: var(--gold); }

.rsvp__status {
  min-height: 1.4em;
  margin: 0;
  font-style: italic;
  color: var(--gold);
  text-align: center;
}

/* ============ Our song ============ */
.song {
  padding: 30px 26px 34px;
  text-align: center;
  background: var(--cream);
}

.song__label {
  margin: 0 0 14px;
  font-size: 11px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
}

.song__player {
  overflow: hidden;
  max-width: 260px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(107, 74, 44, 0.25);
}

.song__player iframe { display: block; width: 100%; height: 100%; border: 0; }

/* ============ Footer ============ */
.foot {
  padding: 42px 24px 54px;
  text-align: center;
  background: var(--brown);
  color: #f4e9d7;
}

.foot__script {
  margin: 0;
  font-family: var(--script);
  font-size: clamp(34px, 11vw, 46px);
}

.foot__meta {
  margin: 12px 0 0;
  font-size: 11px;
  letter-spacing: 0.3em;
  opacity: 0.7;
}

/* ============ Language toggle ============ */
.lang {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 30;
  padding: 7px 16px;
  font-family: var(--serif);
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #f8efdd;
  background: rgba(58, 39, 22, 0.62);
  border: 1px solid rgba(248, 239, 221, 0.4);
  border-radius: 999px;
  cursor: pointer;
  backdrop-filter: blur(5px);
}

/* ============ Falling petals on the cover ============ */
.petals { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }

.petal {
  position: absolute;
  top: -12vh;
  width: var(--size, 13px);
  height: calc(var(--size, 13px) * 0.62);
  background: linear-gradient(120deg, #f0cd5f, #d3a027 60%, #b9861a);
  border-radius: 60% 40% 55% 45% / 70% 60% 40% 30%;
  opacity: var(--alpha, 0.7);
  animation: petal-fall var(--dur, 14s) linear var(--delay, 0s) infinite;
}

@keyframes petal-fall {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(calc(var(--sway, 30px) * -1), 58vh, 0) rotate(260deg); }
  100% { transform: translate3d(0, 118vh, 0) rotate(520deg); }
}

.burst {
  position: fixed;
  z-index: 36;
  width: 11px;
  height: 7px;
  background: linear-gradient(120deg, #f0cd5f, #c8951f);
  border-radius: 60% 40% 55% 45% / 70% 60% 40% 30%;
  pointer-events: none;
  animation: burst-out 1.5s var(--ease) forwards;
}

@keyframes burst-out {
  0% { transform: translate(0, 0) rotate(0deg); opacity: 1; }
  100% { transform: translate(var(--bx), var(--by)) rotate(var(--br)); opacity: 0; }
}

/* ============ Thai typography ============ */
body.is-thai { --serif: "Noto Serif Thai", "Cormorant Garamond", Georgia, serif; }

body.is-thai [data-i18n] { letter-spacing: 0; line-height: 1.8; }

body.is-thai .day__eyebrow,
body.is-thai .place__name,
body.is-thai .band__date,
body.is-thai .rsvp__form label > span,
body.is-thai .rsvp__form legend,
body.is-thai .clock span { letter-spacing: 0.1em; font-size: 0.94em; }

body.is-thai .cover__hint { letter-spacing: 0.06em; }

/* ============ Reveal on scroll ============ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}

.reveal.is-in { opacity: 1; transform: none; }

.reveal > * { transition: inherit; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

