/* ============================================================================
   THE WEDDING POST — jullie bruiloft als krant
   Krantpapier-crème, inkt-lijnen en krantrode koppen. Elk blok een
   krant-object: voorpagina met masthead, kruiswoord-countdown,
   agenda-rubriek in kolommen, pull-quote, fotokatern, redactie-kaartjes
   en een RSVP als uitknip-coupon met stempel-knop.
   Fonts: Playfair Display (koppen) + Lora (body) + Courier Prime (datelines).
   Kleurrollen: koppen/accenten = --color-primary (krantrood), body/lijnen =
   --color-text (inkt), achtergrond = --color-background (krantpapier).
   GEEN hardcoded teksten in deze css: decoratie is symbool/cijfer/vorm,
   alle woorden komen uit bewerkbare content-velden.
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;0,800;0,900;1,600&family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Courier+Prime:wght@400;700&display=swap');

:root {
    --wp-red:   var(--color-primary, #A83226);
    --wp-ink:   var(--color-text, #2E2A25);
    --wp-paper: var(--color-background, #F6F1E5);
    --wp-paper-hi: color-mix(in srgb, #ffffff 62%, var(--color-background, #F6F1E5));
    --wp-line:      color-mix(in srgb, var(--wp-ink) 100%, transparent);
    --wp-line-soft: color-mix(in srgb, var(--wp-ink) 30%, transparent);
    --wp-head: 'Playfair Display', serif;
    --wp-body: 'Lora', serif;
    --wp-mono: 'Courier Prime', monospace;
}

/* ── Basis ────────────────────────────────────────────────────────────── */
html { background: var(--wp-paper); }
body {
    background: var(--wp-paper);
    color: var(--wp-ink);
    font-family: var(--wp-body);
    font-size: 17px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}
main { overflow-x: clip; }
main h1, main h2, main h3, main h4,
.password-card .couple-names {
    font-family: var(--wp-head);
    font-weight: 800;
    color: var(--wp-red);
    hyphens: manual;
    -webkit-hyphens: manual;
    overflow-wrap: break-word;
}
main ::selection { background: color-mix(in srgb, var(--wp-red) 18%, transparent); }
main .text-content { color: var(--wp-ink); }
main .description, main .description p { color: var(--wp-ink); }

/* ── Header / navigatie: tussen krantlijnen ───────────────────────────── */
header { background: var(--wp-paper); }
#publicNav {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 18px 18px 0;
}
.header-container {
    width: 100%;
    max-width: 1180px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.header-namen {
    font-family: var(--wp-head);
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: 0.12em;
    color: var(--wp-ink);
    border: 2px solid var(--wp-ink);
    padding: 0.3rem 0.85rem 0.25rem;
    background: var(--wp-paper-hi);
}
.header-namen .en-teken {
    font-style: italic;
    font-weight: 600;
    color: var(--wp-red);
    margin: 0 0.08em;
}
.nav-toggle {
    --size: 40px; --line-w: 26px; --line-h: 2px; --gap: 7px;
    position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
    width: var(--size); height: var(--size);
    background: none; border: 0; cursor: pointer;
}
.nav-toggle::before, .nav-toggle::after {
    content: ''; position: absolute; left: 50%; transform: translateX(-50%);
    width: var(--line-w); height: var(--line-h);
    background: var(--wp-ink); transition: top 0.2s ease, transform 0.2s ease;
}
.nav-toggle::before { top: calc(50% - (var(--gap) / 2) - var(--line-h)); }
.nav-toggle::after  { top: calc(50% + (var(--gap) / 2)); }
.nav-toggle.is-open::before { top: 50%; transform: translateX(-50%) rotate(45deg); background: var(--wp-red); }
.nav-toggle.is-open::after  { top: 50%; transform: translateX(-50%) rotate(-45deg); background: var(--wp-red); }
.nav-menu {
    display: none;
    width: 100%;
    max-width: 1180px;
    flex-direction: column;
    align-items: center;
    list-style: none;
    margin: 12px 0 0;
    padding: 8px 0 6px;
    border-top: 1px solid var(--wp-ink);
    border-bottom: 4px double var(--wp-ink);
}
.nav-menu.active { display: flex; }
.nav-menu li { list-style: none; }
.nav-menu .nav-link {
    display: inline-block;
    font-family: var(--wp-mono);
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--wp-ink);
    text-decoration: none;
    padding: 8px 12px 6px;
    transition: color 0.15s ease;
}
.nav-menu .nav-link:hover,
.nav-menu .nav-link.is-active { color: var(--wp-red); text-decoration: underline; text-underline-offset: 5px; }
@media (min-width: 769px) {
    .nav-toggle { display: none; }
    .nav-menu { display: flex; flex-direction: row; justify-content: center; flex-wrap: wrap; gap: 2px 6px; margin-top: 10px; }
}

/* ── Hero: de voorpagina ──────────────────────────────────────────────── */
.hero-card {
    position: relative;
    max-width: 1180px;
    margin: clamp(12px, 2.5vw, 24px) auto 0;
    width: calc(100% - 28px);
    background: var(--wp-paper-hi);
    border: 2px solid var(--wp-ink);
    padding: clamp(16px, 3vw, 34px) clamp(16px, 3vw, 34px) clamp(14px, 2.5vw, 26px);
    display: flex;
    flex-direction: column;
}
/* Masthead boven de foto (blade-volgorde omgedraaid via order) */
.hero-card .hero-overlay {
    order: -1;
    position: relative;
    inset: auto;
    display: block;
    background: none;
    text-align: center;
    padding: 0 0 clamp(14px, 2.5vw, 22px);
    margin-bottom: clamp(14px, 2.5vw, 22px);
    border-bottom: 4px double var(--wp-ink);
}
/* Dubbele dunne lijnen boven de krantnaam */
.hero-card .hero-overlay::before {
    content: '';
    display: block;
    height: 6px;
    border-top: 1px solid var(--wp-ink);
    border-bottom: 1px solid var(--wp-ink);
    margin-bottom: clamp(12px, 2vw, 20px);
}
.couple-names {
    font-family: var(--wp-head);
    font-weight: 900;
    color: var(--wp-red);
    font-size: clamp(2.5rem, 7vw, 5rem);
    line-height: 1.02;
    letter-spacing: 0.01em;
}
/* Dateline (bewerkbare subtitle) in schrijfmachineletter */
.hero-title {
    display: block;
    font-family: var(--wp-mono);
    font-weight: 700;
    font-size: clamp(0.72rem, 1.7vw, 0.88rem);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--wp-ink);
    border-top: 1px solid var(--wp-ink);
    padding-top: 10px;
    margin-top: clamp(10px, 2vw, 16px);
}
/* Stempel (bewerkbaar badge-veld van de banner-card) */
.hero-badge {
    position: absolute;
    top: clamp(2px, 1vw, 10px);
    right: 0;
    transform: rotate(7deg);
    font-family: var(--wp-mono);
    font-weight: 700;
    font-size: clamp(0.7rem, 1.6vw, 0.9rem);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--wp-red);
    border: 3px solid var(--wp-red);
    border-radius: 7px;
    padding: 0.38em 0.8em 0.32em;
    opacity: 0.92;
}
.hero-card img {
    display: block;
    width: 100%;
    height: min(58vh, 540px);
    min-height: 340px;
    object-fit: cover;
    border: 2px solid var(--wp-ink);
}
.hero-card--no-image > div[aria-hidden] {
    height: 40vh;
    border: 2px solid var(--wp-ink);
    background:
        repeating-linear-gradient(0deg, transparent 0 26px, color-mix(in srgb, var(--wp-ink) 8%, transparent) 26px 27px),
        var(--wp-paper-hi);
}
@media (prefers-reduced-motion: no-preference) {
    .hero-card .hero-overlay > div { animation: wp-press 0.7s cubic-bezier(0.22, 1, 0.36, 1) both; }
    .hero-card img { animation: wp-fade 0.9s 0.2s ease both; }
    .hero-badge { animation: wp-stamp 0.45s 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
    @keyframes wp-press {
        from { opacity: 0; transform: translateY(-14px); }
        to   { opacity: 1; transform: translateY(0); }
    }
    @keyframes wp-fade { from { opacity: 0; } to { opacity: 1; } }
    @keyframes wp-stamp {
        from { opacity: 0; transform: rotate(7deg) scale(1.5); }
        to   { opacity: 0.92; transform: rotate(7deg) scale(1); }
    }
}

/* ── Countdown: kruiswoord-vakjes ─────────────────────────────────────── */
.card-countdown {
    max-width: 720px;
    margin: 0 auto;
    width: calc(100% - 32px);
    text-align: center;
    padding: clamp(6px, 1.5vw, 16px) 0;
}
.countdown-title {
    font-family: var(--wp-head);
    font-weight: 800;
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    color: var(--wp-red);
    border-top: 1px solid var(--wp-ink);
    border-bottom: 4px double var(--wp-ink);
    padding: 0.55em 0.4em 0.6em;
    margin: 0 auto clamp(22px, 4vw, 32px);
    max-width: 560px;
}
.countdown-timers {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    counter-reset: wp-cell;
}
.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    counter-increment: wp-cell;
}
.countdown-unit + .countdown-unit { margin-left: -3px; }
.countdown-value {
    position: relative;
    width: clamp(68px, 17vw, 104px);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    background: #ffffff;
    border: 3px solid var(--wp-ink);
    font-family: var(--wp-head);
    font-weight: 800;
    font-size: clamp(1.6rem, 4.8vw, 2.7rem);
    line-height: 1;
    color: var(--wp-ink);
    font-variant-numeric: tabular-nums;
}
/* Hoeknummertje zoals in een kruiswoordraster */
.countdown-value::before {
    content: counter(wp-cell);
    position: absolute;
    top: 3px;
    left: 6px;
    font-family: var(--wp-mono);
    font-weight: 700;
    font-size: 0.62rem;
    color: var(--wp-ink);
    opacity: 0.55;
}
.countdown-label {
    margin-top: 10px;
    font-family: var(--wp-mono);
    font-weight: 700;
    font-size: 0.62rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--wp-ink);
    opacity: 0.75;
}
@media (prefers-reduced-motion: no-preference) {
    [data-card-id]:has(.card-countdown) .countdown-unit { opacity: 0; transform: scale(0.82); }
    [data-card-id].le-anim-in .countdown-unit {
        animation: wp-cell-in 0.5s cubic-bezier(0.34, 1.4, 0.64, 1) forwards;
    }
    [data-card-id].le-anim-in .countdown-unit:nth-child(2) { animation-delay: 0.1s; }
    [data-card-id].le-anim-in .countdown-unit:nth-child(3) { animation-delay: 0.2s; }
    [data-card-id].le-anim-in .countdown-unit:nth-child(4) { animation-delay: 0.3s; }
    @keyframes wp-cell-in {
        from { opacity: 0; transform: scale(0.82); }
        to   { opacity: 1; transform: scale(1); }
    }
}

/* ── Titel + tekst: rubriek + kolomtekst ──────────────────────────────── */
.title-text-section { padding: 0.5rem 0; }
.title-text-grid { display: flex; gap: clamp(26px, 5vw, 64px); align-items: flex-start; }
.title-text-grid > h2 {
    flex: 0 0 38%;
    font-size: clamp(1.9rem, 3.8vw, 2.9rem);
    line-height: 1.08;
    text-align: left;
}
.title-text-grid > h2::after {
    content: '';
    display: block;
    width: 130px;
    height: 7px;
    margin-top: 14px;
    border-top: 1px solid var(--wp-ink);
    border-bottom: 3px solid var(--wp-ink);
}
.title-text-grid .text-content {
    flex: 1;
    text-align: left;
    line-height: 1.8;
    border-left: 1px solid var(--wp-line-soft);
    padding-left: clamp(18px, 3vw, 34px);
}
.title-text-grid .text-content p { margin: 0 0 1.1em; }
.title-text-grid .text-content p:last-child { margin-bottom: 0; }

.title-blok-h1, .title-blok-h2, .title-blok-h3 { text-align: center; padding: 0 16px; }
.title-blok-h1 { font-size: clamp(2.3rem, 5.4vw, 3.6rem); }
.title-blok-h2 { font-size: clamp(1.9rem, 4.2vw, 2.8rem); }
.title-blok-h3 { font-size: clamp(1.5rem, 3.2vw, 2rem); }

/* ── Tekst-card: kolomstuk ────────────────────────────────────────────── */
.text-card { display: flex; justify-content: center; padding: 0 16px; }
.text-card .text-content {
    max-width: 700px;
    width: 100%;
    background: #ffffff;
    border-top: 6px double var(--wp-ink);
    border-bottom: 1px solid var(--wp-ink);
    padding: clamp(24px, 4vw, 40px) clamp(20px, 4vw, 44px);
    line-height: 1.85;
    text-align: left;
}
.text-card .text-content h1 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin: 0 0 0.6em; }
.text-card .text-content p { margin: 0 0 1.15em; }
.text-card .text-content p:last-child { margin-bottom: 0; }
.text-card .text-content strong { font-weight: 700; }
.text-card .text-content em { font-style: italic; color: var(--wp-red); }
.text-card .text-content a {
    color: var(--wp-red);
    text-decoration: underline;
    text-underline-offset: 4px;
}
/* Initiaal: bewust inline (geen float-dropcap) */
.text-card .text-content > p:first-child::first-letter {
    font-family: var(--wp-head);
    font-weight: 800;
    color: var(--wp-red);
    font-size: 1.5em;
    line-height: 1;
}
/* Krant-bullets: kleine inktblokjes */
.text-card .text-content ul { list-style: none; margin: 0 0 1.15em; padding-left: 0; }
.text-card .text-content ol { margin: 0 0 1.15em; padding-left: 1.35em; }
.text-card .text-content ul li { position: relative; padding-left: 1.5em; margin: 0.5em 0; }
.text-card .text-content ul li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 0.62em;
    width: 8px;
    height: 8px;
    background: var(--wp-red);
}

/* ── Dagplanning: agenda-rubriek in krantenkolommen ───────────────────── */
.schedule-wrapper { max-width: 860px; margin: 0 auto; }
.schedule-container { padding: 0 18px; }
.schedule-heading {
    text-align: center;
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    margin: 0 auto 6px;
    max-width: 640px;
    padding-bottom: 14px;
    border-bottom: 4px double var(--wp-ink);
}
.timeline {
    list-style: none;
    max-width: 780px;
    margin: 26px auto 0;
    padding: 0;
    column-count: 2;
    column-gap: 48px;
    column-rule: 1px solid var(--wp-line-soft);
}
.timeline::before { display: none; }
.timeline-item {
    position: relative;
    break-inside: avoid;
    margin: 0;
    padding: 13px 0;
    border-bottom: 1px dotted var(--wp-line-soft);
}
.timeline-dot { display: none; }
.timeline-time {
    display: inline;
    font-family: var(--wp-head);
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--wp-red);
    margin-right: 10px;
    font-variant-numeric: tabular-nums;
}
.timeline-title {
    display: inline;
    font-family: var(--wp-body);
    font-weight: 700;
    font-variant: small-caps;
    letter-spacing: 0.04em;
    font-size: 1.1rem;
    color: var(--wp-ink);
}
.timeline-description {
    color: var(--wp-ink);
    opacity: 0.8;
    line-height: 1.6;
    margin: 0.25rem 0 0;
    font-size: 0.94rem;
}
@media (prefers-reduced-motion: no-preference) {
    [data-card-id]:has(.timeline) .timeline-item { opacity: 0; }
    [data-card-id].le-anim-in .timeline-item { animation: wp-fade 0.55s ease forwards; }
    [data-card-id].le-anim-in .timeline-item:nth-child(2) { animation-delay: 0.12s; }
    [data-card-id].le-anim-in .timeline-item:nth-child(3) { animation-delay: 0.24s; }
    [data-card-id].le-anim-in .timeline-item:nth-child(4) { animation-delay: 0.36s; }
    [data-card-id].le-anim-in .timeline-item:nth-child(5) { animation-delay: 0.48s; }
    [data-card-id].le-anim-in .timeline-item:nth-child(6) { animation-delay: 0.6s; }
    [data-card-id].le-anim-in .timeline-item:nth-child(7) { animation-delay: 0.72s; }
}

/* ── Quote: pull quote ────────────────────────────────────────────────── */
.quote-card {
    max-width: 760px;
    margin: 0 auto;
    width: calc(100% - 32px);
    text-align: center;
    border-top: 4px double var(--wp-ink);
    border-bottom: 4px double var(--wp-ink);
    padding: clamp(22px, 4vw, 40px) clamp(18px, 4vw, 44px);
}
.quote-img { display: none; }
/* Groot typografisch aanhalingsteken (symbool) */
.quote-card::before {
    content: '\201C';
    display: block;
    font-family: var(--wp-head);
    font-weight: 900;
    font-size: clamp(4rem, 9vw, 6rem);
    line-height: 0.55;
    color: var(--wp-red);
    margin-bottom: 0.15em;
}
.quote-text blockquote {
    font-family: var(--wp-body);
    font-style: italic;
    font-weight: 500;
    font-size: clamp(1.45rem, 3.2vw, 2rem);
    line-height: 1.45;
    color: var(--wp-ink);
    margin: 0;
}
.quote-text h2 {
    font-family: var(--wp-mono);
    font-weight: 700;
    font-size: 0.76rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--wp-ink);
    opacity: 0.8;
    margin: 1rem 0 0;
}

/* ── Foto + tekst: artikel ────────────────────────────────────────────── */
.foto-tekst {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 18px;
    align-items: flex-start;
    gap: clamp(28px, 5vw, 60px);
}
.foto-tekst .image-side img {
    width: 100%;
    height: auto;
    background: #ffffff;
    padding: 7px;
    border: 2px solid var(--wp-ink);
}
.foto-tekst .text-side h2 {
    font-size: clamp(1.9rem, 3.8vw, 2.9rem);
    line-height: 1.08;
    margin-bottom: 0.3em;
}
.foto-tekst .text-side h2::after {
    content: '';
    display: block;
    width: 130px;
    height: 7px;
    margin-top: 12px;
    border-top: 1px solid var(--wp-ink);
    border-bottom: 3px solid var(--wp-ink);
}
.foto-tekst .text-side .description { line-height: 1.85; }
.foto-tekst .text-side .description p { margin: 0 0 1.1em; }
.foto-tekst .text-side .description > p:first-child::first-letter {
    font-family: var(--wp-head);
    font-weight: 800;
    color: var(--wp-red);
    font-size: 1.5em;
    line-height: 1;
}

/* ── Grote foto: paginagroot beeld ────────────────────────────────────── */
.image-card .grote-foto {
    position: relative;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 18px;
}
.image-card .grote-foto h2 {
    text-align: center;
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    margin: 0 auto 20px;
    max-width: 640px;
    padding-bottom: 14px;
    border-bottom: 4px double var(--wp-ink);
}
.image-card .grote-foto img {
    display: block;
    width: 100%;
    height: min(62vh, 600px);
    object-fit: cover;
    border-top: 6px double var(--wp-ink);
    border-bottom: 6px double var(--wp-ink);
}

/* ── Collage: het fotokatern ──────────────────────────────────────────── */
.collage-layout { max-width: 1180px; margin: 0 auto; padding: clamp(16px, 3vw, 28px) 18px clamp(24px, 4vw, 38px); }
.collage-layout > h2 {
    text-align: center;
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    margin: 0 auto 6px;
    max-width: 640px;
    padding-bottom: 14px;
    border-bottom: 4px double var(--wp-ink);
}
.collage-grid {
    display: grid;
    gap: clamp(18px, 2.6vw, 28px);
    margin-top: clamp(20px, 3.5vw, 30px);
    counter-reset: wp-fig;
}
.collage-grid.l1 { grid-template-columns: 1fr; max-width: 720px; margin-left: auto; margin-right: auto; }
.collage-grid.l2 { grid-template-columns: repeat(2, 1fr); }
.collage-grid.l3 { grid-template-columns: repeat(3, 1fr); }
.collage-grid.l4 { grid-template-columns: repeat(2, 1fr); }
.collage-grid.l5 { grid-template-columns: repeat(6, 1fr); }
.collage-grid.l5 .tile-1, .collage-grid.l5 .tile-2, .collage-grid.l5 .tile-3 { grid-column: span 2; }
.collage-grid.l5 .tile-4, .collage-grid.l5 .tile-5 { grid-column: span 3; }
.collage-grid.l6 { grid-template-columns: repeat(3, 1fr); }
.collage-grid.lmasonry { display: block; columns: 3; column-gap: 24px; }
.collage-grid.lmasonry .tile { margin-bottom: 24px; break-inside: avoid; }
.collage-grid .tile {
    position: relative;
    background: #ffffff;
    border: 2px solid var(--wp-ink);
    padding: 7px 7px 26px;
    counter-increment: wp-fig;
}
/* Katernnummer: №-symbool + volgnummer (geen woorden) */
.collage-grid .tile::after {
    content: '\2116 ' counter(wp-fig, decimal-leading-zero);
    position: absolute;
    left: 9px;
    bottom: 5px;
    font-family: var(--wp-mono);
    font-weight: 700;
    font-size: 0.64rem;
    letter-spacing: 0.12em;
    color: var(--wp-ink);
    opacity: 0.7;
}
.collage-grid .tile img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    height: auto;
    object-fit: cover;
    border: 1px solid var(--wp-line-soft);
}
.collage-grid.l1 .tile img { aspect-ratio: 16 / 9; }
.collage-grid.full-photos .tile img { aspect-ratio: auto; height: auto; }
.collage-layout .en-rail-nav { display: none !important; }
@media (prefers-reduced-motion: no-preference) {
    [data-card-id]:has(.collage-layout) .collage-grid .tile { opacity: 0; transform: translateY(14px); }
    [data-card-id].le-anim-in .collage-grid .tile { animation: wp-rise 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
    [data-card-id].le-anim-in .collage-grid .tile:nth-child(2) { animation-delay: 0.1s; }
    [data-card-id].le-anim-in .collage-grid .tile:nth-child(3) { animation-delay: 0.2s; }
    [data-card-id].le-anim-in .collage-grid .tile:nth-child(4) { animation-delay: 0.3s; }
    [data-card-id].le-anim-in .collage-grid .tile:nth-child(5) { animation-delay: 0.4s; }
    [data-card-id].le-anim-in .collage-grid .tile:nth-child(n+6) { animation-delay: 0.5s; }
    @keyframes wp-rise {
        from { opacity: 0; transform: translateY(14px); }
        to   { opacity: 1; transform: translateY(0); }
    }
}

/* ── Team: de redactie ────────────────────────────────────────────────── */
.people-grid { padding: 0 18px; }
.person-card {
    position: relative;
    text-align: center;
    background: #ffffff;
    border: 2px solid var(--wp-ink);
    padding: 14px 14px 16px;
}
/* Dun binnenkader (dubbel lijstwerk) */
.person-card::before {
    content: '';
    position: absolute;
    inset: 5px;
    border: 1px solid var(--wp-line-soft);
    pointer-events: none;
}
.person-card img {
    width: 100%;
    max-width: 190px;
    aspect-ratio: 1;
    height: auto;
    object-fit: cover;
    border: 1px solid var(--wp-ink);
}
.person-card h3 {
    font-size: 1.3rem;
    line-height: 1.15;
    margin-top: 0.85rem;
}
.person-card p {
    display: inline-block;
    font-family: var(--wp-mono);
    font-weight: 700;
    font-size: 0.62rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--wp-ink);
    opacity: 0.8;
    border-top: 1px solid var(--wp-line-soft);
    padding-top: 7px;
    margin-top: 0.5rem;
}
@media (prefers-reduced-motion: no-preference) {
    [data-card-id]:has(.person-card) .person-card { opacity: 0; }
    [data-card-id].le-anim-in .person-card { animation: wp-fade 0.55s ease forwards; }
    [data-card-id].le-anim-in .person-card:nth-child(2) { animation-delay: 0.1s; }
    [data-card-id].le-anim-in .person-card:nth-child(3) { animation-delay: 0.2s; }
    [data-card-id].le-anim-in .person-card:nth-child(4) { animation-delay: 0.3s; }
    [data-card-id].le-anim-in .person-card:nth-child(5) { animation-delay: 0.4s; }
    [data-card-id].le-anim-in .person-card:nth-child(n+6) { animation-delay: 0.5s; }
    @keyframes wp-fade { from { opacity: 0; } to { opacity: 1; } }
}

/* ── Countdown + kaart ────────────────────────────────────────────────── */
.countdown-map {
    display: flex;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 18px;
    gap: clamp(24px, 4vw, 48px);
    align-items: stretch;
}
.countdown-map .countdown { flex: 1; display: flex; flex-direction: column; justify-content: center; text-align: left; }
.countdown-map .countdown h2 {
    font-size: clamp(1.9rem, 3.8vw, 2.8rem);
    line-height: 1.08;
    margin-bottom: 0.2rem;
    padding-bottom: 12px;
    border-bottom: 4px double var(--wp-ink);
}
.countdown-map .countdown-days {
    font-family: var(--wp-body);
    font-style: italic;
    font-size: clamp(1.15rem, 2.6vw, 1.5rem);
    color: var(--wp-ink);
    margin: 0.8rem 0 1rem;
}
.countdown-map .live-countdown .countdown-wrapper { display: flex; flex-wrap: wrap; }
.countdown-map .live-countdown .countdown-item {
    width: 70px;
    height: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 2px solid var(--wp-ink);
}
.countdown-map .live-countdown .countdown-item + .countdown-item { margin-left: -2px; }
.countdown-map .live-countdown .countdown-item .countdown-number {
    display: block;
    font-family: var(--wp-head);
    font-weight: 800;
    font-size: 1.4rem;
    line-height: 1;
    color: var(--wp-ink);
    font-variant-numeric: tabular-nums;
}
.countdown-map .live-countdown .countdown-item .countdown-text {
    display: block;
    margin-top: 4px;
    font-family: var(--wp-mono);
    font-weight: 700;
    font-size: 0.52rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--wp-ink);
    opacity: 0.7;
}
.map-link-wrapper { margin-top: 14px; }
.map-link {
    font-family: var(--wp-mono);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    color: var(--wp-red);
    text-decoration: underline;
    text-underline-offset: 5px;
}
.countdown-map .map {
    flex: 1;
    position: relative;
    min-height: 420px;
    background: #ffffff;
    border: 2px solid var(--wp-ink);
    padding: 7px;
}
.countdown-map .map-click-area { display: block; height: 100%; }
.countdown-map .forever-map { height: 100%; min-height: 404px; }

/* ── RSVP: uitknip-coupon ─────────────────────────────────────────────── */
.form-container { padding: 0; }
.card-form {
    position: relative;
    max-width: 660px;
    margin: 26px auto 0;
    width: calc(100% - 32px);
    background: #ffffff;
    border: 2px dashed var(--wp-ink);
    padding: clamp(30px, 5vw, 50px) clamp(20px, 4.5vw, 50px) clamp(26px, 4vw, 40px);
}
/* Schaartje op de kniplijn (symbool) */
.card-form::before {
    content: '\2702\FE0E';
    position: absolute;
    top: -15px;
    left: 36px;
    font-size: 1.35rem;
    line-height: 1;
    color: var(--wp-ink);
    background: var(--wp-paper);
    padding: 0 7px;
}
.form-title {
    font-family: var(--wp-head);
    font-weight: 800;
    font-size: clamp(2rem, 4.4vw, 2.8rem);
    color: var(--wp-red);
    text-align: center;
    line-height: 1.05;
    margin: 0 0 0.3rem;
}
.form-title::after {
    content: '';
    display: block;
    width: 130px;
    height: 7px;
    margin: 14px auto 0;
    border-top: 1px solid var(--wp-ink);
    border-bottom: 3px solid var(--wp-ink);
}
.form-intro {
    text-align: center;
    max-width: 46ch;
    margin: 0.9rem auto 1.5rem;
    line-height: 1.7;
    color: var(--wp-ink) !important;
    opacity: 0.9;
}
.form-fields { display: flex; flex-wrap: wrap; gap: 1.2rem 4%; justify-content: space-between; max-width: 520px; margin: 0 auto; }
.form-group { flex: 1 1 46%; min-width: 200px; text-align: left; }
.form-group.full-width { flex-basis: 100%; }
.form-label {
    display: block;
    font-family: var(--wp-mono);
    font-weight: 700;
    font-size: 0.62rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--wp-ink);
    opacity: 0.8;
    margin-bottom: 0.3rem;
}
.form-required { color: var(--wp-red); }
/* Velden op stippellijnen; !important omdat app.css (laadt later) ze wit kadert */
.card-form input.form-input,
.card-form textarea.form-textarea,
.card-form select.form-select,
.form-container input.form-input,
.form-container textarea.form-textarea,
.form-container select.form-select {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    width: 100% !important;
    box-sizing: border-box !important;
    background: transparent !important;
    background-color: transparent !important;
    border: 0 !important;
    border-bottom: 2px dotted var(--wp-ink) !important;
    border-radius: 0 !important;
    padding: 0.5rem 2px 0.5rem !important;
    font-family: var(--wp-body) !important;
    font-size: 1rem !important;
    color: var(--wp-ink) !important;
    box-shadow: none !important;
    outline: none;
    transition: border-color 0.15s ease;
}
.card-form select.form-select,
.form-container select.form-select {
    cursor: pointer;
    background-image: linear-gradient(45deg, transparent 50%, var(--wp-ink) 50%),
                      linear-gradient(135deg, var(--wp-ink) 50%, transparent 50%) !important;
    background-position: calc(100% - 14px) 50%, calc(100% - 8px) 50% !important;
    background-size: 6px 6px, 6px 6px !important;
    background-repeat: no-repeat, no-repeat !important;
    padding-right: 30px !important;
}
.form-select option { background: #ffffff; color: var(--wp-ink); }
.card-form input.form-input:focus,
.card-form textarea.form-textarea:focus,
.card-form select.form-select:focus,
.form-container input.form-input:focus,
.form-container textarea.form-textarea:focus,
.form-container select.form-select:focus {
    outline: none !important;
    border-bottom-color: var(--wp-red) !important;
    border-bottom-style: solid !important;
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--wp-ink); opacity: 0.35; }
.card-form textarea.form-textarea,
.form-container textarea.form-textarea {
    resize: vertical;
    min-height: 96px !important;
    border: 1px solid var(--wp-ink) !important;
    padding: 0.65rem 0.75rem !important;
}
.form-actions { text-align: center; margin-top: 2rem; }
/* Verstuurknop als stempel */
.form-submit {
    display: inline-block;
    font-family: var(--wp-mono);
    font-weight: 700;
    font-size: 0.88rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--wp-red);
    background: transparent;
    border: 3px solid var(--wp-red);
    border-radius: 8px;
    padding: 0.9rem 2.1rem 0.8rem;
    cursor: pointer;
    transform: rotate(-2deg);
    transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.form-submit:hover { background: var(--wp-red); color: #ffffff; transform: rotate(0deg); }
.form-success {
    max-width: 460px;
    margin: 1.2rem auto 0;
    padding: 1.1rem 1.4rem;
    font-family: var(--wp-body);
    font-style: italic;
    font-size: 1.15rem;
    color: var(--wp-ink);
    text-align: center;
    border: 2px dashed var(--wp-red);
}
.card-form .grsvp-card { border-radius: 0; border: 1px solid var(--wp-ink); background: #ffffff; }
.card-form .grsvp-btn { border-radius: 0; }

/* ── Gastenboek: ingezonden brieven ───────────────────────────────────── */
.card-guestbook { padding: 0 16px; }
.card-guestbook .schedule-heading { margin-bottom: 0; }
.card-guestbook .text-content { font-style: italic; color: var(--wp-ink) !important; opacity: 0.85; }
.card-guestbook input,
.card-guestbook textarea,
.card-guestbook select {
    background: #ffffff !important;
    border: 1px solid var(--wp-ink) !important;
    border-radius: 0 !important;
    color: var(--wp-ink) !important;
}
.card-guestbook button[type="submit"] {
    background: transparent !important;
    color: var(--wp-red) !important;
    border: 3px solid var(--wp-red) !important;
    border-radius: 8px !important;
    padding: 0.85rem 2rem 0.75rem !important;
    line-height: 1 !important;
    font-family: var(--wp-mono);
    font-weight: 700 !important;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    transform: rotate(-2deg);
}

/* ── Album-QR: advertentie-kader ──────────────────────────────────────── */
.card-album-qr { padding: 0 16px; }
.card-album-qr .schedule-heading { margin-bottom: 0; }
.card-album-qr .text-content { font-style: italic; color: var(--wp-ink) !important; opacity: 0.85; }
.card-album-qr > div:last-child > div:first-child {
    border: 2px solid var(--wp-ink) !important;
    border-radius: 0 !important;
    outline: 1px solid var(--wp-line-soft);
    outline-offset: 5px;
    box-shadow: none !important;
}
.card-album-qr a {
    border-radius: 8px !important;
    border: 3px solid var(--wp-red) !important;
    background: transparent !important;
    color: var(--wp-red) !important;
    font-family: var(--wp-mono);
    font-weight: 700 !important;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    transform: rotate(-2deg);
}

/* ── Wachtwoordpagina ─────────────────────────────────────────────────── */
.password-wrapper {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        repeating-linear-gradient(0deg, transparent 0 30px, color-mix(in srgb, var(--wp-ink) 5%, transparent) 30px 31px),
        var(--wp-paper);
}
.password-card {
    position: relative;
    width: min(460px, 100%);
    background: #ffffff;
    border: 2px solid var(--wp-ink);
    padding: clamp(34px, 6vw, 50px) clamp(24px, 5vw, 44px) clamp(28px, 5vw, 40px);
    text-align: center;
}
.password-card::before {
    content: '';
    position: absolute;
    inset: 6px;
    border: 1px solid var(--wp-line-soft);
    pointer-events: none;
}
.password-card > * { position: relative; }
.password-card .couple-names {
    font-weight: 900;
    font-size: clamp(2rem, 6vw, 2.6rem);
    line-height: 1.05;
    margin-bottom: 0.5rem;
    padding-bottom: 12px;
    border-bottom: 4px double var(--wp-ink);
}
.password-card .subtitle {
    font-family: var(--wp-mono);
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--wp-ink);
    opacity: 0.8;
    margin-bottom: 1rem;
}
.password-card .info-text { font-size: 0.95rem; line-height: 1.65; opacity: 0.85; margin-bottom: 0.6rem; }
.password-card .error-text { color: var(--wp-red); font-size: 0.9rem; margin-top: 0.6rem; }
.password-card input[type="password"],
.password-card input[type="text"] {
    width: 100%;
    background: transparent;
    border: 0;
    border-bottom: 2px dotted var(--wp-ink);
    border-radius: 0;
    padding: 0.6rem 2px;
    font-family: var(--wp-body);
    font-size: 1rem;
    color: var(--wp-ink);
    text-align: center;
    outline: none;
}
.password-card input:focus { border-bottom-color: var(--wp-red); border-bottom-style: solid; }
.password-card input::placeholder { color: var(--wp-ink); opacity: 0.35; }
.password-card button[type="submit"],
.password-card #inviteBtn {
    display: inline-block;
    margin-top: 1.3rem;
    font-family: var(--wp-mono);
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--wp-red);
    background: transparent;
    border: 3px solid var(--wp-red);
    border-radius: 8px;
    padding: 0.9rem 2rem 0.8rem;
    cursor: pointer;
    transform: rotate(-2deg);
    transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.password-card button[type="submit"]:hover,
.password-card #inviteBtn:hover { background: var(--wp-red); color: #ffffff; transform: rotate(0deg); }

/* ── Footer ───────────────────────────────────────────────────────────── */
footer {
    max-width: 1180px;
    margin: 0 auto;
    text-align: center;
    padding: 22px 16px 40px;
    border-top: 4px double var(--wp-ink);
    color: var(--wp-ink);
    font-family: var(--wp-mono);
    font-size: 0.8rem;
    opacity: 0.8;
}
footer a { color: var(--wp-red); }

/* ── Mobiel ───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    body { font-size: 16px; }

    .hero-card { width: calc(100% - 20px); }
    .hero-card img { height: 46vh; min-height: 280px; }
    .hero-badge { position: static; display: inline-block; margin-top: 10px; transform: rotate(-2deg); }

    .countdown-value { font-size: 1.4rem; }
    .countdown-label { font-size: 0.54rem; letter-spacing: 0.12em; }

    .title-text-grid { flex-direction: column; gap: 16px; }
    .title-text-grid > h2 { flex: none; }
    .title-text-grid .text-content { border-left: 0; padding-left: 0; }

    .timeline { column-count: 1; }

    .foto-tekst .image-side { margin-bottom: 12px; }

    .image-card .grote-foto img { height: 46vh; }

    .collage-grid.l2, .collage-grid.l3, .collage-grid.l4, .collage-grid.l6 { grid-template-columns: repeat(2, 1fr); }
    .collage-grid.l5 { grid-template-columns: repeat(2, 1fr); }
    .collage-grid.l5 .tile-1, .collage-grid.l5 .tile-2, .collage-grid.l5 .tile-3,
    .collage-grid.l5 .tile-4, .collage-grid.l5 .tile-5 { grid-column: auto; }
    .collage-grid.lmasonry { columns: 2; }
    .collage-grid { gap: 14px; }
    .collage-grid .tile { padding: 5px 5px 22px; }

    .countdown-map { flex-direction: column; }
    .countdown-map .countdown { text-align: center; align-items: center; }
    .countdown-map .countdown h2 { border-bottom: none; padding-bottom: 0; }
    .countdown-map .live-countdown .countdown-wrapper { justify-content: center; }
    .countdown-map .map { min-height: 320px; }
    .countdown-map .forever-map { min-height: 304px; }

    .form-group { flex-basis: 100%; min-width: 0; }
}

@media (max-width: 480px) {
    .collage-grid.l3, .collage-grid.l6 { grid-template-columns: 1fr; }
    .collage-grid.lmasonry { columns: 1; }
    .couple-names { font-size: clamp(2.1rem, 10vw, 2.8rem); }
}

/* ── Extra animaties: de drukpers-laag ────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
    /* Hero: lijnen trekken zich, foto wordt "gedrukt" van boven naar onder */
    .hero-card .hero-overlay::before { animation: wp-rule 0.7s 0.15s ease-out both; transform-origin: center; }
    .hero-card img { animation: wp-print 1s 0.45s cubic-bezier(0.4, 0, 0.2, 1) both; }
    /* Stempel: na het neerkomen af en toe een subtiele her-stempel */
    .hero-badge {
        animation:
            wp-stamp 0.45s 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both,
            wp-restamp 6s 3s ease-in-out infinite;
    }
    @keyframes wp-rule { from { transform: scaleX(0); } to { transform: scaleX(1); } }
    @keyframes wp-print {
        from { opacity: 1; clip-path: inset(0 0 100% 0); }
        to   { opacity: 1; clip-path: inset(0 0 0 0); }
    }
    @keyframes wp-restamp {
        0%, 92%, 100% { transform: rotate(7deg) scale(1); }
        96% { transform: rotate(7deg) scale(1.05); }
    }

    /* Kruiswoord: hoeknummertjes verschijnen ná de cellen */
    [data-card-id]:has(.card-countdown) .countdown-value::before { opacity: 0; }
    [data-card-id].le-anim-in .countdown-value::before { animation: wp-num 0.4s 0.6s ease forwards; }
    @keyframes wp-num { from { opacity: 0; } to { opacity: 0.55; } }

    /* Pull-quote: aanhalingsteken valt neer, kaders trekken zich */
    [data-card-id]:has(.quote-card) .quote-card { opacity: 0; }
    [data-card-id]:has(.quote-card) .quote-card::before { transform: translateY(-12px); opacity: 0; }
    [data-card-id].le-anim-in .quote-card { animation: wp-fade 0.6s ease forwards; }
    [data-card-id].le-anim-in .quote-card::before { animation: wp-drop 0.55s 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; }
    @keyframes wp-drop {
        from { transform: translateY(-12px); opacity: 0; }
        to   { transform: translateY(0); opacity: 1; }
    }

    /* Programma-items schuiven licht in */
    [data-card-id]:has(.timeline) .timeline-item { transform: translateX(-10px); }
    [data-card-id].le-anim-in .timeline-item { animation-name: wp-slide; }
    @keyframes wp-slide {
        from { opacity: 0; transform: translateX(-10px); }
        to   { opacity: 1; transform: translateX(0); }
    }

    /* Coupon: knipt zichzelf uit (schaartje schuift over de lijn) */
    [data-card-id]:has(.card-form) .card-form { opacity: 0; transform: translateY(14px); }
    [data-card-id]:has(.card-form) .card-form::before { opacity: 0; }
    [data-card-id].le-anim-in .card-form { animation: wp-rise 0.6s ease forwards; }
    [data-card-id].le-anim-in .card-form::before { animation: wp-snip 0.9s 0.4s ease-out forwards; }
    @keyframes wp-snip {
        from { opacity: 0; transform: translateX(-26px); }
        to   { opacity: 1; transform: translateX(0); }
    }

    /* Artikel-foto en paginafoto worden "gedrukt" */
    [data-card-id]:has(.foto-tekst) .foto-tekst .image-side img { clip-path: inset(0 100% 0 0); }
    [data-card-id]:has(.foto-tekst) .foto-tekst .text-side { opacity: 0; }
    [data-card-id].le-anim-in .foto-tekst .image-side img { animation: wp-print-x 0.9s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
    [data-card-id].le-anim-in .foto-tekst .text-side { animation: wp-fade 0.6s 0.3s ease forwards; }
    @keyframes wp-print-x {
        from { clip-path: inset(0 100% 0 0); }
        to   { clip-path: inset(0 0 0 0); }
    }
    [data-card-id]:has(.grote-foto) .grote-foto img { clip-path: inset(0 0 100% 0); }
    [data-card-id].le-anim-in .grote-foto img { animation: wp-print 0.9s cubic-bezier(0.4, 0, 0.2, 1) forwards; }

    /* Kolomstuk en rubriek-intro's */
    [data-card-id]:has(.text-card) .text-card .text-content { opacity: 0; transform: translateY(12px); }
    [data-card-id].le-anim-in .text-card .text-content { animation: wp-rise 0.6s ease forwards; }
    [data-card-id]:has(.title-text-grid) .title-text-grid { opacity: 0; transform: translateY(12px); }
    [data-card-id].le-anim-in .title-text-grid { animation: wp-rise 0.6s ease forwards; }
}
