@font-face { font-family: "Wedding Display"; src: url("/assets/wedding-display-regular.woff") format("woff"); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: "Wedding Display"; src: url("/assets/wedding-display-italic.woff") format("woff"); font-style: italic; font-weight: 400; font-display: swap; }
@font-face { font-family: "Wedding Song"; src: url("/assets/wedding-song.woff") format("woff"); font-style: normal; font-weight: 400; font-display: swap; }
:root {
  color-scheme: light;
  --ivory: #fcf8f3; --paper: #fffdfa; --sand: #f2e5d4; --line: #e6d5c6;
  --ink: #493733; --muted: #725c56; --accent: #875662; --accent-dark: #68434e;
  --rose: #8d5061; --rose-wash: #f7e4e9;
  --serif: "Wedding Display", "Wedding Song", Georgia, "Noto Serif CJK SC", "Songti SC", "SimSun", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans CJK SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--ivory); font: 15px/1.7 var(--sans); }
[hidden] { display: none !important; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid #9b6473; outline-offset: 4px; }
h1, h2, p, figure { margin: 0; }
svg { width: 1em; height: 1em; display: inline-block; vertical-align: middle; }
.symbol-bank { position: absolute; width: 0; height: 0; overflow: hidden; }
.site-header { border-bottom: 1px solid #ecddd1; background: #fffaf5; }
.site-header-inner { width: min(1120px, 100%); min-height: 77px; padding: 10px 30px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 13px; text-decoration: none; }
.monogram { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid #c8a797; border-radius: 50%; color: var(--accent); font: italic 18px var(--serif); }
.brand-label { color: var(--muted); font-size: 9px; font-weight: 650; letter-spacing: .18em; line-height: 1.5; }
.site-header nav { display: flex; align-items: center; gap: 30px; font-size: 13px; }
.site-header nav a { text-decoration: none; white-space: nowrap; }
.site-header nav a:hover { text-decoration: underline; text-underline-offset: .25em; }
.nav-rsvp { border: 1px solid #d7b8ad; border-radius: 100px; padding: 6px 14px; letter-spacing: .13em; font-size: 11px; }
.nav-rsvp span { margin-left: 4px; }
.hero { position: relative; overflow: clip; background: radial-gradient(ellipse at 73% 53%, #f3dce2 0%, transparent 51%), radial-gradient(ellipse at 8% 34%, #fffdfa 0%, transparent 60%), #f8eddf; border-bottom: 1px solid #eee0d3; }
.hero-inner { width: min(1040px, 100%); margin: 0 auto; padding: 53px 36px 47px; min-height: 640px; display: grid; grid-template-columns: 1fr .89fr; align-items: center; gap: 73px; }
.hero-text { text-align: center; padding: 10px 0; }
.kicker { color: var(--accent-dark); font-size: 10px; font-weight: 650; letter-spacing: .24em; line-height: 1.55; text-transform: uppercase; }
.kicker svg { width: 15px; height: 15px; margin-right: 6px; }
.hero-eyebrow { display: flex; align-items: center; justify-content: center; gap: 12px; }
.hero-eyebrow > span:first-child, .hero-eyebrow > span:last-child { width: 27px; height: 1px; background: #cfad9c; }
.hero h1 { margin: 19px -5px 17px; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; column-gap: .14em; color: var(--ink); font: 400 clamp(50px, 6vw, 91px)/.99 var(--serif); letter-spacing: -.057em; overflow-wrap: anywhere; }
.hero h1 em { color: #a56d7b; font-size: .66em; font-weight: 400; letter-spacing: -.09em; }
.hero-intro { font: 400 16px/1.7 var(--serif); letter-spacing: .36em; margin-left: .36em; }
.hero-rule { display: flex; align-items: center; justify-content: center; gap: 10px; color: #ba8c93; margin: 26px 0 18px; }
.hero-rule::before, .hero-rule::after { content: ""; height: 1px; width: 35px; background: #d8bdab; }
.hero-rule svg { width: 20px; height: 20px; }
.hero-date { font: 400 22px/1.4 var(--serif); letter-spacing: .13em; }
.hero-venue { font-size: 13px; color: var(--muted); margin: 3px 0 25px; letter-spacing: .035em; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 11px; border: 1px solid transparent; border-radius: 4px; min-height: 45px; padding: 10px 22px; text-decoration: none; font-size: 14px; font-weight: 600; transition: background .18s ease, color .18s ease; }
.button svg { width: 17px; height: 17px; }
.primary { background: #f6e0e6; border-color: #e5c1cb; color: var(--accent-dark); }
.primary:hover { background: #efd2dc; }
.secondary { border-color: #d8b8ae; background: transparent; color: var(--ink); }
.secondary:hover { background: #f8ebe5; }
.button:disabled { cursor: wait; opacity: .65; }
.hero-figure { position: relative; width: min(100%, 385px); margin: 0 auto; }
.photo-frame { border: 1px solid #d1ae9b; border-radius: 49% 49% 3px 3px / 39% 39% 3px 3px; padding: 10px; background: #fffaf39c; box-shadow: 0 14px 34px #7a4e3d15; }
.arch { border-radius: 49% 49% 2px 2px / 39% 39% 2px 2px; overflow: hidden; position: relative; height: clamp(350px, 41vw, 479px); background: #f4e6d5; }
.arch img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: 50% 55%; }
.cover-placeholder { position: absolute; inset: 0; margin: auto; color: #af7a87; width: 92px; height: 92px; }
.wax { position: absolute; bottom: 51px; right: -16px; width: 63px; height: 62px; display: grid; place-items: center; border-radius: 49% 47% 43% 48%; background: radial-gradient(circle at 37% 29%, #f1d5db, #d4a4af 70%); box-shadow: 2px 4px 10px #87536021, inset 0 0 0 2px #fff1f365; color: #fffaf8; transform: rotate(10deg); }
.wax::before { content: ""; width: 46px; height: 46px; position: absolute; border: 1px solid #fff5f682; border-radius: 50%; }
.wax svg { width: 24px; height: 24px; }
.photo-caption { display: flex; justify-content: center; align-items: center; gap: 11px; margin-top: 15px; color: var(--muted); font-size: 9px; letter-spacing: .28em; }
.photo-caption span:first-child, .photo-caption span:last-child { width: 23px; height: 1px; background: #d8b5a4; }
.section { width: min(880px, 100%); padding: 68px 24px; text-align: center; margin: 0 auto; scroll-margin-top: 17px; }
.section h2 { font: 400 clamp(30px, 4.6vw, 45px)/1.25 var(--serif); margin: 10px 0 18px; letter-spacing: .12em; }
.intro-copy { white-space: pre-line; color: var(--muted); font-size: 15px; line-height: 2.1; margin: 0 auto 33px; max-width: 550px; }
.save-date-card {
  display: grid; grid-template-columns: .8fr 1fr; align-items: center; gap: 25px;
  background: linear-gradient(128deg, #faece7, var(--paper) 58%); border: 1px solid var(--line);
  padding: 30px clamp(18px, 5vw, 54px); border-radius: 4px;
}
.save-date-copy { padding-block: 9px; }
.save-date-sprig { width: 43px; height: 43px; color: #bc8e95; transform: rotate(26deg); }
.save-date-copy h3 { font: italic 400 clamp(32px, 5.3vw, 55px)/1.1 var(--serif); margin: 0 0 12px; color: var(--accent-dark); }
.event-date { font: 400 17px/1.5 var(--serif); }
.calendar-box { padding: 15px 14px 11px; background: #fffdfa; border: 1px solid #f1e2d8; border-radius: 4px; }
.calendar-month { font: 400 23px/1.4 var(--serif); color: var(--accent-dark); letter-spacing: .035em; margin-bottom: 8px; }
.month-grid { width: 100%; table-layout: fixed; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.month-grid th { color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: .04em; border-bottom: 1px solid #f3e8dd; padding: 4px 0 6px; }
.month-grid td { height: 39px; padding: 1px; font-size: 13px; text-align: center; }
.calendar-heart { display: inline-grid; place-items: center; position: relative; width: 36px; height: 35px; color: var(--rose); font-weight: 700; }
.calendar-heart svg { position: absolute; width: 35px; height: 35px; }
.calendar-heart span { position: relative; padding-bottom: 4px; }
.venue-panel { margin-top: 14px; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); overflow: hidden; }
.venue-line { display: flex; align-items: center; justify-content: space-between; gap: 14px; text-align: left; padding: 17px 20px; }
.venue-visual { margin: 0; border-top: 1px solid var(--line); }
.venue-visual img, .venue-visual iframe { display: block; width: 100%; height: clamp(250px, 51vw, 400px); border: 0; background: var(--sand); }
.venue-visual img { object-fit: cover; }
.venue-caption { text-align: left; padding: 8px 20px; font-size: 11px; letter-spacing: .045em; color: var(--muted); }
.venue-name { font: 400 clamp(21px, 3.5vw, 28px)/1.25 var(--serif); margin: 1px 0 4px; overflow-wrap: anywhere; }
.subtle { color: var(--muted); font-size: 14px; white-space: pre-line; }
.text-link { display: inline-flex; align-items: center; gap: 6px; text-underline-offset: .26em; color: var(--accent-dark); font-size: 13px; padding-top: 10px; }
.text-link svg { width: 17px; height: 17px; }
.venue-directions { flex-shrink: 0; min-height: 40px; padding: 7px 11px; font-size: 12px; }
.countdown-wrap { display: flex; width: min(410px, 100%); margin: 24px auto 0; align-items: center; justify-content: center; }
.countdown-wrap > div { flex: 1; padding: 2px 8px; }
.countdown-wrap > div + div { border-left: 1px solid var(--line); }
.countdown-wrap strong { display: block; font: 400 30px/1.1 var(--serif); font-variant-numeric: tabular-nums; }
.countdown-wrap span { display: block; color: var(--muted); font-size: 11px; margin-top: 4px; }
.gallery-section { padding-top: 27px; }
.gallery-wrap { margin-top: 27px; }
.gallery-track {
  --photo-width: min(47vw, 365px);
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 0 calc((100% - var(--photo-width)) / 2) 2px;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-item {
  flex: 0 0 var(--photo-width); min-width: 0; display: block; position: relative; text-align: left;
  padding: 7px; border: 1px solid var(--line); border-radius: 3px; background: var(--paper);
  color: var(--ink); scroll-snap-align: center; scroll-snap-stop: always;
}
.gallery-item:focus-visible { outline-offset: -3px; z-index: 1; }
.gallery-item[inert] { pointer-events: none; }
.gallery-item:hover img { filter: brightness(1.07); }
.gallery-photo { display: block; position: relative; overflow: hidden; aspect-ratio: 3/4; background: var(--sand); }
.gallery-photo img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; transition: filter .2s ease; }
.gallery-caption { display: block; font: italic 14px/1.4 var(--serif); color: var(--muted); padding: 10px 6px 5px; }
.gallery-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 11px; margin-top: 17px; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.round { display: inline-grid; place-items: center; padding: 0; background: var(--paper); color: var(--accent-dark); border: 1px solid #dfc4b7; border-radius: 50%; width: 38px; height: 38px; }
.round:hover { background: #f7e7e4; }
.round svg { width: 18px; height: 18px; }
.gallery-prev svg { transform: rotate(180deg); }
.gallery-autoplay { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 4px 12px; border: 1px solid var(--line); border-radius: 100px; background: var(--paper); color: var(--accent-dark); font-size: 12px; }
.gallery-autoplay:hover { background: #f8e9e6; }
.lightbox { max-width: min(600px, calc(100vw - 28px)); max-height: calc(100dvh - 28px); padding: 8px 8px 14px; text-align: center; border: 1px solid var(--line); color: var(--ink); background: var(--paper); overflow: auto; }
.lightbox::backdrop { background: #39292bc4; }
.lightbox img { display: block; max-width: 100%; max-height: 78dvh; object-fit: contain; }
.lightbox .round { position: absolute; right: 14px; top: 14px; font-size: 24px; line-height: 1; }
.lightbox p { margin: 7px 0 0; color: var(--muted); }
.paper-band { background: #f8ede6; border-block: 1px solid #ecded2; }
.schedule-section { max-width: 630px; }
.timeline { list-style: none; text-align: left; padding: 0; margin: 29px auto 0; max-width: 420px; }
.timeline li { display: grid; grid-template-columns: 76px 1fr; align-items: start; gap: 17px; }
.timeline li time { color: var(--accent-dark); font: 400 23px/1.15 var(--serif); text-align: right; }
.timeline li div { position: relative; border-left: 1px solid #dab8b1; padding: 0 0 25px 21px; }
.timeline li div::before { content: ""; position: absolute; left: -5px; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: #b88993; }
.timeline li:last-child div { padding-bottom: 0; }
.timeline li strong { display: block; font-weight: 600; }
.timeline li p { font: italic 14px/1.5 var(--serif); color: var(--muted); }
.dress-section { max-width: 700px; }
.schedule-section:not([hidden]) + .dress-section { padding-top: 3px; }
.dress-swatches { display: flex; justify-content: center; gap: 10px; margin: 20px 0 13px; }
.dress-swatches span { width: 39px; height: 39px; border: 1px solid #9c6d6040; border-radius: 50%; }
.dress-head { font-weight: 600; margin-bottom: 3px; }
.guest-extras-section { padding-bottom: 58px; }
.guest-extras-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 3vw, 24px); }
.guest-extra-card {
  overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: 6px;
  text-align: left; box-shadow: 0 6px 21px #8052480d;
}
.guest-extra-media { position: relative; display: grid; place-items: center; aspect-ratio: 8 / 5; background: #f7ebdd; }
.guest-extra-card + .guest-extra-card .guest-extra-media { background: #f8e9ee; }
.guest-extra-art { width: clamp(57px, 15%, 82px); height: auto; color: #ad7580; }
.guest-extra-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--sand); }
.guest-extra-copy { padding: 17px clamp(15px, 3vw, 24px) 20px; }
.guest-extra-copy h3 { color: var(--accent-dark); font: 400 clamp(21px, 3.5vw, 28px)/1.3 var(--serif); margin: 0 0 6px; overflow-wrap: anywhere; }
.extra-editor { display: grid; gap: 8px; align-content: start; }
.extra-editor .admin-preview { margin: 0; min-height: 24px; }
@media (max-width: 520px) {
  .guest-extras-grid { grid-template-columns: minmax(0, 1fr); }
}
.rsvp-section { width: min(720px, 100%); padding-block: 72px; }
.rsvp-paper { background: var(--paper); border: 1px solid var(--line); padding: 31px 42px 37px; position: relative; box-shadow: 0 10px 32px #80524815; }
.rsvp-paper::before { content: ""; position: absolute; inset: 6px; border: 1px solid #f7e7e4; pointer-events: none; }
.rsvp-heart { width: 28px; height: 28px; color: var(--accent); margin: 0 0 10px; }
.rsvp-paper h2 { margin-bottom: 9px; }
.rsvp-form { display: grid; gap: 16px; margin-top: 25px; text-align: left; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
label, legend { font-size: 13px; font-weight: 600; color: var(--ink); }
label small { font-weight: 400; color: var(--muted); margin-left: 4px; }
input:not([type=radio],[type=checkbox]), textarea, select { width: 100%; background: #fffdf9; color: var(--ink); border: 1px solid #dcc4b7; border-radius: 3px; padding: 9px 10px; min-height: 42px; margin-top: 5px; }
input::placeholder, textarea::placeholder { color: #806762; opacity: 1; }
textarea { display: block; resize: vertical; }
fieldset { padding: 0; margin: 0; border: 0; min-width: 0; }
.choice-row { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin-top: 5px; }
.choice { display: flex; align-items: center; gap: 6px; background: #fffdf9; border: 1px solid #dcc4b7; border-radius: 3px; padding: 8px 9px; min-height: 42px; cursor: pointer; }
.choice:has(input:checked) { background: #f8e8eb; border-color: #9b6473; }
input[type=checkbox], input[type=radio] { accent-color: var(--accent); }
.rsvp-form .button { justify-self: start; }
.fine { color: var(--muted); font-size: 12px; }
.status { color: #7d5360; font-size: 14px; }
.status:empty { display: none; }
.status[data-state=error] { color: #9c382c; }
.rsvp-paper .status { margin-top: 17px; }
.site-footer { border-top: 1px solid var(--line); padding: 37px 18px 25px; text-align: center; background: #f8ede5; }
.site-footer > svg { width: 24px; height: 24px; color: var(--accent); margin-bottom: 11px; }
.site-footer > p:first-of-type { font: 400 16px/1.6 var(--serif); letter-spacing: .15em; }
.footer-names { display: block; margin-top: 8px; font: italic 31px/1.2 var(--serif); }
.demo-note { color: var(--muted); font-size: 11px; margin-top: 14px; }
.music-toggle { position: fixed; right: max(19px, env(safe-area-inset-right)); bottom: max(19px, env(safe-area-inset-bottom)); z-index: 4; width: 49px; height: 49px; box-shadow: 0 3px 18px #82565823; }
.music-toggle[aria-pressed=true] { background: var(--rose-wash); color: var(--accent-dark); border-color: #e5c1cb; }

.admin-page { background: #fbf1e9; min-height: 100vh; }
.admin-page .site-header-inner { width: min(1130px, 100%); }
.admin-main { max-width: 1110px; margin: 0 auto; padding: 38px 25px 85px; }
.admin-main h1 { font: 400 36px/1.22 var(--serif); margin: 6px 0 10px; }
.admin-main h2 { font: 400 23px/1.3 var(--serif); margin-bottom: 13px; }
.admin-login { margin: 30px auto 0; width: min(440px, 100%); }
.admin-card { background: var(--paper); border: 1px solid var(--line); padding: 21px; margin-top: 17px; }
.admin-login .button { margin-top: 12px; }
.admin-login .status { margin-top: 10px; }
.admin-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.admin-tabs { display: flex; gap: 7px; margin: 21px 0 7px; border-bottom: 1px solid var(--line); }
.admin-tab { background: transparent; border: 0; border-bottom: 2px solid transparent; border-radius: 0; min-height: 43px; padding: 7px 13px; color: var(--muted); }
.admin-tab[aria-pressed=true] { border-color: var(--accent); color: var(--ink); font-weight: 700; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.field-grid .full { grid-column: 1 / -1; }
.checks { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 10px; }
.checks label { display: flex; gap: 5px; align-items: center; }
.media-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 19px; }
.admin-preview { margin-top: 8px; display: flex; gap: 7px; align-items: center; flex-wrap: wrap; }
.admin-preview img { width: 58px; height: 67px; object-fit: cover; background: var(--sand); }
.admin-preview audio { width: min(260px, 100%); height: 37px; }
.admin-preview button, .mini { background: #fffdf9; border: 1px solid var(--line); border-radius: 3px; padding: 4px 8px; color: var(--accent-dark); font-size: 12px; }
.list-editor { display: grid; gap: 8px; margin-bottom: 11px; }
.gallery-edit-row, .schedule-edit-row { display: grid; gap: 8px; align-items: center; background: #fbf2eb; padding: 7px; }
.gallery-edit-row { grid-template-columns: 42px minmax(100px, 1fr) auto; }
.gallery-edit-row img { width: 42px; height: 50px; object-fit: cover; }
.schedule-edit-row { grid-template-columns: 105px minmax(100px, 1fr) minmax(100px, 1.3fr) auto; }
.list-editor input:not([type=radio],[type=checkbox]) { margin-top: 0; }
.row-actions { display: flex; gap: 4px; }
.admin-save { position: sticky; bottom: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; padding: 11px 0; background: #fbf1e9; z-index: 3; }
.admin-save .status { margin-left: 4px; }
.reply-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 17px 0; }
.reply-stats p { background: var(--paper); border: 1px solid var(--line); padding: 13px; color: var(--muted); font-size: 13px; }
.reply-stats strong { display: block; font: 400 30px/1.2 var(--serif); color: var(--ink); }
.table-scroll { overflow-x: auto; }
.table-scroll table { width: 100%; min-width: 720px; border-collapse: collapse; background: var(--paper); font-size: 13px; }
.table-scroll :is(th, td) { padding: 9px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; max-width: 220px; }
.table-scroll th { background: #f5e7e1; color: var(--ink); }
.reply-nav { display: flex; gap: 10px; margin-top: 12px; align-items: center; }
@media (max-width: 760px) {
  .site-header-inner { padding: 10px 18px; min-height: 65px; }
  .hero-inner { min-height: 0; gap: 26px; padding: 40px 24px 32px; }
  .hero h1 { font-size: clamp(43px, 8vw, 65px); }
  .hero-figure .arch { height: clamp(280px, 53vw, 420px); }
  .section { padding-block: 54px; }
  .gallery-section { padding-top: 12px; }
}
@media (max-width: 550px) {
  .site-header-inner { padding-inline: 15px; }
  .site-header nav { gap: 13px; font-size: 12px; }
  .monogram { width: 36px; height: 36px; font-size: 15px; }
  .brand { gap: 8px; }
  .brand-label { font-size: 7px; }
  .nav-rsvp { padding-inline: 9px; }
  .nav-rsvp span { display: none; }
  .hero-inner { grid-template-columns: 1fr; gap: 26px; padding: 37px 23px 29px; }
  .hero-text { padding: 0; }
  .hero h1 { font-size: clamp(49px, 13.6vw, 73px); margin-block: 13px 10px; }
  .hero-intro { font-size: 14px; }
  .hero-rule { margin: 14px 0 10px; }
  .hero-date { font-size: 17px; }
  .hero-venue { margin-bottom: 16px; }
  .hero-figure { width: min(100% - 27px, 302px); }
  .hero-figure .arch { height: auto; aspect-ratio: 4 / 5; }
  .photo-frame { padding: 7px; }
  .wax { width: 51px; height: 50px; right: -13px; bottom: 39px; }
  .wax::before { width: 37px; height: 37px; }
  .wax svg { width: 20px; height: 20px; }
  .photo-caption { margin-top: 11px; }
  .section { padding-inline: 17px; }
  .save-date-card { grid-template-columns: 1fr; gap: 14px; padding: 16px 12px 12px; }
  .save-date-copy { padding-block: 5px; }
  .save-date-sprig { width: 32px; height: 32px; }
  .calendar-box { padding: 10px 8px 7px; }
  .month-grid td { height: 35px; }
  .calendar-heart, .calendar-heart svg { width: 32px; height: 32px; }
  .venue-line { padding: 13px 12px; align-items: flex-start; flex-wrap: wrap; }
  .venue-caption { padding-inline: 12px; }
  .gallery-track { --photo-width: min(75vw, 335px); gap: 9px; }
  .rsvp-paper { padding: 27px 18px 29px; }
  .form-row, .choice-row { gap: 8px; }
  .rsvp-form input, .rsvp-form textarea, .rsvp-form select, .admin-page input, .admin-page textarea { font-size: 16px; }
  .admin-main { padding: 27px 12px 60px; }
  .admin-card { padding: 13px; }
  .field-grid, .media-grid { grid-template-columns: 1fr; }
  .schedule-edit-row { grid-template-columns: 100px 1fr; }
  .schedule-edit-row .row-actions { justify-content: flex-end; }
  .admin-tab { padding-inline: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Invitation cover and page motion */
.opening-screen {
  position: fixed; inset: 0; z-index: 10; isolation: isolate;
  display: grid; align-items: safe center; justify-items: center;
  overflow: auto; overscroll-behavior: contain;
  padding: max(64px, env(safe-area-inset-top)) 24px max(35px, env(safe-area-inset-bottom));
  background:
    radial-gradient(ellipse at 16% 13%, #fffdf8e8 0%, transparent 55%),
    radial-gradient(ellipse at 90% 91%, #f5dbe4b5 0%, transparent 54%),
    linear-gradient(145deg, #faf0e3, #f6e7d4 68%, #faeef0);
}
.invitation-page:has(.opening-screen:not([hidden])) { overflow: hidden; }
.language-switch {
  display: inline-flex; gap: 2px; align-items: center; padding: 2px;
  background: #fbefe8; border: 1px solid #e0c5ba; border-radius: 100px;
}
.language-switch button {
  min-width: 34px; min-height: 30px; padding: 3px 7px; border: 0; border-radius: 100px;
  background: transparent; color: var(--accent-dark); font-size: 11px; font-weight: 650; line-height: 1.2;
}
.language-switch button[aria-pressed=true] { background: #eeced6; color: var(--accent-dark); }
.language-switch button:hover:not([aria-pressed=true]) { background: #f8e5e7; }
.opening-language { position: fixed; top: max(23px, env(safe-area-inset-top)); right: max(25px, env(safe-area-inset-right)); z-index: 3; }
.opening-scene { position: relative; width: min(390px, 100%); }
.opening-envelope {
  position: absolute; z-index: -1; inset: 18% -11px -8px -7px;
  border: 1px solid #e4c9b2; border-radius: 5px; transform: rotate(-3.5deg);
  background:
    linear-gradient(151deg, transparent 49.7%, #c9a98d61 50%, transparent 50.5%) bottom left/50% 58% no-repeat,
    linear-gradient(209deg, transparent 49.7%, #c9a98d61 50%, transparent 50.5%) bottom right/50% 58% no-repeat,
    linear-gradient(150deg, #fbf1e5, #f0dfc7);
  box-shadow: 0 18px 45px #8d594219;
}
.opening-card {
  position: relative; min-height: 490px; display: grid; align-items: center;
  padding: 31px 32px; text-align: center; border-radius: 4px;
  background: linear-gradient(155deg, #fffdf9 0%, #fffdfb 65%, #fbf5ec);
  border: 1px solid #eddfd2; color: #604744;
  box-shadow: 0 12px 36px #8b5b471a, 0 2px 6px #8b5b470d;
  animation: invite-card-in .74s cubic-bezier(.2,.75,.3,1) both;
}
.opening-card::before {
  content: ""; position: absolute; inset: 13px; border: 1px solid #eddfd2;
  border-radius: 2px; pointer-events: none;
}
.opening-card-content { position: relative; z-index: 1; }
.opening-letterhead { margin: -4px 0 23px; }
.opening-ribbon { display: block; width: 140px; height: auto; margin: 0 auto -4px; color: #bc8392; }
.opening-script { color: #9a616f; font: italic 400 clamp(31px, 7.6vw, 43px)/1.12 var(--serif); letter-spacing: -.05em; }
.opening-kicker { letter-spacing: .16em; margin: 0 auto; max-width: 240px; color: #89656a; }
.opening-card h2 {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center;
  column-gap: .22em; row-gap: .04em; margin: 8px auto 7px; color: #58413d;
  font: 400 clamp(29px, 7.1vw, 47px)/1.16 var(--serif); letter-spacing: -.043em; overflow-wrap: anywhere;
}
.opening-card h2 span { min-width: 0; max-width: 100%; }
.opening-card h2 em { flex: 0 0 auto; font-size: .65em; color: #b47a87; letter-spacing: 0; }
.opening-date { font: 400 15px/1.5 var(--serif); letter-spacing: .085em; color: #85665e; }
.opening-seal-row { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 19px auto 13px; }
.opening-seal-row::before, .opening-seal-row::after { content: ""; width: 24px; height: 1px; background: #e7d2c1; }
.opening-seal {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; position: relative;
  color: #985b6b; background: radial-gradient(circle at 38% 31%, #fff2f4 0, #f5e1e6 63%, #eccbd3 100%);
  box-shadow: 0 2px 5px #8757631a, inset 0 0 0 1px #dcb4c0;
}
.opening-seal::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid #c891a2; opacity: 0; }
.opening-seal span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid #d1a2b0a1; font: 400 22px/1 "Wedding Song", var(--serif); padding-bottom: 1px; }
.opening-line { margin: 0 auto 17px; color: #765d58; font-size: 13px; max-width: 245px; }
.opening-guest {
  display: flex; justify-content: center; align-items: baseline; gap: 7px; flex-wrap: wrap;
  margin: -3px auto 16px; color: var(--muted); font-size: 12px;
}
.opening-guest strong { color: var(--accent-dark); font: 400 19px/1.4 var(--serif); overflow-wrap: anywhere; max-width: 100%; }
.opening-button { min-height: 44px; padding: 8px 17px; border: 1px solid #dfbac4; border-radius: 100px; background: #fae9ee; color: #6c4853; }
.opening-button:hover { background: #f3dae2; }
.opening-button svg, .button.primary svg { transition: transform .22s ease; }
.opening-button:hover svg, .button.primary:hover svg { transform: translateX(3px); }
.opening-screen.is-opening { pointer-events: none; animation: invitation-screen-out .88s ease-in-out both; }
.is-opening .opening-card { animation: invite-card-out .8s cubic-bezier(.3,.6,.38,1) both; }
.is-opening .opening-envelope { animation: envelope-drop .79s ease-out both; }
.is-opening .opening-seal { animation: seal-release .48s ease-out both; }
.is-opening .opening-seal::after { animation: seal-ring .57s ease-out both; }
.opening-particles { position: fixed; inset: 0; z-index: 11; overflow: hidden; pointer-events: none; }
.opening-particle {
  position: absolute; left: var(--start-x); top: var(--start-y); margin: -.73em 0 0 -.73em;
  width: 1.46em; height: 1.46em; display: grid; place-items: center;
  font: 700 var(--size)/1 "Wedding Song", "Noto Serif CJK SC", "Songti SC", "PingFang SC", "Microsoft YaHei", serif;
  opacity: 0; animation: seal-confetti var(--duration) var(--delay) both;
}
.particle-gold { color: #ac8558; text-shadow: 0 1px #fff4e1, 0 3px 6px #9b725344; }
.particle-stamp { border: 1px solid #bd8694; border-radius: 12%; background: #d9a6b1; color: #fff8f6; box-shadow: inset 0 0 0 2px #f2d7de; }
.particle-outline { color: #fff3ee; -webkit-text-stroke: .055em #ad7787; }
.particle-coin { border: 1px solid #d2ad8f; border-radius: 50%; color: #906944; background: radial-gradient(circle at 34% 26%, #fff3e3, #f0ddc3 85%); box-shadow: 0 2px 5px #b1855940; }
.particle-ink { color: #a76d7e; font-weight: 500; text-shadow: 0 1px 2px #fff9f1; }
.particle-paper { border: 1px solid #dbc0a6; border-radius: 22%; background: #fff8f6; color: #a07559; }
.photos-revealed .photo-visible > img { animation: photo-drift 4.8s ease-out both; }
.gallery-item:nth-child(3n+2) .gallery-photo { --photo-x: 2%; --photo-y: -1.5%; }
.gallery-item:nth-child(3n) .gallery-photo { --photo-x: 1%; --photo-y: 2%; }
.invitation-arrival .hero-text { animation: invite-arrival .75s .30s both; }
.invitation-arrival .hero-figure { animation: invite-arrival .85s .37s both; }
[data-reveal].reveal-pending { opacity: 0; transform: translateY(18px); }
[data-reveal].reveal-in { animation: invite-arrival .65s cubic-bezier(.2,.68,.26,1) both; }
[data-reveal]:focus-within { opacity: 1; transform: none; animation: none; }
.party-open, .rsvp-paper .status:not(:empty) { animation: invite-arrival .32s ease both; }
.rsvp-paper .status[data-state=ok] { border: 1px solid #e6c6cd; background: #fbecf0; padding: 10px 13px; border-radius: 3px; }
.digit-tick { animation: count-settle .26s ease both; }
.lightbox[open] { animation: invite-arrival .25s ease both; }
:lang(en) .hero-intro, :lang(en) .section h2, :lang(en) .site-footer > p:first-of-type { letter-spacing: 0; }
@keyframes invite-card-in { from { transform: translateY(17px) rotate(-2deg) scale(.985); opacity: .55; } to { transform: none; opacity: 1; } }
@keyframes invite-card-out {
  0%, 16% { transform: none; opacity: 1; }
  48% { transform: translateY(-8px) scale(1.005); opacity: .96; }
  100% { transform: translateY(-48px) rotate(-1deg) scale(.96); opacity: 0; }
}
@keyframes invitation-screen-out { 0%, 32% { opacity: 1; } 100% { opacity: 0; } }
@keyframes envelope-drop { 0%, 20% { opacity: 1; } 100% { transform: translateY(20px) rotate(-2deg); opacity: 0; } }
@keyframes seal-release { 0% { transform: none; } 18% { transform: scale(.91); } 52% { transform: scale(1.04); } 100% { transform: none; } }
@keyframes seal-ring { 0% { transform: scale(.86); opacity: 0; } 25% { opacity: .58; } 100% { transform: scale(1.52); opacity: 0; } }
@keyframes seal-confetti {
  0% { transform: scale(.26); opacity: 0; animation-timing-function: cubic-bezier(.12,.61,.32,1); }
  18% { transform: translate(calc(var(--mid-x) * .46), calc(var(--mid-y) * .46)) rotate(calc(var(--tilt) * .3)) scale(.98); opacity: .94; animation-timing-function: ease-out; }
  56% { transform: translate(var(--mid-x), var(--mid-y)) rotate(calc(var(--tilt) * .8)) scale(1.02); opacity: .82; animation-timing-function: cubic-bezier(.18,.46,.44,1); }
  100% { transform: translate(var(--burst-x), var(--burst-y)) rotate(var(--tilt)) scale(.65); opacity: 0; }
}
@keyframes photo-drift {
  from { transform: scale(1); }
  to { transform: translate3d(var(--photo-x, -2%), var(--photo-y, 1.6%), 0) scale(1.09); }
}
@keyframes invite-arrival { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes count-settle { from { transform: translateY(-3px); opacity: .65; } to { transform: none; opacity: 1; } }

.guest-link-actions { display: flex; flex-wrap: wrap; gap: 9px; margin: 12px 0 9px; }
#guest-links > .subtle { margin-bottom: 10px; }
#guest-link-status { margin-top: 6px; }

.english-fields summary { cursor: pointer; color: var(--accent-dark); font-weight: 650; }
.english-fields .field-grid { margin-top: 14px; }
.gallery-edit-copy { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.schedule-edit-row { grid-template-columns: 87px minmax(0, 1fr) minmax(0, 1fr) auto; }
.schedule-edit-copy { display: grid; gap: 5px; }

@media (max-width: 550px) {
  .opening-screen { padding-inline: 23px; }
  .opening-scene { width: min(350px, 100%); }
  .opening-card { padding-inline: 24px; }
  .opening-language { top: max(19px, env(safe-area-inset-top)); right: max(19px, env(safe-area-inset-right)); }
  .nav-language button { min-width: 28px; padding-inline: 4px; font-size: 10px; }
  .nav-language { padding: 1px; }
  .invitation-page .site-header nav { gap: 8px; }
  .invitation-page .brand-label { display: none; }
  .gallery-edit-copy { grid-template-columns: 1fr; }
  .schedule-edit-row { grid-template-columns: 1fr 1fr; }
  .schedule-edit-row > input { grid-column: 1 / -1; }
  .schedule-edit-row .row-actions { grid-column: 1 / -1; }
}
@media (max-height: 650px) {
  .opening-card { min-height: 0; padding-block: 22px; }
  .opening-letterhead { margin-bottom: 15px; }
  .opening-ribbon { width: 112px; }
  .opening-seal-row { margin-block: 11px 8px; }
  .opening-seal { width: 40px; height: 40px; }
  .opening-seal span { width: 31px; height: 31px; font-size: 19px; }
  .opening-line { margin-bottom: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
  [data-reveal].reveal-pending { opacity: 1; transform: none; }
}
