:root {
    --cream: #fbf8f3;
    --cream-alt: #f4efe6;
    --ink: #1c1a17;
    --ink-soft: #6e675e;
    --stone: #8b8378;
    --stone-light: #b3a898;
    --taupe: #a2988a;
    --sage: #8d9480;
    --line: #e6ded2;
    --line-soft: #e2d9cc;
    --line-strong: #ded5c8;
    --placeholder-bg: #f1ebe1;
    --white: #ffffff;

    --font-body: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-serif: "Cormorant Garamond", serif;
    --font-script: "Aston Script", cursive;

    --radius-md: 4px;
    --radius-pill: 999px;

    --container-w: 1200px;
    --transition: 0.25s ease;
}

@font-face {
    font-family: "Aston Script";
    src: url("../fonts/Aston Script.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

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

/* Guarantee the hidden attribute always wins, even over a component's own
   `display` declaration (e.g. .rsvp-field sets display:block unconditionally). */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--ink);
    background: var(--cream);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-wrap: pretty;
}

img { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--ink-soft); }
ul { list-style: none; }

.container {
    max-width: var(--container-w);
    margin: 0 auto;
    padding: 0 40px;
}

section { position: relative; overflow: hidden; }

.eyebrow {
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 10.5px;
    font-weight: 400;
    color: var(--taupe);
    margin-bottom: 6px;
}

.section-heading {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    text-align: center;
    font-family: var(--font-script);
    font-size: clamp(2.6rem, 5vw, 3.8rem);
    font-weight: 400;
    line-height: 1.1;
    padding: 0.55em 0;
    color: var(--ink);
    max-width: none;
}

.page-message {
    text-align: center;
    color: var(--ink-soft);
    max-width: 60ch;
    margin: 0 auto 32px;
}

.page-cta {
    text-align: center;
}

/* Reveal-on-scroll */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 0;
    font-weight: 400;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.24em;
    border: 1px solid var(--ink);
    transition: background var(--transition), color var(--transition), border-color var(--transition);
    white-space: nowrap;
}
.btn-solid { background: var(--ink); color: var(--cream); }
.btn-solid:hover { background: transparent; color: var(--ink); }
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--cream); }
.btn-sm { padding: 11px 24px; font-size: 11px; }
.btn-group { display: flex; flex-wrap: wrap; gap: 14px; }

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: transparent;
    transition: background var(--transition), backdrop-filter var(--transition);
}

.site-header--dark {
    background: #333;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 92px;
}

.logo {
    display: flex;
    align-items: center;
}
.logo-mark {
    height: 48px;
    width: auto;
}
.logo-mark--dark { display: none; }

.main-nav {
    display: flex;
    gap: 40px;
    align-items: center;
}
.nav-link {
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
    position: relative;
    padding-bottom: 4px;
    border-bottom: 1px solid transparent;
    transition: color var(--transition), border-color var(--transition);
}
.nav-link:hover,
.nav-link.active { color: #fff; border-color: rgba(255, 255, 255, 0.9); }

.header-cta { flex-shrink: 0; }
.header-cta .btn {
    color: var(--ink);
    border-color: var(--ink);
    background: var(--cream);
}
.header-cta .btn:hover { background: var(--ink); color: var(--cream); }

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 34px;
    height: 34px;
    background: none;
    border: none;
    cursor: pointer;
}
.nav-toggle span {
    display: block;
    height: 1px;
    background: #fff;
    transition: transform var(--transition), opacity var(--transition), background var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ==========================================================================
   Header — mobile
   ========================================================================== */

@media (max-width: 860px) {
    .nav-toggle { display: flex; }

    .main-nav {
        position: fixed;
        top: 92px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--cream);
        border-bottom: 0 solid var(--line);
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--transition), border-bottom-width var(--transition);
    }
    .main-nav.open {
        max-height: 60vh;
        overflow-y: auto;
        border-bottom-width: 1px;
    }
    .main-nav .nav-link {
        padding: 18px 40px;
        border-bottom: 1px solid var(--line);
        color: var(--ink-soft);
    }

    .header-cta { display: none; }
}

/* ==========================================================================
   Page content offset (fixed header)
   ========================================================================== */

.site-main {
    padding-top: 0;
}

.site-main--offset {
    padding-top: 92px;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: flex-end;
    color: #fff;
}

.hero-slider {
    position: absolute;
    inset: 0;
    z-index: 0;
    filter: grayscale(100%);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease;
}
.hero-slide.is-active { opacity: 1; }

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to top, rgba(16,14,12,0.85), rgba(16,14,12,0.15) 60%, rgba(16,14,12,0.45));
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-bottom: 80px;
    text-align: right;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.hero-invite {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.28em;
    opacity: 0.8;
    margin-bottom: 10px;
}

.hero-names {
    font-family: var(--font-script);
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 400;
    line-height: 1.05;
    padding: 0.55em 0;
}

/* Mixed case is the point of the hashtag, so no text-transform here. */
.hero-hashtag {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.35rem;
    letter-spacing: 0.03em;
    color: rgba(255, 255, 255, 0.9);
    margin: -0.4em 0 14px;
}

.hero-date {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 44px;
}

.hero-countdown {
    display: flex;
    justify-content: flex-end;
    gap: 0;
}

.countdown-item {
    text-align: center;
    min-width: 96px;
    padding: 0 20px;
}
.countdown-item + .countdown-item {
    border-left: 1px solid rgba(255, 255, 255, 0.25);
}

.countdown-value {
    display: block;
    font-family: var(--font-serif);
    font-size: 2.6rem;
    font-weight: 300;
    line-height: 1;
}

.countdown-time {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
}

.countdown-sep {
    opacity: 0.4;
}

.countdown-label {
    display: block;
    font-size: 9.5px;
    text-transform: uppercase;
    letter-spacing: 0.24em;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 8px;
}

@media (max-width: 600px) {
    .hero-content {
        text-align: center;
        padding-bottom: 48px;
    }
    /* One line on phones: the script set is ~9.4x as wide as its font
       size, so size it from the width left after the 40px side padding. */
    .hero-names {
        white-space: nowrap;
        font-size: calc((100vw - 80px) / 9.8);
    }
    .hero-countdown {
        justify-content: center;
    }
    .countdown-item { min-width: 76px; padding: 0 12px; }
}

/* ==========================================================================
   Our Story — timeline
   ========================================================================== */

.story {
    padding: 120px 0 64px;
}

.story-cta {
    text-align: center;
    margin-top: 40px;
}
.story-cta .btn-outline {
    border: none;
    border-bottom: 1px solid var(--line-strong);
    padding: 0 0 6px;
    letter-spacing: 0.26em;
    font-size: 10.5px;
}
.story-cta .btn-outline:hover {
    background: none;
    color: var(--ink-soft);
    border-color: var(--ink-soft);
}

.placeholder-img {
    aspect-ratio: 4 / 5;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--placeholder-bg);
    border: 1px solid var(--line);
    border-radius: 0;
    color: var(--stone-light);
    font-size: 9.5px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.24em;
}

.story .section-heading,
.save-the-date .section-heading {
    margin-bottom: 32px;
}

.timeline {
    position: relative;
    max-width: 960px;
    margin: 0 auto;
}
.timeline::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    background: var(--line);
}

.timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 96px 1fr;
    align-items: center;
    margin-bottom: 32px;
}
.timeline-item:last-child { margin-bottom: 0; }

.timeline-media {
    display: block;
    width: 100%;
    max-width: 400px;
    height: auto;
}
.timeline-item--media-top .timeline-media { justify-self: end; }
.timeline-item--media-bottom .timeline-media { justify-self: start; }

.timeline-marker {
    position: relative;
    z-index: 1;
    width: 9px;
    height: 9px;
    margin: 0 auto;
    border-radius: 50%;
    background: var(--sage);
    box-shadow: 0 0 0 7px var(--cream);
}

.timeline-content {
    padding-left: 8px;
}
.timeline-item--media-bottom .timeline-content {
    padding-left: 0;
    padding-right: 8px;
    text-align: right;
}

.timeline-heading {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 14px;
}

.timeline-text {
    font-size: 1.1rem;
    color: var(--ink-soft);
    max-width: 34ch;
}
.timeline-item--media-bottom .timeline-text { margin-left: auto; }

@media (max-width: 780px) {
    .timeline::before { left: 20px; }

    .timeline-item,
    .timeline-item--media-bottom {
        grid-template-columns: 40px 1fr;
        margin-bottom: 36px;
    }
    .timeline-item .timeline-media,
    .timeline-item--media-bottom .timeline-media {
        grid-column: 2;
        grid-row: 1;
        justify-self: start;
        max-width: 100%;
        margin-bottom: 20px;
    }
    .timeline-item .timeline-marker { grid-column: 1; grid-row: 2; }
    .timeline-item .timeline-content,
    .timeline-item--media-bottom .timeline-content {
        grid-column: 2;
        grid-row: 2;
        text-align: left !important;
        padding: 0 !important;
        margin-left: 0 !important;
    }
    .timeline-item--media-bottom .timeline-text { margin-left: 0; }
}

/* ==========================================================================
   Save the Date
   ========================================================================== */

/* Same photo + dark overlay treatment as the RSVP band. */
.save-the-date {
    position: relative;
    overflow: hidden;
    padding: 120px 0 110px;
    color: #fff;
}
.save-the-date-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    filter: grayscale(100%);
}
.save-the-date-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.save-the-date-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    /* A touch darker than the RSVP band: this photo is much brighter. */
    background: rgba(16, 14, 12, 0.72);
}
.save-the-date-content {
    position: relative;
    z-index: 2;
}
/* Clears the fixed header when jumped to from the FAQ. */
#the-day { scroll-margin-top: 92px; }

.save-the-date .eyebrow { color: rgba(255, 255, 255, 0.7); }
.save-the-date .section-title { color: #fff; }
.save-the-date .date-line,
.save-the-date .order-rule { background: rgba(255, 255, 255, 0.3); }
.save-the-date .date-day,
.save-the-date .venue-eyebrow { color: rgba(255, 255, 255, 0.7); }
.save-the-date .date-location,
.save-the-date .venue-address { color: rgba(255, 255, 255, 0.75); }
.save-the-date .order-row,
.save-the-date .order-of-day .order-row:last-child { border-color: rgba(255, 255, 255, 0.25); }
.save-the-date .venue-map { border-color: rgba(255, 255, 255, 0.25); }
.save-the-date .get-directions {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}
.save-the-date .get-directions:hover {
    color: rgba(255, 255, 255, 0.75);
    border-color: rgba(255, 255, 255, 0.75);
}

.date-block {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    margin-bottom: 32px;
}
.date-line {
    flex: 1;
    max-width: 180px;
    height: 1px;
    background: var(--line-strong);
}
.date-day {
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--sage);
    margin-bottom: 10px;
    text-align: center;
}
.date-full {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 7vw, 4.6rem);
    font-weight: 300;
    line-height: 1;
    letter-spacing: 0.06em;
    text-align: center;
}
.date-location {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.15rem;
    color: var(--ink-soft);
    margin-top: 12px;
    text-align: center;
}

.order-of-day {
    max-width: 620px;
    margin: 0 auto 48px;
}
.order-row {
    display: flex;
    align-items: baseline;
    gap: 24px;
    padding: 22px 0;
    border-top: 1px solid var(--line-soft);
}
.order-of-day .order-row:last-child {
    border-bottom: 1px solid var(--line-soft);
}
.order-time {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 400;
    min-width: 96px;
}
.order-rule {
    flex: 1;
    height: 1px;
    background: var(--line-soft);
}
.order-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.24em;
}

.venue-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    max-width: 1040px;
    margin: 0 auto;
    text-align: center;
}

.venue-eyebrow {
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.28em;
    color: var(--sage);
    margin-bottom: 14px;
}

.venue-title {
    font-family: var(--font-serif);
    font-size: 1.9rem;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 8px;
}

.venue-address {
    font-size: 0.85rem;
    color: var(--stone);
    max-width: 36ch;
    min-height: 3.4em;
    margin: 0 auto 22px;
}

.venue-map {
    width: 100%;
    aspect-ratio: 3 / 2;
    border: 1px solid var(--line-strong);
    border-radius: 0;
    overflow: hidden;
}

.get-directions {
    display: inline-block;
    margin-top: 20px;
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.26em;
    border-bottom: 1px solid var(--line-strong);
    padding-bottom: 5px;
}
.get-directions:hover { color: var(--ink-soft); border-color: var(--ink-soft); }

@media (max-width: 780px) {
    .venue-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .date-block { gap: 16px; }
    .date-line { max-width: 60px; }
}

/* ==========================================================================
   Entourage
   ========================================================================== */

.entourage {
    padding: 120px 0 110px;
}

.entourage-group {
    max-width: 860px;
    margin: 0 auto 84px;
    text-align: center;
}
.entourage-group:last-child {
    margin-bottom: 0;
}

.entourage-rule {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 32px;
}
.entourage-rule-line {
    flex: 1;
    height: 1px;
    background: var(--line);
}
.entourage-rule-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--taupe);
    white-space: nowrap;
}

.entourage-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 48px;
}
.entourage-cols--3 {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}
.entourage-cols--wide {
    gap: 56px;
}

.entourage-single {}

.entourage-subrole {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.28em;
    color: var(--sage);
    margin-bottom: 16px;
}

.entourage-name {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    line-height: 1.7;
}

.entourage-represented {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1rem;
    color: var(--stone);
    margin-top: 4px;
}
.entourage-represented-name {
    font-size: 1.35rem;
    font-style: normal;
    color: var(--ink);
}

.entourage-names li {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    line-height: 2;
}

.entourage-names--flow {
    max-width: 560px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
    font-size: 1.3rem;
    line-height: 1.9;
}
.entourage-names--flow li {
    font-family: var(--font-serif);
    font-size: 1.3rem;
}

.entourage-names--flower {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 40px;
}
.entourage-names--flower li {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    line-height: 1;
}

@media (max-width: 600px) {
    .entourage-cols,
    .entourage-cols--3 {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* ==========================================================================
   FAQ
   ========================================================================== */

/* Dark band in the site's ink colour (as on the Gallery's proposal
   section). The colour tokens are flipped here so every FAQ rule below
   draws light text and lines without needing its own dark variant. */
.faq {
    --ink: #fbf8f3;
    --ink-soft: rgba(251, 248, 243, 0.68);
    --taupe: rgba(251, 248, 243, 0.55);
    --sage: #a9b09b;
    --line: rgba(251, 248, 243, 0.14);
    --line-strong: rgba(251, 248, 243, 0.32);
    background: #1c1a17;
    color: var(--ink);
    padding: 110px 0;
}
.faq .section-heading {
    margin-bottom: 40px;
}

.faq-list {
    position: relative;
    max-width: 1040px;
    margin: 0 auto;
}

.faq-item {
    border-top: 1px solid var(--line);
}
.faq-item:last-child {
    border-bottom: 1px solid var(--line);
}
.faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 0;
    font-family: var(--font-serif);
    font-size: 1.2rem;
    line-height: 1.35;
    color: var(--ink);
    cursor: pointer;
    list-style: none;
    transition: color var(--transition);
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after {
    content: "+";
    flex-shrink: 0;
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--sage);
    transition: transform var(--transition), opacity var(--transition);
}
.faq-item[open] > .faq-q::after { transform: rotate(45deg); }
.faq-q:hover { color: var(--ink-soft); }
.faq-q:focus-visible {
    outline: 1px solid var(--sage);
    outline-offset: 4px;
}

.faq-a {
    padding: 0 40px 22px 0;
    font-size: 1.375rem;
    line-height: 1.65;
    color: rgba(251, 248, 243, 0.85);
}
.faq-a a {
    color: var(--ink);
    border-bottom: 1px solid var(--line-strong);
}
.faq-a a:hover { border-color: var(--ink); }

.faq-guide {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
    border: 0 !important;
}
.faq-guide img {
    width: 120px;
    height: auto;
    border: 1px solid var(--line);
    transition: opacity var(--transition);
}
.faq-guide span {
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.24em;
    color: var(--ink);
    border-bottom: 1px solid var(--line-strong);
    padding-bottom: 4px;
}
.faq-guide:hover img { opacity: 0.85; }

/* Desktop: questions on the left, the open answer on the right.
   main.js keeps exactly one open and sizes the list to fit it. */
@media (min-width: 781px) {
    .faq-item { width: 38%; }
    .faq-q {
        font-size: 1.3rem;
        color: var(--ink-soft);
    }
    .faq-q:hover { color: var(--ink); }
    .faq-q::after {
        content: "\2192";
        font-size: 1.2rem;
        opacity: 0;
    }
    .faq-item[open] > .faq-q {
        color: var(--ink);
        cursor: default;
    }
    .faq-item[open] > .faq-q::after {
        opacity: 1;
        transform: none;
    }

    .faq-a {
        position: absolute;
        top: 0;
        left: 46%;
        right: 0;
        padding: 18px 0 0;
        font-size: 1.5rem;
        line-height: 1.65;
    }
    .faq-guide {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        margin-top: 24px;
    }
    .faq-guide img { width: 100%; }
}

@media (max-width: 780px) {
    .faq { padding: 72px 0; }
}

/* ==========================================================================
   RSVP band
   ========================================================================== */

.rsvp-band {
    position: relative;
    overflow: hidden;
    padding: 140px 0;
    color: #fff;
    text-align: center;
}
.rsvp-band-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.rsvp-band-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 64% 0%;
}
.rsvp-band-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(16, 14, 12, 0.62);
}
.rsvp-band-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}
.rsvp-band-eyebrow {
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 4px;
}
.rsvp-band-title {
    font-family: var(--font-script);
    font-size: clamp(2.8rem, 5.5vw, 4.4rem);
    font-weight: 400;
    line-height: 1.1;
    padding: 0.55em 0;
}
.rsvp-band-text {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.82);
    max-width: 44ch;
    margin: 0 auto 44px;
}
.rsvp-band .btn {
    color: var(--ink);
    border-color: var(--ink);
    padding: 18px 44px;
    background: var(--cream);
}
.rsvp-band .btn:hover {
    background: var(--ink);
    color: var(--cream);
}

.rsvp-band--compact { padding: 130px 0; }
.rsvp-band--compact .rsvp-band-eyebrow { margin-bottom: 22px; }
.rsvp-band--compact .rsvp-band-title { font-size: clamp(2.6rem, 5vw, 4rem); }
.rsvp-band--compact .btn { margin-top: 14px; }

/* ==========================================================================
   Gallery page
   ========================================================================== */

.gallery-intro {
    padding: 96px 0 0;
    text-align: center;
}
.gallery-lede {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: clamp(1.7rem, 3.2vw, 2.4rem);
    line-height: 1.4;
    color: var(--ink-soft);
    margin-top: 14px;
}

.gallery-chapter {
    padding: 80px 0 100px;
}

.gallery-chapter-head {
    display: flex;
    align-items: baseline;
    gap: 24px;
    margin-bottom: 44px;
}
.gallery-chapter-head .eyebrow {
    text-align: left;
    margin-bottom: 6px;
}
.gallery-chapter-head .section-title {
    text-align: left;
    font-size: clamp(2.2rem, 4vw, 3.2rem);
}
.gallery-chapter-rule {
    flex: 1;
    height: 1px;
    background: var(--line);
}
.gallery-chapter-era {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.05rem;
    color: var(--sage);
    white-space: nowrap;
}

/* Chapter One — staggered accordion row */
.gallery-row {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
}
.gallery-row-item {
    flex: 1 1 1%;
    min-width: 0;
    position: relative;
    transition: flex 600ms cubic-bezier(0.25, 1, 0.5, 1), opacity 250ms ease;
}
.gallery-row-item:hover { flex: 1 1 30%; }
.gallery-row:has(.gallery-row-item:hover) .gallery-row-item:not(:hover) { opacity: 0.26; }

.gallery-row-item .placeholder-img,
.gallery-row-item .gallery-photo {
    aspect-ratio: auto;
    height: clamp(340px, 42vw, 470px);
    width: 100%;
    border-top: 0;
    border-bottom: 0;
    border-left: 1px solid #d9cfc0;
    border-right: 1px solid #d9cfc0;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 16%, #000 84%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 16%, #000 84%, transparent 100%);
}
.gallery-row-item .gallery-photo {
    object-fit: cover;
    display: block;
}

.gallery-row-item:nth-child(1) { margin-top: 1.5%; }
.gallery-row-item:nth-child(2) { margin-top: 7%; }
.gallery-row-item:nth-child(3) { margin-top: 0; }
.gallery-row-item:nth-child(4) { margin-top: 9.5%; }
.gallery-row-item:nth-child(5) { margin-top: 4%; }
.gallery-row-item:nth-child(6) { margin-top: 0.5%; }
.gallery-row-item:nth-child(7) { margin-top: 8%; }
.gallery-row-item:nth-child(8) { margin-top: 2.5%; }
.gallery-row-item:nth-child(9) { margin-top: 10%; }
.gallery-row-item:nth-child(10) { margin-top: 5.5%; }

/* Nudge the crop window toward each photo's subject instead of the
   image's dead center, since the row's narrow rest-state slice only
   shows a thin vertical strip of a landscape/portrait source. */
.gallery-row-item:nth-child(1) .gallery-photo { object-position: 22% center; }
.gallery-row-item:nth-child(2) .gallery-photo { object-position: 28% center; }
.gallery-row-item:nth-child(4) .gallery-photo { object-position: 22% center; }
.gallery-row-item:nth-child(5) .gallery-photo { object-position: 38% center; }
.gallery-row-item:nth-child(8) .gallery-photo { object-position: 42% center; }

/* Chapter Two — cinematic proposal player + photo row */
.gallery-chapter--proposal {
    padding-top: 0;
}

.proposal-dark {
    background: var(--ink);
    padding: 80px 0;
}
.proposal-dark .gallery-chapter-head {
    margin-bottom: 24px;
}
.proposal-dark .gallery-chapter-head .eyebrow { color: rgba(255, 255, 255, 0.55); }
.proposal-dark .gallery-chapter-head .section-title { color: var(--cream); }
.proposal-dark .gallery-chapter-rule { background: rgba(255, 255, 255, 0.2); }
.proposal-dark .gallery-chapter-era { color: rgba(255, 255, 255, 0.55); }

.proposal-intro {
    max-width: 640px;
    margin: 0 auto 40px;
    text-align: center;
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.3rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.75);
}

.proposal-player {
    position: relative;
    width: 90%;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    background: linear-gradient(160deg, #2c2721, #161310);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}
.proposal-player-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.proposal-player-poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    /* A still from 0:12 of the film; the tint keeps the play button legible. */
    background:
        linear-gradient(rgba(16, 14, 12, 0.3), rgba(16, 14, 12, 0.3)),
        url("https://media.kaloiandraya.site/img/proposal-poster.jpg") center / cover no-repeat;
    border: 0;
    cursor: pointer;
    font-family: inherit;
}
.proposal-play-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition), border-color var(--transition);
}
.proposal-play-circle svg { margin-left: 3px; }
.proposal-player-poster:hover .proposal-play-circle,
.proposal-player-poster:focus-visible .proposal-play-circle {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

/* Same width as the video above, so their edges line up. */
.proposal-photos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    width: 90%;
    margin: 24px auto 0;
}
.proposal-photo {
    display: block;
    width: 100%;
    height: auto;
}

/* Chapter Three — even grid */
.gallery-grid-even {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}
.gallery-more {
    text-align: center;
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.15rem;
    color: var(--stone);
    margin-top: 44px;
}

@media (max-width: 860px) {
    .gallery-grid-even {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .proposal-dark {
        padding: 56px 0;
    }
    .proposal-play-circle { width: 52px; height: 52px; }
}

@media (max-width: 600px) {
    .proposal-photos {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 16px;
    }
}

@media (max-width: 600px) {
    .gallery-chapter-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .gallery-chapter-rule { display: none; }

    /* Same accordion filmstrip as desktop, but items overflow the
       viewport horizontally (swipe) instead of squeezing into a row,
       and a tap enlarges a photo to full width instead of a hover. */
    .gallery-row {
        justify-content: flex-start;
        width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        padding: 0 24px;
        overflow-x: auto;
        overflow-y: visible;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .gallery-row::-webkit-scrollbar { display: none; }

    .gallery-row-item {
        flex: 0 0 auto;
        width: 68vw;
        max-width: 280px;
        scroll-snap-align: center;
        cursor: pointer;
        transition: width 500ms cubic-bezier(0.25, 1, 0.5, 1), margin 500ms cubic-bezier(0.25, 1, 0.5, 1), opacity 250ms ease;
    }
    .gallery-row-item:hover {
        flex: 0 0 auto;
        width: 68vw;
        max-width: 280px;
    }

    .gallery-row-item.is-expanded {
        width: calc(100% + 48px);
        max-width: none;
        margin-left: -24px;
        margin-right: -24px;
        scroll-snap-align: start;
    }
    .gallery-row:has(.gallery-row-item.is-expanded) .gallery-row-item:not(.is-expanded) {
        opacity: 0.26;
    }

    .gallery-row-item .placeholder-img,
    .gallery-row-item .gallery-photo {
        height: clamp(280px, 90vw, 420px);
    }
}

/* ==========================================================================
   RSVP page
   ========================================================================== */

.rsvp-main {
    padding: 72px 0 110px;
}

.rsvp-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    gap: 72px;
    align-items: start;
}

.rsvp-field-label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.28em;
    color: var(--sage);
    margin-bottom: 6px;
}

.rsvp-question,
.rsvp-field-block {
    margin-bottom: 44px;
}
.rsvp-question .rsvp-field-label,
.rsvp-field-block > .rsvp-field-label {
    margin-bottom: 14px;
}

.rsvp-chip-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.rsvp-chip {
    background: none;
    color: var(--ink);
    border: 1px solid var(--line-strong);
    cursor: pointer;
    font-family: inherit;
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.24em;
    white-space: nowrap;
    padding: 15px 26px;
    transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
}
.rsvp-chip.is-active {
    background: var(--ink);
    color: var(--cream);
    border-color: var(--ink);
}

.rsvp-field-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 34px;
    margin-bottom: 40px;
}
.rsvp-field-grid .rsvp-field {
    margin-bottom: 0;
}

.rsvp-field--search {
    position: relative;
}
.rsvp-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 20;
    margin-top: 4px;
    background: var(--cream);
    border: 1px solid var(--line-strong);
    max-height: 220px;
    overflow-y: auto;
}
.rsvp-suggestion {
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: 0;
    font-family: var(--font-serif);
    font-size: 1.05rem;
    color: var(--ink);
    padding: 10px 14px;
    cursor: pointer;
}
.rsvp-suggestion:hover,
.rsvp-suggestion:focus {
    background: var(--cream-alt);
    outline: none;
}

.rsvp-field {
    display: block;
    margin-bottom: 40px;
}
.rsvp-field input,
.rsvp-field textarea {
    width: 100%;
    background: none;
    border: 0;
    border-bottom: 1px solid var(--line-strong);
    outline: none;
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--ink);
    padding: 8px 0;
    transition: border-color var(--transition);
}
.rsvp-field textarea { resize: vertical; }
.rsvp-field input::placeholder,
.rsvp-field textarea::placeholder { color: #bdb3a5; }
.rsvp-field input:focus,
.rsvp-field textarea:focus { border-bottom-color: var(--ink); }

.rsvp-person-name {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    line-height: 1.2;
    margin-bottom: 14px;
}

.rsvp-submit-row {
    display: flex;
    align-items: center;
    gap: 26px;
    flex-wrap: wrap;
}
.rsvp-submit {
    padding: 18px 44px;
    letter-spacing: 0.28em;
    background: var(--ink);
    color: var(--cream);
    border-color: var(--ink);
}
.rsvp-submit:disabled { opacity: 0.35; cursor: not-allowed; }
.rsvp-submit:not(:disabled):hover { background: transparent; color: var(--ink); }
.rsvp-hint {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.05rem;
    color: var(--stone);
}

.rsvp-thanks {
    text-align: center;
    padding: 40px 0 20px;
}
.rsvp-thanks-title {
    font-family: var(--font-script);
    font-size: clamp(2.6rem, 5vw, 3.6rem);
    font-weight: 400;
    line-height: 1.1;
    padding: 0.55em 0;
}
.rsvp-thanks-body {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: var(--ink-soft);
    max-width: 40ch;
    margin: 0 auto 36px;
}

.rsvp-aside {
    border-left: 1px solid var(--line);
    padding-left: 48px;
}
.rsvp-aside-block { margin-bottom: 44px; }
.rsvp-aside-block:last-child { margin-bottom: 0; }
.rsvp-aside-block--date { margin-bottom: 16px; }
.rsvp-aside-eyebrow {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--taupe);
    margin-bottom: 10px;
}
.rsvp-aside-date {
    font-family: var(--font-serif);
    font-size: 1.9rem;
    line-height: 1.3;
    margin-bottom: 4px;
}
.rsvp-aside-location {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.1rem;
    color: var(--stone);
}
.rsvp-aside-schedule-row {
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding: 4px 0;
}
.rsvp-aside-time {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    min-width: 76px;
}
.rsvp-aside-rule {
    flex: 1;
    height: 1px;
    background: var(--line);
}
.rsvp-aside-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.24em;
    color: var(--ink-soft);
}
.rsvp-aside-text {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    line-height: 1.6;
    color: #3b3630;
}
.rsvp-aside-text a {
    border-bottom: 1px solid #c9bdac;
}

.rsvp-attire-link {
    display: block;
    margin-top: 18px;
}
.rsvp-attire-img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--line);
    transition: opacity var(--transition);
}
.rsvp-attire-link:hover .rsvp-attire-img { opacity: 0.85; }

.has-lightbox { overflow: hidden; }

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 56px 24px;
    background: rgba(0, 0, 0, 0.8);
    cursor: zoom-out;
}
.lightbox-img {
    display: block;
    width: auto;
    height: auto;
    max-width: min(1100px, 100%);
    max-height: 100%;
    cursor: default;
}
.lightbox-close {
    position: absolute;
    top: 12px;
    right: 20px;
    background: none;
    border: 0;
    color: #fff;
    font-size: 2.5rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity var(--transition);
}
.lightbox-close:hover,
.lightbox-close:focus-visible { opacity: 1; }

@media (max-width: 900px) {
    .rsvp-grid {
        grid-template-columns: 1fr;
        gap: 56px;
    }
    .rsvp-aside {
        border-left: none;
        border-top: 1px solid var(--line);
        padding-left: 0;
        padding-top: 40px;
    }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    padding: 64px 0 56px;
    text-align: center;
    background: var(--cream-alt);
    border-top: 1px solid var(--line);
}
.site-footer-logo {
    height: 56px;
    width: auto;
    margin: 0 auto 24px;
}
.site-footer-date {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.1rem;
    color: var(--stone);
    margin-bottom: 10px;
}
.site-footer-copy {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.26em;
    color: var(--taupe);
}

@media (max-width: 600px) {
    .site-footer {
        padding: 32px 0 40px;
    }
    .site-footer-logo {
        height: 96px;
        margin-bottom: 20px;
    }
}
