@font-face {
  font-family: "LongCang";
  src: url("./assets/fonts/LongCang-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Noto Serif SC";
  src: url("./assets/fonts/NotoSerifSC-300.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Noto Serif SC";
  src: url("./assets/fonts/NotoSerifSC-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Noto Serif SC";
  src: url("./assets/fonts/NotoSerifSC-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #edeae2;
  --paper-light: #f6f4ee;
  --paper-deep: #e6e0d2;
  --ink: #262723;
  --muted: #716d64;
  --line: #b8aa91;
  --gold: #a48756;
  --f-cn: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --f-brush: "LongCang", "STKaiti", "KaiTi", serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-cn);
  font-weight: 400;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.locked { overflow: hidden; height: 100vh; }
main { overflow: hidden; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: none; background: none; cursor: pointer; }

.overline, .topline-date, .read-on, .image-edition, .letter-rule, .story figcaption,
.event-label, .event-row > span, .venue-link, .last-photo-copy > span, .closing small,
.countdown .cd span, .gate-date, .gate-hint {
  font-family: Georgia, "Noto Serif SC", serif;
  letter-spacing: .18em;
}
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1.15s var(--ease), transform 1.15s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ================= GATE ================= */
.gate {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  background: var(--paper); padding: 32px;
  transition: opacity 1.1s var(--ease), visibility 1.1s;
}
.gate.hide { opacity: 0; visibility: hidden; }
.gate::before { content: ""; position: absolute; inset: 16px; border: 1px solid var(--line); pointer-events: none; }
.gate-inner { position: relative; text-align: center; max-width: 520px; width: 100%; }
.seal { width: 108px; height: 108px; margin: 0 auto 32px; position: relative; display: grid; place-items: center; }
.seal svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 30s linear infinite; }
.seal .mono { font: italic 26px Georgia, serif; letter-spacing: .04em; color: var(--gold); }
@keyframes spin { to { transform: rotate(360deg); } }
.gate-en { font: italic 400 clamp(28px, 7vw, 40px)/1.1 Georgia, serif; color: var(--ink); margin: 0 0 10px; letter-spacing: .01em; }
.gate-names { font-family: var(--f-brush); font-weight: 400; font-size: clamp(40px, 10vw, 58px); line-height: 1.3; letter-spacing: .04em; margin: 0; }
.gate-names em { font-family: Georgia, serif; font-style: italic; font-size: .6em; color: var(--gold); padding: 0 .18em; vertical-align: .08em; }
.gate-date { margin-top: 16px; font-size: 13px; color: var(--muted); text-indent: .18em; }
.gate-btn {
  margin-top: 46px; padding: 15px 48px; border: 1px solid var(--gold); border-radius: 999px;
  color: var(--gold); font-size: 14px; letter-spacing: .34em; text-indent: .34em;
  position: relative; overflow: hidden; transition: color .6s var(--ease);
}
.gate-btn::before { content: ""; position: absolute; inset: 0; background: var(--gold); transform: translateY(101%); transition: transform .6s var(--ease); z-index: -1; }
.gate-btn:hover { color: var(--paper-light); }
.gate-btn:hover::before { transform: translateY(0); }
.gate-hint { margin-top: 22px; font-size: 12px; color: var(--muted); }

/* ================= MUSIC ================= */
.music-button {
  position: fixed; z-index: 90; right: 22px; bottom: 23px;
  display: flex; align-items: center; gap: 9px; border: 1px solid #d1c5ae; border-radius: 50px;
  background: #f7f4ede8; color: #4f473a; padding: 10px 16px;
  box-shadow: 0 5px 25px #0002; backdrop-filter: blur(12px);
  opacity: 0; transform: translateY(8px); pointer-events: none;
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.music-button.show { opacity: 1; transform: none; pointer-events: auto; }
.music-glyph { font: 22px Georgia, serif; line-height: 1; }
.music-label { font-size: 12px; letter-spacing: .1em; }
.music-button[aria-pressed="true"] .music-glyph { animation: pulse 2.5s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.22); } }

/* ================= COVER ================= */
.cover { min-height: 100svh; display: grid; grid-template-columns: 45% 55%; background: var(--paper); }
.cover-copy { padding: clamp(30px, 5vw, 82px); display: flex; flex-direction: column; justify-content: space-between; position: relative; }
.cover-topline { display: flex; justify-content: space-between; align-items: start; }
.monogram { font: italic 35px Georgia, serif; letter-spacing: -.08em; }
.monogram span { font-size: .65em; color: var(--gold); margin: 0 7px; }
.topline-date { font-size: 11px; color: var(--muted); padding-top: 7px; }
.cover-title { padding: 4vh 0; }
.overline { color: var(--gold); font-size: 12px; margin: 0 0 30px; }
.cover h1 {
  display: flex; flex-direction: column; align-items: flex-start; margin: 0;
  font-family: var(--f-brush); font-size: clamp(56px, 6.1vw, 94px); font-weight: 400;
  line-height: 1.27; letter-spacing: .02em; white-space: nowrap;
}
.rare-glyph { font-family: var(--f-cn); font-size: .74em; vertical-align: .1em; }
.cover h1 i { font: italic 58px/.85 Georgia, serif; color: var(--gold); margin: 10px 0 6px 1.7em; }
.hairline { width: 95px; height: 1px; background: var(--gold); margin: 39px 0 30px; }
.cover-sub { font-size: 16px; line-height: 2; letter-spacing: .15em; margin: 0; }
.read-on { display: inline-flex; align-items: center; gap: 23px; width: max-content; font-size: 12px; color: var(--muted); }
.read-on span { font-size: 19px; color: var(--gold); }
.cover-image { position: relative; min-height: 100svh; background: #a5a5a2; }
.cover-image img { object-position: center 22%; filter: contrast(.97); }
.image-edition { position: absolute; bottom: 33px; right: 34px; color: #fff; font-size: 11px; text-shadow: 0 1px 6px #0008; }

/* ================= LETTER ================= */
.letter { max-width: 1350px; margin: auto; padding: 90px clamp(34px, 9vw, 145px) 135px; }
.letter-rule { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 18px; font-size: 11px; color: var(--gold); }
.letter-rule span:last-child { font-size: 19px; }
.letter-lead { margin: 110px 0 24px; font-size: 18px; letter-spacing: .22em; color: var(--gold); }
.letter h2 { font-family: var(--f-brush); font-size: clamp(52px, 5.8vw, 86px); line-height: 1.5; letter-spacing: .025em; font-weight: 400; margin: 0; }
.letter h2 span { color: var(--gold); border-bottom: 1px solid var(--gold); padding-bottom: .11em; }
.letter-bottom { display: flex; justify-content: space-between; align-items: end; margin-top: 85px; border-bottom: 1px solid var(--line); padding-bottom: 24px; }
.letter-bottom p { font-size: 16px; line-height: 2.2; color: #666258; letter-spacing: .12em; margin: 0; }
.letter-bottom > span { font: italic 29px Georgia, serif; color: var(--gold); }

/* ================= STORY ================= */
.story { padding: 0 clamp(34px, 9vw, 145px) 140px; display: grid; grid-template-columns: 55% 35%; justify-content: space-between; align-items: start; max-width: 1500px; margin: auto; }
.story figure { margin: 0; }
.story-main img { aspect-ratio: 3/4; object-position: center 24%; }
.story-side { padding-top: 130px; }
.story-quote { font-family: var(--f-brush); font-size: clamp(30px, 3.3vw, 50px); line-height: 1.55; letter-spacing: .025em; margin: 0 0 70px; }
.story-side img { aspect-ratio: 3/4; object-position: center 24%; }
.story figcaption { font-size: 11px; color: var(--gold); padding-top: 13px; }

/* ================= GALLERY ================= */
.gallery { padding: 95px clamp(34px, 9vw, 145px) 150px; background: var(--paper-light); }
.gallery-heading { max-width: 1250px; margin: auto; display: grid; grid-template-columns: 1fr 2fr; align-items: end; column-gap: 50px; border-top: 1px solid var(--line); padding-top: 24px; }
.gallery-heading > span { color: var(--gold); font: 11px Georgia, serif; letter-spacing: .21em; align-self: start; }
.gallery-heading h2 { font-family: var(--f-brush); font-size: clamp(50px, 5.8vw, 86px); font-weight: 400; line-height: 1.35; margin: 0; }
.gallery-heading p { grid-column: 2; color: var(--muted); font-size: 15px; letter-spacing: .1em; margin: 15px 0 0; }
.gallery-images { max-width: 1250px; margin: 85px auto 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(30px, 6vw, 90px); row-gap: 70px; align-items: start; }
.gallery-images figure { margin: 0; cursor: pointer; }
.gallery-images figure:nth-child(2) { margin-top: 130px; }
.gallery-images figure:nth-child(3) { width: 86%; margin-left: 12%; }
.gallery-images figure:nth-child(4) { width: 91%; margin-top: 85px; }
.gallery-images img { aspect-ratio: 3/4; object-position: center 24%; transition: transform 1.4s var(--ease); }
.gallery-images figure:hover img { transform: scale(1.03); }
.gallery-images figcaption { color: var(--gold); font: 11px Georgia, serif; letter-spacing: .17em; padding-top: 13px; }

/* ================= EVENT ================= */
.event { background: var(--paper-deep); color: var(--ink); padding: 70px clamp(34px, 9vw, 145px) 115px; }
.event-label { max-width: 1250px; margin: auto; display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 17px; color: var(--gold); font-size: 11px; }
.event-content { max-width: 1250px; margin: 90px auto 0; display: grid; grid-template-columns: 50% 50%; align-items: end; }
.event-date { display: grid; grid-template-columns: 1fr auto; align-items: start; max-width: 490px; }
.event-date .month { font: 16px/1.65 Georgia, serif; letter-spacing: .2em; color: var(--gold); padding-top: 25px; }
.event-date strong { grid-row: span 2; font: normal clamp(185px, 20vw, 310px)/.83 Georgia, serif; letter-spacing: -.09em; color: var(--ink); }
.event-date .weekday { align-self: end; font-size: 14px; letter-spacing: .16em; color: var(--muted); }
.event-info { padding-left: clamp(20px, 5vw, 80px); }
.event-row { border-bottom: 1px solid var(--line); padding: 22px 0; }
.event-row > span { font-size: 11px; color: var(--gold); }
.event-row p { font-size: clamp(22px, 2.5vw, 32px); font-weight: 400; letter-spacing: .12em; margin: 17px 0 0; color: var(--ink); }
.event-row.addr-row p { font-size: clamp(14px, 1.5vw, 17px); line-height: 1.9; letter-spacing: .08em; color: #666258; }
.event-row.addr-row em { font-style: normal; color: var(--gold); }
.venue-link { display: inline-flex; align-items: center; gap: 38px; font-size: 13px; margin-top: 36px; border-bottom: 1px solid var(--gold); padding-bottom: 10px; color: var(--gold); }
.venue-link span { font-size: 19px; letter-spacing: 0; }
.countdown { max-width: 1250px; margin: 92px auto 0; display: flex; gap: clamp(26px, 6vw, 76px); border-top: 1px solid var(--line); padding-top: 36px; }
.countdown .cd b { display: block; font: normal clamp(38px, 5vw, 62px)/1 Georgia, serif; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.countdown .cd span { display: block; margin-top: 13px; font-size: 11px; color: var(--muted); }
.countdown-note { max-width: 1250px; margin: 26px auto 0; font-size: 12px; letter-spacing: .2em; color: var(--muted); }

/* ================= LAST PHOTO ================= */
.last-photo { height: min(90vh, 900px); position: relative; background: #aaa; }
.last-photo img { object-position: center 32%; filter: brightness(.8) saturate(.8); }
.last-photo-copy { position: absolute; left: clamp(34px, 9vw, 145px); bottom: clamp(35px, 7vw, 90px); color: #fff; text-shadow: 0 2px 20px #0008; }
.last-photo-copy > span { display: block; font-size: 12px; margin-bottom: 19px; }
.last-photo-copy strong { display: block; font-family: var(--f-brush); font-size: clamp(56px, 6.8vw, 98px); font-weight: 400; line-height: 1.35; letter-spacing: .02em; }

/* ================= CLOSING ================= */
.closing { text-align: center; padding: 110px 20px 90px; background: var(--paper-light); }
.closing .seal { width: 82px; height: 82px; margin-bottom: 30px; }
.closing .seal .mono { font-size: 20px; }
.closing .overline { margin-bottom: 30px; }
.closing h2 { font-family: var(--f-brush); font-size: clamp(52px, 5.8vw, 88px); font-weight: 400; letter-spacing: .03em; margin: 0; }
.closing-mark { display: block; width: 7px; height: 7px; margin: 30px auto; position: relative; }
.closing-mark::before { content: ""; position: absolute; inset: 0; background: var(--gold); transform: rotate(45deg); }
.closing p:not(.overline) { font-size: 19px; letter-spacing: .18em; margin: 0 0 38px; }
.closing p i { font: italic 23px Georgia, serif; color: var(--gold); margin: 0 8px; }
.closing small { font-size: 11px; color: var(--muted); }

/* ================= LIGHTBOX ================= */
.lb { position: fixed; inset: 0; z-index: 120; background: rgba(18, 16, 14, .94); backdrop-filter: blur(6px); display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility .5s; }
.lb.on { opacity: 1; visibility: visible; }
.lb img { max-width: 92vw; max-height: 86vh; width: auto; height: auto; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.lb-close { position: absolute; top: 20px; right: 24px; color: rgba(251, 249, 245, .85); font-size: 28px; line-height: 1; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; transition: background .4s; }
.lb-close:hover { background: rgba(251, 249, 245, .12); }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); color: rgba(251, 249, 245, .8); font-size: 34px; line-height: 1; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; transition: background .4s; }
.lb-nav:hover { background: rgba(251, 249, 245, .12); }
.lb-prev { left: min(4vw, 32px); }
.lb-next { right: min(4vw, 32px); }

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

/* ================= RESPONSIVE ================= */
@media (max-width: 760px) {
  .cover { display: flex; flex-direction: column; min-height: auto; max-width: 100vw; }
  .cover-image { order: 0; height: 61svh; min-height: 0; }
  .cover-image img { object-position: center 18%; }
  .image-edition { right: 18px; bottom: 18px; font-size: 9px; }
  .cover-copy { order: 1; width: 100%; min-width: 0; min-height: 39svh; padding: 26px 29px 31px; }
  .cover-topline { position: absolute; top: -61svh; left: 0; right: 0; padding: 24px 29px; color: #fff; z-index: 1; text-shadow: 0 1px 10px #0008; }
  .monogram { font-size: 27px; }
  .monogram span { color: #f3e0b5; }
  .topline-date { color: #fff; font-size: 10px; padding-top: 5px; }
  .cover-title { padding: 7px 0 19px; }
  .cover .overline { font-size: 10px; margin: 0 0 10px; letter-spacing: .22em; }
  .cover h1 { flex-direction: row; align-items: baseline; gap: 3px; font-size: clamp(36px, 9.6vw, 50px); letter-spacing: 0; line-height: 1.3; }
  .cover h1 i { font-size: 29px; margin: 0 1px; }
  .hairline { width: 58px; margin: 17px 0 13px; }
  .cover-sub { font-size: 13px; line-height: 1.7; letter-spacing: .1em; }
  .read-on { font-size: 10px; gap: 12px; }
  .read-on span { font-size: 16px; }
  .letter { padding: 64px 30px 80px; }
  .letter-rule { font-size: 9px; }
  .letter-lead { margin: 82px 0 18px; font-size: 15px; }
  .letter h2 { font-size: clamp(35px, 8.8vw, 52px); line-height: 1.55; letter-spacing: 0; }
  .letter-bottom { margin-top: 56px; }
  .letter-bottom p { font-size: 13px; line-height: 2; }
  .letter-bottom > span { font-size: 21px; white-space: nowrap; margin-left: 10px; }
  .story { display: block; padding: 0 30px 90px; }
  .story-main { width: 88%; }
  .story-side { padding: 65px 0 0 22%; }
  .story-quote { font-size: 34px; margin-bottom: 35px; }
  .story figcaption { font-size: 10px; }
  .gallery { padding: 65px 30px 100px; }
  .gallery-heading { display: block; padding-top: 18px; }
  .gallery-heading > span { font-size: 10px; }
  .gallery-heading h2 { font-size: 52px; margin-top: 26px; }
  .gallery-heading p { font-size: 13px; margin-top: 12px; }
  .gallery-images { display: block; margin-top: 50px; }
  .gallery-images figure { width: 85% !important; margin: 0 0 45px !important; }
  .gallery-images figure:nth-child(even) { margin-left: 15% !important; }
  .gallery-images img { aspect-ratio: 4/5; }
  .gallery-images figcaption { font-size: 10px; }
  .event { padding: 47px 30px 80px; }
  .event-label { font-size: 10px; }
  .event-content { display: block; margin-top: 60px; }
  .event-date { max-width: 370px; }
  .event-date .month { font-size: 12px; padding-top: 14px; }
  .event-date strong { font-size: clamp(150px, 43vw, 230px); }
  .event-date .weekday { font-size: 11px; }
  .event-info { padding: 65px 0 0; }
  .event-row { padding: 18px 0; }
  .event-row > span { font-size: 10px; }
  .event-row p { font-size: 22px; margin-top: 11px; }
  .event-row.addr-row p { font-size: 14px; }
  .venue-link { font-size: 12px; }
  .countdown { margin-top: 62px; gap: 22px; padding-top: 28px; }
  .countdown .cd b { font-size: 36px; }
  .countdown .cd span { font-size: 10px; }
  .last-photo { height: 73svh; }
  .last-photo img { object-position: center 26%; }
  .last-photo-copy { left: 30px; bottom: 38px; }
  .last-photo-copy > span { font-size: 10px; }
  .last-photo-copy strong { font-size: 56px; }
  .closing { padding: 80px 20px 95px; }
  .closing .overline { font-size: 10px; }
  .closing h2 { font-size: 61px; }
  .closing p:not(.overline) { font-size: 16px; }
  .closing small { font-size: 10px; }
  .music-button { right: 14px; bottom: 15px; padding: 9px 13px; }
  .gate-names { font-size: clamp(36px, 10vw, 50px); }
}
@media (max-width: 380px) {
  .cover h1 { font-size: 34px; }
  .cover h1 i { font-size: 26px; }
  .gallery-heading h2 { font-size: 47px; }
  .cover-copy { min-height: 42svh; }
  .cover-image { height: 58svh; }
  .cover-topline { top: -58svh; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .music-button[aria-pressed="true"] .music-glyph { animation: none; }
}