:root {
  --paper: #f3f0eb;
  --ink: #282522;
  --muted: #756f69;
  --gold: #a8865e;
  --gold-light: #c9ae88;
  --rose: #a96f65;
  --line: rgba(75, 65, 56, .2);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Source Han Serif SC", "Noto Serif CJK SC", "Songti SC", "STSong", "SimSun", serif;
  overflow-x: hidden;
}
body.cover-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.grain {
  position: fixed; inset: 0; z-index: 20; pointer-events: none; opacity: .13;
  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='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.2'/%3E%3C/svg%3E");
}
.entry-cover { position: fixed; inset: 0; z-index: 30; overflow: hidden; background: #657183; color: #f8f4ed; transition: opacity .9s ease, visibility .9s ease; }
.entry-cover.dismissed { opacity: 0; visibility: hidden; pointer-events: none; }
.entry-cover > img { position: absolute; right: 0; top: 0; width: 58%; height: 100%; object-fit: cover; object-position: center 32%; }
.cover-wash { position: absolute; inset: 0; background: linear-gradient(90deg, #596678 0%, #596678 37%, rgba(89,102,120,.84) 51%, rgba(54,62,74,.08) 78%); }
.cover-copy { position: absolute; z-index: 2; left: 8vw; top: 50%; width: 42%; transform: translateY(-48%); }
.cover-kicker { margin: 0 0 28px; color: #e7d4b6; font: 10px/1.5 Georgia, serif; letter-spacing: .38em; }
.cover-date { margin: 0 0 18px; font: 12px/1.4 Georgia, serif; letter-spacing: .35em; color: rgba(255,255,255,.68); }
.cover-copy h1 { margin: 0; font-size: clamp(36px, 4.2vw, 68px); font-weight: 400; letter-spacing: .1em; white-space: nowrap; }
.cover-copy h1 i { color: #e7d4b6; font: italic 400 .65em/1 Georgia, serif; margin: 0 .25em; }
.cover-message { margin: 30px 0 38px; font-size: 16px; letter-spacing: .2em; color: rgba(255,255,255,.78); }
.enter-button { width: 176px; height: 50px; padding: 0 22px; border: 1px solid rgba(255,255,255,.48); color: #fff; background: rgba(255,255,255,.06); display: flex; align-items: center; justify-content: space-between; cursor: pointer; font-family: inherit; letter-spacing: .22em; transition: background .3s, color .3s; }
.enter-button:hover { background: #f7f1e8; color: #4f5c6e; }.enter-button i { font-style: normal; font-size: 18px; }
.cover-mark { position: absolute; z-index: 2; left: 4vw; top: 7vh; width: 38px; height: 38px; display: grid; place-items: center; color: #5c6674; background: #e7d4b6; font-size: 19px; transform: rotate(-3deg); }
.topbar {
  position: fixed; left: 0; top: 0; right: 0; z-index: 15;
  height: 76px; padding: 0 4vw; display: flex; align-items: center; justify-content: space-between;
  color: #3b3733; mix-blend-mode: multiply; transition: background .4s, backdrop-filter .4s;
}
.topbar.scrolled { background: rgba(243,240,235,.86); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(110,92,73,.12); }
.monogram { font: 600 21px/1 Georgia, serif; letter-spacing: .13em; }
.monogram span { color: var(--gold); }
.topbar nav { display: flex; gap: 34px; font-size: 13px; letter-spacing: .16em; }
.topbar nav a { position: relative; padding: 8px 0; }
.topbar nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 2px; height: 1px; background: var(--gold); transition: right .3s; }
.topbar nav a:hover::after { right: 0; }
.sound-toggle { width: 36px; height: 36px; border: 1px solid rgba(74,65,57,.35); border-radius: 50%; background: transparent; display: flex; gap: 3px; align-items: center; justify-content: center; cursor: pointer; }
.sound-toggle span { width: 1px; height: 9px; background: currentColor; animation: bars .9s ease-in-out infinite alternate; animation-play-state: paused; }
.sound-toggle span:nth-child(2) { height: 14px; animation-delay: -.3s; }.sound-toggle span:nth-child(3) { animation-delay: -.6s; }
.sound-toggle.playing span { animation-play-state: running; }
@keyframes bars { to { height: 4px; } }

.hero { position: relative; width: 100%; aspect-ratio: 3 / 2; min-height: 620px; overflow: hidden; background: #d9d6d3; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, transparent 58%, rgba(215,211,207,.08) 70%, rgba(211,207,203,.28)); pointer-events: none; }
.invitation-panel { position: absolute; z-index: 2; width: 30%; right: 5.5%; top: 50%; transform: translateY(-47%); text-align: center; }
.eyebrow { margin: 0 0 20px; color: var(--gold); font: 500 10px/1.5 Georgia, serif; letter-spacing: .34em; text-transform: uppercase; }
.seal { margin: 0 auto 18px; width: 34px; height: 34px; color: #f5f1ea; background: var(--rose); display: grid; place-items: center; transform: rotate(3deg); font-size: 18px; box-shadow: 0 4px 18px rgba(87,55,49,.15); }
.invitation-panel h1 { margin: 0; font-weight: 400; font-size: clamp(29px, 3.1vw, 54px); letter-spacing: .06em; white-space: nowrap; }
.invitation-panel h1 i, .signature i, .closing-names i { font: italic 400 .75em/1.2 Georgia, serif; color: var(--gold); margin: 0 .25em; }
.hero-copy { color: #57514c; margin: 22px 0; font-size: clamp(14px, 1.05vw, 18px); line-height: 2; letter-spacing: .1em; }
.date-line { margin: 18px auto; display: flex; align-items: center; justify-content: center; gap: 15px; }
.date-line span { font: 10px/1.2 Georgia, serif; letter-spacing: .12em; min-width: 38px; }
.date-line strong { padding: 7px 16px; border-left: 1px solid rgba(86,73,63,.35); border-right: 1px solid rgba(86,73,63,.35); font: 400 clamp(19px,1.7vw,28px)/1.2 Georgia, serif; letter-spacing: .06em; }
.hero-meta { display: flex; align-items: center; justify-content: center; gap: 20px; margin: 22px auto 25px; }
.hero-meta > span { width: 1px; height: 32px; background: rgba(92,78,66,.3); }
.hero-meta p { margin: 0; min-width: 70px; }
.hero-meta small { display: block; color: var(--muted); font-size: 10px; letter-spacing: .12em; margin-bottom: 5px; }
.hero-meta b { font: 400 15px/1 Georgia, serif; letter-spacing: .12em; }
.scroll-cue { display: inline-flex; align-items: center; gap: 12px; color: #59514a; font-size: 11px; letter-spacing: .2em; border-bottom: 1px solid rgba(89,81,74,.4); padding: 0 0 8px; }
.scroll-cue span { animation: arrow 1.6s ease-in-out infinite; }
@keyframes arrow { 50% { transform: translateY(5px); } }

.letter-section { min-height: 90vh; position: relative; display: grid; place-items: center; padding: 130px 8vw; overflow: hidden; background: radial-gradient(circle at 50% 45%, #faf8f4 0, #f0ede8 68%); }
.letter-section::before, .letter-section::after { content: ""; position: absolute; width: 33vw; height: 33vw; border: 1px solid rgba(168,134,94,.15); border-radius: 50%; }
.letter-section::before { left: -18vw; top: -12vw; }.letter-section::after { right: -20vw; bottom: -15vw; }
.section-number { position: absolute; left: 5vw; top: 50%; color: rgba(168,134,94,.18); font: italic 120px/1 Georgia, serif; }
.vertical-note { position: absolute; right: 6vw; top: 50%; margin: 0; writing-mode: vertical-rl; letter-spacing: .35em; color: var(--muted); font-size: 11px; }
.letter-card { max-width: 720px; text-align: center; padding: 65px 85px; border: 1px solid rgba(168,134,94,.35); position: relative; background: rgba(255,255,255,.32); box-shadow: 0 30px 80px rgba(83,67,48,.07); }
.letter-card::before, .letter-card::after { content: ""; position: absolute; width: 26px; height: 26px; border-color: var(--gold); opacity: .6; }
.letter-card::before { left: 13px; top: 13px; border-left: 1px solid; border-top: 1px solid; }.letter-card::after { right: 13px; bottom: 13px; border-right: 1px solid; border-bottom: 1px solid; }
.letter-card h2, .gallery-heading h2, .details-title h2, .closing h2 { margin: 0; font-family: "STKaiti", "KaiTi", "Songti SC", serif; font-size: clamp(34px, 3.25vw, 54px); font-weight: 400; letter-spacing: .1em; }
.ornament { margin: 28px auto; display: flex; align-items: center; justify-content: center; gap: 15px; color: var(--gold); font-size: 10px; }
.ornament span { width: 50px; height: 1px; background: var(--gold-light); }
.letter-text { color: #5f5953; font-size: 17px; line-height: 2.3; letter-spacing: .1em; }
.signature { margin: 30px 0 2px; font-size: 23px; letter-spacing: .12em; }.signature-note { margin: 0; color: var(--muted); font-size: 11px; letter-spacing: .4em; }

.gallery-section { position: relative; min-height: 1800px; padding: 150px 7vw 180px; background: #262522; color: #ece7df; display: grid; grid-template-columns: .7fr 1.2fr .82fr; grid-template-rows: auto auto; gap: 7vw 5vw; overflow: hidden; }
.gallery-section::before { content: "LOVE"; position: absolute; right: -2vw; top: 45%; color: rgba(255,255,255,.025); font: 220px/1 Georgia, serif; letter-spacing: -.05em; transform: rotate(90deg); }
.gallery-heading { align-self: center; padding-left: 3vw; }
.gallery-heading h2 { line-height: 1.45; letter-spacing: .15em; }
.gallery-heading > p:last-child { margin-top: 32px; color: #b8b1a8; font-size: 15px; line-height: 2.1; letter-spacing: .1em; }
figure { margin: 0; }
.photo-wide { grid-column: 2 / 4; align-self: start; }
.photo-wide img { width: 100%; height: auto; }
figcaption { display: flex; align-items: center; gap: 14px; margin-top: 16px; color: #8f8981; font: 9px/1.4 Georgia, serif; letter-spacing: .22em; }
figcaption span { color: var(--gold-light); }
.photo-tall { grid-column: 1 / 3; width: min(50vw, 720px); margin: -2vw 0 0 8vw; position: relative; }
.photo-frame { padding: 12px; border: 1px solid rgba(201,174,136,.28); }
.photo-tall img { width: 100%; height: auto; }
.gallery-quote { align-self: center; margin: 0; font-size: clamp(20px, 2vw, 34px); line-height: 1.8; letter-spacing: .18em; color: #d4cec5; }

.details-section { position: relative; padding: 150px 7vw; background: #ece7df; }
.details-title { text-align: center; }.details-title > p:last-child { color: var(--muted); margin-top: 20px; letter-spacing: .14em; font-size: 15px; }
.detail-grid { max-width: 1100px; margin: 75px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.detail-grid article { text-align: center; padding: 48px 25px; position: relative; }
.detail-grid article + article { border-left: 1px solid var(--line); }
.detail-icon { margin: 0 auto 22px; width: 42px; height: 42px; border: 1px solid rgba(168,134,94,.6); border-radius: 50%; color: var(--gold); display: grid; place-items: center; font-size: 15px; }
.detail-grid small { color: var(--gold); font: 9px/1 Georgia, serif; letter-spacing: .25em; }
.detail-grid h3 { margin: 14px 0 10px; font-family: "STKaiti", "KaiTi", "Songti SC", serif; font-size: 21px; font-weight: 400; letter-spacing: .06em; }
.detail-grid p { margin: 0; color: var(--muted); font-size: 14px; letter-spacing: .08em; }

.closing { position: relative; min-height: 95vh; display: grid; place-items: center; overflow: hidden; text-align: center; color: white; }
.closing-bg { position: absolute; inset: 0; background: linear-gradient(rgba(28,31,38,.25), rgba(28,31,38,.58)), url("web-7399.jpg") center 35%/cover no-repeat; transform: scale(1.03); }
.closing-content { position: relative; z-index: 1; text-shadow: 0 2px 25px rgba(0,0,0,.2); }
.closing .eyebrow { color: #ead8be; }.closing h2 { line-height: 1.45; font-size: clamp(36px,5vw,74px); }.closing-content > p:nth-of-type(2) { margin: 30px 0; font: 14px/1 Georgia, serif; letter-spacing: .35em; }
.closing-names { font-size: 18px; letter-spacing: .16em; }
footer { padding: 42px; text-align: center; background: #1f1e1c; color: #cfc8bd; }
footer p { margin: 0 0 10px; font: 16px/1 Georgia, serif; letter-spacing: .18em; } footer p span { color: var(--rose); } footer small { color: #77736e; font: 8px/1 Georgia, serif; letter-spacing: .3em; }

.reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.invitation-panel.reveal { transform: translateY(calc(-47% + 28px)); }.invitation-panel.reveal.visible { transform: translateY(-47%); }

@media (max-width: 900px) {
  .entry-cover > img { width: 100%; height: 100%; object-position: 51% 32%; }
  .cover-wash { background: linear-gradient(180deg, rgba(31,39,51,.06) 20%, rgba(31,39,51,.2) 48%, rgba(31,39,51,.92) 100%); }
  .cover-copy { left: 0; top: auto; bottom: 6.5vh; width: 100%; transform: none; padding: 0 27px; text-align: center; }
  .cover-kicker { margin-bottom: 13px; }.cover-date { margin-bottom: 11px; }.cover-copy h1 { font-size: clamp(29px, 8vw, 34px); letter-spacing: .05em; }.cover-copy h1 i { margin: 0 .12em; }
  .cover-message { margin: 18px 0 24px; font-size: 14px; }.enter-button { margin: auto; }
  .cover-mark { left: 22px; top: 22px; }
  .topbar { height: 62px; padding: 0 20px; }.topbar nav { display: none; }
  .hero { aspect-ratio: auto; min-height: 0; overflow: visible; padding-top: 62px; background: #ddd9d5; }
  .hero-photo { position: relative; width: 100%; height: auto; object-fit: contain; }
  .hero-shade { display: none; }
  .invitation-panel, .invitation-panel.reveal, .invitation-panel.reveal.visible { position: relative; right: auto; top: auto; width: 100%; transform: none; padding: 55px 24px 65px; background: linear-gradient(180deg,#d9d5d1,#eeeae5); }
  .invitation-panel h1 { font-size: 40px; }
  .section-number, .vertical-note { display: none; }.letter-section { min-height: 0; padding: 90px 10px; }.letter-card { padding: 55px 10px; width: 100%; }.letter-card h2 { font-size: 24px; letter-spacing: .04em; white-space: nowrap; }.letter-text { font-size: 13px; line-height: 2.35; letter-spacing: .04em; }
  .gallery-section { min-height: 0; display: block; padding: 100px 20px; }.gallery-heading { padding: 0 10px; margin-bottom: 55px; }.photo-wide { margin-bottom: 75px; }.photo-tall { width: 82%; margin: 0 0 60px auto; }.gallery-quote { padding: 20px 10px; }
  .details-section { padding: 100px 20px; }.detail-grid { grid-template-columns: 1fr; margin: 55px auto; }.detail-grid article + article { border-left: none; border-top: 1px solid var(--line); }.detail-grid article { padding: 38px 20px; }
  .closing { min-height: 80vh; }.closing-bg { background-position: 51% 30%; }.closing-content { padding: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
