:root {
  color-scheme: light;
  --ink: #31261f;
  --muted: #7b6d64;
  --paper: #fffaf4;
  --blush: #f6e4e0;
  --champagne: #f5dfb7;
  --rose: #c96f73;
  --wine: #7b2934;
  --leaf: #5f7562;
  --gold: #b9904d;
  --shadow: 0 22px 70px rgba(49, 38, 31, 0.18);
  --soft-shadow: 0 14px 42px rgba(49, 38, 31, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Noto Serif SC", serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 12%, rgba(201, 111, 115, 0.18), transparent 28%),
    linear-gradient(135deg, #fffaf4 0%, #f7eadf 45%, #e9efe5 100%);
}

.petal-layer {
  position: fixed;
  inset: 0;
  z-index: 20;
  overflow: hidden;
  pointer-events: none;
}

.petal {
  position: absolute;
  top: -12vh;
  left: var(--petal-left);
  width: var(--petal-size);
  height: calc(var(--petal-size) * 1.32);
  opacity: var(--petal-opacity);
  background: var(--petal-image) center/contain no-repeat;
  filter: drop-shadow(0 7px 7px rgba(123, 41, 52, 0.16));
  transform: rotate(var(--petal-rotate)) rotateX(var(--petal-tilt));
  transform-style: preserve-3d;
  animation:
    petal-fall var(--petal-duration) linear var(--petal-delay) infinite,
    petal-sway calc(var(--petal-duration) * 0.42) ease-in-out var(--petal-delay) infinite alternate,
    petal-flutter calc(var(--petal-duration) * 0.3) ease-in-out var(--petal-delay) infinite alternate;
}

a {
  color: inherit;
}

.entry-gate {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  color: #fffaf4;
  background:
    linear-gradient(rgba(49, 38, 31, 0.48), rgba(49, 38, 31, 0.58)),
    url("https://images.unsplash.com/photo-1519741497674-611481863552?auto=format&fit=crop&w=1800&q=85")
      center/cover;
}

.entry-gate.is-hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
}

.entry-gate__panel {
  width: min(520px, 100%);
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: clamp(34px, 7vw, 68px);
  border: 1px solid rgba(255, 250, 244, 0.34);
  border-radius: 8px;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 250, 244, 0.08)),
    rgba(49, 38, 31, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 24px 80px rgba(18, 12, 10, 0.28);
  backdrop-filter: blur(24px) saturate(140%);
}

.entry-gate__seal {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(245, 223, 183, 0.68);
  border-radius: 50%;
  color: var(--champagne);
  background: rgba(123, 41, 52, 0.56);
  font-family: "ZCOOL XiaoWei", "Noto Serif SC", serif;
  font-size: 44px;
}

.entry-gate p {
  margin: 0;
  color: rgba(255, 250, 244, 0.76);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.entry-gate h2 {
  margin: 0;
  font-size: clamp(30px, 6vw, 52px);
  color: #fffaf4;
}

.entry-gate__button {
  min-height: 50px;
  padding: 0 26px;
  border: 1px solid rgba(245, 223, 183, 0.54);
  border-radius: 999px;
  color: #2f231f;
  background: rgba(245, 223, 183, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 18px 42px rgba(18, 12, 10, 0.2);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.invitation {
  overflow: hidden;
}

.section:nth-of-type(odd):not(.hero):not(.details):not(.rsvp) {
  background:
    radial-gradient(circle at 88% 10%, rgba(185, 144, 77, 0.1), transparent 24%),
    var(--paper);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 28px clamp(18px, 4vw, 56px);
  color: #fffaf4;
  background:
    linear-gradient(rgba(47, 35, 31, 0.18), rgba(47, 35, 31, 0.2)),
    url("https://images.unsplash.com/photo-1519741497674-611481863552?auto=format&fit=crop&w=1800&q=85")
      center/cover;
}

.hero.has-custom-photo {
  background:
    linear-gradient(rgba(47, 35, 31, 0.12), rgba(47, 35, 31, 0.18)),
    var(--hero-photo) center/cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(35, 25, 22, 0.78), rgba(95, 57, 48, 0.28) 58%, rgba(35, 25, 22, 0.46)),
    linear-gradient(0deg, rgba(35, 25, 22, 0.58), transparent 48%),
    radial-gradient(circle at 30% 42%, rgba(245, 223, 183, 0.16), transparent 31%);
  pointer-events: none;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: 1;
  width: min(34vw, 360px);
  height: min(34vw, 360px);
  border: 1px solid rgba(245, 223, 183, 0.28);
  pointer-events: none;
}

.hero::before {
  top: 96px;
  left: clamp(18px, 4vw, 56px);
  border-right: 0;
  border-bottom: 0;
}

.hero::after {
  right: clamp(18px, 4vw, 56px);
  bottom: 42px;
  border-top: 0;
  border-left: 0;
}

.nav,
.hero__content,
.scroll-hint {
  position: relative;
  z-index: 1;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
  letter-spacing: 0.08em;
}

.nav__actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  color: #fffaf4;
  text-decoration: none;
  background: rgba(255, 250, 244, 0.12);
  backdrop-filter: blur(14px);
}

.music-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid rgba(255, 250, 244, 0.58);
  border-radius: 999px;
  color: #fffaf4;
  background: rgba(255, 250, 244, 0.14);
  backdrop-filter: blur(14px);
  cursor: pointer;
}

.music-button__icon {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 250, 244, 0.22);
}

.music-button.is-playing .music-button__icon {
  animation: pulse 1.3s ease-in-out infinite;
}

.hero__content {
  align-self: center;
  max-width: 760px;
  padding: 6vh 0 9vh;
}

.wedding-seal {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  border: 1px solid rgba(245, 223, 183, 0.68);
  border-radius: 50%;
  color: var(--champagne);
  background: rgba(123, 41, 52, 0.58);
  box-shadow:
    inset 0 0 0 8px rgba(245, 223, 183, 0.08),
    0 18px 42px rgba(49, 38, 31, 0.22);
  font-family: "ZCOOL XiaoWei", "Noto Serif SC", serif;
  font-size: 44px;
  line-height: 1;
}

.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  font-size: 15px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-family: "ZCOOL XiaoWei", "Noto Serif SC", serif;
  font-size: clamp(44px, 7vw, 92px);
  line-height: 0.95;
  font-weight: 400;
  letter-spacing: 0;
  text-shadow: 0 16px 36px rgba(18, 12, 10, 0.34);
}

h1 em {
  color: var(--champagne);
  font-style: normal;
}

h1 span {
  display: inline-block;
}

.name-divider {
  display: flex;
  align-items: center;
  width: min(420px, 72vw);
  margin: 0 0 18px;
}

.name-divider::before,
.name-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245, 223, 183, 0.74));
}

.name-divider::after {
  background: linear-gradient(90deg, rgba(245, 223, 183, 0.74), transparent);
}

.name-divider span {
  width: 8px;
  height: 8px;
  margin: 0 14px;
  border-radius: 50%;
  background: var(--champagne);
  box-shadow: 0 0 0 6px rgba(245, 223, 183, 0.12);
}

.hero-vow {
  max-width: 620px;
  margin-bottom: 18px;
  color: rgba(255, 250, 244, 0.92);
  font-size: clamp(18px, 2.2vw, 26px);
  line-height: 1.6;
}

.date {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  margin-bottom: 24px;
  padding: 0 18px;
  border: 1px solid rgba(245, 223, 183, 0.42);
  border-radius: 999px;
  color: var(--champagne);
  background: rgba(255, 250, 244, 0.11);
  font-size: clamp(18px, 2vw, 26px);
  backdrop-filter: blur(12px);
}

.intro {
  max-width: 600px;
  margin-bottom: 24px;
  font-size: 18px;
  line-height: 1.9;
  color: rgba(255, 250, 244, 0.9);
}

.hero-countdown {
  width: min(620px, 100%);
  margin-bottom: 30px;
  padding: 16px;
  border: 1px solid rgba(255, 250, 244, 0.28);
  border-radius: 8px;
  background: rgba(255, 250, 244, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 18px 46px rgba(18, 12, 10, 0.14);
  backdrop-filter: blur(18px) saturate(135%);
}

.hero-countdown > span {
  display: block;
  margin-bottom: 10px;
  color: rgba(255, 250, 244, 0.78);
  font-size: 14px;
  letter-spacing: 0.14em;
}

.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  color: #2f231f;
  background: var(--champagne);
  box-shadow: var(--shadow);
}

.ghost-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid rgba(255, 250, 244, 0.52);
  border-radius: 999px;
  color: #fffaf4;
  background: rgba(255, 250, 244, 0.1);
  text-decoration: none;
  font-weight: 700;
  backdrop-filter: blur(12px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-notes span {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(245, 223, 183, 0.5);
  border-radius: 50%;
  color: var(--champagne);
  background: rgba(49, 38, 31, 0.22);
  font-weight: 900;
}

.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid rgba(49, 38, 31, 0.14);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 250, 244, 0.7);
  text-decoration: none;
  font-weight: 700;
}

.action-button {
  border: 0;
  font: inherit;
  cursor: pointer;
}

.scroll-hint {
  padding-bottom: 8px;
  font-size: 13px;
  color: rgba(255, 250, 244, 0.72);
  writing-mode: vertical-rl;
}

.section {
  padding: clamp(64px, 9vw, 112px) clamp(18px, 4vw, 56px);
}

.section__inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.section-kicker {
  color: var(--rose);
}

h2 {
  max-width: 760px;
  margin-bottom: 32px;
  font-size: clamp(32px, 5vw, 62px);
  line-height: 1.18;
  letter-spacing: 0;
}

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

.invitation-card-section {
  background:
    radial-gradient(circle at 18% 18%, rgba(201, 111, 115, 0.13), transparent 28%),
    linear-gradient(135deg, #fffaf4, #f7ebe4 56%, #eef2ea);
}

.invitation-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(260px, 0.46fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  padding: clamp(34px, 6vw, 72px);
  border: 1px solid rgba(185, 144, 77, 0.22);
  border-radius: 8px;
  background: rgba(255, 250, 244, 0.78);
  box-shadow: var(--soft-shadow);
}

.invitation-card::after {
  content: "囍";
  position: absolute;
  right: clamp(22px, 5vw, 64px);
  bottom: clamp(18px, 4vw, 42px);
  color: rgba(123, 41, 52, 0.08);
  font-family: "ZCOOL XiaoWei", "Noto Serif SC", serif;
  font-size: clamp(90px, 14vw, 168px);
  line-height: 1;
}

.invitation-card__copy {
  position: relative;
  z-index: 1;
}

.invitation-card p {
  position: relative;
  z-index: 1;
  max-width: 780px;
  color: var(--muted);
  font-size: 18px;
  line-height: 2;
}

.soft-photo {
  position: relative;
  min-height: 280px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(185, 144, 77, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 250, 244, 0.72), rgba(245, 223, 183, 0.34)),
    repeating-linear-gradient(135deg, rgba(201, 111, 115, 0.12) 0 1px, transparent 1px 18px);
  box-shadow: var(--shadow);
}

.soft-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--photo-url) center/cover;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.4s ease;
}

.soft-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(49, 38, 31, 0.34), transparent 48%),
    radial-gradient(circle at 25% 20%, rgba(255, 250, 244, 0.28), transparent 28%);
}

.soft-photo.has-photo::before {
  opacity: 1;
}

.soft-photo span {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 1;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--champagne);
  background: rgba(49, 38, 31, 0.42);
  font-weight: 900;
  letter-spacing: 0.08em;
  backdrop-filter: blur(12px);
}

.soft-photo--invitation {
  min-height: 360px;
}

.soft-photo--story {
  min-height: 260px;
}

.soft-photo--details {
  min-height: 260px;
  margin-top: 26px;
  box-shadow: 0 16px 42px rgba(18, 12, 10, 0.18);
}

.story__heading {
  display: grid;
  grid-template-columns: minmax(300px, 0.92fr) minmax(260px, 0.54fr);
  gap: clamp(24px, 5vw, 62px);
  align-items: end;
  margin-bottom: 32px;
}

.story-grid article {
  min-height: 220px;
  padding: 28px;
  border: 1px solid rgba(95, 117, 98, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 250, 244, 0.88), rgba(255, 250, 244, 0.66)),
    var(--paper);
  box-shadow: var(--soft-shadow);
}

.story-grid span {
  color: var(--gold);
  font-weight: 900;
}

.story-grid h3 {
  margin: 34px 0 12px;
  font-size: 26px;
}

.story-grid p,
.rsvp p {
  color: var(--muted);
  line-height: 1.8;
}

.details {
  color: #fffaf4;
  background:
    radial-gradient(circle at 86% 18%, rgba(245, 223, 183, 0.2), transparent 26%),
    linear-gradient(135deg, #4f6253, #7b2934);
}

.schedule-section {
  background:
    radial-gradient(circle at 78% 18%, rgba(245, 223, 183, 0.24), transparent 28%),
    linear-gradient(135deg, #4f6253, #7b2934);
  color: #fffaf4;
}

.schedule-section .section-kicker,
.schedule-section h2 {
  color: #fffaf4;
}

.schedule__inner {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(320px, 1.18fr);
  gap: clamp(28px, 7vw, 88px);
  align-items: start;
}

.schedule__inner > div:first-child p {
  max-width: 520px;
  color: rgba(255, 250, 244, 0.82);
  line-height: 1.8;
}

.schedule-list {
  position: relative;
  display: grid;
  gap: 14px;
  padding-left: 34px;
}

.schedule-list::before {
  content: "";
  position: absolute;
  top: 28px;
  bottom: 28px;
  left: 10px;
  width: 1px;
  background: linear-gradient(rgba(245, 223, 183, 0), rgba(245, 223, 183, 0.64), rgba(245, 223, 183, 0));
}

.schedule-list article {
  position: relative;
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 18px;
  padding: 22px;
  border: 1px solid rgba(255, 250, 244, 0.22);
  border-radius: 8px;
  background: rgba(255, 250, 244, 0.1);
  backdrop-filter: blur(12px);
}

.schedule-list article::before {
  content: "";
  position: absolute;
  left: -43px;
  top: 28px;
  width: 18px;
  height: 18px;
  border: 3px solid var(--champagne);
  border-radius: 50%;
  background: var(--wine);
  box-shadow: 0 0 0 7px rgba(245, 223, 183, 0.12);
}

.schedule-list time {
  position: relative;
  z-index: 1;
  color: var(--champagne);
  font-size: 24px;
  font-weight: 900;
}

.schedule-list h3 {
  margin-bottom: 8px;
  font-size: 24px;
}

.schedule-list p {
  margin-bottom: 0;
  color: rgba(255, 250, 244, 0.78);
  line-height: 1.7;
}

.location-section {
  background:
    radial-gradient(circle at 18% 20%, rgba(201, 111, 115, 0.14), transparent 24%),
    linear-gradient(135deg, #fffaf4, #f7ebe4 48%, #eef2ea);
}

.location__inner {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(340px, 1.1fr);
  gap: clamp(28px, 6vw, 78px);
  align-items: center;
}

.location-copy p {
  max-width: 600px;
  color: var(--muted);
  line-height: 1.8;
}

.location-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.copy-status {
  min-height: 24px;
  margin: 16px 0 0;
  color: var(--wine);
  font-weight: 700;
}

.map-card {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border: 1px solid rgba(95, 117, 98, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 250, 244, 0.92), rgba(245, 223, 183, 0.46)),
    #f8efe7;
  box-shadow: var(--shadow);
}

.map-grid {
  position: absolute;
  inset: 0;
  opacity: 0.55;
  background:
    linear-gradient(90deg, rgba(95, 117, 98, 0.14) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(0deg, rgba(95, 117, 98, 0.14) 1px, transparent 1px) 0 0 / 56px 56px;
}

.map-grid span {
  position: absolute;
  width: 38%;
  height: 2px;
  background: rgba(185, 144, 77, 0.32);
  transform: rotate(var(--road-rotate, 0deg));
}

.map-grid span:nth-child(1) {
  top: 26%;
  left: -4%;
  --road-rotate: 18deg;
}

.map-grid span:nth-child(2) {
  top: 58%;
  right: -6%;
  --road-rotate: -24deg;
}

.map-grid span:nth-child(3) {
  width: 2px;
  height: 48%;
  top: 6%;
  left: 72%;
  --road-rotate: 11deg;
}

.map-grid span:nth-child(4) {
  top: 76%;
  left: 12%;
  --road-rotate: 8deg;
}

.map-route {
  position: absolute;
  inset: 21% 17% 28% 16%;
  border: 3px dashed rgba(123, 41, 52, 0.42);
  border-left-color: transparent;
  border-bottom-color: transparent;
  border-radius: 44% 56% 42% 58%;
  transform: rotate(-8deg);
}

.map-pin {
  position: absolute;
  left: 52%;
  top: 36%;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 50% 50% 50% 8%;
  background: var(--wine);
  box-shadow: 0 18px 36px rgba(123, 41, 52, 0.26);
  transform: rotate(-45deg);
}

.map-pin span {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--champagne);
}

.map-info {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  display: grid;
  gap: 8px;
  padding: 22px;
  border: 1px solid rgba(255, 250, 244, 0.7);
  border-radius: 8px;
  background: rgba(255, 250, 244, 0.84);
  backdrop-filter: blur(14px);
}

.map-info small {
  color: var(--rose);
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.map-info strong {
  font-size: clamp(24px, 3vw, 36px);
}

.map-info span {
  color: var(--muted);
  line-height: 1.6;
}

.details__inner {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(300px, 1.2fr);
  gap: clamp(28px, 7vw, 88px);
  align-items: start;
}

.details .section-kicker,
.details h2 {
  color: #fffaf4;
}

.detail-list {
  display: grid;
  gap: 14px;
}

.detail-row {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 18px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 250, 244, 0.28);
}

.detail-row span {
  color: rgba(255, 250, 244, 0.7);
}

.detail-row strong {
  font-size: 20px;
  line-height: 1.5;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.detail-status {
  min-height: 24px;
  margin: 14px 0 0;
  color: var(--champagne);
  font-weight: 900;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(72px, 1fr));
  gap: 10px;
  width: 100%;
  margin: 0;
}

.countdown div {
  min-height: 86px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  border-radius: 8px;
  color: #fffaf4;
  background: #31261f;
}

.countdown strong {
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1;
}

.countdown span {
  color: var(--champagne);
}

.rsvp {
  position: relative;
  min-height: 68vh;
  display: grid;
  align-items: center;
  color: #fffaf4;
  background:
    linear-gradient(rgba(49, 38, 31, 0.48), rgba(49, 38, 31, 0.58)),
    url("https://images.unsplash.com/photo-1523438885200-e635ba2c371e?auto=format&fit=crop&w=1800&q=85")
      center/cover;
}

.rsvp.has-custom-photo {
  background:
    linear-gradient(rgba(49, 38, 31, 0.52), rgba(49, 38, 31, 0.62)),
    var(--rsvp-photo) center/cover;
}

.blessing-section {
  background:
    linear-gradient(135deg, rgba(255, 250, 244, 0.76), rgba(246, 228, 224, 0.45), rgba(232, 238, 229, 0.62));
}

.blessing__inner {
  display: grid;
  grid-template-columns: minmax(260px, 0.74fr) minmax(320px, 1.26fr);
  gap: clamp(28px, 6vw, 78px);
  align-items: start;
}

.blessing__inner > div:first-child p {
  max-width: 560px;
  color: var(--muted);
  line-height: 1.8;
}

.blessing-wall {
  display: grid;
  gap: 16px;
}

.blessing-form {
  display: grid;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.5), rgba(255, 250, 244, 0.2)),
    var(--glass);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    var(--glass-shadow);
  backdrop-filter: blur(24px) saturate(140%);
}

.blessing-form input,
.blessing-form textarea {
  width: 100%;
  border: 1px solid rgba(49, 38, 31, 0.14);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--ink);
  background: rgba(255, 250, 244, 0.58);
  font: inherit;
  backdrop-filter: blur(12px);
}

.blessing-form textarea {
  min-height: 96px;
  resize: vertical;
}

.blessing-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.blessing-card {
  min-height: 132px;
  padding: 20px;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.5), rgba(255, 250, 244, 0.2)),
    var(--glass);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(22px) saturate(135%);
}

.blessing-card strong {
  display: block;
  margin-bottom: 12px;
  color: var(--wine);
}

.blessing-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.rsvp__inner {
  max-width: 820px;
}

.rsvp .section-kicker,
.rsvp h2,
.rsvp p {
  color: #fffaf4;
}

.rsvp p {
  max-width: 620px;
  margin-bottom: 28px;
  color: rgba(255, 250, 244, 0.9);
}

.signature {
  display: grid;
  gap: 8px;
  margin: 0 0 28px;
  color: rgba(255, 250, 244, 0.84);
}

.signature span {
  letter-spacing: 0.18em;
}

.signature strong {
  color: var(--champagne);
  font-family: "ZCOOL XiaoWei", "Noto Serif SC", serif;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 400;
}

.floating-actions {
  position: fixed;
  right: clamp(12px, 3vw, 24px);
  bottom: clamp(18px, 4vw, 34px);
  z-index: 30;
  display: grid;
  gap: 12px;
}

.floating-actions button {
  position: relative;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(245, 223, 183, 0.58);
  border-radius: 50%;
  color: #fffaf4;
  background:
    linear-gradient(135deg, rgba(255, 250, 244, 0.18), rgba(255, 250, 244, 0.08)),
    rgba(49, 38, 31, 0.32);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 14px 34px rgba(18, 12, 10, 0.18);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  backdrop-filter: blur(18px) saturate(135%);
}

.floating-actions button::before {
  content: attr(data-tip);
  position: absolute;
  right: 56px;
  top: 50%;
  transform: translateY(-50%);
  min-width: 42px;
  padding: 5px 10px;
  border: 1px solid rgba(245, 223, 183, 0.38);
  border-radius: 999px;
  color: var(--champagne);
  background: rgba(49, 38, 31, 0.36);
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  backdrop-filter: blur(14px);
}

.floating-actions button:hover::before,
.floating-actions button:focus-visible::before {
  opacity: 1;
  transform: translate(-4px, -50%);
}

.floating-actions span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--champagne);
  background: rgba(245, 223, 183, 0.12);
  font-size: 20px;
  line-height: 1;
}

@media (max-width: 760px) {
  .floating-actions {
    right: 12px;
    bottom: 18px;
    gap: 10px;
  }

  .floating-actions button {
    width: 44px;
    height: 44px;
  }

  .floating-actions button::before {
    display: none;
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.16);
  }
}

@keyframes petal-fall {
  0% {
    translate: 0 -12vh;
    rotate: 0deg;
  }

  100% {
    translate: var(--petal-drift) 112vh;
    rotate: var(--petal-spin);
  }
}

@keyframes petal-sway {
  0% {
    margin-left: -24px;
  }

  100% {
    margin-left: 24px;
  }
}

@keyframes petal-flutter {
  0% {
    scale: 0.92 1;
  }

  50% {
    scale: 1 0.96;
  }

  100% {
    scale: 0.96 1.02;
  }
}

@media (prefers-reduced-motion: reduce) {
  .petal-layer {
    display: none;
  }
}

@media (max-width: 760px) {
  .hero {
    min-height: 96svh;
    padding: 20px 18px;
  }

  .hero::before,
  .hero::after {
    width: 38vw;
    height: 38vw;
  }

  .nav {
    font-size: 12px;
  }

  .nav__actions {
    gap: 8px;
  }

  .nav-link {
    display: none;
  }

  .music-button {
    padding: 0 12px;
  }

  .hero__content {
    padding: 6vh 0 8vh;
  }

  .wedding-seal {
    width: 62px;
    height: 62px;
    margin-bottom: 18px;
    font-size: 34px;
  }

  .intro {
    font-size: 16px;
  }

  .hero-vow {
    font-size: 17px;
  }

  .hero-notes span {
    width: 48px;
    height: 48px;
  }

  .story-grid,
  .invitation-card,
  .story__heading,
  .schedule__inner,
  .details__inner,
  .location__inner,
  .blessing__inner {
    grid-template-columns: 1fr;
  }

  .schedule-list article {
    grid-template-columns: 76px 1fr;
    padding: 18px;
  }

  .schedule-list::before {
    left: 10px;
  }

  .schedule-list article::before {
    left: -43px;
  }

  .schedule-list time {
    font-size: 20px;
  }

  .story-grid article {
    min-height: 180px;
  }

  .soft-photo,
  .soft-photo--invitation,
  .soft-photo--story,
  .soft-photo--details {
    min-height: 240px;
  }

  .detail-row {
    grid-template-columns: 64px 1fr;
  }

  .detail-row strong {
    font-size: 17px;
  }

  .countdown {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-countdown {
    padding: 12px;
  }

  .countdown div {
    min-height: 74px;
  }

  .map-card {
    min-height: 360px;
  }

  .map-pin {
    left: 50%;
    top: 32%;
    width: 58px;
    height: 58px;
  }

  .blessing-list {
    grid-template-columns: 1fr;
  }
}

/* Liquid glass refinement */
:root {
  --glass: rgba(255, 250, 244, 0.28);
  --glass-strong: rgba(255, 250, 244, 0.52);
  --glass-border: rgba(255, 255, 255, 0.42);
  --glass-shadow: 0 24px 80px rgba(49, 38, 31, 0.14);
}

body {
  background:
    linear-gradient(120deg, rgba(255, 250, 244, 0.94), rgba(246, 228, 224, 0.76) 42%, rgba(232, 238, 229, 0.88)),
    linear-gradient(180deg, #fffaf4, #edf3ee);
  background-attachment: fixed;
}

.section:nth-of-type(odd):not(.hero):not(.details):not(.rsvp),
.invitation-card-section,
.location-section {
  background:
    linear-gradient(135deg, rgba(255, 250, 244, 0.76), rgba(246, 228, 224, 0.45), rgba(232, 238, 229, 0.62));
}

.nav-link,
.music-button,
.date,
.ghost-link,
.hero-notes span,
.secondary-link,
.schedule-list article,
.map-info,
.soft-photo span {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 12px 36px rgba(18, 12, 10, 0.1);
  backdrop-filter: blur(18px) saturate(135%);
}

.nav-link,
.music-button,
.date,
.ghost-link,
.hero-notes span {
  background: rgba(255, 250, 244, 0.15);
}

.primary-link {
  background: rgba(245, 223, 183, 0.84);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    var(--shadow);
  backdrop-filter: blur(14px) saturate(130%);
}

.secondary-link {
  background: rgba(255, 250, 244, 0.42);
}

.invitation-card,
.story-grid article,
.map-card,
.soft-photo,
.blessing-form,
.blessing-card {
  border-color: var(--glass-border);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.5), rgba(255, 250, 244, 0.2)),
    var(--glass);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    var(--glass-shadow);
  backdrop-filter: blur(24px) saturate(140%);
}

.soft-photo {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.42), rgba(245, 223, 183, 0.2)),
    repeating-linear-gradient(135deg, rgba(201, 111, 115, 0.12) 0 1px, transparent 1px 18px);
}

.details,
.schedule-section {
  background:
    linear-gradient(135deg, rgba(79, 98, 83, 0.92), rgba(123, 41, 52, 0.92));
}

.schedule-list article {
  border-color: rgba(255, 250, 244, 0.3);
  background: rgba(255, 250, 244, 0.12);
}

.map-card {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.54), rgba(245, 223, 183, 0.24)),
    rgba(255, 250, 244, 0.28);
}

.map-info {
  background: rgba(255, 250, 244, 0.48);
}

.countdown div {
  border: 1px solid rgba(255, 250, 244, 0.24);
  background: rgba(49, 38, 31, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 18px 44px rgba(49, 38, 31, 0.12);
  backdrop-filter: blur(18px) saturate(130%);
}
