/* 2009 — "A Gathering"
   Swiss / International Typographic Style. The grid is the design.
   Inter (Helvetica stand-in). Flush-left. Mathematical asymmetry. No decoration.
   Re-built on the house UX: natural continuous scroll with a sticky header,
   pill nav / burger sheet / dock, scroll-progress, one-screen cover.
   Geometry derives from the --header-h token. */

:root {
    --paper: #F4F3EE;
    --ink:   #111111;
    --soft:  #6B6B6B;
    --rule:  #111111;
    --unit:  8px;
    --max:   640px;
    --ease:  cubic-bezier(.2, .7, .2, 1);

    /* Geometry tokens — real chrome must never drift from these. */
    --header-h: 56px;                              /* enforced on .site-head (content box) */
    --anchor-gap: 10px;                            /* breathing room under the header */
    --safe-t: env(safe-area-inset-top, 0px);
    --safe-r: env(safe-area-inset-right, 0px);
    --safe-b: env(safe-area-inset-bottom, 0px);
    --safe-l: env(safe-area-inset-left, 0px);
    --head-chrome: calc(var(--header-h) + var(--safe-t));   /* real header footprint */
    --header-offset: calc(var(--head-chrome) + var(--anchor-gap));
    --dock-space: 96px;                            /* body padding reserved for the floating dock */
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
    background: var(--paper);
    color: var(--ink);
    font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 400;
    line-height: 1.5;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

img, svg { max-width: 100%; vertical-align: middle; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ── Scrollbars styled to the palette (page, menu sheet, lightbox panes) ── */
* { scrollbar-width: thin; scrollbar-color: var(--ink) var(--paper); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb {
    border: 2px solid var(--paper);
    border-radius: 0;
    background: var(--ink);
}
::-webkit-scrollbar-corner { background: transparent; }

/* ── Smooth anchor gliding (JS jumps also set behavior explicitly) ─────── */
@media (prefers-reduced-motion: no-preference) {
    html.js { scroll-behavior: smooth; }
}
/* Native anchor/deep-link jumps stop just below the fixed header. Sections
   carry the matching scroll-margin-top (no global scroll-padding — the two
   would stack and double-offset the landing). */
.js [data-panel] { scroll-margin-top: var(--header-offset); }

/* Reserve room for the floating dock so end-of-page content never sits
   beneath it. */
.js body { padding-bottom: calc(var(--dock-space) + var(--safe-b)); }

/* ═══ NATURAL-SCROLL SHELL ═══
   Every section stacks in flow. html.js turns sections into full-viewport
   scenes and adds the fixed chrome; without JS the page reads as a normal
   stacked document (chrome hidden, cover grows naturally). */
.app { position: relative; }
.js .scene {
    min-height: calc(100vh - var(--head-chrome));
    min-height: calc(100dvh - var(--head-chrome));
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.panel { position: relative; }

/* ── Sticky site header ────────────────────────────────────────────────── */
.site-head {
    position: sticky;
    top: 0;
    z-index: 80;
    display: flex;
    align-items: center;
    gap: 14px;
    height: var(--head-chrome);     /* locked — cover cap + anchor offsets derive from it */
    padding: var(--safe-t) clamp(12px, 3vw, 24px) 0;
    border-bottom: 1px solid var(--rule);
    background: rgba(244, 243, 238, 0.82);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: box-shadow .3s var(--ease), background-color .3s var(--ease);
}
.site-head.is-scrolled {
    background: rgba(244, 243, 238, 0.96);
    box-shadow: 0 18px 34px -30px rgba(0, 0, 0, 0.55);
}
/* Progress hairline along the header's bottom edge */
.head-progress {
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    height: 2px;
    transform-origin: left center;
    transform: scaleX(0);
    background: var(--ink);
    pointer-events: none;
}

.head-brand { display: inline-flex; align-items: center; text-decoration: none; color: var(--ink); }
.head-monogram {
    font-weight: 900;
    font-size: 24px;
    line-height: 1;
    letter-spacing: -0.03em;
}
.head-dot { color: var(--soft); }
.head-title {
    flex: 1 1 auto; min-width: 0;
    font-size: 10px; font-weight: 700; letter-spacing: .28em;
    text-transform: uppercase; color: var(--soft);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Desktop pill nav — built by script.js from the DOM sections. Sharp,
   bordered rectangles: the Swiss look has no pill rounding. */
.head-nav { display: none; }
@media (min-width: 1024px) {
    html.js .head-nav {
        display: flex;
        align-items: center;
        gap: 0;
        margin-left: auto;
        min-width: 0;
        overflow-x: auto;
        scrollbar-width: none;
    }
    html.js .head-nav::-webkit-scrollbar { display: none; }
    html.js .head-burger { display: none; }
}
.tab-btn {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 12px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--soft);
    font: 600 11px/1 'Inter', 'Helvetica Neue', Arial, sans-serif;
    letter-spacing: .12em;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
    transition: color .2s var(--ease), border-color .2s var(--ease), background-color .2s var(--ease);
}
.tab-btn { border-top: 0; border-bottom: 0; border-left: 0; border-right: 1px solid var(--rule); }
.tab-btn:last-child { border-right: 0; }
.tab-btn span { overflow: hidden; text-overflow: ellipsis; }
.tab-btn:hover { color: var(--paper); background: var(--ink); }
.tab-btn[aria-current="page"], .tab-btn.is-current { color: var(--paper); background: var(--ink); }
.tab-btn:focus-visible { outline-offset: 1px; }

/* Print + burger buttons */
.head-print {
    display: inline-flex; align-items: center;
    border: 1px solid var(--rule);
    background: transparent; color: var(--ink);
    font: 600 11px/1 'Inter', 'Helvetica Neue', Arial, sans-serif;
    letter-spacing: .12em; text-transform: uppercase;
    padding: 8px 12px; cursor: pointer;
    transition: color .2s var(--ease), background-color .2s var(--ease);
}
.head-print:hover { background: var(--ink); color: var(--paper); }

.head-burger {
    display: inline-grid;
    place-items: center;
    width: 40px; height: 38px;
    padding: 0;
    flex: 0 0 auto;
    border: 1px solid var(--rule);
    border-radius: 0;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
}
.head-burger svg { width: 20px; height: 20px; }
.head-burger .icon-close { display: none; }
.head-burger[aria-expanded="true"] .icon-open { display: none; }
.head-burger[aria-expanded="true"] .icon-close { display: block; }

/* Without JS the chrome does nothing — the page reads as a document. */
html:not(.js) .head-burger,
html:not(.js) .head-nav,
html:not(.js) .head-progress,
html:not(.js) .dock { display: none !important; }

/* ── Mobile slide-down section sheet ───────────────────────────────────── */
.menu-backdrop {
    position: fixed;
    inset: var(--head-chrome) 0 0 0;
    z-index: 70;
    background: rgba(17, 17, 17, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s var(--ease);
}
.menu-backdrop.is-open { opacity: 1; pointer-events: auto; }

.menu-sheet {
    position: fixed;
    top: var(--head-chrome);
    left: 0; right: 0;
    z-index: 71;
    max-height: calc(100dvh - var(--head-chrome));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 clamp(14px, 4vw, 26px) calc(16px + var(--safe-b));
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    box-shadow: 0 30px 50px -28px rgba(0, 0, 0, 0.7);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s linear .2s;
}
.menu-sheet.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition-delay: 0s;
}
.menu-sheet-list {
    list-style: none;
    margin: 0; padding: 0;
    display: flex; flex-direction: column;
}
.menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    min-height: 52px;
    padding: 12px 4px;
    border: 0;
    border-bottom: 1px solid var(--rule);
    background: transparent;
    color: var(--ink);
    font: 600 13px/1.25 'Inter', 'Helvetica Neue', Arial, sans-serif;
    letter-spacing: .12em;
    text-transform: uppercase;
    text-align: left;
    cursor: pointer;
    transition: color .18s var(--ease), background-color .18s var(--ease), padding-left .18s var(--ease);
}
.menu-item:last-child { border-bottom: 0; }
.menu-item svg { width: 18px; height: 18px; flex: none; }
.menu-item .menu-num {
    margin-left: auto;
    font-size: 10px; font-weight: 700; letter-spacing: .2em;
    color: var(--soft);
    font-variant-numeric: tabular-nums;
}
.menu-item:hover, .menu-item:focus-visible { background: var(--ink); color: var(--paper); }
.menu-item.is-current { background: var(--ink); color: var(--paper); }
.menu-item.is-current .menu-num { color: var(--paper); }
.menu-sheet:focus { outline: none; }

/* ── Floating icon dock (mobile / tablet; desktop uses the header pills) ── */
.dock {
    position: fixed;
    left: 50%;
    bottom: calc(12px + var(--safe-b));
    transform: translateX(-50%);
    z-index: 60;
    display: flex;
    align-items: stretch;
    gap: 0;
    max-width: calc(100vw - 20px);
    padding: 5px;
    background: rgba(244, 243, 238, 0.92);
    border: 1px solid var(--rule);
    border-radius: 0;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: 0 24px 44px -24px rgba(0, 0, 0, 0.6);
}
.dock button {
    position: relative;
    display: grid;
    place-items: center;
    flex: 0 1 auto;
    min-width: 28px;
    width: 34px;
    height: 36px;
    padding: 0;
    border: 0;
    border-right: 1px solid var(--rule);
    border-radius: 0;
    background: transparent;
    color: var(--soft);
    cursor: pointer;
    transition: color .2s var(--ease), background-color .2s var(--ease);
    -webkit-tap-highlight-color: transparent;
}
.dock button:last-child { border-right: 0; }
.dock button svg { width: 17px; height: 17px; }
.dock button:hover { color: var(--paper); background: var(--ink); }
.dock button.is-current { color: var(--paper); background: var(--ink); }
@media (min-width: 1024px) {
    html.js .dock { display: none; }   /* the header pills carry navigation */
}

/* ── Empty-state audit + cover-fit trimming ──────────────────────────────
   Hidden = visually hidden only: present in DOM, restored in print. */
.is-empty, .fit-hidden { display: none !important; }

/* Sections receive programmatic focus after nav jumps (tabindex="-1") —
   never show a focus ring on them. */
.js [data-panel]:focus, .js [data-panel]:focus-visible { outline: none; }

/* ── Click-to-open switch: <html data-media-lightbox="off"> renders media
   INLINE ONLY — no lightbox triggers, no leftover click affordances. */
html[data-media-lightbox="off"] .gallery-open { pointer-events: none; cursor: default; }
.gallery-open[disabled] { pointer-events: none; cursor: default; }
.gallery-open[disabled]:focus-visible { outline: none; }

/* ═══ COVER — exactly one screen ═══
   Capped at 100dvh minus the header token, fully visible at load. Fluid type
   stops growing on short viewports (≤700px tiers below); JS trims decorative
   elements first if content still overflows; the inner scroll area is the
   last-resort safety valve for extreme viewports only. */
.js .panel-cover {
    height: calc(100vh - var(--head-chrome));
    height: calc(100dvh - var(--head-chrome));
    overflow: hidden;
}
.js .panel-cover.cover-squeeze .cover-inner { padding-top: calc(var(--unit)*2); padding-bottom: calc(var(--unit)*2); }

/* the grid is visible as faint vertical pinstripes — pure Swiss */
.grid-overlay {
    position: absolute; inset: 0;
    background-image: repeating-linear-gradient(
        to right,
        transparent 0,
        transparent calc(100%/12 - 1px),
        rgba(17,17,17,.025) calc(100%/12 - 1px),
        rgba(17,17,17,.025) calc(100%/12)
    );
    pointer-events: none;
}

.cover-inner {
    position: relative;
    height: 100%;
    display: flex; flex-direction: column;
    justify-content: space-between;
    padding: calc(var(--unit)*4) clamp(var(--unit)*3, 6vw, var(--unit)*6);
    max-width: var(--max); margin: 0 auto; width: 100%;
    /* Last-resort safety valve (see README §5): normally nothing scrolls
       here — trimming keeps the cover whole. */
    max-height: 100%;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.meta-top {
    font-size: .7rem;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--soft);
}

.cover-eyebrow {
    font-size: .75rem;
    letter-spacing: .25em;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--soft);
    margin-bottom: calc(var(--unit)*2);
}

.cover-title {
    font-weight: 900;
    font-size: clamp(2.8rem, 14vw, 4.2rem);
    line-height: .95;
    letter-spacing: -0.04em;
    margin-bottom: auto;
}
.cover-title .dot { color: var(--soft); }

.cover-recipient {
    font-size: .9rem;
    color: var(--soft);
    margin: calc(var(--unit)*3) 0;
}
.recipient-label { display: block; font-size: .65rem; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 2px; }
.recipient-name { font-weight: 500; color: var(--ink); font-size: 1rem; }

.open-btn {
    background: var(--ink);
    color: var(--paper);
    border: none;
    font-family: inherit;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .15em;
    text-transform: uppercase;
    padding: calc(var(--unit)*2) calc(var(--unit)*3);
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    width: 100%;
    transition: transform .2s var(--ease);
    -webkit-user-select: none; user-select: none;
}
.open-btn:active { transform: translateY(2px); }
.open-btn .arrow { transition: transform .2s var(--ease); }
.open-btn:hover .arrow { transform: translateX(4px); }

/* On mobile the floating dock floats over the cover's bottom edge. Clear the
   cover CTA above the dock zone so no interactive element is permanently
   covered (dock ≈ bottom:12px + ~48px tall = 60px). */
@media (max-width: 1023px) {
  .js .panel-cover .cover-inner { padding-bottom: calc(var(--unit)*9); }
}

/* Short viewports: fluid sizing stops growing (~700px tier) so mid-size
   phones and landscape screens never lose content to the cap. */
@media (max-height: 700px) {
    .cover-inner { padding-top: calc(var(--unit)*2); padding-bottom: calc(var(--unit)*2); }
    .cover-eyebrow { margin-bottom: calc(var(--unit)); }
    .cover-title { font-size: clamp(2.2rem, 13vw, 3.4rem); }
    .cover-recipient { margin: calc(var(--unit)*2) 0; }
}
@media (max-height: 520px) {
    .cover-title { font-size: clamp(1.9rem, 12vw, 2.8rem); }
    .cover-recipient, .cover-eyebrow { margin: calc(var(--unit)) 0; }
}

/* ═══ BODY SECTIONS ═══ */
.section {
    max-width: var(--max);
    margin: 0 auto;
    padding: calc(var(--unit)*6) clamp(var(--unit)*3, 6vw, var(--unit)*5);
    width: 100%;
}
.section-inner { width: 100%; }

.section-num {
    font-size: .7rem;
    font-weight: 700;
    color: var(--soft);
    letter-spacing: .1em;
    margin-bottom: 2px;
}
.section-label {
    font-size: .65rem;
    letter-spacing: .25em;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--soft);
    padding-bottom: calc(var(--unit)*3);
    border-bottom: 1px solid var(--rule);
    margin-bottom: calc(var(--unit)*4);
}

/* WELCOME */
.welcome-message {
    font-size: 1.3rem;
    line-height: 1.55;
    font-weight: 300;
    max-width: 34ch;
}
.welcome-host {
    margin-top: calc(var(--unit)*2);
    font-size: .85rem;
    font-weight: 500;
    color: var(--soft);
}

/* SAVE THE DATE */
.savedate-name {
    font-weight: 900;
    font-size: clamp(2rem, 9vw, 2.8rem);
    line-height: 1;
    letter-spacing: -0.03em;
    margin-bottom: calc(var(--unit));
}
.savedate-date {
    font-size: .95rem;
    font-weight: 500;
    color: var(--soft);
    margin-bottom: calc(var(--unit)*4);
}
.countdown {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--rule);
}
.cd-unit {
    padding: calc(var(--unit)*2) calc(var(--unit));
    text-align: left;
    border-right: 1px solid var(--rule);
}
.cd-unit:last-child { border-right: none; }
.cd-num {
    display: block;
    font-weight: 900;
    font-size: 1.8rem;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.cd-label {
    font-size: .55rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--soft);
    font-weight: 500;
}

/* ── Add to Calendar ───────────────────────────────────────────────────── */
.cal-row { margin-top: calc(var(--unit)*4); }
.cal-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid var(--rule);
    border-radius: 0;
    background: transparent;
    color: var(--ink);
    font: 600 12px/1 'Inter', 'Helvetica Neue', Arial, sans-serif;
    letter-spacing: .14em;
    text-transform: uppercase;
    cursor: pointer;
    transition: color .2s var(--ease), background-color .2s var(--ease);
}
.cal-btn:hover { background: var(--ink); color: var(--paper); }
.cal-btn [aria-hidden="true"] { font-size: 16px; line-height: 1; }

/* SCHEDULE */
.schedule-list { display: flex; flex-direction: column; gap: calc(var(--unit)*4); margin-bottom: calc(var(--unit)*5); }
.schedule-item {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
}
.schedule-name {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: calc(var(--unit));
    border-bottom: 1px solid var(--rule);
    padding-bottom: calc(var(--unit));
}
.schedule-item p { font-size: .9rem; font-weight: 400; color: var(--ink); }
.schedule-item p span { color: var(--ink); }
.schedule-map-link {
    display: inline-block;
    margin-top: calc(var(--unit));
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px solid var(--ink);
    padding-bottom: 2px;
}

/* Optional venue photograph — Swiss grayscale treatment, hairline frame. */
.venue-figure {
    position: relative;
    max-width: 520px;
    margin: 0;
}
.gallery-open {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
    border: 1px solid var(--rule);
}
.venue-img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    filter: grayscale(1) contrast(1.02);
}
.venue-cap {
    margin: calc(var(--unit)) 0 0;
    font-size: .6rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--soft);
}

/* THE VIBE */
.vibe-card { margin-bottom: calc(var(--unit)*4); }
.vibe-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: calc(var(--unit));
    letter-spacing: -0.01em;
}
.vibe-text {
    font-size: .95rem;
    font-weight: 300;
    line-height: 1.55;
    max-width: 36ch;
}
.byob-card {
    border-left: 3px solid var(--ink);
    padding-left: calc(var(--unit)*2);
}
.byob-label {
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .25em;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.byob-note {
    font-size: .9rem;
    font-weight: 400;
    line-height: 1.5;
}

/* ── Free Page: optional repeatable blocks (title + text) ──────────────── */
.free-blocks {
    display: flex;
    flex-direction: column;
    gap: calc(var(--unit)*4);
}
.free-block {
    border-left: 1px solid var(--rule);
    padding-left: calc(var(--unit)*3);
}
.free-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: calc(var(--unit));
    letter-spacing: -0.01em;
}
.free-content p {
    font-size: .95rem;
    font-weight: 300;
    line-height: 1.6;
    max-width: 42ch;
    overflow-wrap: break-word;
}

/* RSVP */
.rsvp-body { min-height: 40px; }

/* FOOTER */
.invite-footer {
    max-width: var(--max);
    margin: 0 auto;
    padding: calc(var(--unit)*6) clamp(var(--unit)*3, 6vw, var(--unit)*5) calc(var(--unit)*8);
    border-top: 1px solid var(--rule);
    width: 100%;
}
.footer-thanks {
    font-size: 1.4rem;
    font-weight: 300;
    margin-bottom: calc(var(--unit));
    letter-spacing: -0.02em;
}
.footer-credit {
    font-size: .65rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--soft);
}

/* ── RSVP FORM ─────────────────────────────────────────────────────────── */
.rsvp-form {
    display: flex;
    flex-direction: column;
    gap: calc(var(--unit)*3);
}
.form-field { display: flex; flex-direction: column; gap: 4px; }
.form-field label {
    font-size: .65rem;
    letter-spacing: .25em;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--soft);
}
.rsvp-form .form-control {
    font-family: inherit;
    font-size: .95rem;
    color: var(--ink);
    background: transparent;
    border: 1px solid var(--rule);
    border-radius: 0;
    padding: calc(var(--unit)*1.5) calc(var(--unit)*2);
    width: 100%;
}
.rsvp-form .form-control:focus-visible,
.rsvp-form .form-control:focus {
    outline: 2px solid var(--ink);
    outline-offset: 2px;
}
.rsvp-form .error {
    display: block;
    font-size: .7rem;
    letter-spacing: .05em;
    color: #B3261E;
    min-height: 1em;
}
#submit-button {
    background: var(--ink);
    color: var(--paper);
    border: none;
    border-radius: 0;
    font-family: inherit;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .15em;
    text-transform: uppercase;
    padding: calc(var(--unit)*2) calc(var(--unit)*3);
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    width: 100%;
    margin-top: calc(var(--unit));
    transition: transform .2s var(--ease), opacity .2s var(--ease);
    -webkit-user-select: none; user-select: none;
}
#submit-button:hover .arrow { transform: translateX(4px); }
#submit-button:active { transform: translateY(2px); }
#submit-button:disabled { opacity: .5; cursor: default; }
#submit-button .arrow { transition: transform .2s var(--ease); }
.rsvp-form .loading {
    font-size: .7rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--soft);
}

/* ── Lightbox: full-screen media viewer (built by script.js) ─────────────
   Photos: wheel / pinch / double-tap zoom with pan while zoomed and an
   "Open full size" link. Videos play as an embed or native player with an
   "Open original" link. Built/destroyed on demand. Swiss = sharp corners. */
.lightbox {
    position: fixed; inset: 0;
    z-index: 200;
    display: none;
    align-items: center; justify-content: center;
    flex-direction: column;
    padding: 20px;
    overflow: hidden;
    background: rgba(244, 243, 238, 0.97);
}
.lightbox.is-open { display: flex; }
html.lb-open, html.lb-open body { overflow: hidden; }   /* lock the page while open */
.lightbox-media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: min(92vw, 980px);
    max-height: 76vh;
    touch-action: none;
}
.lightbox img, .lightbox video, .lightbox iframe {
    display: block;
    max-width: min(92vw, 980px);
    max-height: 76vh;
    width: auto; height: auto;
    border: 1px solid var(--rule);
    box-shadow: 0 34px 90px -30px rgba(0, 0, 0, 0.5);
    background: #fff;
}
.lightbox img { cursor: zoom-in; touch-action: none; user-select: none; -webkit-user-select: none; filter: none; }
.lightbox.is-zoomed .lightbox-media { overflow: visible; }
.lightbox img { transition: transform .2s var(--ease); }
.lightbox.is-panning img { transition: none; cursor: grabbing; }
.lightbox iframe { width: min(92vw, 960px); height: min(51.75vw, 540px); }
.lightbox-cap, .lightbox-hint, .lightbox-original { align-self: center; }
.lightbox-cap {
    margin: 14px 0 0;
    font-size: .6rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
    color: var(--ink);
    text-align: center;
}
.lightbox-hint {
    margin: 8px 0 0;
    font-size: .6rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
    color: var(--soft);
    text-align: center;
}
.lightbox-original {
    margin-top: 12px;
    display: inline-flex; align-items: center; gap: 6px;
    min-height: 38px;
    padding: 8px 14px;
    border: 1px solid var(--rule);
    border-radius: 0;
    font: 600 11px/1 'Inter', 'Helvetica Neue', Arial, sans-serif;
    letter-spacing: .14em; text-transform: uppercase;
    color: var(--ink); text-decoration: none;
    transition: color .2s var(--ease), background-color .2s var(--ease);
}
.lightbox-original:hover { background: var(--ink); color: var(--paper); }
.lightbox-close, .lightbox-prev, .lightbox-next {
    position: absolute;
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px;
    border: 1px solid var(--rule);
    border-radius: 0;
    background: #fff;
    color: var(--ink);
    cursor: pointer;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: var(--ink); color: #fff; }
.lightbox-close { top: calc(14px + var(--safe-t)); right: 14px; }
.lightbox-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 14px; top: 50%; transform: translateY(-50%); }
.lightbox-prev.is-hidden, .lightbox-next.is-hidden { display: none; }
@media (max-width: 560px) {
    .lightbox-prev { left: 6px; }
    .lightbox-next { right: 6px; }
    .lightbox { padding: 12px; }
}

/* ── REVEAL ────────────────────────────────────────────────────────────── */
[data-reveal] {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
}
[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Without JS the reveal never fires — the document must still read as a
   normal stacked page (chrome is hidden, content fully visible). */
html:not(.js) [data-reveal] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition: none !important;
        animation: none !important;
        scroll-behavior: auto !important;
    }
    [data-reveal] { opacity: 1; transform: none; }
}

/* ── Print: full stacked document ──────────────────────────────────────── */
@media print {
    @page { margin: 12mm; }
    html.js body { padding-bottom: 0; }
    .site-head, .dock, .menu-sheet, .menu-backdrop, .head-progress,
    .js-print, .lightbox, .cal-row { display: none !important; }
    /* Empty-state hiding and cover-fit trimming are visual only — print
       restores everything (§ empty-state audit). */
    .is-empty, .fit-hidden { display: revert !important; }
    .js .panel-cover { height: auto; min-height: 0; padding: 0; }
    .js .scene { min-height: 0; display: block; }
    .cover-inner { overflow: visible; max-height: none; }
    html.js [data-panel] { scroll-margin-top: 0; }
    .panel, .rsvp-wrap { break-before: page; }
    .panel[data-panel="cover"] { break-before: auto; }
    .invite-footer { break-before: auto; }
    .free-block, .schedule-item { break-inside: avoid; }
    .section { max-width: none; }
    body { background: #fff; color: #222; }
    .venue-img { filter: none; }
    * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    a { color: inherit; }
}

/* ── Small screens: compact chrome ─────────────────────────────────────── */
@media (max-width: 380px) {
    .dock { padding: 4px; bottom: calc(8px + var(--safe-b)); }
    .dock button { min-width: 26px; width: 30px; height: 32px; }
    .dock button svg { width: 15px; height: 15px; }
    .menu-item { letter-spacing: .1em; }
}