/**
 * Wedding invitation — mobile-first, moodboard palette (Texel / coastal romantic).
 */
:root {
    --cream: #efe6db;
    --linen: #f8f5f0;
    --lavender: #8c789a;
    --teal: #4f6d73;
    --sand: #dcc9a3;
    --rose: #d8a7a1;
    --sage: #a8b29a;
    --ink: #3a3532;
    --ink-soft: rgba(58, 53, 50, 0.72);
    --shadow-soft: 0 18px 48px rgba(79, 109, 115, 0.14);
    --radius-lg: 18px;
    --font-serif: "Cormorant Garamond", Georgia, serif;
    --font-body: "Inter", system-ui, sans-serif;
    --font-script: "Great Vibes", cursive;
    --space-section: clamp(3.5rem, 8vw, 6rem);
    --header-h: 3.25rem;
}

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

html {
    scroll-behavior: smooth;
}

@media (min-width: 768px) {
    html:has(.guest-desktop-nav) {
        scroll-padding-top: var(--header-h);
    }
}

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

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

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
    line-height: 1.65;
    color: var(--ink);
    background-color: var(--linen);
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0.75rem;
    z-index: 100;
    padding: 0.65rem 1rem;
    background: var(--lavender);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.skip-link:focus {
    left: 0.75rem;
    outline: 2px solid var(--teal);
    outline-offset: 2px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(12px);
    background: rgba(248, 245, 240, 0.82);
    border-bottom: 1px solid rgba(79, 109, 115, 0.12);
}

.nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem 1rem;
    max-width: 72rem;
    margin: 0 auto;
    padding: 0.85rem 1.25rem;
}

.nav a {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--teal);
    text-decoration: none;
    font-weight: 600;
    padding: 0.35rem 0.15rem;
}

.nav a:hover {
    color: var(--lavender);
}

.hero {
    position: relative;
    min-height: min(88vh, 46rem);
    display: grid;
    place-items: center;
    text-align: center;
    padding: calc(var(--header-h) + 2rem) 1.25rem 4rem;
    scroll-margin-top: var(--header-h);
}

@media (max-width: 767px) {
    .hero {
        /* Eén schermhoogte onder de sticky header; dvh/svh i.p.v. vh i.v.m. mobiele browserbars */
        min-height: calc(100svh - var(--header-h));
        min-height: calc(100dvh - var(--header-h));
        padding: 1.75rem 1.25rem 2rem;
    }
}

.hero__backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(120% 80% at 50% 100%, rgba(168, 178, 154, 0.35), transparent 55%),
        radial-gradient(90% 60% at 20% 40%, rgba(216, 167, 161, 0.22), transparent 50%),
        radial-gradient(70% 50% at 85% 35%, rgba(140, 120, 154, 0.18), transparent 45%),
        linear-gradient(180deg, #dfe9ea 0%, #e8dfd4 38%, #dcc9a3 85%, #c9b08f 100%);
    opacity: 0.95;
}

.hero__backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
    mix-blend-mode: multiply;
    pointer-events: none;
}

.hero__inner {
    position: relative;
    max-width: 36rem;
}

.hero__kicker {
    margin: 0 0 0.75rem;
    font-family: var(--font-body);
    font-size: 0.82rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--teal);
    font-weight: 600;
}

.hero__kicker a {
    color: inherit;
    text-decoration: none;
}

.hero__kicker a:hover {
    text-decoration: underline;
}

.hero__names {
    margin: 0 0 1rem;
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: clamp(2.75rem, 7vw, 4rem);
    line-height: 1.1;
    color: var(--ink);
}

.hero__names-script {
    font-family: var(--font-script);
    font-weight: 400;
    font-size: clamp(3.25rem, 9vw, 5rem);
    color: var(--lavender);
}

.hero__names-amp {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    font-size: 0.55em;
    color: var(--ink-soft);
    margin: 0 0.15em;
}

.hero__date {
    margin: 0 0 2rem;
    font-family: var(--font-serif);
    font-size: clamp(1.35rem, 3.5vw, 1.75rem);
    color: var(--teal);
}

.hero__sub {
    margin: 1.25rem auto 0;
    max-width: 28rem;
    font-size: 0.92rem;
    color: var(--ink-soft);
}

.hero .btn--secondary {
    margin-top: 1rem;
}

.section {
    padding: var(--space-section) 1.25rem;
    scroll-margin-top: calc(var(--header-h) + 0.5rem);
}

.section__inner {
    max-width: 52rem;
    margin: 0 auto;
}

.section__title {
    margin: 0 0 2rem;
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: clamp(2rem, 5vw, 2.65rem);
    text-align: center;
    color: var(--lavender);
}

.section--story {
    background: var(--linen);
}

.section--program {
    background: var(--cream);
}

.section--location {
    background: var(--linen);
}

.invite-page .section--location {
    text-align: center;
}

.invite-page .section--location .small.muted {
    margin: -0.25rem auto 1.5rem;
    max-width: 38rem;
}

.section--rsvp {
    background: var(--cream);
    text-align: center;
}

/* Aanmelden / bevestiging / afmelding: cream tot onderkant viewport op hoge schermen */
main.invite-page.section--rsvp {
    min-height: 100svh;
    min-height: 100dvh;
}

body:has(main.invite-page.section--rsvp) {
    background-color: var(--cream);
}

.info-page .section,
.invite-page .section {
    background: var(--cream);
}

@media (max-width: 767px) {
    .invite-page .section--program,
    .invite-page .section--location,
    .invite-page .section--rsvp {
        padding-block: calc(var(--space-section) * 0.45);
    }
}

@media (min-width: 768px) {
    .invite-page .section--program,
    .invite-page .section--location,
    .invite-page .section--rsvp {
        padding-block: clamp(1.25rem, 2vw, 1.75rem);
    }

    .invite-page .section--program {
        padding-top: clamp(2rem, 3vw, 2.75rem);
    }

    .invite-page .section--rsvp {
        padding-bottom: clamp(2rem, 3vw, 2.75rem);
    }
}

.rsvp-form {
    margin-top: 1.5rem;
}

.rsvp-form__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.rsvp-form__footnote {
    margin-top: 1.75rem;
}

.rsvp-flash {
    margin: 1.25rem auto 0;
    max-width: 36rem;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    font-weight: 500;
}

.rsvp-flash--success {
    background: rgba(168, 178, 154, 0.28);
    color: var(--teal);
    border: 1px solid rgba(79, 109, 115, 0.18);
}

.rsvp-flash--error {
    background: rgba(216, 167, 161, 0.28);
    color: var(--ink);
    border: 1px solid rgba(140, 120, 154, 0.22);
}

.rsvp-flash a {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 0.12em;
}

.rsvp-flash a:hover {
    opacity: 0.85;
}

.rsvp-flash .form-errors {
    margin-top: 0.5rem;
}

.rsvp-flash .form-errors li + li {
    margin-top: 0.25rem;
}

.lead {
    margin: 0 auto 1.5rem;
    max-width: 38rem;
    text-align: center;
    font-size: 1.05rem;
    color: var(--ink-soft);
}

.venue-line {
    margin: -0.75rem auto 1.75rem;
    max-width: 38rem;
    text-align: center;
    font-family: var(--font-serif);
    font-size: 1.12rem;
    font-weight: 600;
    color: var(--teal);
}

.program-footer-note {
    margin-top: 2rem;
    text-align: center;
}

.story-grid {
    display: grid;
    gap: 2.5rem;
    align-items: start;
}

@media (min-width: 768px) {
    .story-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
        gap: 3rem;
        align-items: center;
    }
}

.prose p {
    margin: 0 0 1rem;
    color: var(--ink-soft);
}

.prose p:last-child {
    margin-bottom: 0;
}

.polaroid {
    margin: 0;
    justify-self: center;
}

.polaroid__frame {
    background: #fff;
    padding: 0.75rem 0.75rem 2.25rem;
    box-shadow: var(--shadow-soft), 0 2px 0 rgba(0, 0, 0, 0.04);
    transform: rotate(-2deg);
    border-radius: 4px;
    max-width: 22rem;
}

.polaroid__photo {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 2px;
    background:
        linear-gradient(145deg, rgba(216, 167, 161, 0.35), rgba(168, 178, 154, 0.35)),
        linear-gradient(210deg, var(--sand), var(--rose));
}

.polaroid__photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 2px;
}

.polaroid--sm {
    width: min(72vw, 16rem);
    margin: clamp(1.75rem, 5vw, 2.75rem) auto clamp(2rem, 5vw, 2.75rem);
}

.polaroid--sm .polaroid__frame {
    position: relative;
    width: 100%;
    padding: 0.6rem 0.6rem 1.5rem;
    transform: rotate(2.5deg);
    box-shadow:
        0 4px 6px rgba(58, 53, 50, 0.06),
        0 14px 36px rgba(79, 109, 115, 0.22),
        0 28px 56px rgba(79, 109, 115, 0.12),
        0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.invite-page .polaroid--sm {
    margin-bottom: clamp(2.25rem, 5vw, 3rem);
}

@media (max-width: 767px) {
    .polaroid--sm .polaroid__photo {
        aspect-ratio: 1 / 1;
    }

    .polaroid--sm .polaroid__photo img {
        object-position: center 42%;
    }
}

@media (min-width: 768px) {
    .polaroid--sm {
        width: min(22vw, 18rem);
    }

    .polaroid--sm .polaroid__frame {
        padding: 0.7rem 0.7rem 2.15rem;
    }

    .polaroid--sm .polaroid__photo {
        aspect-ratio: 4 / 5;
    }

    .polaroid--sm .polaroid__photo img {
        object-position: center center;
    }
}

.polaroid__caption {
    margin-top: 0.65rem;
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1rem;
    text-align: center;
    color: var(--teal);
}

.polaroid--alt.polaroid--sm {
    width: min(78vw, 18.5rem);
    margin: 0;
}

.polaroid--alt .polaroid__frame {
    transform: rotate(-3.25deg);
}

.polaroid--alt .polaroid__photo img {
    object-position: center 38%;
}

.info-texel-card {
    margin: 0;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.55);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(79, 109, 115, 0.12);
    box-shadow: var(--shadow-soft);
}

.info-texel-card__media {
    margin: 0;
}

.info-texel-card__media img {
    display: block;
    width: 100%;
    height: auto;
}

.info-texel-card__content.info-block {
    margin: 0;
    padding: 1.25rem;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    border-top: 1px solid rgba(79, 109, 115, 0.1);
}

.info-page__polaroid {
    padding-block: clamp(2rem, 5vw, 3rem);
}

.info-page__polaroid .section__inner {
    display: flex;
    justify-content: center;
}

.info-page__polaroid .polaroid--alt.polaroid--sm {
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .polaroid--alt.polaroid--sm {
        width: min(28vw, 21rem);
    }

    .polaroid--alt.polaroid--sm .polaroid__frame {
        padding: 0.75rem 0.75rem 2.35rem;
    }
}

.paper-card {
    position: relative;
    padding: clamp(1.75rem, 5vw, 2.75rem);
    background: linear-gradient(180deg, #fdfbf8 0%, var(--linen) 100%);
    border-radius: 6px 14px 8px 12px / 10px 8px 14px 9px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(79, 109, 115, 0.12);
}

.paper-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
    opacity: 0.9;
}

.timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1.75rem;
}

.timeline__item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    align-items: center;
    padding-left: 0.25rem;
}

.timeline__icon {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    background: rgba(168, 178, 154, 0.28);
    color: var(--teal);
    flex-shrink: 0;
}

.timeline__icon svg {
    width: 1.65rem;
    height: 1.65rem;
}

.timeline time {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    color: var(--lavender);
}

.timeline h3 {
    margin: 0.15rem 0 0.35rem;
    font-family: var(--font-serif);
    font-size: 1.45rem;
    font-weight: 600;
    color: var(--ink);
}

.timeline p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.96rem;
}

.map-block {
    display: grid;
    gap: 1.25rem;
    justify-items: center;
    text-align: center;
}

.map-embed {
    width: min(100%, 42rem);
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.map-illustration {
    width: min(100%, 20rem);
    margin: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.map-illustration img {
    display: block;
    width: 100%;
    height: auto;
}

@media (min-width: 768px) {
    .map-illustration {
        width: min(100%, 24rem);
    }
}

.info-block .map-embed {
    margin: 1.5rem auto 0;
}

.info-block .map-embed + .info-block__body {
    margin-top: 1.75rem;
}

.map-block__watercolor {
    position: relative;
    width: min(100%, 26rem);
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    background:
        radial-gradient(circle at 28% 35%, rgba(216, 167, 161, 0.55), transparent 52%),
        radial-gradient(circle at 72% 42%, rgba(140, 120, 154, 0.45), transparent 48%),
        radial-gradient(circle at 50% 78%, rgba(79, 109, 115, 0.38), transparent 55%),
        radial-gradient(circle at 40% 60%, rgba(168, 178, 154, 0.35), transparent 45%),
        linear-gradient(165deg, #dbe7ea, #e9dfd8);
}

.map-block__watercolor::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.35;
    mix-blend-mode: soft-light;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='w'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='4'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23w)' opacity='0.45'/%3E%3C/svg%3E");
}

.map-block__label-script {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-family: var(--font-script);
    font-size: clamp(3rem, 12vw, 4.5rem);
    color: rgba(79, 109, 115, 0.88);
    z-index: 1;
    text-shadow: 0 6px 22px rgba(255, 255, 255, 0.45);
}

.map-block__pin {
    position: absolute;
    bottom: 28%;
    left: 52%;
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: var(--lavender);
    border: 2px solid #fff;
    box-shadow: 0 6px 14px rgba(79, 109, 115, 0.35);
    z-index: 2;
    transform: translate(-50%, 50%);
}

.map-block__note {
    margin: 0;
    max-width: 34rem;
    color: var(--ink-soft);
    font-size: 0.98rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.85rem 1.6rem;
    border-radius: 999px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.92rem;
    letter-spacing: 0.02em;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

.btn--primary {
    background: var(--lavender);
    color: #fff;
    box-shadow: 0 12px 28px rgba(140, 120, 154, 0.35);
}

.btn--primary:hover {
    background: #7a6789;
}

.btn--secondary {
    background: transparent;
    color: var(--teal);
    border-color: rgba(79, 109, 115, 0.35);
}

.btn--secondary:hover {
    border-color: var(--teal);
    background: rgba(79, 109, 115, 0.06);
}

.small {
    font-size: 0.85rem;
}

.muted {
    color: var(--ink-soft);
}

.site-footer {
    position: relative;
    padding: 4rem 1.25rem 5rem;
    text-align: center;
    background: linear-gradient(180deg, var(--cream), #e8ddd4);
    border-top: 1px solid rgba(79, 109, 115, 0.12);
}

.wax-seal {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1.5rem;
    border-radius: 999px;
    background:
        radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.35), transparent 45%),
        radial-gradient(circle at 60% 65%, rgba(0, 0, 0, 0.06), transparent 40%),
        linear-gradient(145deg, #d4b896, #b8956e);
    box-shadow:
        inset 0 1px 2px rgba(255, 255, 255, 0.45),
        0 10px 22px rgba(79, 109, 115, 0.2);
    border: 2px solid rgba(168, 178, 154, 0.35);
}

.footer-quote {
    margin: 0 auto 1rem;
    max-width: 28rem;
    font-family: var(--font-serif);
    font-style: italic;
    font-size: clamp(1.15rem, 3vw, 1.45rem);
    color: var(--teal);
}

.footer-quote p {
    margin: 0;
}

.footer-signoff {
    margin: 0;
    font-family: var(--font-script);
    font-size: clamp(1.75rem, 5vw, 2.35rem);
    color: var(--lavender);
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.75s ease, transform 0.75s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.info-block {
    margin: 2rem 0;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.55);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(79, 109, 115, 0.12);
}

.info-block__title {
    margin: 0 0 0.75rem;
    font-family: var(--font-serif);
    font-size: 1.35rem;
    color: var(--teal);
}

.info-block__subtitle {
    margin: 1.5rem 0 0.5rem;
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--lavender);
}

.info-block__subtitle:first-child {
    margin-top: 0;
}

.info-block__body {
    margin-top: 0.75rem;
}

.info-block__photo--full {
    margin: 1.25rem -1.25rem;
    width: calc(100% + 2.5rem);
}

.info-block__photo--full img {
    display: block;
    width: 100%;
    height: auto;
}

.text-link,
.prose a:not([class]) {
    color: var(--teal);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(79, 109, 115, 0.35);
    transition: color 0.2s ease, border-color 0.2s ease;
    overflow-wrap: anywhere;
}

.text-link:hover,
.prose a:not([class]):hover {
    color: var(--lavender);
    border-bottom-color: rgba(140, 120, 154, 0.65);
}

.text-link:focus-visible,
.prose a:not([class]):focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 3px;
    border-radius: 2px;
}

.venue-line .text-link {
    color: var(--lavender);
    border-bottom-color: rgba(140, 120, 154, 0.45);
}

.venue-line .text-link:hover {
    color: var(--teal);
    border-bottom-color: rgba(79, 109, 115, 0.55);
}

.info-block__actions {
    margin: 1.25rem 0 0;
}

.info-block__actions .btn {
    margin-top: 0;
}

.info-details {
    margin: 0;
}

.info-details__row {
    display: grid;
    grid-template-columns: minmax(5.5rem, 7rem) 1fr;
    gap: 0.35rem 1rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(79, 109, 115, 0.1);
}

.info-details__row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-details__row:first-child {
    padding-top: 0;
}

.info-details dt {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--lavender);
}

.info-details dd {
    margin: 0;
    color: var(--ink);
}

.info-page__header {
    padding-bottom: 0;
}

.info-page__header .section__title {
    margin-bottom: 1rem;
}

.info-page__back {
    margin: 2rem 0 0;
    text-align: center;
}

.info-page__back a {
    font-weight: 500;
    color: var(--teal);
    text-decoration: none;
}

.info-page__back a:hover {
    text-decoration: underline;
}

.info-page .info-block {
    margin: 0;
}

.info-page .section__inner {
    display: flex;
    flex-direction: column;
    gap: 0;
}

@media (max-width: 767px) {
    .info-page .section {
        padding-block: calc(var(--space-section) * 0.5);
    }

    .info-page .info-page__header {
        padding-bottom: 0;
    }

    .info-page .info-page__back {
        margin-top: 1rem;
    }
}

@media (min-width: 768px) {
    .info-page .section {
        padding-block: clamp(1.5rem, 2.5vw, 2.25rem);
    }

    .info-page .info-page__header {
        padding-top: clamp(2rem, 3.5vw, 2.75rem);
        padding-bottom: clamp(1.25rem, 2vw, 1.75rem);
    }

    .info-page .info-page__polaroid {
        padding-block: clamp(1rem, 2vw, 1.5rem);
    }

    .info-page .info-block__body {
        margin-top: 0.5rem;
    }

    .info-page .info-block .map-embed + .info-block__body {
        margin-top: 2rem;
    }

    .info-page .info-block .map-embed {
        margin-top: 1rem;
    }

    .info-page .info-block__actions {
        margin-top: 1rem;
    }

    .info-page .info-page__back {
        margin-top: 1.25rem;
    }
}

/* Guest navigation — desktop (sticky, in document flow) */
.guest-desktop-nav {
    display: none;
}

@media (min-width: 768px) {
    .guest-desktop-nav {
        position: sticky;
        top: 0;
        z-index: 50;
        display: block;
        background: rgba(248, 245, 240, 0.9);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-bottom: 1px solid rgba(79, 109, 115, 0.08);
    }

    body:has(.guest-desktop-nav) {
        --header-h: 3.35rem;
    }

    .guest-desktop-nav__inner {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: 0.5rem 1.25rem;
        max-width: 72rem;
        margin: 0 auto;
        padding: 0.55rem 1.5rem;
    }

    .guest-desktop-nav__primary {
        display: flex;
        gap: 0.15rem 1.25rem;
        flex-shrink: 0;
    }

    .guest-desktop-nav__tab {
        position: relative;
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        padding: 0.25rem 0;
        font-size: 0.75rem;
        font-weight: 500;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: rgba(58, 53, 50, 0.52);
        text-decoration: none;
        transition: color 0.2s ease;
    }

    .guest-desktop-nav__tab:is(:hover, :focus-visible) {
        color: var(--teal);
    }

    .guest-desktop-nav__tab.is-active {
        color: var(--teal);
        font-weight: 600;
    }

    .guest-desktop-nav__tab.is-active::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: rgba(79, 109, 115, 0.4);
    }

    .guest-desktop-nav__tab-icon {
        display: grid;
        place-items: center;
        width: 1.25rem;
        height: 1.25rem;
        opacity: 0.75;
    }

    .guest-desktop-nav__tab-icon svg {
        width: 0.95rem;
        height: 0.95rem;
    }

    /* Nav staat in de flow boven main — geen extra header-padding in hero */
    body:has(.guest-desktop-nav) .hero {
        padding-top: 2.5rem;
    }

    body:has(.guest-desktop-nav) .invite-page .hero--invite {
        padding-top: 3rem;
    }
}

/* Guest bottom nav (mobile) */
.guest-bottom-nav {
    display: none;
}

@media (max-width: 767px) {
    .guest-bottom-nav {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        position: fixed;
        inset: auto 0 0;
        z-index: 200;
        padding: 0.45rem 1rem calc(0.55rem + env(safe-area-inset-bottom, 0px));
        background: rgba(248, 245, 240, 0.96);
        border-top: 1px solid rgba(79, 109, 115, 0.14);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        box-shadow: 0 -8px 24px rgba(58, 53, 50, 0.08);
    }

    body:has(.guest-bottom-nav) {
        --guest-bottom-nav-h: calc(4.75rem + env(safe-area-inset-bottom, 0px));
        padding-bottom: var(--guest-bottom-nav-h);
    }

    body:has(.guest-bottom-nav) .invite-page .hero__scroll {
        bottom: calc(var(--guest-bottom-nav-h) + 0.75rem + 10px);
    }

    body:has(.guest-bottom-nav) .site-footer--compact {
        padding-bottom: 1.25rem;
    }

    body:has(.guest-bottom-nav) .info-page__back {
        display: none;
    }

    .guest-bottom-nav__item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.2rem;
        padding: 0.35rem 0.5rem;
        color: var(--ink-soft);
        text-decoration: none;
        font-size: 0.72rem;
        font-weight: 600;
        letter-spacing: 0.02em;
        border-radius: 12px;
        transition: color 0.2s ease;
    }

    .guest-bottom-nav__item:is(:hover, :focus-visible) {
        color: var(--teal);
    }

    .guest-bottom-nav__item.is-active {
        color: var(--lavender);
    }

    .guest-bottom-nav__icon {
        display: grid;
        place-items: center;
        width: 2.75rem;
        height: 2.75rem;
        border-radius: 999px;
        transition: background 0.2s ease;
    }

    .guest-bottom-nav__icon svg {
        width: 1.35rem;
        height: 1.35rem;
    }

    .guest-bottom-nav__item.is-active .guest-bottom-nav__icon {
        background: rgba(140, 120, 154, 0.22);
    }

    .guest-bottom-nav__label {
        line-height: 1.2;
        font-size: 0.65rem;
    }
}

/* RSVP modal & form (fase 1) */
.modal[hidden] {
    display: none;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(44, 42, 40, 0.45);
}

.modal__dialog {
    position: relative;
    width: min(100%, 28rem);
    max-height: 90vh;
    overflow-y: auto;
    padding: 1.5rem;
    background: var(--cream);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(79, 109, 115, 0.15);
    box-shadow: var(--shadow-soft);
}

.modal__title {
    margin: 0 0 0.75rem;
    font-family: var(--font-serif);
    font-size: 1.5rem;
}

.modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 1.25rem;
}

body.modal-open {
    overflow: hidden;
}

.form-fieldset {
    margin: 0 0 1.5rem;
    padding: 0;
    border: 0;
}

.form-fieldset__legend {
    margin-bottom: 0.75rem;
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 600;
}

.form-field {
    display: block;
    margin-bottom: 1rem;
    text-align: left;
}

.form-field__label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.form-field input[type="text"],
.form-field textarea {
    width: 100%;
    padding: 0.6rem 0.75rem;
    font: inherit;
    border: 1px solid rgba(79, 109, 115, 0.25);
    border-radius: 8px;
    background: #fff;
}

.form-field--checkbox {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
}

.form-field--checkbox input {
    margin-top: 0.2rem;
}

.form-field--radio {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
}

.form-field--radio input {
    margin-top: 0.25rem;
}

.rsvp-form--attend {
    margin-top: 1.5rem;
    text-align: left;
    max-width: 28rem;
    margin-left: auto;
    margin-right: auto;
}

.rsvp-confirm {
    text-align: center;
}

.rsvp-confirm__moment {
    margin: clamp(1.25rem, 4vw, 2rem) auto clamp(0.25rem, 2vw, 0.75rem);
    max-width: 24rem;
}

.rsvp-confirm__moment .invite-bridge {
    margin-bottom: clamp(1rem, 3vw, 1.75rem);
}

.rsvp-confirm .polaroid--rsvp-celebrate {
    width: min(98.4vw, 21rem);
    margin: 0 auto;
}

.rsvp-confirm .polaroid--rsvp-celebrate .polaroid__frame {
    transform: none;
    box-shadow:
        0 6px 10px rgba(58, 53, 50, 0.07),
        0 18px 42px rgba(79, 109, 115, 0.2),
        0 32px 64px rgba(216, 167, 161, 0.18),
        0 1px 0 rgba(255, 255, 255, 0.85) inset;
}

.rsvp-confirm .polaroid--rsvp-celebrate .polaroid__photo img {
    object-position: center 32%;
}

.rsvp-confirm .polaroid--rsvp-celebrate .polaroid__caption {
    margin-top: 0.85rem;
    margin-bottom: clamp(2.5rem, 7vw, 4rem);
}

.rsvp-summary {
    margin: 2rem auto 0;
    max-width: 28rem;
    text-align: left;
    display: grid;
    gap: 0.75rem;
}

.rsvp-summary dt {
    font-weight: 600;
    color: var(--teal);
    font-size: 0.9rem;
}

.rsvp-summary dd {
    margin: 0 0 1rem;
    color: var(--ink-soft);
}

.rsvp-confirm .rsvp-form__actions {
    margin-top: clamp(3rem, 7vw, 4.5rem);
}

.rsvp-decline-quote {
    margin: 1.5rem auto 0;
    max-width: 28rem;
    padding: 1rem 1.25rem;
    border-left: 3px solid var(--sage);
    background: rgba(168, 178, 154, 0.15);
    text-align: left;
    color: var(--ink-soft);
}

.rsvp-decline-quote p {
    margin: 0;
}

.form-errors {
    margin: 0.35rem 0 0;
    padding: 0;
    list-style: none;
    font-size: 0.875rem;
    color: #8b4545;
}

.form-field--invalid .form-field__label {
    color: #8b4545;
}

/* Tips page hero */
.tips-page .tips-hero {
    min-height: clamp(14rem, 32vh, 22rem);
    padding: 0;
}

@media (max-width: 767px) {
    .tips-page .tips-hero {
        min-height: clamp(12rem, 28vh, 18rem);
    }
}

.tips-page .tips-hero .hero__media {
    position: absolute;
    inset: 0;
}

.tips-page .tips-hero.hero--photo .hero__backdrop {
    background-color: #c9b08f;
    background-size: cover;
    background-position: center center;
    opacity: 1;
}

.tips-page .tips-hero.hero--photo .hero__backdrop::after {
    display: none;
}

.tips-page .tips-page__header .section__title {
    margin-bottom: 0;
    color: var(--lavender);
}

/* Info page hero */
.info-page .info-hero {
    min-height: clamp(14rem, 32vh, 22rem);
    padding: 0;
}

@media (max-width: 767px) {
    .info-page .info-hero {
        min-height: clamp(12rem, 28vh, 18rem);
    }
}

.info-page .info-hero .hero__media {
    position: absolute;
    inset: 0;
}

.info-page .info-hero.hero--photo .hero__backdrop {
    background-color: #c9b08f;
    background-size: cover;
    background-position: center center;
    opacity: 1;
}

.info-page .info-hero.hero--photo .hero__backdrop::after {
    display: none;
}

/* Invitation page (personal guest) */
.invite-page .hero--invite {
    min-height: clamp(28rem, 72vh, 40rem);
    padding: 3rem 1.25rem 4rem;
}

@media (max-width: 767px) {
    .invite-page .hero--invite {
        min-height: 100svh;
        min-height: 100dvh;
        padding: 2rem 1.25rem 2.5rem;
    }
}

.invite-page .hero__media {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
}

@media (min-width: 768px) {
    .invite-page .hero--invite {
        min-height: clamp(28rem, 52vh, 44rem);
        padding: 3rem 0 4rem;
    }
}

.invite-page .hero--photo .hero__backdrop {
    background-color: #c9b08f;
    background-size: cover;
    /* Mobiel: koppel in beeld houden bij smalle crop */
    background-position: 61% 38%;
    opacity: 1;
}

@media (min-width: 768px) {
    .invite-page .hero--photo .hero__backdrop {
        background-position: center center;
    }
}

.invite-page .hero--photo .hero__backdrop::after {
    display: none;
}

.invite-page .hero__scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(58, 53, 50, 0.22);
    pointer-events: none;
}

.invite-page .hero__inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 40rem;
    margin-left: auto;
    margin-right: auto;
    color: #fff;
    text-shadow: 0 2px 24px rgba(58, 53, 50, 0.45);
}

@media (min-width: 768px) {
    .invite-page .section__inner {
        max-width: 70%;
    }

    .invite-page .hero__inner {
        max-width: none;
        padding: 0 1rem 1.25rem;
    }

    .invite-page .site-footer--compact {
        max-width: 70%;
        margin-left: auto;
        margin-right: auto;
    }
}

.invite-page .hero__kicker {
    color: rgba(255, 255, 255, 0.92);
}

.invite-page .hero__names {
    color: #fff;
}

.invite-page .hero__names-script {
    color: #f8f5f0;
    text-shadow: 0 4px 28px rgba(58, 53, 50, 0.35);
}

.invite-page .hero__names-amp {
    color: rgba(255, 255, 255, 0.85);
}

.invite-page .hero__date-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    margin: 0 0 0;
    padding: 0.85rem 1.75rem;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 4px;
    background: rgba(248, 245, 240, 0.12);
    backdrop-filter: blur(6px);
}

.invite-page .hero__date {
    margin: 0;
    font-family: var(--font-serif);
    font-size: clamp(1.2rem, 3.2vw, 1.55rem);
    color: #fff;
}

.invite-page .hero__location {
    margin: 0;
    font-family: var(--font-body);
    font-size: 0.82rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.invite-page .hero__scroll {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 600;
    text-shadow: 0 2px 24px rgba(58, 53, 50, 0.45);
}

.invite-page .hero__scroll:hover {
    color: #fff;
}

.invite-page .hero__scroll-icon {
    font-size: 1.25rem;
    line-height: 1;
    animation: invite-scroll-bob 2s ease-in-out infinite;
}

@keyframes invite-scroll-bob {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(0.35rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    .invite-page .hero__scroll-icon {
        animation: none;
    }
}

@media (min-width: 768px) {
    .invite-page .hero__scroll {
        display: none;
    }
}

.invite-greeting {
    margin: 0 auto 1.25rem;
    max-width: 36rem;
    text-align: center;
    font-family: var(--font-serif);
    font-size: clamp(1.35rem, 3.5vw, 1.75rem);
    color: var(--teal);
}

.invite-letter {
    margin: 0 auto;
    max-width: 34rem;
    text-align: center;
}

.invite-letter.prose p {
    font-size: 1.05rem;
    line-height: 1.75;
}

.invite-bridge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: clamp(2.5rem, 6vw, 3.5rem) auto clamp(2rem, 5vw, 2.75rem);
    max-width: 16rem;
}

.invite-bridge__line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(140, 120, 154, 0.5), transparent);
}

.invite-bridge__mark {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 1.65rem;
    color: var(--lavender);
    opacity: 0.9;
}

.invite-bridge__mark svg {
    width: 100%;
    height: 100%;
}

.site-footer--compact {
    padding: 2.5rem 1.25rem 3rem;
    text-align: center;
}
