:root {
  color-scheme: light;
  --wine: #742e38;
  --wine-dark: #57202a;
  --paper: #fbf8f3;
  --ink: #382c2c;
  --muted: #776565;
  --line: #d9c6bc;
  --serif: "Noto Serif CJK SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 94px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.8; }
body.viewer-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--wine); outline-offset: 6px; }
img { max-width: 100%; display: block; }
figure, h1, h2, h3, p, dl, dd { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; }
section { scroll-margin-top: 20px; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; clip: rect(0, 0, 0, 0); white-space: nowrap; overflow: hidden; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 10px 20px; background: white; }
.site-header { min-height: 84px; padding: 12px 4.5%; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); background: rgba(251,248,243,.96); position: sticky; top: 0; z-index: 20; }
.brand { display: flex; align-items: center; gap: 14px; font-family: var(--serif); letter-spacing: .14em; color: var(--wine); }
.double-happiness { font-size: 32px; line-height: 1; }
.site-header nav { display: flex; gap: 36px; font-size: 14px; }
.site-header nav a { padding: 10px 0; }
.site-header nav a:hover { color: var(--wine); text-decoration: underline; text-underline-offset: 6px; }
.hero { max-width: 1500px; margin: 0 auto; display: grid; grid-template-columns: .92fr 1fr; align-items: center; gap: 5%; padding: 38px 4.5% 60px; }
.hero-copy { color: var(--wine); padding-left: 7%; }
.eyebrow { font-size: 12px; letter-spacing: .2em; font-weight: 500; line-height: 1.8; }
h1 { font-size: clamp(64px, 6.4vw, 100px); line-height: 1.4; letter-spacing: .065em; margin: 35px 0 24px; }
.title-period { display: none; }
.hero-note { line-height: 2; letter-spacing: .06em; }
.couple-names { display: flex; flex-wrap: wrap; align-items: center; gap: 23px; margin-top: 42px; font-family: var(--serif); font-size: 21px; letter-spacing: .08em; }
.couple-names em { font-family: Georgia, serif; font-size: 30px; font-weight: 400; color: #ab7d70; }
.hero-date { margin-top: 12px; font-size: 1rem; letter-spacing: .06em; color: var(--wine); }
.text-link { display: inline-flex; align-items: center; gap: 52px; padding: 10px 0; border-bottom: 1px solid var(--wine); font-size: 14px; letter-spacing: .05em; }
.hero-link { margin-top: 32px; }
.text-link:hover { color: var(--wine-dark); gap: 64px; }
.photo-open { position: relative; display: block; overflow: hidden; background: #e4d8ca; }
.photo-open img { width: 100%; height: auto; transition: transform .65s ease; }
.photo-open:hover img { transform: scale(1.025); }
.photo-zoom { width: 32px; height: 32px; position: absolute; bottom: 16px; right: 16px; display: grid; place-items: center; background: rgba(251,248,243,.93); color: var(--wine); border-radius: 50%; line-height: 1; font-size: 23px; }
.hero-photo .photo-open { max-height: 840px; }
.hero-photo img { aspect-ratio: 3 / 4; object-fit: cover; }
.photo-mark { position: absolute; top: 5%; left: 7%; color: var(--wine-dark); font-family: Georgia, "Times New Roman", serif; font-size: clamp(30px, 3.6vw, 54px); letter-spacing: -.04em; line-height: .94; pointer-events: none; }
.photo-mark i { margin-left: 36px; font-weight: 400; }
figcaption { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; font-size: 12px; color: var(--muted); line-height: 1.8; margin-top: 13px; }
figcaption > span:last-child { flex-shrink: 0; }
.section-pad { padding: 110px max(6%, calc((100vw - 1280px) / 2)); }
.invitation { background: var(--wine); color: var(--paper); display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 12%; }
.invitation-copy { padding-left: 3%; }
.invitation .eyebrow { color: #e6c8bf; }
.salutation { margin-top: 36px; font-size: 14px; letter-spacing: .08em; }
h2 { font-size: clamp(30px, 3vw, 42px); line-height: 1.65; letter-spacing: .035em; }
.invitation h2 { margin: 18px 0 28px; }
.letter { font-size: 16px; line-height: 2.2; color: #f3e5df; }
.letter p + p { margin-top: 22px; }
.signature { font-family: Georgia, "Times New Roman", serif; font-size: 32px; margin-top: 30px; }
.signature i { font-size: 40px; }
.letter-names { margin-top: 8px; font-size: .875rem; letter-spacing: .08em; color: #f3e5df; }
.portrait { padding: 12px; border: 1px solid rgba(251,248,243,.32); transform: rotate(2deg); }
.portrait .photo-open { aspect-ratio: 3 / 4; }
.portrait figcaption { color: #f3e5df; margin: 15px 2px 3px; }
.invitation a:focus-visible { outline-color: white; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 36px; margin-bottom: 48px; }
.section-heading .eyebrow { color: var(--wine); margin-bottom: 16px; }
.section-heading h2 { color: var(--wine); }
.section-heading > p { font-size: 14px; color: var(--muted); padding-bottom: 7px; }
.moments-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 5%; align-items: start; }
.moment-garden { padding-top: 118px; }
.moment .photo-open { aspect-ratio: 2048 / 1365; }
.moment img { height: 100%; object-fit: cover; }
.moment figcaption { display: block; margin-top: 25px; }
.moment figcaption > div { display: flex; align-items: center; gap: 20px; }
.photo-index { font-size: 13px; color: var(--wine); }
.moment h3 { font-size: 24px; color: var(--wine); letter-spacing: .08em; }
.moment figcaption p { margin: 9px 0 0 38px; font-size: 14px; }
.wedding { padding-top: 48px; padding-bottom: 112px; display: grid; grid-template-columns: .9fr 1fr; align-items: center; gap: 9%; }
.wedding-photo { max-width: 460px; }
.wedding-card { position: relative; text-align: center; color: var(--wine); border: 1px solid var(--wine); outline: 1px solid #ceaaa5; outline-offset: -9px; padding: 52px 38px 38px; }
.wedding-card .eyebrow { font-size: 12px; letter-spacing: .14em; }
.card-happiness { display: block; font-family: var(--serif); font-size: 74px; line-height: 1; margin: 26px 0 20px; }
.wedding-card h2 { font-size: 32px; }
.card-note { font-size: 14px; letter-spacing: .12em; margin-top: 10px; }
.wedding-details { text-align: left; border-top: 1px solid var(--line); margin-top: 32px; padding-top: 8px; }
.wedding-details > div { display: grid; grid-template-columns: 88px 1fr; gap: 15px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.wedding-details dt { color: var(--muted); font-size: 14px; }
.wedding-details dd { font-size: 16px; overflow-wrap: anywhere; }
.footer { background: var(--wine); color: var(--paper); text-align: center; padding: 76px 6% 0; }
.footer .eyebrow { color: #e6c8bf; }
.farewell { font-family: var(--serif); font-size: clamp(40px, 5vw, 64px); line-height: 1.7; letter-spacing: .1em; margin-top: 26px; }
.footer-note { font-size: 14px; margin: 18px 0 28px; color: #f3e5df; letter-spacing: .06em; }
.share-invitation, .copy-invitation { display: inline-flex; justify-content: center; align-items: center; gap: 36px; min-height: 48px; padding: 10px 28px; border: 1px solid #e6c8bf; background: transparent; color: var(--paper); border-radius: 28px; font-size: 1rem; letter-spacing: .05em; }
.share-invitation:hover { background: #ffffff12; }
.share-invitation:focus-visible { outline-color: var(--paper); }
.share-status { min-height: 28px; font-size: .875rem; color: #f3e5df; margin: 12px 0 30px; overflow-wrap: anywhere; }
.share-dialog { width: min(460px, calc(100% - 36px)); padding: 48px 28px 26px; color: var(--wine); border: 1px solid var(--line); background: var(--paper); text-align: center; }
.share-dialog::backdrop { background: #211b1bbd; }
.share-dialog:not([open]) { display: none; }
.share-dialog h2 { font-size: 1.6rem; }
.share-dialog > p { font-size: .875rem; margin: 14px 0; }
.share-close { position: absolute; top: 6px; right: 6px; width: 44px; height: 44px; background: transparent; border: 0; color: var(--wine); font-size: 30px; }
#share-url { width: 100%; min-height: 48px; padding: 12px; margin: 12px 0 22px; border: 1px solid var(--line); color: var(--ink); background: white; border-radius: 4px; font-family: var(--sans); font-size: 1rem; }
.copy-invitation { border-color: var(--wine); background: var(--wine); }
.copy-status { min-height: 24px; }
.music-dock { position: fixed; bottom: max(18px, env(safe-area-inset-bottom)); right: max(20px, env(safe-area-inset-right)); z-index: 25; display: flex; align-items: center; gap: 12px; max-width: calc(100vw - 32px); padding: 10px 12px; border: 1px solid var(--line); border-radius: 42px; background: rgba(251,248,243,.97); color: var(--wine); box-shadow: 0 6px 26px #382c2c18; }
.music-dock[hidden] { display: none; }
.music-play, .music-mute { width: 44px; height: 44px; display: grid; place-items: center; flex: 0 0 44px; border: 0; padding: 0; border-radius: 50%; }
.music-play { color: var(--paper); background: var(--wine); font-size: 18px; }
.music-mute { color: var(--wine); background: transparent; }
.music-mute:hover { background: #742e3810; }
.music-mute svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.music-mute svg[hidden] { display: none; }
.music-info { min-width: 0; }
.music-title { font-size: .875rem; letter-spacing: .03em; }
.music-state { font-size: .75rem; color: var(--muted); }
body.has-music .footer { padding-bottom: 98px; }
.music-play:disabled { cursor: wait; opacity: .6; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #a36b72; padding: 22px 0 max(22px, env(safe-area-inset-bottom)); font-size: 12px; color: #efd9d1; }
.footer-bottom a { font-size: 14px; }
.footer a:focus-visible { outline-color: white; }
.photo-viewer { position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: max(64px, env(safe-area-inset-top)) 5% max(24px, env(safe-area-inset-bottom)); background: #211b1bf5; color: white; border: 0; }
.photo-viewer::backdrop { background: #211b1b; }
.photo-viewer:not([open]) { display: none; }
.photo-viewer[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.viewer-close { position: absolute; right: max(18px, env(safe-area-inset-right)); top: max(12px, env(safe-area-inset-top)); width: 46px; height: 46px; background: transparent; border: 1px solid #ffffff60; color: white; font-size: 32px; line-height: 1; border-radius: 50%; }
.viewer-stage { display: flex; align-items: center; justify-content: center; min-height: 0; width: 100%; flex: 1; }
.viewer-image { width: 100%; height: 100%; object-fit: contain; }
.viewer-controls { display: flex; gap: 24px; align-items: center; margin-top: 18px; }
.viewer-controls button { width: 48px; height: 44px; background: transparent; border: 1px solid #ffffff60; color: white; font-size: 23px; border-radius: 24px; }
.viewer-controls button:hover, .viewer-close:hover { background: #ffffff20; }
.viewer-counter { min-width: 76px; text-align: center; font-size: 14px; letter-spacing: .08em; }
.viewer-caption { font-size: 14px; text-align: center; color: #e4d8ca; margin-top: 14px; }
.photo-viewer button:focus-visible { outline-color: white; }
@keyframes arrive { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.hero-copy, .hero-photo { animation: arrive .8s ease both; }
.hero-photo { animation-delay: .12s; }
@media (min-width: 1600px) { .hero-copy { padding-left: 0; } }
@media (max-width: 1000px) {
  .hero-copy { padding-left: 0; }
  h1 { font-size: 66px; margin-top: 22px; }
  .hero { gap: 4%; padding-left: 5%; padding-right: 5%; }
  .hero-note { font-size: 15px; }
  .couple-names { margin-top: 26px; gap: 15px; font-size: 18px; }
  .hero-link { margin-top: 24px; }
  .section-pad { padding-left: 6%; padding-right: 6%; }
  .invitation { gap: 7%; }
  .invitation h2 { font-size: 30px; }
  .invitation-copy { padding-left: 0; }
  .wedding { gap: 6%; }
  .wedding-card { padding: 38px 26px 30px; }
  .wedding-card h2 { font-size: 28px; }
  .wedding-details > div { grid-template-columns: 76px 1fr; gap: 9px; }
}
@media (max-width: 700px) {
  html { scroll-padding-top: 74px; }
  .site-header { min-height: 66px; height: auto; padding: 12px 6%; gap: 12px; }
  .brand { gap: 9px; font-size: 14px; letter-spacing: .05em; }
  .double-happiness { font-size: 28px; }
  .site-header nav { gap: 20px; }
  .hero { display: flex; flex-direction: column; gap: 0; padding: 29px 6% 52px; text-align: center; }
  .hero-copy { display: contents; }
  .hero-eyebrow { order: 0; font-size: 12px; letter-spacing: .16em; }
  h1 { order: 1; font-size: clamp(38px, 9.7vw, 56px); line-height: 1.55; margin: 10px 0 24px; letter-spacing: .075em; color: var(--wine); }
  h1 br { display: none; }
  .hero-photo { order: 2; width: 100%; }
  .hero-photo .photo-open { max-height: none; }
  .hero-photo img { aspect-ratio: 3 / 4; }
  .photo-mark { font-size: 34px; }
  .hero-photo figcaption { font-size: 12px; gap: 10px; text-align: left; }
  .hero-note { order: 3; margin-top: 30px; color: var(--wine); font-size: 16px; }
  .couple-names { order: 4; margin-top: 17px; color: var(--wine); gap: 25px; font-size: 19px; }
  .hero-date { order: 5; }
  .hero-link { order: 6; color: var(--wine); margin-top: 20px; }
  .section-pad { padding-top: 68px; padding-bottom: 68px; }
  .invitation { display: flex; flex-direction: column; gap: 48px; }
  .invitation-copy { width: 100%; text-align: center; }
  .salutation { margin-top: 26px; }
  .invitation h2 { margin-top: 19px; font-size: clamp(26px, 6.9vw, 38px); }
  .letter { font-size: 16px; }
  .signature { margin-top: 24px; }
  .portrait { width: 80%; max-width: 390px; padding: 9px; }
  .portrait figcaption { display: block; text-align: center; font-size: 12px; margin-top: 12px; }
  .portrait figcaption span { display: none; }
  .section-heading { display: block; margin-bottom: 30px; }
  .section-heading h2 { font-size: 33px; }
  .section-heading .eyebrow { margin-bottom: 12px; font-size: 12px; letter-spacing: .13em; }
  .section-heading > p { margin-top: 12px; padding: 0; }
  .moments-grid { grid-template-columns: 1fr; gap: 38px; }
  .moment-garden { padding-top: 0; margin-left: 8%; }
  .moment-mountains { margin-right: 4%; }
  .moment figcaption { margin-top: 16px; }
  .moment h3 { font-size: 23px; }
  .wedding { padding-top: 0; gap: 34px; grid-template-columns: 1fr; }
  .wedding-photo { max-width: none; width: 86%; margin: 0 auto; }
  .wedding-card { padding: 40px 28px 32px; }
  .wedding-card h2 { font-size: 30px; }
  .wedding-details > div { padding: 15px 0; grid-template-columns: 80px 1fr; }
  .card-happiness { font-size: 64px; }
  .footer { padding-top: 58px; }
  .footer .eyebrow { letter-spacing: .12em; font-size: 12px; }
  .farewell { font-size: 40px; margin-top: 26px; }
  .farewell span { display: block; }
  .footer-note { margin-bottom: 46px; }
  .footer-bottom { gap: 15px; text-align: left; }
  .viewer-caption { font-size: 14px; }
}
@media (max-width: 360px) {
  .site-header { padding-left: 5%; padding-right: 5%; }
  .site-header nav { gap: 14px; }
  .brand { font-size: 13px; }
  .hero { padding-left: 5%; padding-right: 5%; }
  .couple-names { gap: 16px; font-size: 18px; }
  .wedding-card { padding-left: 21px; padding-right: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
