:root {
  --ink: #10100f;
  --ink-soft: #24231f;
  --paper: #f8f7f3;
  --white: #fffefb;
  --gold: #b7a26e;
  --gold-pale: #d9ceb2;
  --red: #8d1e2c;
  --green: #41513f;
  --display: "Baskerville", "Times New Roman", "Songti SC", "STSong", serif;
  --body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --side: clamp(22px, 7vw, 76px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  letter-spacing: 0;
  overflow-x: hidden;
}

body.is-opening {
  overflow: hidden;
}

button,
a {
  font: inherit;
}

button {
  border: 0;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 4px;
}

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

.opening {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--paper);
  overflow: hidden;
  background: #0d0d0c;
  touch-action: none;
  transition: opacity 0.8s ease, visibility 0.8s;
}

.opening::before,
.opening::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50.1%;
  background: #0d0d0c;
  transition: transform 1.25s cubic-bezier(0.76, 0, 0.24, 1);
}

.opening::before {
  left: 0;
}

.opening::after {
  right: 0;
}

.opening.is-leaving::before {
  transform: translateX(-101%);
}

.opening.is-leaving::after {
  transform: translateX(101%);
}

.opening.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.opening__grain {
  position: absolute;
  z-index: 1;
  inset: -50%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.48'/%3E%3C/svg%3E");
  opacity: 0.055;
  pointer-events: none;
  animation: grain-shift 0.3s steps(2) infinite;
}

.opening__content {
  position: relative;
  z-index: 102;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-height: 100svh;
  padding: calc(64px + env(safe-area-inset-top)) 24px calc(42px + env(safe-area-inset-bottom));
  text-align: center;
  animation: opening-content-in 1.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.opening__kicker {
  color: rgba(244, 243, 239, 0.55);
  font: 8px/1 var(--body);
  letter-spacing: 0.36em;
}

.opening__trigger {
  position: relative;
  display: grid;
  width: 160px;
  height: 160px;
  margin: auto 0 28px;
  padding: 0;
  place-items: center;
  color: var(--paper);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

.opening__trigger:focus-visible {
  outline-color: var(--gold);
  outline-offset: 9px;
}

.opening__progress,
.opening__orbit,
.opening__pulse {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.opening__progress {
  z-index: 2;
  overflow: visible;
  transform: rotate(-90deg);
}

.opening__progress circle {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-dasharray: 427.26;
  stroke-dashoffset: calc(427.26 * (1 - var(--hold-progress, 0)));
  filter: drop-shadow(0 0 5px rgba(183, 162, 110, 0.52));
}

.opening__orbit {
  border: 1px solid rgba(244, 243, 239, 0.25);
}

.opening__orbit--outer {
  inset: 8px;
  width: calc(100% - 16px);
  height: calc(100% - 16px);
}

.opening__orbit--outer::before,
.opening__orbit--outer::after {
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 0 12px rgba(244, 243, 239, 0.9);
}

.opening__orbit--outer::before { top: 16px; left: 17px; }
.opening__orbit--outer::after { right: 5px; bottom: 38px; }

.opening__orbit--inner {
  inset: 29px;
  width: calc(100% - 58px);
  height: calc(100% - 58px);
  border-color: rgba(183, 162, 110, 0.4);
  border-style: dashed;
  animation: orbit-spin 18s linear infinite;
}

.opening__monogram {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: baseline;
  gap: 7px;
  font-family: var(--display);
}

.opening__monogram b {
  font: 400 35px/1 var(--display);
}

.opening__monogram i {
  color: var(--gold);
  font: normal 14px/1 Georgia, "Times New Roman", serif;
}

.opening__pulse {
  inset: 25px;
  width: calc(100% - 50px);
  height: calc(100% - 50px);
  border: 1px solid rgba(141, 30, 44, 0.58);
  opacity: 0;
}

.opening.is-holding .opening__pulse {
  animation: hold-pulse 1.15s ease-out infinite;
}

.opening.is-holding .opening__orbit--outer {
  animation: orbit-spin 4s linear infinite;
}

.opening.is-holding .opening__monogram {
  text-shadow: 0 0 20px rgba(244, 243, 239, 0.35);
  transform: scale(0.96);
}

.opening__instruction {
  min-height: 42px;
}

.opening__instruction strong,
.opening__instruction span {
  display: block;
}

.opening__instruction strong {
  font: 400 12px/1.2 var(--body);
  letter-spacing: 0.18em;
}

.opening__instruction span {
  margin-top: 9px;
  color: rgba(244, 243, 239, 0.42);
  font-size: 7px;
  letter-spacing: 0.28em;
}

.opening__meta {
  display: grid;
  grid-template-columns: auto 36px auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-top: auto;
  color: rgba(244, 243, 239, 0.58);
  font-size: 8px;
  letter-spacing: 0.19em;
}

.opening__meta i {
  height: 1px;
  background: rgba(183, 162, 110, 0.5);
}

.opening__meta small { font-size: inherit; }

.opening.is-complete .opening__content {
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 0.5s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes opening-content-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(3%, -2%); }
  50% { transform: translate(-2%, 3%); }
  75% { transform: translate(2%, 2%); }
  100% { transform: translate(-3%, -1%); }
}

@keyframes orbit-spin { to { transform: rotate(360deg); } }

@keyframes hold-pulse {
  0% { opacity: 0.75; transform: scale(0.82); }
  100% { opacity: 0; transform: scale(1.55); }
}

#petal-canvas {
  position: fixed;
  z-index: 101;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

body.invitation-open #petal-canvas { z-index: 5; }

.music-control {
  position: fixed;
  z-index: 80;
  top: calc(14px + env(safe-area-inset-top));
  right: max(14px, calc((100vw - 430px) / 2 + 14px));
  display: grid;
  width: 46px;
  height: 46px;
  padding: 0;
  place-items: center;
  color: var(--red);
  border: 1px solid rgba(183, 162, 110, 0.68);
  border-radius: 50%;
  background: rgba(255, 254, 251, 0.9);
  box-shadow: 0 5px 22px rgba(16, 16, 15, 0.14);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity 0.45s ease, transform 0.45s ease, background 0.25s ease;
  backdrop-filter: blur(8px);
  cursor: pointer;
}

body.invitation-open .music-control {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.music-control__disc {
  position: relative;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(141, 30, 44, 0.34);
  border-radius: 50%;
  animation: music-disc-spin 8s linear infinite;
}

.music-control__disc::before,
.music-control__disc::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.music-control__disc::before {
  inset: 5px;
  border: 1px solid rgba(183, 162, 110, 0.5);
}

.music-control__disc::after {
  width: 4px;
  height: 4px;
  background: var(--red);
}

.music-control__disc i {
  position: absolute;
  right: 3px;
  bottom: 2px;
  color: var(--red);
  font: normal 13px/1 Georgia, "Times New Roman", serif;
}

.music-control.is-paused .music-control__disc {
  animation-play-state: paused;
  opacity: 0.58;
}

@keyframes music-disc-spin { to { transform: rotate(360deg); } }

.date-rail {
  position: fixed;
  z-index: 10;
  top: 50%;
  right: 11px;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  color: rgba(255, 255, 255, 0.66);
  font: 8px/1 var(--body);
  letter-spacing: 0.18em;
  mix-blend-mode: difference;
  transform: translateY(-50%);
}

.date-rail span,
.date-rail strong {
  writing-mode: vertical-rl;
  font-weight: 500;
}

.date-rail i {
  width: 1px;
  height: 46px;
  background: currentColor;
}

.section-light {
  background: var(--paper);
}

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

.section-inner {
  width: min(100%, 760px);
  margin: 0 auto;
  padding-right: var(--side);
  padding-left: var(--side);
}

.chapter-label {
  display: flex;
  align-items: center;
  gap: 13px;
  color: #68665f;
  font-size: 9px;
  letter-spacing: 0.22em;
}

.chapter-label span {
  color: var(--red);
  font: italic 18px/1 var(--display);
  letter-spacing: 0;
}

.chapter-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #d7d3c9;
}

.chapter-label--light {
  color: #96938b;
}

.chapter-label--light::after {
  background: #3d3c38;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s ease, transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.mask-photo {
  overflow: hidden;
}

.mask-photo > img {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.25s cubic-bezier(0.76, 0, 0.24, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.mask-photo.is-visible > img {
  clip-path: inset(0 0 0 0);
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  color: var(--ink);
  background: #d9dde0;
}

.hero__photo,
.hero__shade,
.hero__veil {
  position: absolute;
  inset: 0;
}

.hero__photo {
  background: url("assets/images/098.webp") center 48% / cover no-repeat;
  clip-path: inset(0 50%);
  filter: brightness(0.82) contrast(1.01);
  transform: scale(calc(1.08 + var(--hero-scroll, 0) * 0.04));
  will-change: transform;
}

body.invitation-open .hero__photo {
  animation: hero-reveal 1.9s 0.1s cubic-bezier(0.76, 0, 0.24, 1) both;
}

@keyframes hero-reveal {
  from { clip-path: inset(0 50%); filter: grayscale(0.18) brightness(0.42) contrast(1.06); }
  to { clip-path: inset(0 0); filter: brightness(0.9) contrast(1.01); }
}

.hero__shade {
  background:
    linear-gradient(180deg, rgba(248, 247, 243, 0.22) 0%, transparent 46%),
    linear-gradient(0deg, rgba(21, 21, 19, 0.14) 0%, transparent 42%);
}

.hero__veil {
  left: auto;
  width: 56%;
  background: linear-gradient(105deg, transparent 8%, rgba(255, 255, 255, 0.12) 52%, transparent 85%);
  filter: blur(10px);
  opacity: 0.55;
  transform: translateX(110%) skewX(-8deg);
  opacity: 0;
}

body.invitation-open .hero__veil {
  animation: veil-pass 3.6s 1.2s ease-in-out both;
}

@keyframes veil-pass {
  0% { transform: translateX(110%) skewX(-8deg); }
  48% { opacity: 0.6; }
  100% { opacity: 0; transform: translateX(-210%) skewX(-8deg); }
}

.hero__top {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  padding: calc(22px + env(safe-area-inset-top)) calc(var(--side) + 54px) 0 var(--side);
  font-size: 8px;
  letter-spacing: 0.16em;
  opacity: 0;
  text-shadow: 0 1px 10px rgba(255, 255, 255, 0.55);
}

body.invitation-open .hero__top { animation: hero-copy 0.9s 1.5s ease forwards; }

.hero__content {
  position: absolute;
  z-index: 1;
  top: 74px;
  right: var(--side);
  bottom: auto;
  left: var(--side);
}

.hero__eyebrow {
  margin: 0 0 13px;
  color: #4e4d48;
  font: 11px/1.6 var(--body);
  letter-spacing: 0.18em;
  opacity: 0;
}

body.invitation-open .hero__eyebrow { animation: hero-copy 0.9s 1.7s ease forwards; }

.hero h1 {
  display: grid;
  grid-template-columns: auto auto auto;
  align-items: baseline;
  justify-content: start;
  gap: 10px;
  margin: 0;
  font: 400 clamp(40px, 11.5vw, 72px)/1 var(--display);
  letter-spacing: 0;
  white-space: nowrap;
}

.hero h1 span {
  opacity: 0;
  transform: translateY(45px);
}

body.invitation-open .hero h1 span:first-child {
  animation: hero-name 1s 1.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

body.invitation-open .hero h1 span:last-child {
  margin-left: 0;
  animation: hero-name 1s 2.08s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero h1 i {
  position: static;
  color: var(--gold);
  font: normal 21px/1 Georgia, "Times New Roman", serif;
  opacity: 0;
}

body.invitation-open .hero h1 i { animation: hero-copy 0.8s 2.24s ease forwards; }

.hero__date {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 15px;
  padding-top: 11px;
  border-top: 1px solid rgba(16, 16, 15, 0.35);
  opacity: 0;
}

body.invitation-open .hero__date { animation: hero-copy 0.9s 2.4s ease forwards; }

.hero__date b {
  font: 24px/1 var(--display);
  font-weight: 400;
}

.hero__date span,
.hero__date em {
  font-size: 10px;
  font-style: normal;
  letter-spacing: 0.12em;
}

.hero__date em {
  margin-left: auto;
  padding: 6px 8px;
  color: var(--white);
  border: 1px solid var(--red);
  background: var(--red);
}

@keyframes hero-name {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes hero-copy {
  to { opacity: 1; }
}

.scroll-cue {
  position: absolute;
  z-index: 1;
  right: 18px;
  bottom: 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(16, 16, 15, 0.68);
  font-size: 7px;
  letter-spacing: 0.16em;
  text-decoration: none;
  transform: rotate(90deg) translateX(-100%);
  transform-origin: left top;
}

.scroll-cue i {
  display: block;
  width: 35px;
  height: 1px;
  overflow: hidden;
  background: rgba(16, 16, 15, 0.3);
}

.scroll-cue i::after {
  content: "";
  display: block;
  width: 55%;
  height: 100%;
  background: var(--red);
  animation: scroll-line 1.8s ease-in-out infinite;
}

@keyframes scroll-line {
  from { transform: translateX(-120%); }
  to { transform: translateX(220%); }
}

.invitation__inner {
  padding-top: 105px;
  padding-bottom: 108px;
}

.invitation__lead {
  margin: 76px 0 0;
  font: 400 clamp(25px, 7.7vw, 40px)/1.75 var(--display);
}

.invitation__lead::first-letter {
  color: var(--gold-pale);
  font-size: 1.55em;
}

.invitation__names {
  display: grid;
  grid-template-columns: 1fr 42px 1fr;
  align-items: center;
  gap: 13px;
  margin: 64px 0 48px;
}

.invitation__names div {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.invitation__names div:last-child {
  text-align: right;
}

.invitation__names small {
  color: #858178;
  font-size: 10px;
  letter-spacing: 0.22em;
}

.invitation__names strong {
  font: 400 30px/1 var(--display);
}

.invitation__names > .invitation__happiness {
  color: var(--red);
  background: transparent;
  font: 400 28px/1 "Songti SC", "STSong", serif;
  text-align: center;
}

.invitation__copy {
  margin: 0;
  color: #65635c;
  font-size: 13px;
  line-height: 2.2;
}

.portrait-story {
  padding: 36px 0 92px;
  overflow: hidden;
}

.cinema-frame {
  position: relative;
  width: calc(100% - 36px);
  margin: 0;
  aspect-ratio: 3 / 4.35;
  overflow: hidden;
}

.cinema-frame img {
  height: 100%;
  object-fit: cover;
}

.cinema-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(16, 16, 15, 0.7), transparent 48%);
}

.cinema-frame figcaption {
  position: absolute;
  z-index: 1;
  right: 24px;
  bottom: 31px;
  left: 28px;
}

.cinema-frame figcaption span {
  color: var(--gold-pale);
  font-size: 8px;
  letter-spacing: 0.28em;
}

.cinema-frame figcaption strong {
  display: block;
  margin-top: 14px;
  font: 400 36px/1.42 var(--display);
}

.film-note {
  width: 72%;
  margin: -13px 0 0 auto;
  padding: 42px var(--side) 0 20px;
  border-top: 1px solid var(--gold);
  color: #b8b4aa;
  font: italic 17px/1.9 var(--display);
  text-align: right;
}

.wedding-date .section-inner {
  padding-top: 102px;
  padding-bottom: 112px;
}

.date-lockup {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 12px 1fr;
  align-items: center;
  margin: 88px 0 58px;
}

.date-lockup strong {
  font: 400 clamp(80px, 28vw, 150px)/0.75 var(--display);
  letter-spacing: 0;
}

.date-lockup strong:last-of-type {
  text-align: right;
}

.date-lockup > i {
  width: 1px;
  height: 108px;
  background: var(--red);
  transform: rotate(17deg);
}

.date-lockup__year,
.date-lockup__weekday {
  position: absolute;
  color: #77736b;
  font-size: 9px;
  letter-spacing: 0.3em;
}

.date-lockup__year {
  top: -30px;
  left: 4px;
}

.date-lockup__weekday {
  right: 2px;
  bottom: -31px;
}

.countdown {
  padding: 28px 0 24px;
  border-top: 1px solid #d5d1c8;
  border-bottom: 1px solid #d5d1c8;
}

.countdown > p {
  margin: 0 0 24px;
  color: #77736b;
  font-size: 9px;
  letter-spacing: 0.25em;
  text-align: center;
}

.countdown__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.countdown__grid div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  border-right: 1px solid #dedbd3;
}

.countdown__grid div:last-child {
  border-right: 0;
}

.countdown__grid strong {
  min-width: 2ch;
  font: 400 30px/1 var(--display);
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.countdown__grid span {
  color: #77736b;
  font-size: 9px;
}

.banquet {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 20px;
  margin-top: 52px;
}

.banquet > i {
  background: #d4d0c5;
}

.banquet > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.banquet > div:last-child {
  text-align: right;
}

.banquet span {
  color: var(--red);
  font: 400 21px/1 var(--display);
}

.banquet strong {
  font-size: 8px;
  letter-spacing: 0.12em;
}

.banquet small {
  color: #77736b;
  font-size: 10px;
  line-height: 1.7;
}

.text-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 48px;
  padding: 15px 0;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  background: transparent;
  font-size: 11px;
  letter-spacing: 0.11em;
  cursor: pointer;
}

.text-action span {
  font-size: 20px;
  font-weight: 200;
}

.gallery {
  padding: 104px 0 120px;
  overflow: hidden;
}

.gallery__heading h2 {
  margin: 68px 0 20px;
  font: 400 clamp(36px, 10.5vw, 58px)/1.45 var(--display);
}

.gallery__heading > p {
  margin: 0 0 48px;
  color: #85827a;
  font-size: 9px;
  letter-spacing: 0.16em;
}

.poster-stack {
  width: min(100%, 760px);
  margin: 0 auto;
}

.photo-poster,
.film-strip button {
  position: relative;
  display: block;
  padding: 0;
  overflow: hidden;
  color: white;
  background: #222;
  cursor: zoom-in;
}

.photo-poster img,
.film-strip img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.photo-poster:active img,
.photo-poster:hover img,
.film-strip button:hover img {
  transform: scale(1.025);
}

.photo-poster--wide {
  width: calc(100% - 30px);
  aspect-ratio: 3 / 4;
}

.photo-poster > span {
  position: absolute;
  right: 22px;
  bottom: 22px;
  z-index: 1;
  font: italic 25px/1.2 var(--display);
  text-align: right;
}

.photo-poster > span small {
  font: 9px/1 var(--body);
  letter-spacing: 0.13em;
}

.photo-duo {
  display: grid;
  grid-template-columns: 66% 1fr;
  align-items: end;
  gap: 0;
  margin: 54px 0 90px;
  padding-left: 30px;
}

.photo-poster--tall {
  width: 100%;
  aspect-ratio: 3 / 4.5;
}

.photo-duo__copy {
  position: relative;
  z-index: 1;
  padding: 0 10px 26px 18px;
}

.photo-duo__copy span {
  color: var(--gold);
  font-size: 8px;
  letter-spacing: 0.2em;
}

.photo-duo__copy strong {
  display: block;
  margin: 12px 0 26px;
  font: 400 clamp(25px, 7vw, 38px)/1 var(--display);
  white-space: nowrap;
}

.photo-duo__copy p {
  color: #9b988f;
  font: italic 13px/1.8 var(--display);
  white-space: nowrap;
  writing-mode: vertical-rl;
}

.photo-poster--edge {
  width: 76%;
  margin-left: auto;
  aspect-ratio: 3 / 4.25;
}

.photo-poster--edge > span {
  top: 25px;
  right: auto;
  bottom: auto;
  left: -58px;
  color: var(--gold-pale);
  font-size: 16px;
  letter-spacing: 0.17em;
  writing-mode: vertical-rl;
}

.film-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin: 86px 14px;
  padding: 10px 0;
  border-top: 1px solid #484641;
  border-bottom: 1px solid #484641;
}

.film-strip button {
  aspect-ratio: 2 / 3;
}

.photo-poster--green {
  width: calc(100% - 54px);
  margin: 0 0 0 54px;
  aspect-ratio: 3 / 4.2;
}

.photo-poster--green > span {
  right: auto;
  left: 18px;
  color: white;
  font-size: 18px;
  letter-spacing: 0.1em;
}

.venue .section-inner {
  padding-top: 102px;
  padding-bottom: 112px;
}

.venue__intro {
  margin: 67px 0 42px;
}

.venue__intro > p {
  margin: 0 0 14px;
  color: var(--red);
  font-size: 10px;
  letter-spacing: 0.18em;
}

.venue__intro h2 {
  margin: 0;
  font: 400 clamp(46px, 13vw, 68px)/1.12 var(--display);
}

.venue__intro address {
  margin-top: 26px;
  color: #66635c;
  font-size: 12px;
  font-style: normal;
  line-height: 1.8;
}

.map-shell {
  position: relative;
  aspect-ratio: 1 / 1.06;
  overflow: hidden;
  border: 1px solid #d3cfc6;
  background: #e6e6e1;
}

.map-shell::after {
  content: "AMAP · INTERACTIVE MAP";
  position: absolute;
  z-index: 900;
  top: 13px;
  left: 13px;
  padding: 6px 8px;
  color: #282722;
  background: rgba(255, 255, 255, 0.86);
  font-size: 7px;
  letter-spacing: 0.16em;
  pointer-events: none;
}

.map-shell__map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #e6e6e1;
}

.map-shell .leaflet-tile-pane {
  filter: saturate(0.68) contrast(0.94);
}

.map-shell .leaflet-control-zoom {
  margin-top: 12px;
  margin-right: 12px;
  border: 0;
  border-radius: 0;
  box-shadow: 0 2px 12px rgba(16, 16, 15, 0.14);
}

.map-shell .leaflet-control-zoom a {
  color: var(--ink);
  border-color: #d8d5cd;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.94);
}

.map-shell .leaflet-control-attribution {
  margin-bottom: 74px;
  color: #5c5a54;
  background: rgba(255, 255, 255, 0.78);
  font-size: 7px;
}

.map-shell .leaflet-control-attribution a {
  color: var(--red);
}

.map-shell .leaflet-popup-content-wrapper,
.map-shell .leaflet-popup-tip {
  color: var(--ink);
  border-radius: 0;
  background: var(--white);
  box-shadow: 0 4px 20px rgba(16, 16, 15, 0.18);
}

.map-shell .leaflet-popup-content {
  margin: 11px 14px;
  font-size: 10px;
  line-height: 1.7;
}

.map-shell .leaflet-popup-content strong {
  color: var(--red);
  font: 400 14px/1.5 var(--display);
}

.map-shell > a {
  position: absolute;
  z-index: 1000;
  right: 14px;
  bottom: 14px;
  left: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 16px;
  color: white;
  background: var(--red);
  font-size: 11px;
  letter-spacing: 0.09em;
  text-decoration: none;
}

.venue__note {
  margin: 17px 0 0;
  color: #77736b;
  font-size: 10px;
  line-height: 1.7;
}

.closing {
  position: relative;
  min-height: 88svh;
  overflow: hidden;
  color: white;
  background: var(--ink);
}

.closing__photo {
  position: absolute;
  inset: 0;
  background: url("assets/images/208.webp") center / cover no-repeat;
  filter: brightness(0.86) saturate(1.04);
  transform: scale(1.02);
}

.closing::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10, 10, 9, 0.85), transparent 70%);
}

.closing__content {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 80svh;
  padding: 100px var(--side) 54px;
  flex-direction: column;
  justify-content: flex-end;
}

.closing__content > span {
  color: var(--gold-pale);
  font-size: 8px;
  letter-spacing: 0.2em;
}

.closing__content h2 {
  margin: 20px 0 22px;
  font: 400 clamp(38px, 11vw, 64px)/1.35 var(--display);
}

.closing__content p {
  margin: 0 0 8px;
  font-size: 10px;
  letter-spacing: 0.14em;
}

.closing__content strong {
  font: italic 19px/1.5 var(--display);
  font-weight: 400;
}

.closing__content button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 40px;
  padding: 16px 0;
  color: white;
  border-top: 1px solid rgba(255, 255, 255, 0.58);
  border-bottom: 1px solid rgba(255, 255, 255, 0.58);
  background: transparent;
  font-size: 11px;
  letter-spacing: 0.12em;
  cursor: pointer;
}

.closing footer {
  position: relative;
  z-index: 1;
  padding: 16px var(--side) calc(18px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 7px;
  letter-spacing: 0.17em;
  text-align: center;
}

.lightbox {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  color: white;
  background: rgba(9, 9, 8, 0.96);
}

.lightbox[open] {
  display: grid;
  grid-template-rows: 1fr auto;
  place-items: center;
  animation: lightbox-in 0.35s ease both;
}

.lightbox::backdrop {
  background: #090908;
}

.lightbox img {
  width: 100%;
  height: calc(100svh - 58px);
  object-fit: contain;
}

.lightbox p {
  margin: 0;
  padding: 18px;
  font-size: 7px;
  letter-spacing: 0.18em;
}

.lightbox__close {
  position: fixed;
  z-index: 2;
  top: calc(14px + env(safe-area-inset-top));
  right: 14px;
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.3);
  font-size: 27px;
  font-weight: 200;
  cursor: pointer;
}

@keyframes lightbox-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.share-sheet {
  width: min(100%, 430px);
  max-width: none;
  margin: auto auto 0;
  padding: 28px var(--side) calc(30px + env(safe-area-inset-bottom));
  color: var(--ink);
  border: 0;
  background: var(--paper);
}

.share-sheet[open] {
  animation: share-sheet-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.share-sheet::backdrop {
  background: rgba(10, 10, 9, 0.72);
  backdrop-filter: blur(3px);
}

.share-sheet__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.share-sheet__head span {
  color: var(--red);
  font-size: 7px;
  letter-spacing: 0.2em;
}

.share-sheet__head h2 {
  margin: 9px 0 0;
  font: 400 29px/1.2 var(--display);
}

.share-preview {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  min-height: 76px;
  margin-bottom: 26px;
  overflow: hidden;
  border: 1px solid #d8d3c8;
  background: var(--white);
}

.share-preview img {
  width: 76px;
  height: 100%;
  min-height: 76px;
  object-fit: cover;
}

.share-preview > div {
  display: flex;
  min-width: 0;
  padding: 11px 12px;
  flex-direction: column;
  justify-content: center;
}

.share-preview strong {
  overflow: hidden;
  font: 400 14px/1.35 var(--display);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.share-preview p {
  margin: 5px 0 0;
  color: #6f6c65;
  font-size: 8px;
  line-height: 1.5;
}

.share-preview span {
  margin-top: 4px;
  color: #9a968d;
  font-size: 7px;
}

.share-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 27px;
}

.share-actions button {
  display: flex;
  min-width: 0;
  padding: 0;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.share-actions button[hidden] { display: none; }

.share-actions button > span {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  color: var(--white);
  border-radius: 50%;
  background: var(--red);
  font-size: 17px;
}

.share-actions button > strong {
  overflow-wrap: anywhere;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.share-sheet__close {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  padding: 0;
  place-items: center;
  color: var(--ink);
  border: 1px solid rgba(16, 16, 15, 0.3);
  border-radius: 50%;
  background: transparent;
  font-size: 24px;
  font-weight: 200;
  cursor: pointer;
}

.share-sheet > label {
  display: block;
  margin-bottom: 10px;
  color: #77736b;
  font-size: 9px;
  letter-spacing: 0.14em;
}

.share-sheet__field {
  display: block;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.share-sheet__field input {
  min-width: 0;
  padding: 15px 10px 15px 0;
  color: var(--ink);
  border: 0;
  outline: 0;
  background: transparent;
  font: 11px/1.4 var(--body);
}

.share-sheet > p {
  margin: 14px 0 0;
  color: #77736b;
  font-size: 9px;
  line-height: 1.7;
}

@keyframes share-sheet-in {
  from { opacity: 0; transform: translateY(100%); }
  to { opacity: 1; transform: translateY(0); }
}

.wechat-share-guide {
  position: fixed;
  z-index: 125;
  inset: 0;
  display: flex;
  padding: calc(72px + env(safe-area-inset-top)) 24px calc(28px + env(safe-area-inset-bottom));
  align-items: flex-end;
  color: white;
  background: rgba(9, 9, 8, 0.88);
  backdrop-filter: blur(5px);
}

.wechat-share-guide[hidden] { display: none; }

.wechat-share-guide__pointer {
  position: absolute;
  top: calc(4px + env(safe-area-inset-top));
  right: 15px;
  color: var(--gold-pale);
  font: 300 62px/1 var(--display);
  animation: share-pointer 1.2s ease-in-out infinite alternate;
}

.wechat-share-guide__content {
  width: min(100%, 382px);
  margin: 0 auto;
}

.wechat-share-guide__content > span {
  color: var(--gold-pale);
  font-size: 8px;
  letter-spacing: 0.2em;
}

.wechat-share-guide__content h2 {
  margin: 16px 0 10px;
  font: 400 clamp(34px, 10vw, 48px)/1.32 var(--display);
}

.wechat-share-guide__content > p {
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 10px;
}

.share-preview--dark {
  margin-bottom: 22px;
  color: var(--ink);
  border: 0;
}

.wechat-share-guide__content > button {
  width: 100%;
  padding: 15px;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.48);
  background: transparent;
  font-size: 11px;
  letter-spacing: 0.12em;
  cursor: pointer;
}

body.is-sharing { overflow: hidden; }

@keyframes share-pointer {
  from { opacity: 0.58; transform: translate(-5px, 5px); }
  to { opacity: 1; transform: translate(0, 0); }
}

.toast {
  position: fixed;
  z-index: 130;
  bottom: calc(22px + env(safe-area-inset-bottom));
  left: 50%;
  max-width: calc(100% - 44px);
  padding: 11px 15px;
  color: white;
  background: rgba(16, 16, 15, 0.92);
  font-size: 11px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 14px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  white-space: nowrap;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* 仅约束为移动端画布，正文恢复初版的暖白与暗场交替。 */
main {
  width: min(100%, 430px);
  margin: 0 auto;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 0 80px rgba(0, 0, 0, 0.5);
}

.section-inner,
.poster-stack {
  width: 100%;
}

.invitation__names > .invitation__happiness {
  color: var(--red);
  font: normal 20px/1 Georgia, "Times New Roman", serif;
}

.date-rail { display: none; }

@media (min-width: 520px) {
  body { padding: 0 calc((100vw - 430px) / 2); }
  .opening__content { width: 430px; margin: 0 auto; }
}

@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; }
  .reveal { opacity: 1; transform: none; }
  .mask-photo > img { clip-path: none; }
  #petal-canvas { display: none; }
}
