:root {
    --red-900: #6f1820;
    --red-800: #7d1e25;
    --red-700: #922d35;
    --ivory: #fffaf1;
    --ivory-deep: #f5eddf;
    --champagne: #d8bd8c;
    --champagne-soft: #eee0c8;
    --blush: #d9a4a5;
    --blush-soft: #f2dddc;
    --sage: #99a58f;
    --sage-soft: #dfe4d9;
    --gold: #c4a062;
    --ink: #312628;
    --ink-muted: #75696b;
    --white: #fff;
    --line: rgba(74, 44, 47, .16);

    --serif: "Cormorant Garamond", Georgia, serif;
    --sans: "DM Sans", system-ui, sans-serif;
    --chinese: "Noto Serif SC", serif;

    --shell: min(1180px, calc(100vw - 48px));
    --radius-sm: 14px;
    --radius-md: 24px;
    --radius-lg: 40px;
    --shadow: 0 24px 80px rgba(80, 42, 45, .12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--ivory);
    font-family: var(--sans);
    line-height: 1.6;
}

body.menu-open {
    overflow: hidden;
}

img {
    display: block;
    max-width: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    font-family: var(--serif);
    font-weight: 600;
    line-height: .98;
}

h1 {
    font-size: clamp(4.4rem, 8vw, 7.8rem);
    letter-spacing: -.05em;
}

h2 {
    font-size: clamp(3.2rem, 6vw, 5.3rem);
    letter-spacing: -.04em;
}

h3 {
    font-size: 2rem;
    letter-spacing: -.02em;
}

p {
    color: var(--ink-muted);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.shell {
    width: var(--shell);
    margin-inline: auto;
}

.section {
    padding: 120px 0;
}

.section-soft {
    background: #f7eee4;
}

.eyebrow {
    margin-bottom: 18px;
    color: var(--red-800);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.button {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    border: 1px solid var(--red-800);
    border-radius: 999px;
    background: var(--red-800);
    color: white;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: transform .25s ease, background .25s ease, color .25s ease;
}

.button:hover {
    transform: translateY(-2px);
    background: var(--red-900);
}

.button-small {
    min-height: 42px;
    padding-inline: 18px;
}

.language-switcher {
    display: inline-flex;
    flex: 0 0 auto;
    gap: 3px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 250, 241, .9);
    box-shadow: 0 5px 18px rgba(80, 42, 45, .06);
}

.language-switcher button {
    min-width: 40px;
    height: 32px;
    padding: 0 9px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--ink-muted);
    font-size: .68rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}

.language-switcher button:hover { color: var(--red-800); }
.language-switcher button.is-active { background: var(--red-800); color: white; box-shadow: 0 4px 12px rgba(125, 30, 37, .18); }
.language-switcher button:focus-visible { outline: 2px solid var(--red-800); outline-offset: 2px; }

.button-secondary {
    background: transparent;
    color: var(--red-800);
}

.button-ghost {
    background: transparent;
    border-color: var(--line);
    color: var(--ink);
}

.button-light {
    background: var(--ivory);
    color: var(--red-800);
    border-color: var(--ivory);
}

.text-link,
.text-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 0;
    background: none;
    color: var(--red-800);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

.text-button:disabled {
    opacity: .45;
    cursor: default;
}

.text-button.muted {
    opacity: .55;
}

.site-header {
    position: fixed;
    z-index: 100;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 250, 241, .82);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(111, 24, 32, .08);
}

.nav-shell {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--red-800);
    font-family: var(--serif);
    font-size: 1.35rem;
    font-weight: 700;
    text-decoration: none;
}

.brand-mark {
    font-family: var(--chinese);
    font-size: 1.45rem;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.site-nav>a:not(.button) {
    color: var(--ink);
    font-size: .9rem;
    text-decoration: none;
}

.nav-toggle {
    display: none;
}

.hero {
    position: relative;
    min-height: 100svh;
    overflow: hidden;
    padding: 150px 0 60px;
    background:
        radial-gradient(circle at 18% 35%, rgba(217, 164, 165, .28), transparent 28%),
        radial-gradient(circle at 82% 55%, rgba(216, 189, 140, .30), transparent 26%),
        var(--ivory);
}

.hero-grid {
    min-height: 630px;
    display: grid;
    grid-template-columns: 1.02fr .98fr;
    align-items: center;
    gap: 80px;
}

.hero-copy {
    position: relative;
    z-index: 2;
}

.guest-welcome {
    display: inline-flex;
    gap: 6px;
    margin-bottom: 20px;
    padding: 8px 14px;
    border: 1px solid rgba(125, 30, 37, .18);
    border-radius: 999px;
    color: var(--red-800);
    font-size: .82rem;
}

.hero-copy h1 {
    margin: 0 0 18px;
    color: var(--red-800);
}

.hero-chinese {
    position: absolute;
    top: -72px;
    left: -54px;
    font: 600 9rem/1 var(--chinese);
    color: rgba(125, 30, 37, .07);
    pointer-events: none;
}

.hero-date {
    margin-bottom: 24px;
    color: var(--gold);
    font-size: .85rem;
    font-weight: 600;
    letter-spacing: .25em;
}

.hero-lede {
    max-width: 580px;
    font-size: 1.05rem;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-top: 34px;
}

.hero-art {
    position: relative;
    min-height: 560px;
    display: grid;
    place-items: center;
}

.hero-card {
    position: relative;
    width: min(430px, 85%);
    aspect-ratio: 4 / 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 46% 46% 30px 30px;
    background:
        linear-gradient(rgba(111, 24, 32, .1), rgba(111, 24, 32, .1)),
        var(--red-800);
    box-shadow: var(--shadow);
    color: var(--ivory);
}

.hero-card-pattern {
    position: absolute;
    inset: 18px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: inherit;
}

.hero-card::after {
    content: "";
    position: absolute;
    inset: auto -12% -12% 30%;
    width: 72%;
    aspect-ratio: 1;
    border: 1px solid rgba(255, 255, 255, .18);
    transform: rotate(45deg);
}

.hero-card-kicker {
    position: absolute;
    top: 70px;
    font-family: var(--chinese);
    letter-spacing: .3em;
    opacity: .72;
}

.hero-card strong {
    font: 600 7rem/1 var(--serif);
    letter-spacing: -.08em;
}

.hero-card strong em {
    color: var(--champagne);
    font-weight: 500;
}

.hero-card-sub {
    margin-top: 12px;
    font-size: .72rem;
    letter-spacing: .22em;
    text-transform: uppercase;
}

.floating-note {
    position: absolute;
    padding: 10px 14px;
    border: 1px solid rgba(125, 30, 37, .14);
    border-radius: 999px;
    background: rgba(255, 250, 241, .82);
    color: var(--red-800);
    font-size: .72rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
}

.floating-note-one {
    left: 4%;
    top: 18%;
    transform: rotate(-8deg);
}

.floating-note-two {
    right: 2%;
    bottom: 18%;
    transform: rotate(7deg);
}

.hero-orbit {
    position: absolute;
    border: 1px solid rgba(125, 30, 37, .08);
    border-radius: 50%;
}

.hero-orbit-one {
    width: 420px;
    height: 420px;
    right: -160px;
    top: 18%;
}

.hero-orbit-two {
    width: 240px;
    height: 240px;
    left: -90px;
    bottom: 4%;
}

.countdown-wrap {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.countdown-wrap>div {
    padding: 22px 20px;
    text-align: center;
    border-right: 1px solid var(--line);
}

.countdown-wrap>div:last-child {
    border-right: 0;
}

.countdown-wrap strong {
    display: block;
    color: var(--red-800);
    font: 600 2rem/1 var(--serif);
}

.countdown-wrap span {
    font-size: .72rem;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.culture-band {
    background: var(--red-800);
    color: var(--ivory);
}

.culture-grid {
    display: grid;
    grid-template-columns: .7fr 1.6fr .7fr;
    align-items: stretch;
}

.culture-grid>div {
    min-height: 360px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 54px;
}

.culture-side {
    text-align: center;
}

.culture-side span {
    font: 600 4rem/1 var(--chinese);
}

.culture-side p {
    color: inherit;
    opacity: .76;
}

.culture-center {
    border-left: 1px solid rgba(255, 255, 255, .16);
    border-right: 1px solid rgba(255, 255, 255, .16);
    text-align: center;
}

.culture-center .eyebrow {
    color: var(--champagne);
}

.culture-center h2 {
    margin-bottom: 0;
    color: var(--ivory);
    font-size: clamp(2.7rem, 5vw, 4.6rem);
}

.culture-ivory {
    background: var(--champagne-soft);
    color: var(--red-800);
}

.section-heading {
    max-width: 720px;
    margin-bottom: 64px;
}

.section-heading h2 {
    margin-bottom: 22px;
}

.section-heading>p:last-child {
    max-width: 560px;
}

.centered {
    margin-inline: auto;
    text-align: center;
}

.centered>p:last-child {
    margin-inline: auto;
}

.timeline {
    position: relative;
    max-width: 880px;
    margin-left: auto;
}

.timeline-line {
    position: absolute;
    left: 42px;
    top: 22px;
    bottom: 36px;
    width: 1px;
    background: var(--line);
}

.timeline-line span {
    display: block;
    width: 100%;
    height: 0;
    background: var(--red-800);
    transition: height .5s ease-out;
}

.timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 84px 1fr;
    gap: 34px;
    padding: 0 0 66px;
}

.timeline-number {
    position: relative;
    z-index: 1;
    width: 84px;
    height: 84px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(125, 30, 37, .2);
    border-radius: 50%;
    background: var(--ivory);
    color: var(--red-800);
    font: 600 1.25rem/1 var(--serif);
}

.timeline-item h3 {
    margin-bottom: 10px;
}

.timeline-item p {
    max-width: 560px;
}

.event-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.event-card {
    position: relative;
    min-height: 430px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 44px;
    overflow: hidden;
    border: 1px solid rgba(125, 30, 37, .12);
    border-radius: var(--radius-lg);
    background: var(--ivory);
}

.event-card:first-child {
    background: var(--red-800);
    color: var(--ivory);
}

.event-card:first-child p,
.event-card:first-child .eyebrow {
    color: var(--ivory);
    opacity: .84;
}

.event-card:first-child .event-time {
    color: var(--champagne);
    opacity: 1;
}

.event-index {
    position: absolute;
    top: 26px;
    right: 34px;
    font: 600 6rem/1 var(--serif);
    color: rgba(125, 30, 37, .07);
}

.event-card:first-child .event-index {
    color: rgba(255, 255, 255, .08);
}

.event-card h3 {
    max-width: 430px;
    font-size: 3.2rem;
}

.event-time {
    color: var(--red-800);
    font-weight: 600;
}

.event-meta {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid currentColor;
    opacity: .65;
    font-size: .82rem;
}

.venue-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    margin-top: 24px;
    padding: 36px 40px;
    border-radius: var(--radius-md);
    background: var(--champagne-soft);
}

.venue-card h3 {
    margin-bottom: 8px;
}

.venue-card p {
    max-width: 620px;
    margin-bottom: 0;
}

.venue-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.play-section {
    background:
        linear-gradient(90deg, transparent 49.92%, rgba(125, 30, 37, .07) 50%, transparent 50.08%);
}

.quiz-card {
    max-width: 860px;
    margin: 0 auto 26px;
    padding: 48px;
    border-radius: var(--radius-lg);
    background: var(--red-800);
    color: var(--ivory);
    box-shadow: var(--shadow);
}

.quiz-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 36px;
    font-size: .75rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    opacity: .72;
}

.quiz-card h3 {
    max-width: 650px;
    font-size: clamp(2.2rem, 5vw, 4rem);
}

.quiz-options {
    display: flex;
    gap: 12px;
    margin-top: 32px;
}

.quiz-options button {
    flex: 1;
    min-height: 54px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 999px;
    background: transparent;
    color: white;
    cursor: pointer;
}

.quiz-options button:hover {
    background: rgba(255, 255, 255, .1);
}

.quiz-feedback {
    min-height: 24px;
    margin: 18px 0 0;
    color: var(--champagne);
}

.activity-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.activity-card {
    min-height: 270px;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(255, 250, 241, .82);
}

.activity-card>span {
    color: var(--gold);
    font-size: .75rem;
    letter-spacing: .12em;
}

.activity-card h3 {
    margin-top: 52px;
    margin-bottom: 14px;
}

.activity-card p {
    min-height: 76px;
    font-size: .94rem;
}

.gallery-section {
    background: #2f2527;
    color: var(--ivory);
}

.gallery-section p {
    color: rgba(255, 255, 255, .64);
}

.gallery-section .eyebrow {
    color: var(--champagne);
}

.split-heading {
    max-width: none;
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 60px;
}

.split-heading>p {
    max-width: 420px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 120px;
    gap: 16px;
}

.gallery-item {
    margin: 0;
    overflow: hidden;
    border-radius: var(--radius-md);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.gallery-item:hover img {
    transform: scale(1.03);
}

.gallery-item-1 {
    grid-column: span 7;
    grid-row: span 4;
}

.gallery-item-2 {
    grid-column: span 5;
    grid-row: span 3;
}

.gallery-item-3 {
    grid-column: span 5;
    grid-row: span 4;
}

.gallery-item-4 {
    grid-column: span 4;
    grid-row: span 3;
}

.gallery-item-5 {
    grid-column: span 3;
    grid-row: span 3;
}

.gallery-item-6 {
    grid-column: span 5;
    grid-row: span 3;
}

.rsvp-section {
    background: var(--blush-soft);
}

.rsvp-grid {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 80px;
    align-items: start;
}

.rsvp-copy {
    position: sticky;
    top: 120px;
}

.rsvp-note {
    display: flex;
    gap: 18px;
    margin-top: 42px;
    padding: 20px;
    border-left: 2px solid var(--red-800);
}

.rsvp-note span {
    color: var(--red-800);
    font: 600 2rem/1 var(--chinese);
}

.rsvp-note p {
    margin: 0;
    font-size: .92rem;
}

.rsvp-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 38px;
    border-radius: var(--radius-lg);
    background: rgba(255, 250, 241, .78);
    border: 1px solid rgba(125, 30, 37, .1);
}

.rsvp-form label {
    display: grid;
    gap: 8px;
}

.rsvp-form label>span {
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .04em;
}

.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {
    width: 100%;
    border: 1px solid rgba(75, 45, 48, .18);
    border-radius: 14px;
    background: var(--ivory);
    color: var(--ink);
    outline: none;
}

.rsvp-form input,
.rsvp-form select {
    height: 52px;
    padding: 0 15px;
}

.rsvp-form textarea {
    padding: 14px 15px;
    resize: vertical;
}

.rsvp-form input:focus,
.rsvp-form select:focus,
.rsvp-form textarea:focus {
    border-color: var(--red-800);
    box-shadow: 0 0 0 3px rgba(125, 30, 37, .08);
}

.form-wide {
    grid-column: 1 / -1;
}

.form-submit {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 6px;
}

.form-status {
    margin: 0;
    font-size: .9rem;
}

.form-status.is-error {
    color: #a02029;
}

.form-status.is-success {
    color: #3d6a4d;
}

.wishes-section { position: relative; overflow: hidden; background: var(--red-800); color: var(--ivory); }
.wishes-section::before { content: "囍"; position: absolute; top: -90px; right: 3%; color: rgba(255,250,241,.045); font: 600 clamp(16rem,35vw,34rem)/1 var(--chinese); pointer-events: none; }
.wishes-heading { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr minmax(260px,420px); gap: 60px; align-items: end; margin-bottom: 52px; }
.wishes-heading .eyebrow { color: var(--champagne); }
.wishes-heading h2 { margin-bottom: 0; }
.wishes-heading > p { margin: 0 0 8px; color: rgba(255,250,241,.68); }
.wishes-slider { position: relative; z-index: 1; }
.wishes-viewport { overflow: hidden; border-radius: 28px; }
.wishes-track { display: flex; transition: transform .7s cubic-bezier(.22,1,.36,1); will-change: transform; }
.wishes-slide { display: grid; min-width: 100%; grid-template-columns: 1.15fr 1fr 1fr; grid-template-rows: repeat(2,minmax(190px,auto)); gap: 16px; }
.wish-card { display: flex; min-width: 0; flex-direction: column; justify-content: space-between; padding: 24px; overflow: hidden; border: 1px solid rgba(255,250,241,.14); border-radius: 22px; background: rgba(255,250,241,.075); backdrop-filter: blur(8px); }
.wishes-slide .wish-card:first-child { grid-row: 1 / 3; padding: 34px; }
.wish-card-featured { background: var(--champagne-soft); color: var(--ink); }
.wish-mark { height: 40px; color: var(--champagne); font: 600 4.4rem/.9 var(--serif); }
.wish-card-featured .wish-mark { color: var(--red-800); }
.wish-card blockquote { display: -webkit-box; margin: 8px 0 20px; overflow: hidden; font: 500 clamp(1.05rem,1.55vw,1.35rem)/1.25 var(--serif); -webkit-box-orient: vertical; -webkit-line-clamp: 4; }
.wishes-slide .wish-card:first-child blockquote { margin: 24px 0 34px; font-size: clamp(1.55rem,2.5vw,2.25rem); -webkit-line-clamp: 7; }
.wish-card footer { display: flex; align-items: center; gap: 11px; }
.wish-avatar { display: grid; width: 40px; height: 40px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: var(--champagne); color: var(--red-900); font: 700 1.1rem/1 var(--serif); }
.wish-card footer div { display: grid; }
.wish-card footer strong { font-size: .82rem; }
.wish-card footer small { color: rgba(255,250,241,.55); font-size: .67rem; }
.wish-card-featured footer small { color: var(--ink-muted); }
.wishes-controls { display: grid; grid-template-columns: 1fr auto auto; gap: 22px; align-items: center; margin-top: 26px; }
.wishes-progress { height: 2px; overflow: hidden; background: rgba(255,250,241,.16); }
.wishes-progress span { display: block; width: 0; height: 100%; background: var(--champagne); transition: width .55s ease; }
.wishes-controls p { margin: 0; color: rgba(255,250,241,.48); font-size: .74rem; letter-spacing: .12em; }
.wishes-controls p strong { color: var(--ivory); font: 600 1.5rem/1 var(--serif); }
.wishes-arrows { display: flex; gap: 8px; }
.wishes-arrows button { display: grid; width: 46px; height: 46px; place-items: center; border: 1px solid rgba(255,250,241,.22); border-radius: 50%; background: transparent; color: var(--ivory); font-size: 1.15rem; cursor: pointer; transition: .2s ease; }
.wishes-arrows button:hover { border-color: var(--champagne); background: var(--champagne); color: var(--red-900); transform: translateY(-2px); }
.wishes-arrows button:focus-visible { outline: 2px solid var(--champagne); outline-offset: 3px; }
.wishes-empty { position: relative; z-index: 1; padding: 64px 30px; border: 1px solid rgba(255,250,241,.14); border-radius: 28px; text-align: center; background: rgba(255,250,241,.06); }
.wishes-empty > span { color: var(--champagne); font: 600 3rem/1 var(--chinese); }
.wishes-empty h3 { margin: 14px 0 8px; }
.wishes-empty p { color: rgba(255,250,241,.65); }
.wishes-empty .button { margin-top: 12px; border-color: var(--champagne); color: var(--ivory); }

.faq-grid {
    display: grid;
    grid-template-columns: .75fr 1.25fr;
    gap: 80px;
}

.faq-item {
    border-bottom: 1px solid var(--line);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 26px 0;
    border: 0;
    background: none;
    color: var(--ink);
    text-align: left;
    cursor: pointer;
}

.faq-question>span:first-child {
    font: 600 1.5rem/1.25 var(--serif);
}

.faq-icon {
    color: var(--red-800);
    font-size: 1.5rem;
    transition: transform .25s ease;
}

.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .3s ease;
}

.faq-answer>p {
    overflow: hidden;
    margin: 0;
}

.faq-item.is-open .faq-answer {
    grid-template-rows: 1fr;
}

.faq-item.is-open .faq-answer>p {
    padding-bottom: 24px;
}

.faq-item.is-open .faq-icon {
    transform: rotate(45deg);
}

.closing {
    padding: 120px 0;
    background: var(--red-800);
    color: var(--ivory);
    text-align: center;
}

.closing-inner {
    max-width: 760px;
}

.closing-mark {
    display: block;
    margin-bottom: 24px;
    font: 600 5rem/1 var(--chinese);
    color: var(--champagne);
}

.closing .eyebrow {
    color: var(--champagne);
}

.closing h2 {
    margin-bottom: 16px;
}

.closing p {
    color: rgba(255, 255, 255, .72);
}

.closing .button {
    margin-top: 24px;
}

.pass-section {
    background: var(--champagne-soft);
}

.pass-grid {
    display: grid;
    grid-template-columns: 1fr 430px;
    gap: 80px;
    align-items: center;
}

.wedding-pass {
    position: relative;
    padding: 34px;
    overflow: hidden;
    border-radius: 32px;
    background: var(--red-800);
    color: var(--ivory);
    box-shadow: var(--shadow);
}

.wedding-pass::after {
    content: "";
    position: absolute;
    inset: 14px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 24px;
    pointer-events: none;
}

.pass-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pass-top span {
    font: 600 2.5rem/1 var(--chinese);
    color: var(--champagne);
}

.pass-top small {
    letter-spacing: .14em;
}

.wedding-pass>p {
    margin: 34px 0 4px;
    color: var(--champagne);
    font-size: .7rem;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.wedding-pass h3 {
    margin-bottom: 24px;
    font-size: 2.5rem;
}

.wedding-pass dl {
    display: flex;
    gap: 40px;
    margin: 0 0 26px;
}

.wedding-pass dl div {
    display: grid;
}

.wedding-pass dt {
    opacity: .6;
    font-size: .7rem;
    text-transform: uppercase;
}

.wedding-pass dd {
    margin: 0;
}

.wedding-pass img {
    position: relative;
    z-index: 1;
    padding: 8px;
    border-radius: 12px;
    background: white;
}

.wedding-pass code {
    display: block;
    margin-top: 12px;
    color: var(--champagne);
}

.table-dialog {
    width: min(520px, calc(100vw - 32px));
    padding: 46px;
    border: 0;
    border-radius: var(--radius-lg);
    background: var(--ivory);
    text-align: center;
    box-shadow: var(--shadow);
}

.table-dialog::backdrop {
    background: rgba(31, 22, 24, .72);
    backdrop-filter: blur(6px);
}

.admin-page {
    min-height: 100vh;
    background: #f7eee4;
}

.admin-shell {
    width: min(1240px, calc(100% - 40px));
    margin: auto;
    padding: 56px 0;
}

.admin-login {
    max-width: 480px;
    margin: 10vh auto;
    padding: 44px;
    border-radius: var(--radius-lg);
    background: var(--ivory);
    box-shadow: var(--shadow);
}

.admin-login h1,
.admin-header h1 {
    font-size: clamp(3rem, 7vw, 5rem);
}

.admin-login label {
    display: grid;
    gap: 8px;
    margin: 30px 0 18px;
}

.admin-login input {
    height: 52px;
    padding: 0 15px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: white;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.admin-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 22px;
}

.admin-menu {
    color: var(--ink-muted);
    font-size: .82rem;
    font-weight: 600;
    text-decoration: none;
}

.admin-menu:hover {
    color: var(--red-800);
}

.admin-mark {
    float: right;
    color: var(--champagne);
    font: 600 3rem/1 var(--chinese);
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 36px 0;
}

.stat-grid-three {
    grid-template-columns: repeat(3, 1fr);
}

.stat-grid article,
.stat-grid .stat-card {
    display: grid;
    gap: 6px;
    padding: 24px;
    border: 1px solid transparent;
    border-radius: 20px;
    background: var(--ivory);
    color: inherit;
    text-decoration: none;
    box-shadow: 0 10px 28px rgba(74, 38, 40, .04);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.stat-grid .stat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(125, 30, 37, .18);
    box-shadow: 0 18px 38px rgba(74, 38, 40, .1);
}

.stat-grid .stat-card:focus-visible {
    outline: 3px solid rgba(125, 30, 37, .28);
    outline-offset: 3px;
}

.stat-grid strong {
    color: var(--red-800);
    font: 600 2.7rem/1 var(--serif);
}

.stat-grid span {
    color: var(--ink-muted);
    font-size: .78rem;
}

.stat-grid small {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--ink-muted);
    font-size: .7rem;
}

.stat-grid small b {
    color: var(--red-800);
    font-size: .68rem;
    white-space: nowrap;
}

.stat-grid .stat-card-yes { border-bottom: 3px solid var(--sage); }
.stat-grid .stat-card-no { border-bottom: 3px solid var(--blush); }

.admin-panel,
.admin-detail {
    padding: 28px;
    border-radius: 24px;
    background: var(--ivory);
    box-shadow: 0 12px 40px rgba(74, 38, 40, .06);
}

.admin-panel-head,
.admin-detail-top,
.admin-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.admin-panel-head {
    margin-bottom: 22px;
}

.admin-panel-head h2,
.admin-detail h2 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 3.3rem);
}

.admin-empty {
    padding: 50px 20px !important;
    color: var(--ink-muted);
    text-align: center !important;
}

.admin-empty span {
    color: var(--red-800);
    font: 600 3rem/1 var(--chinese);
}

.admin-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 22px;
}

.admin-filters input,
.admin-filters select,
.admin-edit input,
.admin-edit select,
.admin-edit textarea {
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: white;
    color: var(--ink);
}

.admin-filters input,
.admin-filters select {
    height: 44px;
}

.admin-detail {
    max-width: 760px;
    margin: 38px auto;
}

.admin-detail dl {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin: 32px 0;
}

.admin-detail dl div {
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
}

.admin-detail dt {
    color: var(--ink-muted);
    font-size: .7rem;
    text-transform: uppercase;
}

.admin-detail dd {
    margin: 7px 0 0;
    line-height: 1.6;
}

.admin-edit {
    display: grid;
    gap: 18px;
}

.admin-edit label {
    display: grid;
    gap: 7px;
}

.admin-edit label span {
    font-size: .78rem;
    font-weight: 600;
}

.admin-edit input,
.admin-edit select {
    height: 50px;
}

.admin-edit textarea {
    padding-top: 14px;
    resize: vertical;
}

.admin-table-wrap {
    overflow-x: auto;
    border-radius: 22px;
    background: var(--ivory);
}

.admin-table-wrap table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table-wrap th,
.admin-table-wrap td {
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    white-space: nowrap;
    font-size: .86rem;
}

.admin-table-wrap th {
    color: var(--ink-muted);
    font-size: .7rem;
    text-transform: uppercase;
}

.admin-table-wrap td {
    vertical-align: top;
}

.admin-table-wrap td>small {
    display: block;
    margin-top: 6px;
    color: var(--ink-muted);
}

.admin-notes {
    min-width: 280px;
    max-width: 380px;
    white-space: normal !important;
}

.admin-notes span {
    display: block;
    margin-bottom: 7px;
    line-height: 1.45;
}

.admin-notes .muted {
    color: var(--ink-muted);
}

.table-assignment {
    display: grid;
    grid-template-columns: 150px 180px auto;
    gap: 7px;
}

.table-assignment input {
    min-width: 0;
    height: 38px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: white;
}

.table-assignment button {
    padding: 0 13px;
    border: 0;
    border-radius: 9px;
    background: var(--red-800);
    color: white;
    font-weight: 600;
    cursor: pointer;
}

.status {
    padding: 5px 9px;
    border-radius: 999px;
    background: var(--ivory-deep);
    font-size: .72rem;
    text-transform: capitalize;
}

.status-yes {
    background: var(--sage-soft);
    color: #365542;
}

.status-no {
    background: var(--blush-soft);
    color: #7d1e25;
}

.notice {
    padding: 14px 18px;
    border-radius: 12px;
    background: var(--blush-soft);
    color: var(--red-800);
}

.notice-success {
    background: var(--sage-soft);
    color: #365542;
}

.site-footer {
    padding: 28px 0;
    background: #241b1d;
    color: rgba(255, 255, 255, .6);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    font-size: .8rem;
}

.footer-inner a {
    color: inherit;
    text-decoration: none;
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .75s ease, transform .75s cubic-bezier(.22, 1, .36, 1);
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

.bingo-dialog {
    width: min(680px, calc(100vw - 32px));
    padding: 38px;
    border: 0;
    border-radius: var(--radius-lg);
    background: var(--ivory);
    color: var(--ink);
    box-shadow: var(--shadow);
}

.bingo-dialog::backdrop {
    background: rgba(31, 22, 24, .72);
    backdrop-filter: blur(6px);
}

.dialog-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}

.bingo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.bingo-grid button {
    min-height: 100px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--white);
    color: var(--ink);
    cursor: pointer;
}

.bingo-grid button.is-marked {
    background: var(--red-800);
    color: white;
    border-color: var(--red-800);
}

@media (max-width: 900px) {
    :root {
        --shell: min(100% - 32px, 720px);
    }

    .section {
        padding: 88px 0;
    }

    .nav-toggle {
        display: grid;
        width: 44px;
        height: 44px;
        place-content: center;
        gap: 6px;
        border: 0;
        background: transparent;
    }

    .nav-toggle span:not(.sr-only) {
        width: 24px;
        height: 1px;
        background: var(--ink);
    }

    .site-nav {
        position: fixed;
        inset: 78px 0 auto;
        height: calc(100svh - 78px);
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 24px 24px 40px;
        background: var(--ivory);
        transform: translateX(100%);
        transition: transform .35s ease;
    }

    .site-nav.is-open {
        transform: none;
    }

    .site-nav>a {
        padding: 18px 0;
        border-bottom: 1px solid var(--line);
    }

    .site-nav .button {
        margin-top: 18px;
    }

    .language-switcher { margin-left: auto; }

    .hero {
        padding-top: 120px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-art {
        min-height: 480px;
    }

    .hero-card {
        width: min(390px, 88%);
    }

    .culture-grid {
        grid-template-columns: 1fr;
    }

    .culture-grid>div {
        min-height: 260px;
    }

    .culture-center {
        border: 0;
        border-top: 1px solid rgba(255, 255, 255, .16);
        border-bottom: 1px solid rgba(255, 255, 255, .16);
    }

    .event-grid,
    .rsvp-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }

    .wishes-heading { grid-template-columns: 1fr; gap: 18px; }
    .wishes-slide { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
    .wishes-slide .wish-card:first-child { grid-column: 1 / 3; grid-row: auto; min-height: 280px; }

    .pass-grid {
        grid-template-columns: 1fr;
    }

    .stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-grid-three {
        grid-template-columns: 1fr;
    }

    .admin-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-detail dl {
        grid-template-columns: 1fr;
    }

    .admin-filters {
        align-items: stretch;
        flex-direction: column;
    }

    .rsvp-copy {
        position: static;
    }

    .activity-grid {
        grid-template-columns: 1fr;
    }

    .activity-card {
        min-height: auto;
    }

    .activity-card p {
        min-height: auto;
    }

    .gallery-grid {
        grid-auto-rows: 90px;
    }

    .venue-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .rsvp-grid,
    .faq-grid {
        gap: 48px;
    }
}

@media (max-width: 600px) {
    :root {
        --shell: calc(100% - 28px);
    }

    .language-switcher button { min-width: 34px; padding-inline: 7px; }
    .wishes-slide { grid-template-columns: 1fr; }
    .wishes-slide .wish-card, .wishes-slide .wish-card:first-child { grid-column: auto; min-height: 210px; padding: 24px; }
    .wishes-controls { grid-template-columns: 1fr auto; }.wishes-progress { grid-column: 1 / -1; }.wishes-controls p { order: 2; }.wishes-arrows { order: 3; }

    h1 {
        font-size: clamp(4rem, 19vw, 5.8rem);
    }

    h2 {
        font-size: clamp(3rem, 15vw, 4.2rem);
    }

    .section {
        padding: 74px 0;
    }

    .hero {
        min-height: auto;
        padding-bottom: 40px;
    }

    .hero-grid {
        min-height: 0;
    }

    .hero-chinese {
        left: -24px;
        top: -50px;
        font-size: 7rem;
    }

    .hero-lede {
        font-size: .98rem;
    }

    .hero-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero-art {
        min-height: 430px;
    }

    .hero-card {
        width: 86%;
    }

    .hero-card strong {
        font-size: 5.2rem;
    }

    .floating-note-one {
        left: 0;
    }

    .floating-note-two {
        right: 0;
    }

    .countdown-wrap {
        grid-template-columns: repeat(2, 1fr);
    }

    .countdown-wrap>div:nth-child(2) {
        border-right: 0;
    }

    .countdown-wrap>div:nth-child(-n+2) {
        border-bottom: 1px solid var(--line);
    }

    .culture-grid>div {
        padding: 42px 24px;
    }

    .section-heading {
        margin-bottom: 46px;
    }

    .timeline {
        margin-left: 0;
    }

    .timeline-line {
        left: 26px;
    }

    .timeline-item {
        grid-template-columns: 52px 1fr;
        gap: 20px;
    }

    .timeline-number {
        width: 52px;
        height: 52px;
    }

    .event-card {
        min-height: 390px;
        padding: 30px;
        border-radius: 28px;
    }

    .event-card h3 {
        font-size: 2.6rem;
    }

    .venue-card {
        padding: 28px;
    }

    .venue-actions {
        width: 100%;
        flex-direction: column;
    }

    .venue-actions .button {
        width: 100%;
    }

    .quiz-card {
        padding: 28px;
        border-radius: 28px;
    }

    .quiz-top {
        gap: 10px;
    }

    .quiz-options {
        flex-direction: column;
    }

    .split-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .gallery-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 160px;
    }

    .gallery-item {
        grid-column: auto !important;
        grid-row: auto !important;
    }

    .gallery-item-1,
    .gallery-item-4 {
        grid-column: span 2 !important;
    }

    .rsvp-form {
        grid-template-columns: 1fr;
        padding: 24px;
        border-radius: 28px;
    }

    .form-wide {
        grid-column: auto;
    }

    .form-submit {
        align-items: flex-start;
        flex-direction: column;
    }

    .faq-question>span:first-child {
        font-size: 1.35rem;
    }

    .closing {
        padding: 90px 0;
    }

    .bingo-dialog {
        padding: 28px 18px 22px;
    }

    .bingo-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-inner {
        flex-direction: column;
    }

    .admin-shell {
        width: min(100% - 24px, 600px);
        padding: 28px 0;
    }

    .admin-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .wedding-pass {
        padding: 26px;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
