:root {
  --paper: #fffaf6;
  --paper-2: #fff5ef;
  --paper-3: #f7ebe4;
  --blush: #f2ddd6;
  --rose: #bf7d74;
  --rose-deep: #9e6c66;
  --gold: #d3b08a;
  --gold-deep: #bf9871;
  --ink: #6f564f;
  --muted: #998179;
  --line: rgba(201, 163, 128, 0.45);
  --shadow: 0 20px 44px rgba(166, 130, 110, 0.12);
  --radius: 26px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Songti SC", serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 15%, rgba(242, 221, 214, 0.62), transparent 18%),
    radial-gradient(circle at 86% 12%, rgba(244, 227, 220, 0.8), transparent 17%),
    radial-gradient(circle at 20% 88%, rgba(248, 230, 221, 0.6), transparent 18%),
    linear-gradient(180deg, #fdf8f4 0%, #fffdfb 30%, #fcf4ef 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  pointer-events: none;
  opacity: 0.42;
}
body::before {
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0 4%, rgba(211,176,138,.08) 4% 4.2%, transparent 4.2% 95.8%, rgba(211,176,138,.08) 95.8% 96%, transparent 96%),
    linear-gradient(180deg, transparent 0 2.2%, rgba(211,176,138,.08) 2.2% 2.35%, transparent 2.35% 97.65%, rgba(211,176,138,.08) 97.65% 97.8%, transparent 97.8%);
}
body::after {
  width: min(40vw, 360px);
  height: min(40vw, 360px);
  right: -120px;
  top: -60px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(243, 214, 205, 0.68) 0%, rgba(243,214,205,0.12) 60%, transparent 72%);
  filter: blur(6px);
}

.page-shell {
  position: relative;
  width: min(100%, 860px);
  margin: 0 auto;
  padding: 18px 16px 42px;
}

.page-border {
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(211, 176, 138, 0.55);
  border-radius: 14px;
  pointer-events: none;
}
.page-border::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(211, 176, 138, 0.25);
  border-radius: 10px;
}
.corner {
  position: absolute;
  width: 58px;
  height: 58px;
}
.corner::before,
.corner::after {
  content: "";
  position: absolute;
  border-color: rgba(191,152,113,.8);
}
.corner.tl { left: 10px; top: 10px; }
.corner.tr { right: 10px; top: 10px; transform: scaleX(-1); }
.corner.bl { left: 10px; bottom: 10px; transform: scaleY(-1); }
.corner.br { right: 10px; bottom: 10px; transform: scale(-1); }
.corner::before {
  inset: 0;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
  border-radius: 12px 0 0 0;
  color: rgba(191,152,113,.95);
}
.corner::after {
  width: 24px;
  height: 24px;
  left: 12px;
  top: 12px;
  border-top: 2px solid rgba(191,152,113,.75);
  border-left: 2px solid rgba(191,152,113,.75);
  border-radius: 10px 0 0 0;
}

.section-card {
  position: relative;
  overflow: hidden;
  margin: 14px 0;
  padding: 30px 24px;
  background: linear-gradient(180deg, rgba(255,250,246,.98), rgba(255,249,244,.95));
  border: 1px solid rgba(211, 176, 138, 0.38);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.section-card::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(211,176,138,.16);
  border-radius: calc(var(--radius) - 8px);
  pointer-events: none;
}

.hero {
  min-height: 88svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: 70px;
  padding-bottom: 70px;
  background:
    radial-gradient(circle at 88% 12%, rgba(241, 222, 217, 0.85), transparent 18%),
    radial-gradient(circle at 10% 80%, rgba(244, 228, 222, 0.7), transparent 20%),
    linear-gradient(180deg, rgba(255,250,246,.98), rgba(255,247,242,.96));
}
.hero h1 {
  position: relative;
  margin: 12px 0 8px;
  color: var(--rose);
  font-size: clamp(48px, 10vw, 88px);
  letter-spacing: .06em;
  font-weight: 600;
  text-shadow: 0 2px 0 rgba(255,255,255,.9);
}
.hero-subtitle {
  margin: 0;
  color: var(--rose);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 5vw, 54px);
  font-style: italic;
  line-height: 1.2;
}
.hero-flourish,
.section-flourish {
  color: var(--gold-deep);
  font-size: 26px;
  line-height: 1;
}
.hero-flourish { margin-bottom: 2px; }
.section-flourish { margin: 8px 0 12px; text-align: center; }
.section-flourish.lefted { text-align: left; }

.mini-divider {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 14px;
  color: var(--gold-deep);
}
.mini-divider span {
  width: 96px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(191,152,113,.9), transparent);
}
.mini-divider i { font-style: normal; color: #c69a97; }

.hero-copy {
  margin: 0;
  max-width: 560px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.8;
}
.hero-names {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  font-size: clamp(22px, 4vw, 34px);
  color: var(--rose-deep);
  font-weight: 700;
}
.hero-names b { color: #d09b9a; font-weight: 600; }
.date-pill {
  margin-top: 20px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(211,176,138,.55);
  background: rgba(255, 250, 246, .9);
  color: var(--rose-deep);
  font-weight: 700;
  letter-spacing: .15em;
}
.scroll-tip {
  margin-top: 18px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .12em;
}

.floral-cloud,
.arch {
  position: absolute;
  pointer-events: none;
  opacity: .55;
}
.floral-cloud {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(250,240,235,.92) 0 24%, transparent 25%),
    radial-gradient(circle at 35% 34%, rgba(244, 219, 215, .95) 0 18%, transparent 19%),
    radial-gradient(circle at 65% 36%, rgba(244, 219, 215, .9) 0 18%, transparent 19%),
    radial-gradient(circle at 32% 65%, rgba(247, 230, 225, .88) 0 19%, transparent 20%),
    radial-gradient(circle at 66% 66%, rgba(247, 230, 225, .88) 0 19%, transparent 20%);
  filter: blur(.3px);
}
.floral-top-right { right: -36px; top: -24px; transform: scale(1.05); }
.floral-bottom-left { left: -40px; bottom: -38px; transform: scale(1.12); opacity: .45; }
.arch {
  color: rgba(191, 152, 113, 0.28);
  font-size: 180px;
  font-family: Georgia, serif;
  transform: rotate(90deg);
}
.arch-left { left: 38px; top: 150px; }
.arch-right { right: 28px; bottom: 110px; transform: rotate(-90deg); }

.section-kicker {
  margin: 0 0 8px;
  color: var(--gold-deep);
  font-size: 12px;
  letter-spacing: .26em;
  text-transform: uppercase;
  font-weight: 700;
}
.section-card h2 {
  margin: 0;
  color: var(--rose);
  font-size: clamp(28px, 4.8vw, 40px);
  font-weight: 600;
}
.section-card p:not(.section-kicker):not(.asset-tip):not(.map-note):not(.scroll-tip) {
  line-height: 1.9;
}
.intro-card, .wishes-card { text-align: center; }

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}
.carousel-count {
  min-width: 62px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(244, 232, 225, .95);
  border: 1px solid rgba(211,176,138,.35);
  color: var(--rose-deep);
  text-align: center;
  font-weight: 700;
}
.carousel-frame,
.map-frame {
  margin-top: 12px;
  padding: 14px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,251,248,.92), rgba(250,240,233,.82));
  border: 1px solid rgba(211,176,138,.38);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.6);
}
.carousel {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #f7efe9;
}
.carousel-track {
  display: flex;
  transition: transform .38s ease;
  will-change: transform;
}
.carousel-slide {
  min-width: 100%;
  aspect-ratio: 4 / 3;
}
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 250, 246, .86);
  color: var(--rose-deep);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(120, 95, 88, .12);
}
.carousel-btn.prev { left: 12px; }
.carousel-btn.next { right: 12px; }
.carousel-dots {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.78);
  cursor: pointer;
  transition: .2s;
}
.carousel-dot.active {
  width: 24px;
  border-radius: 999px;
  background: var(--rose);
}
.asset-tip,
.map-note {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
}
code {
  padding: 2px 6px;
  border-radius: 6px;
  background: #fff0ed;
  color: var(--rose-deep);
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.detail-item {
  padding: 18px 18px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,251,248,.95), rgba(249,239,232,.9));
  border: 1px solid rgba(211,176,138,.32);
}
.detail-item.full { grid-column: 1 / -1; }
.detail-item small {
  display: block;
  margin-bottom: 10px;
  color: var(--gold-deep);
  letter-spacing: .12em;
}
.detail-item strong {
  display: block;
  color: var(--rose-deep);
  font-size: 18px;
  line-height: 1.7;
}
.detail-item p { margin: 6px 0 0; color: var(--muted); }

.map-heading { align-items: center; }
.map-pin { font-size: 28px; color: var(--gold-deep); }
.static-map-link {
  position: relative;
  display: block;
  width: 100%;
  min-height: 360px;
  overflow: hidden;
  border-radius: 16px;
  background: #f7eee9;
  text-decoration: none;
  color: inherit;
}
.static-map-image {
  display: block;
  width: 100%;
  height: 360px;
  object-fit: cover;
}
.static-map-fallback {
  min-height: 360px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  background:
    radial-gradient(circle at 24% 22%, rgba(214,190,157,.20), transparent 22%),
    radial-gradient(circle at 78% 76%, rgba(234,205,198,.34), transparent 25%),
    linear-gradient(180deg, #fffaf6, #f7ebe4);
}
.static-map-fallback .location-pin {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff6f1;
  border: 1px solid rgba(211,176,138,.5);
  color: var(--rose);
  font-size: 34px;
  box-shadow: 0 8px 20px rgba(166,111,104,.10);
}
.static-map-fallback strong {
  margin-top: 4px;
  color: var(--rose-deep);
  font-size: 20px;
}
.static-map-fallback span {
  max-width: 330px;
  color: var(--muted);
  line-height: 1.8;
}
.static-map-fallback em {
  margin-top: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(211,176,138,.38);
  background: #fff2ed;
  color: var(--rose-deep);
  font-size: 13px;
  font-style: normal;
}
.map-actions {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 10px;
  margin-top: 14px;
}
.btn {
  min-height: 48px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  border: 0;
  font: inherit;
}
.btn-soft {
  background: #f9eee8;
  color: var(--rose-deep);
  border: 1px solid rgba(211,176,138,.35);
}
.btn-primary {
  background: linear-gradient(135deg, #c89486, #a66f68);
  color: #fff;
  box-shadow: 0 12px 22px rgba(166,111,104,.22);
}

.wishes-card {
  background: linear-gradient(180deg, rgba(255,251,248,.96), rgba(252,244,238,.94));
}
.signature {
  margin-top: 18px;
  color: var(--rose-deep);
  font-weight: 700;
  font-size: 20px;
}
footer {
  padding: 20px 0 8px;
  text-align: center;
  color: #af958d;
  font-size: 12px;
}
footer p { margin: 4px 0; }
footer .domain {
  color: var(--rose-deep);
  font-weight: 700;
  letter-spacing: .04em;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(28px + env(safe-area-inset-bottom));
  transform: translate(-50%, 16px);
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(88, 66, 62, .92);
  color: #fff;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: .25s;
  z-index: 9999;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 640px) {
  .page-shell { padding: 10px 10px 28px; }
  .page-border { inset: 4px; }
  .section-card { padding: 24px 18px; border-radius: 22px; }
  .hero { min-height: 84svh; padding-top: 58px; }
  .hero-copy { font-size: 17px; }
  .mini-divider span { width: 58px; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-item.full { grid-column: auto; }
  .static-map-link, .static-map-image, .static-map-fallback { min-height: 320px; height: 320px; }
  .map-actions { grid-template-columns: 1fr; }
  .arch { font-size: 120px; }
  .arch-left { left: 12px; top: 150px; }
  .arch-right { right: 8px; bottom: 118px; }
  .floral-cloud { width: 220px; height: 220px; }
  .floral-top-right { right: -50px; top: -42px; }
  .floral-bottom-left { left: -40px; bottom: -48px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
