/* ==========================================================================
   Clara & Domingos — wedding site
   Palette from the engagement shoot: burgundy satin, black suit, ivory, gold.
   ========================================================================== */

:root {
    --wine-900: #2a060e;
    --wine-800: #3d0a14;
    --wine-700: #561020;
    --wine-600: #75182b;
    --wine-500: #932238;
    --blush: #f6e9e4;
    --gold: #b88c4a;
    --gold-light: #e4cb9c;
    --ivory: #fcf8f2;
    --paper: #f5ecdf;
    --white: #fffdfa;
    --ink: #241618;
    --ink-soft: #5e4a4d;
    --muted: #8b7a7c;
    --line: rgba(117, 24, 43, .14);
    --line-strong: rgba(117, 24, 43, .28);

    --serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
    --script: "Pinyon Script", "Great Vibes", "Snell Roundhand", cursive;
    --sans: "Jost", "Segoe UI", system-ui, -apple-system, sans-serif;

    --radius: 20px;
    --shadow: 0 30px 70px -35px rgba(61, 10, 20, .45);
    --shadow-soft: 0 12px 30px -18px rgba(61, 10, 20, .35);
    --ease: cubic-bezier(.2, .75, .15, 1);
    --paper-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .2 0 0 0 0 .15 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

/* `hidden` must win over component display rules (grid, flex). */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--sans);
    font-weight: 300;
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--ink);
    background: var(--ivory) var(--paper-grain);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    /* Cormorant's default old-style figures make "1" look like "I" — use lining figures for dates and tables. */
    font-variant-numeric: lining-nums;
}
.plan__num, .plan__seat text { font-variant-numeric: lining-nums; }

body.is-locked { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
picture { display: contents; }

a { color: var(--wine-600); text-underline-offset: .2em; }
a:hover { color: var(--wine-500); }

p { margin: 0 0 1em; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.1; margin: 0; }

strong { font-weight: 500; }

::selection { background: var(--wine-600); color: var(--ivory); }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.sr-only, .hp-field {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute; left: 1rem; top: -4rem; z-index: 500;
    background: var(--wine-700); color: var(--ivory);
    padding: .6rem 1rem; border-radius: 8px;
}
.skip-link:focus { top: 1rem; }

.container { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.container--narrow { width: min(780px, 100% - 2.5rem); }
.center { text-align: center; }
.muted { color: var(--muted); }

.icon { flex: none; }

/* --------------------------------------------------------------------------
   Type
   -------------------------------------------------------------------------- */

.eyebrow {
    font-family: var(--sans);
    font-weight: 500;
    font-size: .72rem;
    letter-spacing: .34em;
    text-transform: uppercase;
    color: var(--gold);
    margin: 0 0 .9rem;
}
.eyebrow--light { color: var(--gold-light); }

.title {
    font-size: clamp(2.4rem, 5.4vw, 3.9rem);
    font-weight: 500;
    letter-spacing: -.01em;
    color: var(--wine-800);
}
.title em { font-style: italic; color: var(--wine-600); }
.title--small { font-size: clamp(1.8rem, 3vw, 2.3rem); }
.title__script {
    font-family: var(--script);
    font-weight: 400;
    font-size: 1.2em;
    color: var(--wine-600);
    letter-spacing: 0;
    padding-right: .05em;
}

.script { font-family: var(--script); font-weight: 400; letter-spacing: 0; }

.lede {
    font-family: var(--serif);
    font-style: italic;
    font-size: clamp(1.2rem, 2.2vw, 1.45rem);
    line-height: 1.55;
    margin-top: 1.25rem;
}

.ornament { display: block; width: 120px; margin: 1.3rem auto 1.7rem; color: var(--gold); }
.ornament--left { margin-left: 0; }

.monogram {
    font-family: var(--serif);
    font-weight: 500;
    letter-spacing: .04em;
}
.monogram span { font-family: var(--script); color: var(--gold); padding: 0 .08em; }

/* --------------------------------------------------------------------------
   Buttons, fields
   -------------------------------------------------------------------------- */

.btn {
    --btn-bg: transparent;
    --btn-fg: var(--wine-600);
    --btn-border: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    padding: 1rem 1.8rem;
    border-radius: 999px;
    border: 1px solid var(--btn-border);
    background: var(--btn-bg);
    color: var(--btn-fg);
    font: 500 .76rem/1 var(--sans);
    letter-spacing: .22em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease), box-shadow .3s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: .6; cursor: progress; }

.btn--wine { --btn-bg: var(--wine-600); --btn-fg: var(--ivory); box-shadow: 0 12px 24px -14px rgba(117, 24, 43, .8); }
.btn--wine:hover { --btn-bg: var(--wine-700); --btn-fg: var(--ivory); }
.btn--gold { --btn-bg: var(--gold-light); --btn-fg: var(--wine-800); }
.btn--gold:hover { --btn-bg: #edd8b0; --btn-fg: var(--wine-800); }
.btn--outline { --btn-border: var(--line-strong); --btn-fg: var(--wine-600); }
.btn--outline:hover { --btn-border: var(--wine-600); --btn-fg: var(--wine-600); }
.btn--outline-light { --btn-border: rgba(228, 203, 156, .6); --btn-fg: var(--ivory); }
.btn--outline-light:hover { --btn-bg: var(--gold-light); --btn-fg: var(--wine-800); }
.btn--ghost-light { --btn-fg: var(--gold-light); }
.btn--ghost-light:hover { --btn-fg: var(--ivory); }
.btn--small { padding: .75rem 1.2rem; font-size: .68rem; letter-spacing: .18em; }
.btn--lg { padding: 1.2rem 2.3rem; }
.btn--block { width: 100%; }

.link {
    background: none; border: 0; padding: 0;
    font: 400 .9rem var(--sans);
    color: var(--wine-600);
    text-decoration: underline;
    text-underline-offset: .25em;
    cursor: pointer;
}

.link-arrow {
    display: inline-flex; align-items: center; gap: .4rem;
    font: 500 .74rem var(--sans);
    letter-spacing: .2em; text-transform: uppercase;
    text-decoration: none;
}
.link-arrow .icon { transition: transform .3s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

.field { margin-bottom: 1.1rem; }

.field-label {
    display: block;
    font: 500 .72rem var(--sans);
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-bottom: .5rem;
    padding: 0;
}
.field-label .muted { letter-spacing: .05em; text-transform: none; font-weight: 300; }

input[type="text"], input[type="search"], input[type="tel"], input:not([type]), textarea {
    width: 100%;
    font: 400 1rem/1.5 var(--sans);
    color: var(--ink);
    background: var(--ivory);
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    padding: .85rem 1rem;
    transition: border-color .2s, box-shadow .2s, background .2s;
    -webkit-appearance: none;
    appearance: none;
}
textarea { resize: vertical; min-height: 6rem; }
input:focus, textarea:focus {
    outline: none;
    border-color: var(--gold);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(184, 140, 74, .18);
}
input::placeholder, textarea::placeholder { color: #a99a9b; }
input[type="search"]::-webkit-search-cancel-button { display: none; }

.is-invalid { border-color: #b3261e !important; }
.field-error { color: #b3261e; font-size: .85rem; margin: .35rem 0 0; }
.form-error { color: #b3261e; font-size: .95rem; margin: 0 0 1rem; }

.search-field { position: relative; }
.search-field > .icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--gold); pointer-events: none; }
.search-field input { padding-left: 2.9rem; }
.search-field--large input { font-size: 1.12rem; padding: 1rem 3rem 1rem 3.2rem; border-radius: 999px; background: var(--white); }
.search-field--large > .icon { left: 1.15rem; }
.search-field__clear {
    position: absolute; right: .6rem; top: 50%; transform: translateY(-50%);
    border: 0; background: var(--paper); color: var(--ink-soft);
    width: 2.2rem; height: 2.2rem; border-radius: 50%;
    display: grid; place-items: center; cursor: pointer;
}

.notice { border-radius: 12px; padding: .8rem 1rem; font-size: .95rem; display: flex; gap: .5rem; align-items: center; }
.notice--ok { background: rgba(184, 140, 74, .14); color: var(--wine-700); }
.notice--error { background: #fbe9e7; color: #8c1d18; }

/* --------------------------------------------------------------------------
   Cover (the envelope)
   -------------------------------------------------------------------------- */

.cover { display: none; } /* without JavaScript the page simply starts at the hero */
.js .cover {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    background: var(--wine-900);
    overflow: hidden;
    transition: transform 1.25s var(--ease), visibility 0s linear 1.25s;
}
.cover.is-open { transform: translateY(-100%); visibility: hidden; }
.cover.is-gone { display: none; }

.cover__photo { position: absolute; inset: 0; }
.cover__photo img {
    width: 100%; height: 100%;
    object-fit: cover; object-position: 50% 22%;
    transform: scale(1.06);
    animation: cover-in 9s var(--ease) both;
}
.cover__photo::after {
    content: "";
    position: absolute; inset: 0;
    background:
        linear-gradient(180deg, rgba(42, 6, 14, .3) 0%, rgba(42, 6, 14, .05) 30%, rgba(42, 6, 14, .7) 55%, rgba(42, 6, 14, .96) 80%);
}

.cover__panel {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-height: 100vh;
    min-height: 100svh;
    padding: 1.5rem 1.25rem calc(2rem + env(safe-area-inset-bottom));
}

.cover__frame {
    position: relative;
    width: min(28rem, 100%);
    padding: 2rem 1.4rem 1.6rem;
    text-align: center;
    color: var(--ivory);
    border: 1px solid rgba(228, 203, 156, .55);
    border-radius: 140px 140px 18px 18px;
    background: rgba(42, 6, 14, .3);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    animation: rise 1.4s var(--ease) .2s both;
    transition: opacity .5s, transform .6s var(--ease);
}
.cover__frame::before {
    content: "";
    position: absolute; inset: 8px;
    border: 1px solid rgba(228, 203, 156, .22);
    border-radius: inherit;
    pointer-events: none;
}
.cover.is-opening .cover__frame { opacity: 0; transform: translateY(-14px) scale(.98); }

.cover .eyebrow { color: var(--gold-light); }

.cover__names { display: flex; flex-direction: column; align-items: center; gap: 0; margin: .2rem 0 0; }
.cover__names .script { font-size: clamp(2.9rem, 11.5vw, 5rem); line-height: 1.05; color: var(--ivory); }
.cover__amp { font-family: var(--serif); font-style: italic; font-size: 1.4rem; color: var(--gold-light); line-height: 1; }

.cover .ornament { color: var(--gold-light); margin: .7rem auto .7rem; }

.cover__date {
    font-family: var(--serif);
    font-size: 1.25rem;
    letter-spacing: .3em;
    margin: 0 0 1rem;
}
.cover__date span { color: var(--gold-light); margin: 0 .25em 0 0; }

.cover__dear { margin-bottom: 1.2rem; }
.cover__dear .eyebrow { margin-bottom: .1rem; }
.cover__guest { font-family: var(--serif); font-size: 1.45rem; font-style: italic; margin: 0; line-height: 1.25; }
.cover__table { display: inline-flex; align-items: center; gap: .4rem; margin: .5rem 0 0; font-size: .85rem; color: var(--gold-light); letter-spacing: .06em; }

.cover__hint { font-family: var(--serif); font-style: italic; font-size: 1rem; opacity: .75; margin: .8rem 0 0; }
@media (max-height: 700px) and (max-width: 899px) { .cover__hint { display: none; } }

.cover .btn--wine { --btn-bg: var(--gold-light); --btn-fg: var(--wine-800); }
.cover .btn--wine:hover { --btn-bg: #f0dcb4; }

@media (min-width: 900px) {
    .cover { grid-template-columns: 1fr 1fr; }
    .cover__photo { position: relative; }
    .cover__photo::after { background: linear-gradient(90deg, rgba(42, 6, 14, 0) 60%, rgba(42, 6, 14, .25)); }
    .cover__panel {
        align-items: center;
        background: var(--ivory) var(--paper-grain);
        padding: 3rem;
    }
    .cover__frame {
        color: var(--ink);
        background: transparent;
        border-color: rgba(184, 140, 74, .55);
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        padding: 3.6rem 2.6rem 2.6rem;
    }
    .cover__frame::before { border-color: rgba(184, 140, 74, .25); }
    .cover .eyebrow { color: var(--gold); }
    .cover__names .script { color: var(--wine-700); font-size: 5.4rem; }
    .cover__amp, .cover__date span, .cover__table { color: var(--gold); }
    .cover .ornament { color: var(--gold); }
    .cover .btn--wine { --btn-bg: var(--wine-600); --btn-fg: var(--ivory); }
    .cover .btn--wine:hover { --btn-bg: var(--wine-700); }
    .cover__hint { color: var(--ink-soft); }
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */

.topnav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 60;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: .8rem clamp(1.25rem, 4vw, 3rem);
    background: rgba(252, 248, 242, .88);
    -webkit-backdrop-filter: blur(14px) saturate(1.3);
    backdrop-filter: blur(14px) saturate(1.3);
    border-bottom: 1px solid var(--line);
    transform: translateY(-110%);
    transition: transform .6s var(--ease);
}
.topnav.is-visible { transform: none; }
.topnav__brand { font-size: 1.65rem; color: var(--wine-700); text-decoration: none; }
.topnav__links { display: flex; gap: clamp(1rem, 2.4vw, 2.2rem); list-style: none; margin: 0; padding: 0; }
.topnav__links a {
    position: relative;
    font: 500 .72rem var(--sans);
    letter-spacing: .22em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--ink-soft);
    padding: .4rem 0;
}
.topnav__links a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0;
    height: 1px; background: var(--gold);
    transform: scaleX(0); transition: transform .35s var(--ease);
}
.topnav__links a:hover, .topnav__links a.is-current { color: var(--wine-600); }
.topnav__links a:hover::after, .topnav__links a.is-current::after { transform: scaleX(1); }

@media (min-width: 900px) { .topnav { display: flex; } }

.dock {
    position: fixed;
    left: 50%;
    bottom: calc(.8rem + env(safe-area-inset-bottom));
    z-index: 60;
    display: flex;
    gap: .1rem;
    padding: .35rem;
    background: rgba(42, 6, 14, .9);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(228, 203, 156, .25);
    border-radius: 999px;
    box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .55);
    transform: translate(-50%, 160%);
    transition: transform .6s var(--ease);
}
.dock.is-visible { transform: translate(-50%, 0); }
.dock a {
    display: flex; flex-direction: column; align-items: center; gap: .05rem;
    min-width: 3.6rem;
    padding: .45rem .5rem .35rem;
    border-radius: 999px;
    color: rgba(252, 248, 242, .78);
    text-decoration: none;
    font: 400 .62rem var(--sans);
    letter-spacing: .08em;
}
.dock a .icon { width: 20px; height: 20px; }
.dock a.is-current { color: var(--gold-light); }
.dock .dock__main { background: var(--gold-light); color: var(--wine-800); }
.dock .dock__main.is-current { color: var(--wine-800); }

@media (min-width: 900px) { .dock { display: none; } }

.music {
    position: fixed;
    right: 1rem;
    bottom: calc(5.4rem + env(safe-area-inset-bottom));
    z-index: 61;
    width: 3rem; height: 3rem;
    border-radius: 50%;
    border: 1px solid rgba(228, 203, 156, .5);
    background: var(--wine-700);
    color: var(--gold-light);
    display: grid; place-items: center;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
}
.music .music__on { display: none; }
.music[aria-pressed="true"] .music__on { display: block; animation: spin 6s linear infinite; }
.music[aria-pressed="true"] .music__off { display: none; }
@media (min-width: 900px) { .music { bottom: 1.5rem; right: 1.5rem; } }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    color: var(--ivory);
    overflow: hidden;
    isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__media img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: 50% 25%;
    animation: kenburns 28s ease-out both;
}
.hero__media::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(20, 4, 8, .25) 0%, rgba(20, 4, 8, 0) 28%, rgba(30, 5, 12, .62) 58%, rgba(30, 5, 12, .93) 100%);
}
@media (min-width: 900px) {
    .hero__media img { object-position: 50% 35%; }
}

.hero__content {
    text-align: center;
    padding: 0 1.25rem calc(7.5rem + env(safe-area-inset-bottom));
    max-width: 62rem;
}
.hero__names { font-weight: 400; margin: 0; }
.hero__names .script { font-size: clamp(3.8rem, 12vw, 8.4rem); line-height: 1; text-shadow: 0 6px 30px rgba(0, 0, 0, .3); }
.hero__amp { font-family: var(--serif); font-style: italic; font-size: clamp(1.8rem, 4vw, 3rem); color: var(--gold-light); vertical-align: .4em; padding: 0 .3em; }
.hero__date {
    margin: 1.4rem 0 1.6rem;
    font: 400 .8rem/1.9 var(--sans);
    letter-spacing: .3em;
    text-transform: uppercase;
}
.hero__date i { font-style: normal; color: var(--gold-light); padding: 0 .55em; }
.hero__when, .hero__where { display: block; }
.hero__where i { display: none; }
@media (min-width: 700px) {
    .hero__when, .hero__where { display: inline; }
    .hero__where i { display: inline; }
}

.countdown--mini {
    display: inline-flex;
    align-items: baseline;
    padding: .55rem 1.3rem;
    border: 1px solid rgba(228, 203, 156, .42);
    border-radius: 999px;
    background: rgba(42, 6, 14, .3);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}
.countdown--mini span {
    display: inline-flex; align-items: baseline; gap: .3rem;
    font-size: .66rem; letter-spacing: .14em; text-transform: uppercase;
    color: rgba(252, 248, 242, .85);
}
.countdown--mini span + span::before { content: "·"; color: var(--gold-light); padding: 0 .7rem 0 .55rem; }
.countdown--mini b { font: 500 1.3rem var(--serif); letter-spacing: 0; color: var(--ivory); font-variant-numeric: tabular-nums lining-nums; }

.hero__scroll {
    position: absolute; left: 50%; bottom: calc(5.4rem + env(safe-area-inset-bottom));
    width: 1.5rem; height: 2.4rem;
    margin-left: -.75rem;
    border: 1px solid rgba(252, 248, 242, .6);
    border-radius: 999px;
    display: none;
}
.hero__scroll span {
    position: absolute; left: 50%; top: .45rem;
    width: 3px; height: 7px; margin-left: -1.5px;
    border-radius: 2px; background: var(--gold-light);
    animation: scroll-dot 2s ease-in-out infinite;
}
@media (min-width: 900px) {
    .hero__content { padding-bottom: 8rem; }
    .hero__scroll { display: block; bottom: 2rem; }
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section { position: relative; padding: clamp(5rem, 11vw, 8.5rem) 0; }
.section--paper { background: var(--paper) var(--paper-grain); }
.section--blush { background: var(--blush) var(--paper-grain); }
.section--wine {
    color: var(--ivory);
    background:
        radial-gradient(ellipse at 15% 0%, rgba(147, 34, 56, .55), transparent 55%),
        radial-gradient(ellipse at 100% 100%, rgba(184, 140, 74, .16), transparent 50%),
        var(--wine-800);
}
.section--wine .title { color: var(--ivory); }
.section--wine .title__script { color: var(--gold-light); }

.section-head { text-align: center; max-width: 46rem; margin: 0 auto clamp(2.8rem, 6vw, 4rem); }
.section-head--light .eyebrow { color: var(--gold-light); }

/* Verse ------------------------------------------------------------------ */

.verse { margin: 0; position: relative; }
.verse::before {
    content: "\201C";
    display: block;
    font: 400 6rem/0.6 var(--serif);
    color: var(--gold);
    opacity: .5;
    margin-bottom: .6rem;
}
.verse p {
    font-family: var(--serif);
    font-style: italic;
    font-size: clamp(1.3rem, 2.5vw, 1.65rem);
    line-height: 1.6;
    color: var(--ink-soft);
}
.verse cite, .pull-quote cite {
    font: 500 .74rem var(--sans);
    font-style: normal;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--wine-600);
}

/* Couple ----------------------------------------------------------------- */

.couple__grid {
    display: grid;
    gap: 2.5rem;
    max-width: 1000px;
    margin: 0 auto;
    align-items: center;
}
.couple__amp { text-align: center; font-size: 5rem; line-height: .6; color: var(--gold); }

.person { text-align: center; }
.arch {
    position: relative;
    width: min(320px, 82%);
    aspect-ratio: 4 / 5;
    margin: 0 auto 2.2rem;
    border-radius: 999px 999px 22px 22px;
    overflow: hidden;
    box-shadow: var(--shadow);
    outline: 1px solid rgba(184, 140, 74, .55);
    outline-offset: 10px;
}
.arch img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: transform 1.4s var(--ease); }
.person:hover .arch img { transform: scale(1.04); }
.person .eyebrow { margin-bottom: .2rem; }
.person__name { font-size: clamp(3.2rem, 7vw, 4.4rem); line-height: 1.15; color: var(--wine-600); font-weight: 400; }
.person__full { font-family: var(--serif); font-size: 1.35rem; margin: .1rem 0 .6rem; }
.person__bio { font-family: var(--serif); font-style: italic; font-size: 1.12rem; color: var(--ink-soft); max-width: 22rem; margin: .4rem auto 0; }
.person__social { display: inline-flex; margin-top: .8rem; color: var(--gold); }

@media (min-width: 800px) {
    .couple__grid { grid-template-columns: 1fr auto 1fr; }
    .couple__amp { font-size: 7rem; padding-bottom: 6rem; }
}

/* Events ----------------------------------------------------------------- */

.events__grid { display: grid; gap: 1.8rem; max-width: 1000px; margin: 0 auto; }
@media (min-width: 800px) {
    .events__grid--2, .events__grid--4 { grid-template-columns: repeat(2, 1fr); }
    .events__grid--3 { grid-template-columns: repeat(3, 1fr); }
}

.event-card {
    position: relative;
    text-align: center;
    padding: 4.2rem 1.8rem 2.6rem;
    border: 1px solid rgba(228, 203, 156, .38);
    border-radius: 260px 260px 24px 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015));
}
.event-card::before {
    content: "";
    position: absolute; inset: 9px;
    border: 1px solid rgba(228, 203, 156, .16);
    border-radius: inherit;
    pointer-events: none;
}
.event-card__icon {
    width: 4.2rem; height: 4.2rem;
    margin: 0 auto 1.3rem;
    display: grid; place-items: center;
    border-radius: 50%;
    border: 1px solid rgba(228, 203, 156, .45);
    color: var(--gold-light);
}
.event-card__name { font-size: clamp(2rem, 4vw, 2.5rem); color: var(--ivory); }
.event-card .ornament { color: var(--gold-light); margin: 1rem auto 1.2rem; }
.event-card__day { font: 500 .74rem var(--sans); letter-spacing: .32em; text-transform: uppercase; color: var(--gold-light); margin: 0; }
.event-card__date { font-family: var(--serif); font-size: 1.75rem; margin: .1rem 0 .3rem; }
.event-card__time { display: inline-flex; align-items: center; gap: .4rem; letter-spacing: .14em; font-size: .95rem; margin-bottom: 1.2rem; }
.event-card__venue { font-family: var(--serif); font-style: italic; font-size: 1.45rem; margin: 0; }
.event-card__address { font-size: .92rem; opacity: .75; margin: .2rem 0 0; }
.event-card__dress { font-size: .9rem; margin: .8rem 0 0; color: var(--gold-light); }
.event-card__desc { font-size: .98rem; opacity: .82; max-width: 26rem; margin: 1rem auto 0; }
.event-card__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: 1.6rem; }

/* Countdown band --------------------------------------------------------- */

.countdown-band {
    position: relative;
    padding: clamp(6rem, 14vw, 9rem) 1.25rem;
    text-align: center;
    color: var(--ivory);
    overflow: hidden;
    isolation: isolate;
}
.countdown-band__media { position: absolute; inset: 0; z-index: -1; }
.countdown-band__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.countdown-band__media::after { content: ""; position: absolute; inset: 0; background: rgba(42, 6, 14, .74); }
.countdown-band__title { font-size: clamp(3.5rem, 10vw, 6rem); margin: 0; }

.countdown { display: flex; justify-content: center; gap: clamp(.7rem, 3.5vw, 3rem); margin: .4rem 0 2rem; }
.countdown__unit { min-width: 4.2rem; }
.countdown__unit span {
    display: block;
    font: 400 clamp(3rem, 10vw, 6.2rem)/1 var(--serif);
    font-variant-numeric: tabular-nums lining-nums;
}
.countdown__unit small {
    display: block;
    margin-top: .6rem;
    font: 500 .66rem var(--sans);
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--gold-light);
}
.countdown__unit + .countdown__unit { position: relative; }
.countdown__unit + .countdown__unit::before {
    content: "";
    position: absolute;
    left: calc(clamp(.7rem, 3.5vw, 3rem) / -2);
    top: 18%; bottom: 38%;
    width: 1px;
    background: rgba(228, 203, 156, .35);
}

/* Gallery ---------------------------------------------------------------- */

.gallery__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-flow: dense;
    gap: .8rem;
}
.gallery__item {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 16px;
    aspect-ratio: 4 / 5;
    cursor: zoom-in;
    background: var(--paper);
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: transform 1.2s var(--ease), filter .6s; }
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item::after {
    content: "";
    position: absolute; inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25);
    pointer-events: none;
}
.gallery__item--1 { grid-column: span 2; }
.gallery__item--3 { grid-column: span 2; aspect-ratio: 3 / 2; }
.gallery__item--5 { grid-column: span 2; aspect-ratio: 4 / 3; }

@media (min-width: 900px) {
    .gallery__grid { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 118px; gap: 1rem; }
    .gallery__item { aspect-ratio: auto; }
    .gallery__item--1 { grid-column: 1 / 3; grid-row: 1 / 6; }
    .gallery__item--2 { grid-column: 3 / 5; grid-row: 1 / 4; }
    .gallery__item--3 { grid-column: 5 / 7; grid-row: 1 / 3; aspect-ratio: auto; }
    .gallery__item--4 { grid-column: 5 / 7; grid-row: 3 / 6; }
    .gallery__item--5 { grid-column: 3 / 5; grid-row: 4 / 6; aspect-ratio: auto; }
}

.lightbox {
    position: fixed; inset: 0; z-index: 300;
    display: grid;
    place-items: center;
    background: rgba(20, 4, 8, .95);
    padding: 3.5rem .75rem;
    animation: fade .3s ease both;
}
.lightbox[hidden] { display: none; }
.lightbox__figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: .8rem; }
.lightbox__figure img { max-width: min(92vw, 1100px); max-height: 82vh; width: auto; height: auto; border-radius: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.lightbox__figure figcaption { color: rgba(252, 248, 242, .75); font-family: var(--serif); font-style: italic; text-align: center; max-width: 40rem; }
.lightbox button {
    position: absolute;
    background: rgba(252, 248, 242, .08);
    border: 1px solid rgba(228, 203, 156, .3);
    color: var(--ivory);
    border-radius: 50%;
    width: 3rem; height: 3rem;
    display: grid; place-items: center;
    cursor: pointer;
}
.lightbox button:hover { background: rgba(252, 248, 242, .18); }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__nav--prev { left: .75rem; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: .75rem; top: 50%; transform: translateY(-50%); }

/* Quote + trio ----------------------------------------------------------- */

.pull-quote { margin: 0 auto clamp(3rem, 7vw, 5rem); max-width: 48rem; text-align: center; }
.pull-quote p {
    font: italic 400 clamp(1.7rem, 3.6vw, 2.6rem)/1.35 var(--serif);
    color: var(--wine-800);
    margin-bottom: 1.2rem;
}
.pull-quote p::before { content: "\201C"; color: var(--gold); }
.pull-quote p::after { content: "\201D"; color: var(--gold); }

.trio { display: grid; gap: 1.2rem; }
.trio__item {
    position: relative;
    margin: 0;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 999px 999px 18px 18px;
    box-shadow: var(--shadow-soft);
}
.trio__item img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; transition: transform 1.4s var(--ease); }
.trio__item:hover img { transform: scale(1.05); }
.trio__item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(42, 6, 14, .75)); }
.trio__item figcaption {
    position: absolute; left: 0; right: 0; bottom: 1.4rem; z-index: 1;
    text-align: center;
    font-size: clamp(2.8rem, 5vw, 3.6rem);
    color: var(--ivory);
    text-shadow: 0 4px 20px rgba(0, 0, 0, .35);
}
@media (min-width: 760px) {
    .trio { grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
    .trio__item:nth-child(2) { transform: translateY(2.2rem); }
}
@media (max-width: 759px) {
    .trio { grid-template-columns: repeat(3, 1fr); gap: .6rem; }
    .trio__item figcaption { font-size: 1.9rem; bottom: .6rem; }
}

/* Seat finder ------------------------------------------------------------ */

.seat-finder { padding-top: clamp(4rem, 9vw, 7rem); }
.seat-finder__card {
    position: relative;
    max-width: 760px;
    margin: 0 auto;
    padding: clamp(2.6rem, 6vw, 4rem) clamp(1.25rem, 5vw, 3.5rem);
    text-align: center;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: var(--shadow);
}
.seat-finder__card::before {
    content: "";
    position: absolute; inset: 10px;
    border: 1px solid rgba(184, 140, 74, .25);
    border-radius: 20px;
    pointer-events: none;
}
.seat-finder__stats { color: var(--muted); letter-spacing: .08em; margin-top: .8rem; }

.search-pill {
    position: relative;
    display: flex;
    align-items: center;
    gap: .5rem;
    max-width: 540px;
    margin: 1.8rem auto 1.2rem;
    padding: .35rem .35rem .35rem 1.1rem;
    background: var(--ivory);
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    transition: border-color .2s, box-shadow .2s;
}
.search-pill:focus-within { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(184, 140, 74, .18); }
.search-pill > .icon { color: var(--gold); }
.search-pill input { border: 0; background: transparent; padding: .6rem .2rem; box-shadow: none !important; min-width: 0; }

.my-seats { list-style: none; padding: 0; margin: 1.4rem auto 0; max-width: 28rem; text-align: left; }
.my-seats li {
    display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
    padding: .6rem 0;
    border-bottom: 1px dashed var(--line-strong);
    font-family: var(--serif); font-size: 1.2rem;
}
.my-seats b { font: 500 .74rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--wine-600); white-space: nowrap; }

/* RSVP ------------------------------------------------------------------- */

.rsvp__wrap { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 960px) { .rsvp__wrap { grid-template-columns: 5fr 7fr; gap: 4.5rem; } .rsvp__intro { position: sticky; top: 7rem; } }

.rsvp__intro p { font-size: 1.08rem; }
.rsvp__card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 26px;
    padding: clamp(1.6rem, 4vw, 2.6rem);
    box-shadow: var(--shadow);
}
.rsvp__card .notice { margin-bottom: 1.2rem; }
.rsvp__closed { font-family: var(--serif); font-size: 1.3rem; font-style: italic; margin: 0; }

.hint { font-size: .9rem; color: var(--muted); margin: .7rem 0 0; }
.help { font-size: .92rem; margin: 1rem 0 0; }
.help a { display: inline-flex; align-items: center; gap: .3rem; }

.rsvp-results { list-style: none; padding: 0; margin: .9rem 0 0; display: grid; gap: .55rem; }
.rsvp-results button {
    width: 100%;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    text-align: left;
    padding: .95rem 1.1rem;
    background: var(--ivory);
    border: 1px solid var(--line);
    border-radius: 16px;
    cursor: pointer;
    font: inherit; color: inherit;
    transition: border-color .2s, background .2s, transform .2s var(--ease);
}
.rsvp-results button:hover, .rsvp-results button:focus-visible { border-color: var(--gold); background: var(--white); transform: translateY(-1px); }
.rsvp-results__label { display: block; font: 500 1.25rem/1.2 var(--serif); color: var(--wine-800); }
.rsvp-results__meta { display: block; font-size: .85rem; color: var(--muted); margin-top: .15rem; }
.rsvp-results__meta mark { background: none; color: var(--wine-600); font-weight: 500; }
.badge {
    flex: none;
    font: 500 .62rem var(--sans); letter-spacing: .14em; text-transform: uppercase;
    padding: .35rem .6rem; border-radius: 999px;
    background: rgba(184, 140, 74, .16); color: var(--wine-700);
}

.rsvp-form__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.rsvp-form__head .eyebrow { margin-bottom: .2rem; }
.rsvp-form__label { font-size: clamp(1.6rem, 3.5vw, 2.1rem); color: var(--wine-800); }
.rsvp-form__status { background: rgba(184, 140, 74, .12); border-radius: 12px; padding: .7rem 1rem; font-size: .95rem; }

.choice, .who { border: 0; padding: 0; margin: 0 0 1.3rem; min-width: 0; }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.choice legend { grid-column: 1 / -1; }
.choice__opt { position: relative; cursor: pointer; }
.choice__opt input { position: absolute; opacity: 0; pointer-events: none; }
.choice__opt span {
    display: flex; align-items: center; justify-content: center; gap: .45rem;
    min-height: 3.6rem;
    padding: .8rem;
    text-align: center;
    border: 1px solid var(--line-strong);
    border-radius: 16px;
    font-family: var(--serif); font-size: 1.15rem;
    transition: background .25s, color .25s, border-color .25s, box-shadow .25s;
}
.choice__opt span .icon { opacity: .5; }
.choice__opt:hover span { border-color: var(--gold); }
.choice__opt input:checked + span { background: var(--wine-600); border-color: var(--wine-600); color: var(--ivory); box-shadow: 0 12px 24px -14px rgba(117, 24, 43, .8); }
.choice__opt input:checked + span .icon { opacity: 1; }
.choice__opt input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 3px; }

.who__list { display: grid; gap: .5rem; }
.who__guest {
    display: flex; align-items: center; gap: .8rem;
    padding: .8rem 1rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    cursor: pointer;
    background: var(--ivory);
}
.who__guest input { width: 1.2rem; height: 1.2rem; accent-color: var(--wine-600); flex: none; }
.who__name { font-family: var(--serif); font-size: 1.2rem; flex: 1; }
.who__table { font: 500 .66rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); white-space: nowrap; }
.rsvp-form.is-declined .who { display: none; }

.rsvp-thanks { text-align: center; padding: 1rem 0; outline: none; }
.rsvp-thanks__icon { width: 4.4rem; height: 4.4rem; margin: 0 auto 1rem; display: grid; place-items: center; border-radius: 50%; background: rgba(184, 140, 74, .15); color: var(--wine-600); animation: pop .6s var(--ease) both; }
.rsvp-thanks__title { font-size: 3.4rem; color: var(--wine-600); margin-bottom: .6rem; }
.rsvp-thanks__actions { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-top: 1.6rem; }

/* Wishes ----------------------------------------------------------------- */

.wishes__layout { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 960px) { .wishes__layout { grid-template-columns: 5fr 7fr; gap: 3rem; } }

.wish-form {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: clamp(1.5rem, 4vw, 2.2rem);
    box-shadow: var(--shadow-soft);
}
.wish-form .notice { margin-bottom: 1rem; }

.wish-wall {
    columns: 1;
    column-gap: 1rem;
    max-height: 44rem;
    overflow: auto;
    padding: .2rem .4rem 2rem .2rem;
    -webkit-mask-image: linear-gradient(180deg, #000 88%, transparent);
    mask-image: linear-gradient(180deg, #000 88%, transparent);
    scrollbar-width: thin;
    scrollbar-color: var(--gold-light) transparent;
}
@media (min-width: 640px) { .wish-wall { columns: 2; } }
.wish {
    break-inside: avoid;
    margin: 0 0 1rem;
    padding: 1.4rem 1.4rem 1.1rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 8px 20px -16px rgba(61, 10, 20, .4);
}
.wish--featured { border-color: var(--gold); }
.wish.is-new { animation: pop .7s var(--ease) both; border-color: var(--gold); }
.wish__message { font: italic 400 1.17rem/1.5 var(--serif); color: var(--ink); margin-bottom: .8rem; overflow-wrap: anywhere; }
.wish__from { font: 500 .7rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--wine-600); margin: 0; }
.wish__from time { display: block; margin-top: .2rem; font-weight: 400; color: var(--muted); letter-spacing: .08em; }
.wish-wall__empty { text-align: center; color: var(--muted); font-family: var(--serif); font-style: italic; font-size: 1.2rem; padding: 3rem 1rem; column-span: all; }
.wish-wall__empty .icon { margin: 0 auto .5rem; color: var(--gold); }

/* Hashtag ---------------------------------------------------------------- */

.hashtag__pill {
    position: relative;
    display: inline-flex; align-items: center; gap: .7rem;
    margin-top: 1rem;
    padding: 1rem 1.8rem;
    font: 500 clamp(1.25rem, 3.6vw, 1.7rem) var(--serif);
    color: var(--wine-700);
    background: var(--white);
    border: 1px solid var(--gold);
    border-radius: 999px;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    transition: transform .3s var(--ease), background .3s;
    max-width: 100%;
    overflow-wrap: anywhere;
}
.hashtag__pill:hover { transform: translateY(-2px); background: var(--ivory); }
.hashtag__pill .icon { color: var(--gold); }
.hashtag__done {
    position: absolute; left: 50%; top: calc(100% + .6rem);
    transform: translateX(-50%);
    font: 400 .8rem var(--sans); letter-spacing: .1em;
    color: var(--wine-600);
    white-space: nowrap;
}

/* Footer ----------------------------------------------------------------- */

.site-footer {
    background: var(--wine-900);
    color: rgba(252, 248, 242, .85);
    text-align: center;
    padding: 4.5rem 1.25rem calc(7.5rem + env(safe-area-inset-bottom));
}
.monogram--footer { font-size: 3rem; color: var(--gold-light); margin: 0; }
.site-footer__title { font: italic 400 clamp(1.7rem, 4vw, 2.3rem) var(--serif); color: var(--ivory); margin: .6rem 0 .3rem; }
.site-footer__date { font-size: .78rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-light); }
.site-footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.6rem; margin: 1.8rem 0; }
.site-footer__links a { display: inline-flex; align-items: center; gap: .35rem; color: rgba(252, 248, 242, .8); text-decoration: none; font-size: .9rem; }
.site-footer__links a:hover { color: var(--gold-light); }
.site-footer__small { font-size: .8rem; opacity: .55; display: inline-flex; align-items: center; gap: .35rem; margin: 0; }
@media (min-width: 900px) { .site-footer { padding-bottom: 4.5rem; } }

/* --------------------------------------------------------------------------
   Guest list page
   -------------------------------------------------------------------------- */

.page-hero {
    position: relative;
    min-height: 54vh;
    display: flex;
    align-items: flex-end;
    color: var(--ivory);
    padding: 6rem 0 3rem;
    overflow: hidden;
    isolation: isolate;
}
.page-hero__media { position: absolute; inset: 0; z-index: -1; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.page-hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(42, 6, 14, .45), rgba(42, 6, 14, .9)); }
.back-link {
    display: inline-flex; align-items: center; gap: .35rem;
    color: var(--gold-light); text-decoration: none;
    font: 500 .72rem var(--sans); letter-spacing: .2em; text-transform: uppercase;
    margin-bottom: 1.8rem;
}
.back-link:hover { color: var(--ivory); }
.page-hero__title { font-size: clamp(2.7rem, 7.5vw, 5rem); font-weight: 500; color: var(--ivory); }
.page-hero__title .script { color: var(--gold-light); font-size: 1.1em; }
.page-hero__meta { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; margin: 1.2rem 0 0; font-size: .84rem; letter-spacing: .12em; text-transform: uppercase; }
.page-hero__meta span { display: inline-flex; align-items: center; gap: .45rem; }
.page-hero__meta .icon { color: var(--gold-light); }

.finder {
    position: sticky; top: 0; z-index: 40;
    padding: .9rem 0 .2rem;
    background: rgba(252, 248, 242, .9);
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
    backdrop-filter: blur(14px) saturate(1.2);
    border-bottom: 1px solid var(--line);
}
.finder__bar { display: flex; gap: .8rem; align-items: center; }
.finder__bar .search-field { flex: 1; }
.finder__print { flex: none; }
@media (max-width: 600px) { .finder__print { display: none; } }
.finder { padding-bottom: .9rem; }
.finder__status { font-size: .88rem; color: var(--muted); margin: .55rem .4rem .5rem; }
.finder__status:empty { display: none; }
.finder__results {
    list-style: none; margin: 0 0 .6rem; padding: 0;
    display: flex; flex-wrap: wrap; gap: .5rem;
    max-height: 32vh; overflow: auto;
}
.finder__results:empty { display: none; }
.finder__results button {
    display: inline-flex; align-items: center; gap: .6rem;
    padding: .55rem .6rem .55rem 1rem;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: var(--white);
    font: 400 1.05rem var(--serif);
    color: var(--ink);
    cursor: pointer;
    transition: border-color .2s, background .2s;
}
.finder__results button:hover, .finder__results button:focus-visible { border-color: var(--wine-600); }
.finder__results b {
    font: 500 .64rem var(--sans); letter-spacing: .12em; text-transform: uppercase;
    background: var(--wine-600); color: var(--ivory);
    padding: .35rem .6rem; border-radius: 999px;
}

.guests-page { padding-bottom: 5rem; }
.guests-page__note { margin: 0 0 1.5rem; }
.guests-page__foot { text-align: center; margin-top: 3rem; font-family: var(--serif); font-style: italic; font-size: 1.1rem; }

.table-jump { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; margin: 2rem 0 2.2rem; }
.table-jump a {
    width: 2.5rem; height: 2.5rem;
    display: grid; place-items: center;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--white);
    font: 500 1rem var(--serif);
    color: var(--ink-soft);
    text-decoration: none;
    transition: background .2s, color .2s, border-color .2s;
}
.table-jump a:hover { border-color: var(--wine-600); color: var(--wine-600); }
.table-jump a.is-match { background: var(--wine-600); color: var(--ivory); border-color: var(--wine-600); }

.tables-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 1.4rem; }

.table-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 1.5rem 1.4rem 1.2rem;
    box-shadow: 0 14px 30px -24px rgba(61, 10, 20, .45);
    scroll-margin-top: 9.5rem;
    transition: opacity .35s, transform .35s var(--ease), box-shadow .35s, border-color .35s;
}
.table-card__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.table-card__title { font-size: 2.3rem; color: var(--wine-700); display: flex; align-items: baseline; gap: .6rem; }
.table-card__title .eyebrow { margin: 0; font-size: .66rem; }
.table-card__count { margin: 0; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

.table-card__plan { width: 172px; height: 172px; margin: .6rem auto .8rem; overflow: visible; }
.plan__table { fill: var(--paper); stroke: var(--gold); stroke-width: 1; }
.plan__label { font: 500 8px var(--sans); letter-spacing: .3em; fill: var(--gold); text-anchor: middle; }
.plan__num { font: 500 32px var(--serif); fill: var(--wine-700); text-anchor: middle; }
.plan__seat circle { fill: var(--ivory); stroke: var(--wine-500); stroke-width: 1.1; transition: fill .25s, stroke .25s; }
.plan__seat text { font: 500 10px var(--sans); fill: var(--ink-soft); text-anchor: middle; transition: fill .25s; }
.plan__seat.is-empty circle { stroke: var(--gold); stroke-dasharray: 2.5 2.5; fill: transparent; }
.plan__seat.is-empty text { fill: var(--muted); }
.plan__seat.is-active circle, .plan__seat.is-mine circle { fill: var(--wine-600); stroke: var(--wine-600); }
.plan__seat.is-active text, .plan__seat.is-mine text { fill: var(--ivory); }
.plan__seat.is-match circle { fill: var(--gold-light); stroke: var(--gold); }

.table-card__list { list-style: none; margin: 0; padding: 0; }
.table-card__list li {
    display: flex; align-items: center; gap: .7rem;
    padding: .32rem .5rem;
    border-radius: 10px;
    cursor: default;
    transition: background .2s;
}
.table-card__list li:hover, .table-card__list li.is-active { background: rgba(117, 24, 43, .06); }
.seat-no {
    flex: none;
    width: 1.65rem; height: 1.65rem;
    display: grid; place-items: center;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    font: 500 .72rem var(--sans);
    color: var(--ink-soft);
}
.guest-name { font: 400 1.14rem/1.3 var(--serif); }
.table-card__list li.is-empty .guest-name { color: var(--muted); font-style: italic; font-size: 1rem; }
.table-card__list li.is-empty .seat-no { border-style: dashed; }
.table-card__list li.is-match { background: rgba(228, 203, 156, .35); }
.table-card__list li.is-match .guest-name { font-weight: 600; color: var(--wine-800); }
.table-card__list li.is-mine { background: rgba(117, 24, 43, .08); }
.table-card__list li.is-mine .seat-no { background: var(--wine-600); border-color: var(--wine-600); color: var(--ivory); }
.table-card__list li.is-mine .guest-name { font-weight: 600; }

.tables-grid.is-filtering .table-card:not(.is-match) { opacity: .32; }
.table-card.is-match { border-color: var(--gold); box-shadow: 0 18px 40px -24px rgba(117, 24, 43, .6); }
.table-card.is-flash { animation: flash 1.6s var(--ease); }

.unseated { margin-top: 3rem; text-align: center; }
.unseated ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: 1rem; }
.unseated li { padding: .4rem .9rem; border: 1px dashed var(--line-strong); border-radius: 999px; font-family: var(--serif); }

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */

.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease) var(--delay, 0ms), transform 1s var(--ease) var(--delay, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .trio__item.reveal.is-in:nth-child(2) { transform: translateY(2.2rem); }
@media (max-width: 759px) { .js .trio__item.reveal.is-in:nth-child(2) { transform: none; } }

@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes cover-in { from { transform: scale(1.14); } to { transform: scale(1.04); } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { 0% { opacity: 0; transform: scale(.9); } 60% { opacity: 1; transform: scale(1.03); } 100% { transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes scroll-dot { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }
@keyframes flash { 0%, 100% { box-shadow: 0 14px 30px -24px rgba(61, 10, 20, .45); } 30% { box-shadow: 0 0 0 4px var(--gold-light), 0 20px 40px -20px rgba(117, 24, 43, .6); } }

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

/* --------------------------------------------------------------------------
   Print (seating plan)
   -------------------------------------------------------------------------- */

@media print {
    @page { margin: 12mm; }
    body { background: #fff; font-size: 10pt; }
    .page-hero__media, .finder, .table-jump, .site-footer, .back-link, .skip-link, .guests-page__note, .guests-page__foot { display: none !important; }
    .page-hero { min-height: 0; color: var(--ink); padding: 0 0 6mm; }
    .page-hero__title { color: var(--wine-800); font-size: 24pt; }
    .page-hero__meta, .page-hero .eyebrow { color: var(--ink-soft); }
    .container { width: 100%; }
    .tables-grid { grid-template-columns: repeat(3, 1fr); gap: 4mm; }
    .tables-grid.is-filtering .table-card { opacity: 1 !important; }
    .table-card { break-inside: avoid; box-shadow: none; padding: 3mm 4mm; border-radius: 4mm; }
    .table-card__plan { display: none; }
    .table-card__title { font-size: 16pt; }
    .table-card__list li { padding: .5mm 0; }
    .guest-name { font-size: 10.5pt; }
    .seat-no { width: 5mm; height: 5mm; font-size: 7pt; }
}

/* --------------------------------------------------------------------------
   /manage
   -------------------------------------------------------------------------- */

.manage-body { background: var(--paper) var(--paper-grain); min-height: 100vh; }
.manage { padding: 2.2rem 0 5rem; }

.manage-bar {
    position: sticky; top: 0; z-index: 30;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1.5rem;
    padding: .8rem clamp(1rem, 4vw, 2.5rem);
    background: rgba(255, 253, 250, .94);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.manage-bar__brand { font-size: 1.5rem; color: var(--wine-700); text-decoration: none; }
.manage-bar__brand small { font: 500 .66rem var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin-left: .5rem; }
.manage-bar__nav { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem 1.3rem; }
.manage-bar__nav a, .manage-bar__nav .link { font: 400 .92rem var(--sans); color: var(--ink-soft); text-decoration: none; }
.manage-bar__nav a:hover, .manage-bar__nav .link:hover { color: var(--wine-600); }
.manage-bar__nav form { margin: 0; }

.manage-head { margin-bottom: 1.6rem; }
.manage-head .eyebrow { margin-bottom: .3rem; }
.manage-head--row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem; }
.manage-flash { margin: 0 0 1.4rem; }
.manage code, .manage-code { font: 400 .88em ui-monospace, Consolas, monospace; background: rgba(117, 24, 43, .07); padding: .1em .35em; border-radius: 5px; }
.manage-code { display: block; padding: .9rem 1rem; margin: 1rem 0 0; white-space: pre-wrap; }

.manage-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .8rem; margin-bottom: 1.6rem; }
.mstat { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 1rem 1.2rem; text-decoration: none; color: inherit; }
.mstat b { display: block; font: 500 2.2rem/1 var(--serif); color: var(--wine-700); }
.mstat span { font-size: .82rem; color: var(--muted); }
.mstat--link:hover { border-color: var(--gold); }
.mstat--wine { background: var(--wine-600); border-color: var(--wine-600); }
.mstat--wine b, .mstat--wine span { color: var(--ivory); }

.manage-grid { display: grid; gap: 1.2rem; }
@media (min-width: 960px) { .manage-grid { grid-template-columns: 1fr 1fr; align-items: start; } }

.mcard { background: var(--white); border: 1px solid var(--line); border-radius: 22px; padding: clamp(1.3rem, 3vw, 1.9rem); box-shadow: var(--shadow-soft); }
.mcard .eyebrow { margin-bottom: .2rem; }
.mcard__title { font-size: 1.8rem; color: var(--wine-800); margin-bottom: .8rem; }
.mcard form { margin: 0; }

.mlist { display: grid; grid-template-columns: auto 1fr; gap: .35rem 1.2rem; margin: 0 0 1.2rem; }
.mlist dt { font: 500 .7rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-top: .2rem; }
.mlist dd { margin: 0; font-family: var(--serif); font-size: 1.15rem; }

.mdetails { margin: 0 0 1.1rem; border: 1px solid var(--line); border-radius: 14px; padding: .8rem 1rem; }
.mdetails summary { cursor: pointer; font-weight: 400; color: var(--wine-600); }
.mdetails[open] summary { margin-bottom: .7rem; }
.mdetails ol { padding-left: 1.2rem; margin: 0; }
.mdetails li { margin-bottom: .4rem; }
.mdetails--danger { border-color: rgba(179, 38, 30, .3); background: #fffaf9; }

.mcheck { display: flex; gap: .6rem; align-items: center; margin: 0 0 .9rem; font-size: .95rem; }
.mcheck input { width: 1.1rem; height: 1.1rem; accent-color: var(--wine-600); }
.minline { display: flex; gap: .6rem; }
.minline input { max-width: 12rem; }

.mseat { display: grid; grid-template-columns: 1fr 1fr; gap: 0 .8rem; align-items: end; }
.mseat__name { grid-column: 1 / -1; }
.mseat .btn { grid-column: 1 / -1; }
@media (min-width: 640px) {
    .mseat { grid-template-columns: 6rem 6rem 1fr auto; }
    .mseat__name, .mseat .btn { grid-column: auto; }
    .mseat .btn { margin-bottom: 1.1rem; }
}
.mactions { display: flex; flex-wrap: wrap; gap: .6rem; }

.mfilter { max-width: 26rem; margin-bottom: 1rem; }
.mtable-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--line); border-radius: 18px; }
.mtable { width: 100%; border-collapse: collapse; font-size: .95rem; }
.mtable th { text-align: left; font: 500 .68rem var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); padding: .9rem 1rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
.mtable td { padding: .7rem 1rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.mtable tbody tr:last-child td { border-bottom: 0; }
.mtable tbody tr:hover { background: rgba(184, 140, 74, .06); }
.mtable__name { font-family: var(--serif); font-size: 1.12rem; white-space: nowrap; }
.mtable__link { font-family: ui-monospace, Consolas, monospace; font-size: .88rem; }
.mtable__actions { display: flex; gap: .4rem; justify-content: flex-end; white-space: nowrap; }
.mtable__date { white-space: nowrap; color: var(--ink-soft); }
.mtable__msg { min-width: 14rem; font-family: var(--serif); font-style: italic; }

.mbadge { display: inline-block; font: 500 .64rem var(--sans); letter-spacing: .12em; text-transform: uppercase; padding: .3rem .6rem; border-radius: 999px; background: rgba(139, 122, 124, .14); color: var(--ink-soft); white-space: nowrap; }
.mbadge--attending { background: rgba(46, 125, 50, .12); color: #1f6b25; }
.mbadge--declined { background: rgba(179, 38, 30, .1); color: #8c1d18; }

.manage-login { max-width: 26rem; margin: 8vh auto 0; text-align: center; background: var(--white); border: 1px solid var(--line); border-radius: 160px 160px 22px 22px; padding: 3rem 2rem 2.2rem; box-shadow: var(--shadow); }
.manage-login__mono { font-size: 2.6rem; color: var(--wine-700); margin: 0 0 .6rem; }
.manage-login .title { margin-bottom: 1.4rem; }
.manage-login__form { text-align: left; }
.manage-login__form input { margin-bottom: 1rem; }
.manage-login .notice { text-align: left; }
input[type="password"], input[type="number"] {
    width: 100%; font: 400 1rem/1.5 var(--sans); color: var(--ink); background: var(--ivory);
    border: 1px solid var(--line-strong); border-radius: 14px; padding: .85rem 1rem;
}
input[type="password"]:focus, input[type="number"]:focus { outline: none; border-color: var(--gold); background: var(--white); box-shadow: 0 0 0 4px rgba(184, 140, 74, .18); }
