/* ================================================
   Wedding Luxe — Standard Wedding Theme
   Palette: ivory · warm greige accent · ink
   Fonts:   Cormorant Garamond (display) + Montserrat (body/UI)
   Style:   Editorial minimal-luxe — hairline rules, wide letter-spacing,
            generous whitespace, a wax-sealed envelope intro, a full-bleed
            serif photo hero.
   ================================================ */

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

:root {
    /* --accent is the single recolourable knob (config/themes.php colors: 'accent',
       injected as :root{--accent} by index.blade.php from $event->accent_color).
       Everything neutral below is fixed ink/ivory/hairline and deliberately does
       NOT follow it — only genuine accents (eyebrows, rule diamonds, buttons,
       links, nodes, focus rings) do. */
    --accent:        #8a8378;
    --accent-color:  var(--accent);
    --accent-dark:   color-mix(in srgb, var(--accent) 82%, #000);

    --wl-bg:         #ffffff;
    --wl-bg-alt:     #faf9f7;
    --wl-ink:        #1a1a1a;
    --wl-ink-soft:   #4a453f;
    --wl-muted:      #8f8880;
    --wl-line:       #e7e3dc;
    --wl-line-soft:  #efece6;

    --radius:        2px;
    --btn-radius:    0px;

    --ff-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --ff-body:    'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;

    --wl-shadow:    0 1px 2px rgba(26, 24, 22, .04), 0 22px 48px rgba(26, 24, 22, .10);
    --wl-shadow-sm: 0 1px 2px rgba(26, 24, 22, .04), 0 10px 24px rgba(26, 24, 22, .06);
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--ff-body);
    font-weight: 300;
    color: var(--wl-ink-soft);
    background: var(--wl-bg);
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Scroll-lock while the envelope overlay is up (app.js also stores the offset in
   body.style.top so the position is preserved on open). */
body.wl-scroll-lock {
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
    overflow: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .2s ease, opacity .2s ease; }
a:hover { color: var(--accent-dark); }

.wl-page { overflow-x: hidden; }

/* ── Containers ─────────────────────────────── */
.wl-container     { max-width: 1080px; margin: 0 auto; padding: 0 1.5rem; }
.wl-container--sm { max-width: 660px; }

/* ── Alternating section backgrounds + hairline seams ──────────
   Computed from what actually renders (nth-child only counts real DOM nodes),
   so the rhythm survives any section being hidden by plan tier, the
   section-visibility toggle, or missing data. */
.wl-alt-sections > * { background: var(--wl-bg); }
.wl-alt-sections > *:nth-child(even) { background: var(--wl-bg-alt); }
.wl-alt-sections > * + * { border-top: 1px solid var(--wl-line-soft); }

/* ── Shared helpers ─────────────────────────── */
.wl-eyebrow {
    font-family: var(--ff-body);
    font-size: .62rem;
    font-weight: 600;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--accent);
    text-align: center;
    margin-bottom: .85rem;
}

.wl-section-title {
    font-family: var(--ff-display);
    font-weight: 400;
    font-size: clamp(1.9rem, 4.6vw, 2.9rem);
    letter-spacing: .02em;
    color: var(--wl-ink);
    text-align: center;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

/* Line — diamond — line ornament, reused throughout (hero, note, footer,
   envelope). --light variant sits over the photo hero. */
.wl-rule {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    width: clamp(84px, 20vw, 132px);
    margin: 1rem auto;
}
.wl-rule > span { flex: 1; height: 1px; background: var(--wl-line); }
.wl-rule > i { flex-shrink: 0; width: 5px; height: 5px; transform: rotate(45deg); background: var(--accent); }
.wl-rule--light > span { background: rgba(255, 255, 255, .45); }
.wl-rule--light > i { background: #fff; }

.wl-btn {
    display: inline-block;
    font-family: var(--ff-body);
    font-size: .62rem;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    text-decoration: none;
    padding: .95rem 2.4rem;
    border: 1px solid var(--accent);
    background: var(--accent);
    color: #fff !important;
    border-radius: 0;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, opacity .2s ease;
}
.wl-btn:hover { background: transparent; color: var(--accent) !important; }

.wl-btn--ghost {
    background: transparent;
    color: var(--wl-ink) !important;
    border-color: var(--wl-ink);
}
.wl-btn--ghost:hover { background: var(--wl-ink); color: #fff !important; }

/* ================================================
   ENVELOPE INTRO
   ================================================ */
.wl-envelope {
    position: fixed;
    inset: 0;
    z-index: 9998;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 6vh 6vw;
    background: radial-gradient(120% 80% at 50% 34%, #f4efe6 0%, #e7dfd2 100%);
    cursor: pointer;
    transition: opacity .8s ease .5s, visibility .8s ease .5s;
}
.wl-has-envelope .wl-envelope { display: flex; }
.wl-envelope.is-open { opacity: 0; visibility: hidden; pointer-events: none; }

.wl-envelope__stage {
    width: min(440px, 88vw);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    animation: wl-rise .8s ease both;
}

.wl-envelope__pocket {
    position: relative;
    width: 100%;
    aspect-ratio: 100 / 66;
    perspective: 1500px;
    transition: transform .35s ease;
}
@media (hover: hover) {
    .wl-envelope:hover .wl-envelope__pocket { transform: translateY(-4px); }
}

/* Envelope face — flat paper with the four faint corner creases of a real
   envelope drawn in as thin gradient lines, plus a shaded bottom flap. */
.wl-envelope__front {
    position: absolute;
    inset: 0;
    z-index: 3;
    background: #fff;
    border: 1px solid #e2dbcd;
    box-shadow: 0 30px 60px -14px rgba(63, 52, 40, .3), 0 10px 24px rgba(63, 52, 40, .12);
    overflow: hidden;
}
.wl-envelope__front::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top right, transparent calc(50% - .6px), #ddd4c3 calc(50% - .6px) calc(50% + .6px), transparent calc(50% + .6px)),
        linear-gradient(to top left, transparent calc(50% - .6px), #ddd4c3 calc(50% - .6px) calc(50% + .6px), transparent calc(50% + .6px));
}
.wl-envelope__front::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 45%, rgba(63, 52, 40, .035) 45%);
    clip-path: polygon(0 100%, 50% 45%, 100% 100%);
}

.wl-envelope__letter {
    position: absolute;
    inset: 4% 7% auto 7%;
    z-index: 2;
    background: #fff;
    border: 1px solid var(--wl-line-soft);
    box-shadow: 0 6px 20px rgba(26, 24, 22, .08);
    padding: 1.1rem 1rem 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: .3rem;
}
.wl-envelope__kicker {
    font-family: var(--ff-body);
    font-size: .5rem;
    font-weight: 600;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--wl-muted);
}
.wl-envelope__names {
    font-family: var(--ff-display);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--wl-ink);
    line-height: 1.1;
}
.wl-envelope__letter .wl-rule { width: 70px; margin: .15rem auto; }
.wl-envelope__line {
    font-family: var(--ff-body);
    font-size: .5rem;
    font-weight: 500;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--wl-muted);
}

/* Top flap — folds open on .is-open */
.wl-envelope__flap {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 55%;
    z-index: 4;
    background: linear-gradient(180deg, #ffffff 0%, #f1ece2 100%);
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    transform-origin: top;
    transition: transform 1s cubic-bezier(.3, 0, .2, 1);
    filter: drop-shadow(0 3px 5px rgba(63, 52, 40, .14));
    backface-visibility: hidden;
}
.wl-envelope.is-open .wl-envelope__flap { transform: rotateX(-172deg); }

.wl-envelope__seal {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    color: #9c7c62;
    filter: drop-shadow(0 6px 14px rgba(60, 45, 35, .35));
    transition: opacity .45s ease, transform .8s ease;
}
.wl-envelope.is-open .wl-envelope__seal {
    opacity: 0;
    transform: translate(-50%, -50%) scale(.6);
}

.wl-envelope__prompt {
    font-family: var(--ff-body);
    font-size: .58rem;
    font-weight: 600;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--wl-muted);
    animation: wl-pulse 2.4s ease-in-out infinite;
}

@keyframes wl-rise {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes wl-pulse {
    0%, 100% { opacity: .5; }
    50%      { opacity: 1; }
}

/* ================================================
   FLOATING TOPBAR
   ================================================ */
.wl-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid transparent;
    transition: background .3s ease, backdrop-filter .3s ease, border-color .3s ease;
}
.wl-topbar.scrolled {
    background: rgba(255, 255, 255, .9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom-color: var(--wl-line);
}

.wl-topbar__brand {
    font-family: var(--ff-display);
    font-size: 1.05rem;
    letter-spacing: .04em;
    color: #fff;
    text-shadow: 0 1px 12px rgba(0, 0, 0, .45);
    transition: color .3s ease, text-shadow .3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.wl-topbar.scrolled .wl-topbar__brand { color: var(--wl-ink); text-shadow: none; }

.wl-topbar__links { display: flex; gap: 1.6rem; }
.wl-topbar__links a {
    position: relative;
    font-family: var(--ff-body);
    font-size: .58rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 1px 8px rgba(0, 0, 0, .45);
    padding-bottom: .2rem;
    transition: color .3s ease, text-shadow .3s ease;
}
.wl-topbar.scrolled .wl-topbar__links a { color: var(--wl-ink-soft); text-shadow: none; }
.wl-topbar__links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .28s ease;
}
.wl-topbar__links a:hover::after { transform: scaleX(1); transform-origin: left; }

.wl-topbar__toggle { display: none; }

/* Demo Basic/Standard switch + fabs — shared look from layouts/theme.blade.php,
   just pinned to opposite bottom corners here. */
.dpb-switch,
.dpb-fab { position: fixed; bottom: 1rem; z-index: 9999; }
.dpb-fab { right: 1rem; }
.dpb-close { right: 4rem; }
.dpb-switch {
    left: 1rem;
    display: flex;
    align-items: center;
    height: 2.5rem;
    padding: 0 .25rem;
}
.dpb-switch a {
    display: inline-flex;
    align-items: center;
    height: 2rem;
    padding: 0 .9rem;
    font-size: 12px;
}

/* ================================================
   HERO
   ================================================ */
.wl-hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: #141312;
}
.wl-hero__flat {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(180deg, #2b2824 0%, #141312 100%);
}

.wl-hero__content {
    position: relative;
    z-index: 3;
    max-width: 40rem;
    padding: 7rem 1.5rem;
}
.wl-hero__eyebrow {
    font-family: var(--ff-body);
    font-size: .64rem;
    font-weight: 600;
    letter-spacing: .34em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .9);
    margin-bottom: 1.4rem;
    text-shadow: 0 1px 8px rgba(0, 0, 0, .35);
}
.wl-hero__names {
    font-family: var(--ff-display);
    font-weight: 400;
    font-size: clamp(2.6rem, 8vw, 5.2rem);
    line-height: 1.08;
    letter-spacing: .02em;
    color: #fff;
    text-shadow: 0 2px 22px rgba(0, 0, 0, .38);
}
.wl-hero__amp {
    display: block;
    font-style: italic;
    font-size: .46em;
    color: rgba(255, 255, 255, .82);
    margin: .12em 0;
}
.wl-hero__date {
    display: inline-block;
    margin-top: .3rem;
    padding: .5rem 1.15rem;
    font-family: var(--ff-body);
    font-size: .7rem;
    font-weight: 500;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .32);
    background: rgba(255, 255, 255, .08);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.wl-hero__venue {
    font-family: var(--ff-body);
    font-size: .72rem;
    font-weight: 300;
    letter-spacing: .08em;
    color: rgba(255, 255, 255, .82);
    margin-top: .9rem;
    text-shadow: 0 1px 8px rgba(0, 0, 0, .4);
}

/* Shape divider (hero → first light section seam) */
.wl-shape {
    position: absolute;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    pointer-events: none;
    z-index: 2;
}
.wl-shape-bottom { bottom: -1px; }
.wl-shape-top { top: -1px; }
.wl-shape[data-negative="false"].wl-shape-top { transform: rotate(180deg); }
.wl-shape svg {
    display: block;
    width: calc(100% + 1.3px);
    height: 38px;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

/* ================================================
   MESSAGE / NOTE
   ================================================ */
.wl-note {
    padding: 5.5rem 0;
    text-align: center;
    background: var(--wl-bg);
}
.wl-note__text {
    font-family: var(--ff-display);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(1.15rem, 2.8vw, 1.5rem);
    line-height: 1.8;
    color: var(--wl-ink-soft);
}
.wl-note__sig {
    margin-top: 1.5rem;
    font-family: var(--ff-body);
    font-size: .62rem;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--accent);
}

/* ================================================
   ALT SECTIONS — shared vertical rhythm
   (2-class specificity so it always beats a component's own base padding,
   which is pushed into <head> after this stylesheet.)
   ================================================ */
.wl-alt-sections .wl-countdown,
.wl-alt-sections .wl-audio,
.wl-alt-sections .wl-story,
.wl-alt-sections .wl-gallery,
.wl-alt-sections .wl-venue,
.wl-alt-sections .wl-program,
.wl-alt-sections .wl-dress-code,
.wl-alt-sections .wl-good-to-know,
.wl-alt-sections .wl-accommodation,
.wl-alt-sections .wl-gallery-upload,
.wl-alt-sections .wl-guest-wall,
.wl-alt-sections .wl-album {
    padding: 5.5rem 0;
    text-align: center;
}
.wl-alt-sections .wl-closing { padding: 3.75rem 0 1rem; text-align: center; }

/* ── Countdown ─────────────────────────────── */
.wl-countdown__timer {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: clamp(.5rem, 3vw, 2rem);
    margin-top: 2rem;
}
.wl-countdown__unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 3.25rem;
}
.wl-countdown__number {
    font-family: var(--ff-display);
    font-weight: 300;
    font-size: clamp(2.2rem, 8vw, 3.8rem);
    letter-spacing: .01em;
    line-height: 1;
    color: var(--wl-ink);
    /* Cormorant defaults to old-style figures (a "1" that reads as "I") — force
       lining, tabular digits for the timer. */
    font-variant-numeric: lining-nums tabular-nums;
    font-feature-settings: "lnum" 1, "tnum" 1;
}
.wl-countdown__label {
    margin-top: .7rem;
    font-family: var(--ff-body);
    font-size: .55rem;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--wl-muted);
}
.wl-countdown__sep {
    font-family: var(--ff-display);
    font-weight: 300;
    font-size: clamp(1.4rem, 5vw, 2.4rem);
    line-height: 1;
    color: var(--wl-line);
    margin-top: .25rem;
}

/* ── Audio player ──────────────────────────── */
.wl-audio .audio-player {
    max-width: 30rem;
    margin: 1.75rem auto 0;
    padding: 1rem 1.25rem;
    border: 1px solid var(--wl-line);
    background: var(--wl-bg);
}

/* ── Our Story (custom: narrative + framed-print scatter) ───── */
.wl-story__intro {
    max-width: 34rem;
    margin: 0 auto;
    font-family: var(--ff-display);
    font-style: italic;
    font-size: clamp(1.05rem, 2.6vw, 1.4rem);
    line-height: 1.8;
    color: var(--wl-ink-soft);
    white-space: pre-line;
}
.wl-story__scatter {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 2.75rem 1.75rem;
    max-width: 62rem;
    margin: 3.25rem auto 0;
    padding: .5rem 1rem 0;
}
.wl-story__print {
    margin: 0;
    background: #fbf8f2;
    padding: 10px 10px 12px;
    box-shadow: 0 8px 22px rgba(63, 52, 40, .16), 0 1px 3px rgba(63, 52, 40, .1);
    transition: transform .3s ease, box-shadow .3s ease;
}
.wl-story__print:nth-child(3n+1) { transform: rotate(-3deg); }
.wl-story__print:nth-child(3n+2) { transform: rotate(2deg); }
.wl-story__print:nth-child(3n+3) { transform: rotate(-1.5deg); }
.wl-story__print img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    filter: sepia(.14) saturate(.88) contrast(.96);
}
.wl-story__print figcaption {
    margin-top: .8rem;
    font-family: var(--ff-display);
    font-style: italic;
    font-size: 1.05rem;
    color: var(--wl-muted);
    text-align: center;
}
@media (hover: hover) {
    .wl-story__print:hover {
        transform: rotate(0) scale(1.03);
        box-shadow: 0 14px 34px rgba(63, 52, 40, .22), 0 2px 5px rgba(63, 52, 40, .12);
    }
}

/* ── Gallery (shared <x-gallery-grid> reskin) ── */
.wl-gallery .gg-grid { gap: 1.25rem; }
.wl-gallery .gg-item {
    border-radius: 0;
    border: 1px solid var(--wl-line);
}
.wl-gallery .gg-item img { filter: saturate(.9) contrast(.98); transition: opacity .3s ease, transform .35s ease, filter .35s ease; }
.wl-gallery .gg-item:hover img,
.wl-gallery .gg-item:focus-visible img { filter: none; }

/* ── Venue (custom section) ─────────────────── */
.wl-venue__places {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin: 0 auto 2rem;
}
.wl-venue__place {
    flex: 1 1 220px;
    max-width: 300px;
    padding: 1.6rem 1.25rem;
    border: 1px solid var(--wl-line);
    background: var(--wl-bg);
}
.wl-venue__index {
    font-family: var(--ff-body);
    font-size: .55rem;
    font-weight: 600;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--accent);
}
.wl-venue__name {
    margin-top: .4rem;
    font-family: var(--ff-display);
    font-weight: 400;
    font-size: 1.35rem;
    color: var(--wl-ink);
}
.wl-venue__address {
    font-family: var(--ff-body);
    font-size: .8rem;
    font-weight: 300;
    letter-spacing: .04em;
    color: var(--wl-muted);
    margin-bottom: 2rem;
}
.wl-venue__map {
    border: 1px solid var(--wl-line);
    margin: 0 auto 1.75rem;
}
.wl-venue__map iframe {
    width: 100%;
    height: 360px;
    border: 0;
    display: block;
    filter: grayscale(1) contrast(.96);
    transition: filter .4s ease;
}
.wl-venue__map:hover iframe { filter: none; }

/* ── Timeline (custom — modelled on the reference) ───────────
   Centred hairline; each event is a white bordered card that flexes to one side
   with a per-event line-icon at the node and an empty spacer opposite. Collapses
   to a single left rail below 640px. */
.wl-timeline {
    max-width: 46rem;
    margin: 2.75rem auto 0;
}
.wl-timeline__row {
    display: flex;
    align-items: stretch;
    margin-bottom: 1.75rem;
}
.wl-timeline__row--right { flex-direction: row-reverse; }
.wl-timeline__row:last-child { margin-bottom: 0; }

.wl-timeline__card {
    flex: 1;
    min-width: 0;
    background: var(--wl-bg);
    border: 1px solid var(--wl-line);
    padding: 1.35rem 1.5rem;
    text-align: left;
}
.wl-timeline__row--right .wl-timeline__card { text-align: right; }
.wl-timeline__spacer { flex: 1; }

.wl-timeline__node {
    position: relative;
    flex-shrink: 0;
    width: 46px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 1rem;
}
.wl-timeline__icon {
    width: 22px;
    height: 22px;
    color: var(--accent);
    opacity: .8;
}
.wl-timeline__line {
    position: absolute;
    top: 2.7rem;
    bottom: -1.75rem; /* cross the row's margin-bottom to meet the next node */
    left: 50%;
    width: 1px;
    background: var(--wl-line);
    transform: translateX(-50%);
}
.wl-timeline__row:last-child .wl-timeline__line { display: none; }

.wl-timeline__meta {
    font-family: var(--ff-body);
    font-size: .58rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--wl-muted);
    margin-bottom: .45rem;
    font-variant-numeric: lining-nums;
    font-feature-settings: "lnum" 1;
}
.wl-timeline__date { margin-right: .55em; color: var(--accent); }
.wl-timeline__title {
    font-family: var(--ff-display);
    font-weight: 400;
    font-size: 1.4rem;
    line-height: 1.2;
    color: var(--wl-ink);
}
.wl-timeline__loc {
    margin-top: .4rem;
    font-family: var(--ff-body);
    font-size: .75rem;
    font-weight: 300;
    color: var(--wl-muted);
}
.wl-timeline__dir {
    display: inline-block;
    margin-top: .55rem;
    font-family: var(--ff-body);
    font-size: .56rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 640px) {
    .wl-timeline__row,
    .wl-timeline__row--right { flex-direction: row; }
    .wl-timeline__spacer { display: none; }
    .wl-timeline__card,
    .wl-timeline__row--right .wl-timeline__card { text-align: left; }
    .wl-timeline__node { width: 34px; padding-top: .85rem; }
    .wl-timeline__icon { width: 18px; height: 18px; }
    .wl-timeline__line { top: 2.3rem; }
}

/* ── Dress Code (framed card) ───────────────── */
.wl-alt-sections .wl-dress-code .wl-container {
    max-width: 620px;
    border: 1px solid var(--wl-line);
    background: var(--wl-bg);
    padding: 3rem 2rem;
}

/* ── Good to Know / Accommodation (minimal cards) ── */
.wl-good-to-know .gtk-card,
.wl-accommodation .accom-card {
    background: var(--wl-bg);
    border: 1px solid var(--wl-line);
    border-radius: var(--radius);
    padding: 1.75rem 1.5rem;
}
.wl-good-to-know .gtk-card__icon,
.wl-accommodation .accom-card__icon { color: var(--accent); }
.wl-good-to-know .gtk-card__title,
.wl-accommodation .accom-card__name {
    font-family: var(--ff-body);
    font-weight: 600;
    font-size: .74rem;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.wl-accommodation .accom-card__link { color: var(--accent); }

/* Good to Know: always three across on desktop (overrides the component's
   auto-fit grid), stacking to one column on narrow screens. */
.wl-good-to-know .gtk-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 780px) {
    .wl-good-to-know .gtk-grid { grid-template-columns: 1fr; }
}

/* ── Guest Wall (quote carousel) ─────────────── */
.wl-quotes__swiper {
    max-width: 42rem;
    margin: 2rem auto 0;
}
.wl-quotes__slide {
    padding: 1rem 1.5rem 3rem;
    text-align: center;
}
.wl-quotes__text {
    position: relative;
    font-family: var(--ff-display);
    font-style: italic;
    font-size: clamp(1.15rem, 2.8vw, 1.5rem);
    line-height: 1.7;
    color: var(--wl-ink);
}
.wl-quotes__text::before {
    content: '\201C';
    display: block;
    font-family: var(--ff-display);
    font-style: normal;
    font-size: 2.75rem;
    line-height: .5;
    color: var(--accent);
    opacity: .45;
    margin-bottom: .5rem;
}
.wl-quotes__author {
    margin-top: 1.5rem;
    font-family: var(--ff-body);
    font-size: .6rem;
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--accent);
}
.wl-guest-wall .swiper-pagination { position: static; margin-top: .5rem; }
.wl-guest-wall .swiper-pagination-bullet {
    background: var(--wl-muted);
    opacity: .35;
}
.wl-guest-wall .swiper-pagination-bullet-active {
    background: var(--accent);
    opacity: 1;
}

/* ── Guest gallery upload ───────────────────── */
.wl-gallery-upload .gu-form {
    border: 1px solid var(--wl-line);
    background: var(--wl-bg);
    border-radius: var(--radius);
}

/* ── Album ──────────────────────────────────── */
.wl-album__sub {
    margin: .4rem 0 2rem;
    font-family: var(--ff-body);
    font-weight: 300;
    font-size: .85rem;
    color: var(--wl-muted);
}

/* ── Closing ────────────────────────────────── */
.wl-closing__text {
    font-family: var(--ff-display);
    font-style: italic;
    font-size: 1.2rem;
    color: var(--wl-muted);
}

/* ── RSVP (custom presentation) ──────────────────────────────
   Sits outside .wl-alt-sections: no alternating tint, no card — a plain, open
   form on the page background with underline-only fields, matching the
   reference. The shared <x-rsvp-form> still runs the submission pipeline. */
.wl-rsvp {
    background: var(--wl-bg);
    padding: 4.5rem 0 6rem;
    text-align: center;
    border-top: 1px solid var(--wl-line-soft);
}
/* The shared component renders .rsvp-layout-wrap as a sibling of the heading
   container, so it needs its own horizontal gutter — without it the fields run
   edge-to-edge on narrow screens while the (gutter'd) heading stays inset. */
.wl-rsvp .rsvp-layout-wrap { max-width: 560px; margin: 1.75rem auto 0; padding: 0 1.5rem; }
.wl-rsvp .rsvp-form-col {
    border: none;
    background: transparent;
    padding: 0;
}
.wl-form .form__group label {
    display: block;
    font-family: var(--ff-body);
    font-size: .58rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--wl-muted);
    margin-bottom: .45rem;
}
/* Underline-only fields (3-class specificity beats the component's own
   .form__group input[type="..."] rules, which load after this stylesheet). */
.wl-form .form__group input[type="text"],
.wl-form .form__group input[type="email"],
.wl-form .form__group input[type="tel"],
.wl-form .form__group input[type="number"],
.wl-form .form__group select,
.wl-form .form__group textarea {
    border: none;
    border-bottom: 1px solid var(--wl-line);
    border-radius: 0;
    background: transparent;
    padding: .7rem 0;
}
.wl-form .form__group input:focus,
.wl-form .form__group select:focus,
.wl-form .form__group textarea:focus {
    border-bottom-color: var(--accent);
    background: transparent;
}
.wl-form .rsvp-stepper {
    border: none;
    border-bottom: 1px solid var(--wl-line);
    border-radius: 0;
    background: transparent;
    max-width: 100%;
}
.wl-rsvp .wl-form button[type="submit"] { width: 100%; margin-top: 1.5rem; }

/* ================================================
   FOOTER
   ================================================ */
.wl-footer {
    background: var(--wl-bg-alt);
    border-top: 1px solid var(--wl-line);
    text-align: center;
    padding: 4rem 1.5rem 3.25rem;
}
.wl-footer .wl-rule { margin-bottom: 1.25rem; }
.wl-footer__names {
    font-family: var(--ff-display);
    font-weight: 400;
    font-size: 1.5rem;
    letter-spacing: .04em;
    color: var(--wl-ink);
}
.wl-footer__date {
    margin-top: .35rem;
    font-family: var(--ff-body);
    font-size: .62rem;
    font-weight: 500;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--wl-muted);
}
.wl-footer__signoff {
    margin: 1rem auto 0;
    max-width: 24rem;
    font-family: var(--ff-display);
    font-style: italic;
    font-size: 1.05rem;
    color: var(--wl-muted);
}
.wl-footer__cal { margin-top: 1.75rem; }

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 720px) {
    .wl-topbar { justify-content: flex-start; gap: .75rem; }
    .wl-topbar__brand { order: 2; font-size: .95rem; }
    .wl-topbar__toggle {
        order: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        width: 2.75rem;
        height: 2.75rem;
        padding: 0;
        border: 1px solid rgba(255, 255, 255, .28);
        border-radius: 50%;
        background: rgba(20, 19, 18, .5);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        cursor: pointer;
        transition: background .2s ease;
    }
    .wl-topbar.scrolled .wl-topbar__toggle {
        border-color: var(--wl-line);
        background: rgba(255, 255, 255, .7);
    }
    .wl-topbar__toggle span {
        display: block;
        width: 18px;
        height: 2px;
        border-radius: 1px;
        background: #fff;
        transition: transform .25s ease, opacity .2s ease;
    }
    .wl-topbar.scrolled .wl-topbar__toggle span { background: var(--wl-ink); }
    .wl-topbar__toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .wl-topbar__toggle.is-active span:nth-child(2) { opacity: 0; }
    .wl-topbar__toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .wl-topbar__links {
        position: absolute;
        top: calc(100% + .5rem);
        left: 1rem;
        right: 1rem;
        flex-direction: column;
        gap: .25rem;
        padding: .5rem;
        background: rgba(255, 255, 255, .97);
        border: 1px solid var(--wl-line);
        box-shadow: 0 12px 32px rgba(0, 0, 0, .14);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-6px);
        transition: opacity .2s ease, transform .2s ease, visibility .2s;
    }
    .wl-topbar__links.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
    .wl-topbar__links a {
        color: var(--wl-ink-soft);
        text-shadow: none;
        text-align: center;
        padding: .7rem 1rem;
    }
    .wl-topbar__links a::after { display: none; }
    .wl-topbar__links a:hover { background: var(--wl-bg-alt); color: var(--accent); }

    /* Keep all four countdown units on one row down to the narrowest widths. */
    .wl-countdown__timer {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
    }
    .wl-countdown__timer::-webkit-scrollbar { display: none; }
    .wl-countdown__unit { flex-shrink: 0; }

    .wl-alt-sections .wl-dress-code .wl-container { padding: 2.25rem 1.5rem; }
}

@media (max-width: 480px) {
    .wl-hero__content { padding: 6rem 1.25rem; }
    .dpb-switch { gap: 1px; padding: 2px; }
}

@media (prefers-reduced-motion: reduce) {
    .wl-envelope,
    .wl-envelope__flap,
    .wl-envelope__seal,
    .wl-envelope__stage,
    .wl-envelope__prompt {
        transition-duration: .01ms !important;
        animation: none !important;
    }
}
