:root {
    --greenish: #7b8e78;
    --gold: #c5a861;
    --mauve-white: #fcfbfb;
    --champagne-rose: #f3e6e3;
    --text-dark: #2a2a2a;
    --section-padding: clamp(4rem, 9vw, 8rem);
}

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    position: relative;
    overflow-x: hidden;
    background-color: var(--mauve-white);
    color: var(--text-dark);
    font-family: "Jost", sans-serif;
    line-height: 1.8;
}

h1,
h2,
h3,
.serif {
    font-family: "Cinzel", serif;
    font-weight: 500;
}

address {
    font-style: normal;
}

.section-space {
    position: relative;
    z-index: 1;
    padding-block: var(--section-padding);
}

.wedding-page .card {
    margin-bottom: 0;
}

.section-title {
    margin-bottom: 1rem;
    color: var(--greenish);
    font-size: clamp(2.2rem, 5vw, 4.5rem);
    letter-spacing: 0.08rem;
}

.divider {
    position: relative;
    width: clamp(5rem, 10vw, 9rem);
    height: 2px;
    margin: 0 auto clamp(2.5rem, 5vw, 5rem);
    /* Gold rule with a fixed-width transparent break in the middle so the
       sparkle sits in a gap — no opaque badge, works on any background. */
    background: linear-gradient(
        to right,
        var(--gold) 0,
        var(--gold) calc(50% - 0.6rem),
        transparent calc(50% - 0.6rem),
        transparent calc(50% + 0.6rem),
        var(--gold) calc(50% + 0.6rem),
        var(--gold) 100%
    );
}

.divider::after {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--gold);
    content: "✧";
    font-size: 1.2rem;
}

.divider-start {
    width: 5rem;
    margin-left: 0;
}

.reveal {
    opacity: 0;
    transform: translateY(2.5rem);
    transition: opacity 1s ease, transform 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.lang-switcher {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1030;
    padding: 0.25rem;
    border: 1px solid var(--gold);
    border-radius: 50rem;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 0.3rem 1rem rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(0.65rem);
}

.lang-switcher .lang-btn {
    border: 0;
    border-radius: 50rem !important;
    color: var(--text-dark);
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0.55;
}

.lang-switcher .lang-btn:hover,
.lang-switcher .lang-btn:focus-visible {
    color: var(--gold);
    opacity: 1;
}

.lang-switcher .lang-btn.active {
    background: var(--gold);
    color: #fff;
    opacity: 1;
}

/* Server-rendered language links (RSVP pages): same look as .lang-btn,
   but navigating with ?lang= instead of swapping text client-side. */
.lang-switcher .lang-link {
    border: 0;
    border-radius: 50rem !important;
    color: var(--text-dark);
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0.55;
    text-decoration: none;
}

.lang-switcher .lang-link:hover,
.lang-switcher .lang-link:focus-visible {
    color: var(--gold);
    opacity: 1;
}

.lang-switcher .lang-link.active {
    background: var(--gold);
    color: #fff;
    opacity: 1;
}

#particle-canvas {
    position: fixed;
    inset: 0;
    z-index: -1;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at center, var(--mauve-white), #f4f0f2);
    pointer-events: none;
}

.hero {
    position: relative;
    min-height: 100svh;
    overflow: hidden;
    background: url("/static/images/hero.webp") center / cover no-repeat fixed;
}

.hero::before {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(25, 18, 10, 0.65), rgba(48, 34, 16, 0.44));
    content: "";
}

.hero-content {
    z-index: 1;
    max-width: 75rem;
    padding-block: 6rem 3rem;
}

.hero h1 {
    margin-bottom: 1rem;
    color: #e8c777;
    font-size: clamp(2.3rem, 8vw, 7.5rem);
    letter-spacing: 0.04em;
    line-height: 1.08;
    text-shadow: 0 0.65rem 1.5rem rgba(0, 0, 0, 0.78);
}

.hero-lead {
    max-width: 28ch;
    margin-inline: auto;
    color: #fff6e4;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(1.35rem, 3vw, 2.45rem);
    font-style: italic;
    line-height: 1.3;
    text-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.75);
}

.date {
    display: block;
    margin-top: 1.5rem;
    color: var(--gold);
    font-family: "Cinzel", serif;
    font-size: clamp(1.35rem, 3vw, 2.35rem);
}

.countdown {
    max-width: 42rem;
    margin-top: 2rem;
}

.countdown-item {
    padding: 0.8rem 0.5rem;
    border: 1px solid rgba(255, 246, 228, 0.5);
    border-radius: 0.75rem;
    background: rgba(255, 246, 228, 0.14);
    backdrop-filter: blur(0.2rem);
}

.countdown-value,
.countdown-label {
    display: block;
}

.countdown-value {
    color: #fff6e4;
    font-family: "Cinzel", serif;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    line-height: 1;
    text-shadow: 0 0.3rem 0.75rem rgba(0, 0, 0, 0.65);
}

.countdown-label {
    margin-top: 0.4rem;
    color: #ffe4ef;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.itinerary-wrapper {
    background: rgba(243, 230, 227, 0.45);
}

.horizontal-timeline {
    position: relative;
}

.horizontal-timeline::before {
    position: absolute;
    top: 5.25rem;
    right: 8%;
    left: 8%;
    z-index: -1;
    height: 2px;
    background: rgba(197, 168, 97, 0.55);
    content: "";
}

.time-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.node-marker {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: center;
}

.event-icon {
    width: 3.5rem;
    height: 3.5rem;
    margin-bottom: 0.5rem;
    object-fit: contain;
}

.dot {
    display: grid;
    flex: 0 0 auto;
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 1.25rem;
    place-items: center;
    border: 3px solid var(--greenish);
    border-radius: 50%;
    background: var(--mauve-white);
    box-shadow: 0 0 0 0.5rem rgba(243, 230, 227, 0.9);
    transition: transform 0.3s ease;
}

.dot::after {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background: var(--gold);
    content: "";
}

.time-node:hover .dot {
    transform: scale(1.15);
}

.time {
    display: block;
    color: var(--greenish);
    font-family: "Cinzel", serif;
    font-size: clamp(1.4rem, 2.5vw, 2rem);
}

.event {
    display: block;
    margin-top: 0.35rem;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.12rem;
    text-transform: uppercase;
}

.story-wrapper {
    background: rgba(255, 255, 255, 0.55);
}

.story-card {
    max-width: 61rem;
    padding: clamp(0.5rem, 3vw, 2rem);
    border-color: rgba(197, 168, 97, 0.4);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 1.25rem 2.5rem rgba(0, 0, 0, 0.06);
    text-align: center;
}

.story-text {
    max-width: 70ch;
    margin-inline: auto;
    color: #3a3a3a;
    font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.story-tease {
    font-style: italic;
}

.gino-zoom {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    cursor: zoom-in;
}

.gino-collage {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.4s ease;
}

.gino-zoom:hover .gino-collage,
.gino-zoom:focus-visible .gino-collage {
    transform: scale(1.02);
}

.gino-zoom:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: -2px;
}

.gino-zoom-hint {
    position: absolute;
    right: 0.75rem;
    bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    color: #fff;
    background: rgba(42, 42, 42, 0.55);
    backdrop-filter: blur(0.35rem);
    transition: background-color 0.3s ease;
}

.gino-zoom:hover .gino-zoom-hint,
.gino-zoom:focus-visible .gino-zoom-hint {
    background: var(--gold);
}

.gino-copy {
    padding: clamp(1.25rem, 4vw, 2.5rem) clamp(1rem, 4vw, 2.75rem) clamp(1.75rem, 4vw, 2.5rem);
}

/* Fullscreen zoom overlay for the collage. */
.gino-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1080;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(0.75rem, 3vw, 2.5rem);
    background: rgba(20, 14, 8, 0.88);
    backdrop-filter: blur(0.4rem);
    cursor: zoom-out;
}

.gino-lightbox[hidden] {
    display: none;
}

.gino-lightbox img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 0.5rem;
    box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.45);
}

.gino-lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 0;
    border-radius: 50%;
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    background: rgba(255, 255, 255, 0.14);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.gino-lightbox-close:hover,
.gino-lightbox-close:focus-visible {
    background: var(--gold);
}

.venue-art {
    display: grid;
    min-height: 22rem;
    place-items: center;
}

.venue-watercolor {
    width: 100%;
    max-height: 38rem;
    object-fit: contain;
    /* Soft, diffuse edges so the watercolour melts into the page instead of
       showing a hard square. Two axis-aligned gradients are intersected so the
       left/right and top/bottom borders (and corners) fade out. */
    -webkit-mask-image:
        linear-gradient(to right, transparent 0%, #000 12%, #000 88%, transparent 100%),
        linear-gradient(to bottom, transparent 0%, #000 12%, #000 88%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image:
        linear-gradient(to right, transparent 0%, #000 12%, #000 88%, transparent 100%),
        linear-gradient(to bottom, transparent 0%, #000 12%, #000 88%, transparent 100%);
    mask-composite: intersect;
}

.venue-card {
    overflow: hidden;
    padding: clamp(0.5rem, 2vw, 1.5rem);
    border: 0;
    border-top: 4px solid var(--greenish);
    border-radius: 1rem;
    box-shadow: 0 0.9rem 2.2rem rgba(0, 0, 0, 0.06);
}

.venue-card-gold {
    border-top-color: var(--gold);
}

.venue-card h3 {
    margin-bottom: 1rem;
    color: var(--gold);
    font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.venue-type {
    display: block;
    margin-bottom: 1rem;
    color: var(--greenish);
    font-size: 0.9rem;
    letter-spacing: 0.18rem;
    text-transform: uppercase;
}

.map-container {
    overflow: hidden;
    margin-top: 1.5rem;
    border-radius: 0.75rem;
}

.map-container iframe {
    border: 0;
}

/* Dress code band: warm ecru like the invitation suite. The swatches are the
   tones reserved for the couple, each crossed out in the artwork itself. */
.dresscode-wrapper {
    background: rgba(244, 237, 226, 0.8);
    text-align: center;
}

.dresscode-heading {
    max-width: 46rem;
    margin-inline: auto;
}

.dresscode-style {
    margin-bottom: 0.75rem;
    color: var(--greenish);
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(2.6rem, 6vw, 4.25rem);
    font-style: italic;
    line-height: 1.1;
}

.dresscode-intro {
    max-width: 44ch;
    margin: 0 auto;
    color: #554d42;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(1.2rem, 2.4vw, 1.55rem);
    font-style: italic;
}

/* Stipulations under the intro, set apart like a small-print rule. */
.dresscode-rule {
    margin: 1.25rem auto 0;
    color: #4a4238;
    font-size: 0.85rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.dresscode-swatches {
    max-width: 46rem;
    margin-top: clamp(2.5rem, 5vw, 4rem);
    margin-inline: auto;
}

.swatch-art {
    width: min(100%, 15rem);
    height: auto;
}

.dresscode-swatch figcaption {
    margin-top: 0.4rem;
    color: #4a4238;
    font-size: 0.8rem;
    letter-spacing: 0.22em;
    text-indent: 0.22em;
    text-transform: uppercase;
}

.btn-solid {
    padding: 1rem 1.5rem;
    border-radius: 0.25rem;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.16rem;
    text-transform: uppercase;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.rsvp-card {
    max-width: 56rem;
    padding: clamp(0.5rem, 4vw, 3rem);
    border-color: var(--gold);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 1.25rem 3rem rgba(0, 0, 0, 0.07);
    text-align: center;
}

.rsvp-wrapper {
    background: rgba(247, 184, 203, 0.13);
}

/* Home-page RSVP band mirrors the hero: full-bleed photo, parallax on desktop,
   with a translucent overlay so the content stays readable on top.
   A taller band shows more of the (portrait) photo's height — with a
   full-width cover background the section height is what sets the crop. */
.rsvp-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    min-height: 100svh;
    background: url("/static/images/noelia-gilles-595.webp") center 30% / cover no-repeat fixed;
}

.rsvp-hero::before {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(25, 18, 10, 0.65), rgba(48, 34, 16, 0.44));
    content: "";
}

.rsvp-hero .container {
    position: relative;
    z-index: 1;
}

.rsvp-content {
    max-width: 34rem;
    margin-inline: auto;
    text-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.6);
}

.rsvp-hero .section-title,
.rsvp-hero p {
    color: #fff6e4;
}

/* Add-to-calendar buttons (add-to-calendar-button web component). The
   button renders inside shadow DOM; custom properties cascade through the
   shadow boundary and override the component's :host defaults, so this is
   the supported way to pull it into the wedding theme (gold button, cream
   dropdown). The label is uppercased in the markup itself because
   text-transform cannot cross the shadow boundary on the trigger alone. */
add-to-calendar-button {
    --font: "Jost", sans-serif;
    --accent-color: var(--gold);
    --btn-background: var(--gold);
    --btn-hover-background: var(--greenish);
    --btn-border: var(--gold);
    --btn-hover-border: var(--greenish);
    --btn-text: #fff;
    --btn-hover-text: #fff;
    --btn-border-radius: 0.25rem;
    --btn-shadow: 0 1.25rem 3rem rgba(0, 0, 0, 0.07);
    --checkmark-background: var(--greenish);
    --list-background: var(--mauve-white);
    --list-hover-background: var(--champagne-rose);
    --list-text: var(--text-dark);
    --list-hover-text: var(--text-dark);
    --list-border-radius: 0.5rem;
}

.calendar-cta {
    margin-top: clamp(1.5rem, 3vw, 2.5rem);
    text-align: center;
}

.calendar-cta-text {
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.rsvp-actions {
    max-width: 22rem;
    margin-inline: auto;
}

.rsvp-card {
    text-align: left;
}

/* Numbered section headers of the multi-part RSVP form. */
.rsvp-part-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0;
    color: var(--greenish);
    font-family: "Cinzel", serif;
    font-size: 1.1rem;
    line-height: 1.4;
}

.rsvp-part-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 1.9rem;
    height: 1.9rem;
    border: 1px solid var(--gold);
    border-radius: 50%;
    color: var(--gold);
    font-family: "Jost", sans-serif;
    font-size: 0.9rem;
}

.rsvp-part-note {
    margin-left: auto;
    color: var(--text-muted, #8a8178);
    font-family: "Jost", sans-serif;
    font-size: 0.8rem;
    font-weight: 400;
}

.rsvp-part-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--gold);
    opacity: 0.35;
}

/* Hide the trailing rule when the note is present so it does not underline
   the note text. */
.rsvp-part-title:has(.rsvp-part-note)::after {
    content: none;
}

.rsvp-card .form-label {
    margin-bottom: 0.5rem;
    color: var(--greenish);
    font-size: 0.85rem;
    letter-spacing: 0.1rem;
    text-transform: uppercase;
}

.rsvp-card .form-control,
.rsvp-card .form-select {
    min-height: 3.5rem;
    border-color: #ddd;
    background-color: var(--mauve-white);
}

.rsvp-card .form-control:focus,
.rsvp-card .form-select:focus,
.photo-form .form-control:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 0.25rem rgba(197, 168, 97, 0.2);
}

.btn-solid {
    border: 0;
    background: var(--gold);
    color: #fff;
}

.btn-solid:hover,
.btn-solid:focus-visible {
    background: var(--greenish);
    color: #fff;
    transform: translateY(-0.15rem);
}

/* Secondary call-to-action in the wedding theme: solid gold so it reads
   unmistakably as a button (the "Wedding Information" link on the RSVP
   pages). Fluid type keeps long labels comfortable on small phones. */
.btn-gold {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    border: 1px solid var(--gold);
    border-radius: 50rem;
    background: var(--gold);
    color: #fff;
    font-size: clamp(0.85rem, 3.2vw, 1rem);
    font-weight: 600;
    letter-spacing: 0.1rem;
    text-transform: uppercase;
    box-shadow: 0 0.35rem 1rem rgba(0, 0, 0, 0.12);
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-gold:hover,
.btn-gold:focus-visible {
    background: var(--greenish);
    border-color: var(--greenish);
    color: #fff;
    transform: translateY(-0.15rem);
    box-shadow: 0 0.55rem 1.4rem rgba(0, 0, 0, 0.16);
}

.btn-gold svg {
    transition: transform 0.3s ease;
}

.btn-gold:hover svg,
.btn-gold:focus-visible svg {
    transform: translateX(0.2rem);
}

#dove-cursor {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    width: 4.5rem;
    height: 4.5rem;
    /* Parked off-screen until the first mousemove; moved exclusively with
       translate3d so each update is a compositor-only change (no layout). */
    transform: translate3d(-6rem, -6rem, 0) translate(-50%, -50%);
    pointer-events: none;
    will-change: transform;
}

#dove-cursor img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0.15rem 0.2rem rgba(0, 0, 0, 0.15));
}

@media (pointer: fine) {
    .wedding-page,
    .wedding-page a,
    .wedding-page button,
    .wedding-page input,
    .wedding-page select,
    .wedding-page textarea,
    .wedding-page label {
        cursor: none;
    }
}

@media (max-width: 991.98px) {
    .hero,
    .rsvp-hero {
        background-attachment: scroll;
    }

    .horizontal-timeline::before {
        top: 0;
        bottom: 0;
        left: 2.5rem;
        width: 2px;
        height: auto;
    }

    .time-node {
        flex-direction: row;
        align-items: flex-start;
        padding-left: 0.75rem;
        text-align: left;
    }

    .node-marker {
        margin-right: 1.5rem;
    }

    .dot {
        margin-bottom: 0;
    }

    .venue-art {
        min-height: 16rem;
    }
}

@media (max-width: 575.98px) {
    .section-space {
        padding-block: 3.5rem;
    }

    /* The RSVP screens are vertically centered full-height pages; on phones
       the default section padding just piles empty space above the card. */
    .rsvp-page {
        padding-block: 1.25rem;
    }

    .hero h1 {
        font-size: clamp(2rem, 12vw, 3.5rem);
    }

    .story-card,
    .rsvp-card {
        border-radius: 0.75rem;
    }

    .venue-art {
        min-height: 12rem;
    }

    .btn-solid {
        font-size: 0.85rem;
        letter-spacing: 0.1rem;
    }
}

@media (pointer: coarse) {
    #dove-cursor {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Admin table: cap the width of free-text columns so long guest input
   cannot stretch the table. */
.admin-long-text {
    max-width: 14rem;
    overflow-wrap: anywhere;
}
