/*
 * Template "Sage Eucalyptus" (Pernikahan): sage & cream, watercolor eucalyptus, thin gold lines.
 * Colors come from the color variant: --inv-primary, --inv-accent, --inv-background, --inv-text,
 * --inv-leaf (pale leaves), --inv-leafdark (deep leaves, stems), --inv-soft (tinted sections).
 * Every class of this template starts with "se-".
 */

:root {
    --inv-primary: #5e7257;
    --inv-accent: #b8975a;
    --inv-background: #f7f4ec;
    --inv-text: #33402f;
    --inv-leaf: #a9bba0;
    --inv-leafdark: #6f8a6a;
    --inv-soft: #ebefe3;
    --inv-radius: 14px;

    --se-serif: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
    --se-script: 'Great Vibes', 'Brush Script MT', cursive;
    --se-sans: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --se-mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, 'Liberation Mono', monospace;

    /* derived tones: muted body text, gold that is dark enough to read, hairlines, cards */
    --se-muted: color-mix(in srgb, var(--inv-text) 80%, var(--inv-background));
    --se-gold-ink: color-mix(in srgb, var(--inv-accent) 52%, var(--inv-text));
    --se-line: color-mix(in srgb, var(--inv-accent) 65%, transparent);
    --se-card: color-mix(in srgb, #ffffff 70%, var(--inv-background));
    --se-shadow: 0 18px 40px -26px color-mix(in srgb, var(--inv-primary) 70%, transparent);
    --se-column: 460px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body.se-body {
    margin: 0;
    background: var(--inv-background);
    color: var(--inv-text);
    font-family: var(--se-serif);
    font-size: 1.12rem;
    font-weight: 500;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.se-body img { max-width: 100%; }
.se-body h1, .se-body h2, .se-body h3, .se-body p, .se-body figure { margin: 0; }

.se-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- wide screens: the column on a blurred, tinted photo ---------- */

.se-backdrop { display: none; }
/* below the wide layout the column is simply the whole screen */
@media (max-width: 559px) { :root { --se-column: 100vw; } }

.se-page {
    position: relative;
    max-width: var(--se-column);
    min-height: 100vh;
    margin: 0 auto;
    padding-bottom: 5.5rem; /* room for the bottom menu and the music button */
    background: var(--inv-background);
    overflow-x: clip;
}

@media (min-width: 560px) {
    .se-backdrop {
        display: block; position: fixed; inset: 0; z-index: 0; overflow: hidden;
        background:
            radial-gradient(circle at 15% 20%, color-mix(in srgb, var(--inv-leaf) 55%, transparent), transparent 45%),
            radial-gradient(circle at 85% 80%, color-mix(in srgb, var(--inv-leaf) 45%, transparent), transparent 45%),
            var(--inv-soft);
    }
    .se-backdrop::before {
        content: ''; position: absolute; inset: -40px;
        background: var(--x-photo, none) center / cover no-repeat;
        filter: blur(22px) saturate(.8);
        opacity: .55;
    }
    .se-backdrop::after {
        content: ''; position: absolute; inset: 0;
        background: color-mix(in srgb, var(--inv-soft) 55%, transparent);
    }
    .se-page { box-shadow: 0 0 0 1px color-mix(in srgb, var(--inv-accent) 25%, transparent), 0 30px 80px -30px rgb(0 0 0 / .35); }
}

.se-preview {
    position: fixed; top: .5rem; left: 50%; z-index: 45; transform: translateX(-50%);
    padding: .35rem .85rem; border-radius: 999px; pointer-events: none;
    background: var(--inv-text); color: var(--inv-background);
    font: 500 .68rem/1.3 var(--se-sans); letter-spacing: .02em; white-space: nowrap; opacity: .92;
}

/* ---------- shared pieces ---------- */

.se-label {
    font-family: var(--se-sans);
    font-size: .7rem;
    font-weight: 500;
    letter-spacing: .32em;
    text-transform: uppercase;
    color: var(--se-gold-ink);
}

.se-rule { display: inline-block; width: 1.9rem; height: 1px; background: var(--se-line); vertical-align: middle; }

.se-head { margin-bottom: 2rem; }
.se-title {
    margin: .3rem 0 .15rem !important;
    font-family: var(--se-script);
    font-size: 2.65rem;
    font-weight: 400;
    line-height: 1.2;
    color: var(--inv-primary);
}
.se-divider { display: block; width: 11rem; height: auto; margin: 0 auto; }

.se-intro { max-width: 22rem; margin: -.6rem auto 1.6rem !important; color: var(--se-muted); font-size: 1.05rem; line-height: 1.65; }

.se-card {
    position: relative;
    padding: 1.6rem 1.3rem;
    border-radius: 18px;
    background: var(--se-card);
    border: 1px solid color-mix(in srgb, var(--inv-accent) 28%, transparent);
    box-shadow: var(--se-shadow);
}

.se-pill {
    display: inline-flex; align-items: center; gap: .45rem; margin-top: 1rem;
    padding: .5rem 1.05rem; border-radius: 999px;
    color: var(--inv-primary); text-decoration: none;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--inv-primary) 55%, transparent);
    font: 500 .8rem/1 var(--se-sans); letter-spacing: .04em;
    transition: background .25s ease, color .25s ease;
}
.se-pill:hover { background: var(--inv-primary); color: #fff; }

/* arch frame with a thin gold line around it */
.se-arch { position: relative; aspect-ratio: 3 / 4; border-radius: 999px 999px 14px 14px; }
.se-arch img, .se-arch > .se-person__initial {
    display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit;
}
.se-arch::before {
    content: ''; position: absolute; inset: -8px; border-radius: 999px 999px 20px 20px;
    border: 1px solid var(--se-line); pointer-events: none;
}

/* ---------- eucalyptus corners ---------- */

.se-corners { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.se-corner { position: absolute; width: clamp(130px, 42%, 196px); aspect-ratio: 200 / 260; }
.se-corner svg { display: block; width: 100%; height: 100%; overflow: visible; }
.se-corner[class*="--tl"] { top: -16px; left: -20px; transform: scaleY(-1); }
.se-corner[class*="--tr"] { top: -16px; right: -20px; transform: scale(-1, -1); }
.se-corner[class*="--bl"] { bottom: -16px; left: -20px; }
.se-corner[class*="--br"] { bottom: -16px; right: -20px; transform: scaleX(-1); }
.se-corner[class$="-sm"] { width: clamp(78px, 24%, 112px); opacity: .7; }

/* the base of the branch is its bottom-left corner: it sways from there */
.se-sway { transform-origin: 4% 99%; }
html.inv-anim .se-sway { will-change: transform; animation: se-sway 7s ease-in-out infinite alternate; }
html.inv-anim .se-corner:nth-child(2) .se-sway { animation-duration: 8.5s; animation-delay: -3s; }
html.inv-anim .se-corner:nth-child(3) .se-sway { animation-duration: 6.2s; animation-delay: -1.5s; }
html.inv-anim .se-corner:nth-child(4) .se-sway { animation-duration: 9s; animation-delay: -4.5s; }
@keyframes se-sway {
    from { transform: rotate(-2.4deg); }
    to { transform: rotate(2.8deg); }
}

/* ---------- cover ---------- */

.se-cover {
    position: fixed; top: 0; bottom: 0; left: 50%; z-index: 30;
    width: min(100%, var(--se-column));
    transform: translateX(-50%);
    overflow-x: hidden; overflow-y: auto;
    background:
        radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--inv-soft) 90%, transparent), transparent 60%),
        radial-gradient(ellipse at 50% 100%, color-mix(in srgb, var(--inv-soft) 80%, transparent), transparent 55%),
        var(--inv-background);
}
.se-cover--leave { transition: opacity .8s ease, transform .9s cubic-bezier(.6, 0, .3, 1); }
.se-cover--gone { opacity: 0; transform: translate(-50%, -5%); }

.se-cover__frame { position: absolute; inset: 14px; z-index: 1; border: 1px solid var(--se-line); pointer-events: none; }
.se-cover__frame::after { content: ''; position: absolute; inset: 4px; border: 1px solid color-mix(in srgb, var(--inv-accent) 30%, transparent); }

.se-cover__inner {
    position: relative; z-index: 2;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    min-height: 100%; padding: 2.6rem 2rem 2.2rem; text-align: center;
}

.se-mono {
    display: inline-flex; align-items: center; justify-content: center;
    width: 3.5rem; height: 3.5rem; margin-bottom: .9rem !important; border-radius: 50%;
    border: 1px solid var(--se-line);
    font: 500 1.2rem/1 var(--se-serif); color: var(--inv-primary); letter-spacing: .02em;
}
.se-mono span + span::before {
    content: ''; display: inline-block; width: 1px; height: 1.05em; margin: 0 .3rem;
    background: var(--inv-accent); transform: rotate(22deg); vertical-align: -.12em;
}

.se-cover__title { margin-bottom: 1.1rem !important; }

.se-cover__photo { height: clamp(150px, 30vh, 270px); width: auto; margin-bottom: .5rem !important; }

.se-cover__names {
    margin: .7rem 0 .25rem !important;
    font-family: var(--se-script); font-weight: 400;
    font-size: clamp(2.5rem, 11.5vw, 3.3rem); line-height: 1.12;
    color: var(--inv-primary);
}
.se-amp { color: var(--se-gold-ink); font-size: .78em; }

.se-cover__date {
    display: flex; align-items: center; gap: .7rem;
    font: 500 .74rem/1.4 var(--se-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--se-muted);
}

.se-cover__quote { max-width: 19rem; margin-top: .8rem !important; font-style: italic; font-size: 1rem; line-height: 1.5; color: var(--se-muted); }

.se-cover__guest {
    min-width: 14.5rem; max-width: 100%; margin: 1.15rem 0 1.15rem;
    padding: .8rem 1.4rem .75rem; border-radius: 12px;
    background: color-mix(in srgb, #ffffff 55%, transparent);
    border: 1px solid var(--se-line);
}
.se-cover__to { font: 400 .72rem/1.4 var(--se-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--se-muted); }
.se-cover__guestname { display: block; margin: .2rem 0 .1rem; font-size: 1.35rem; font-weight: 600; line-height: 1.3; color: var(--inv-text); overflow-wrap: anywhere; }
.se-cover__sorry { font-style: italic; font-size: .78rem; color: var(--se-muted); }

.se-open { gap: .6rem; }

/* ---------- buttons of the shared components ---------- */

.se-body .inv-button {
    padding: .8rem 1.45rem;
    font: 500 .76rem/1.2 var(--se-sans); letter-spacing: .13em; text-transform: uppercase;
    background: var(--inv-primary); color: #fff;
    box-shadow: 0 10px 22px -14px color-mix(in srgb, var(--inv-primary) 90%, transparent);
}
.se-body .inv-button--outline {
    background: color-mix(in srgb, #ffffff 40%, transparent); color: var(--inv-primary);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--inv-primary) 60%, transparent);
}

/* ---------- hero (first screen after opening) ---------- */

.se-hero {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
    min-height: clamp(560px, 100vh, 860px); min-height: clamp(560px, 100svh, 860px); padding: 3rem 1.75rem 5.5rem; text-align: center;
    background: var(--x-photo, none) center 30% / cover no-repeat, var(--inv-soft);
    overflow: hidden;
}
.se-hero::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to bottom,
        rgb(0 0 0 / .08) 0%, transparent 28%,
        color-mix(in srgb, var(--inv-background) 55%, transparent) 55%,
        color-mix(in srgb, var(--inv-background) 92%, transparent) 72%,
        var(--inv-background) 100%);
}
.se-hero__text { position: relative; z-index: 1; }
.se-hero__names {
    margin: .4rem 0 .5rem !important;
    font-family: var(--se-script); font-size: clamp(2.8rem, 13vw, 3.6rem); line-height: 1.1; color: var(--inv-primary);
}
.se-hero__names span { color: var(--se-gold-ink); font-size: .75em; }
.se-hero__date {
    display: flex; align-items: center; justify-content: center; gap: .7rem;
    font: 500 .76rem/1.4 var(--se-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--inv-text);
}
.se-hero__mono {
    position: relative; z-index: 1; margin: auto 0 2rem !important;
    display: grid; place-items: center; width: 8rem; height: 8rem; border-radius: 50%;
    border: 1px solid var(--se-line); font: 400 2.6rem/1 var(--se-serif); color: var(--inv-primary);
}
.se-hero__mono span + span::before { content: '·'; margin: 0 .2rem; color: var(--inv-accent); }
.se-hero .se-corners { z-index: 0; }

/* ---------- sections ---------- */

.se-section { position: relative; padding: 4.5rem 1.6rem; text-align: center; overflow: hidden; }
.se-section > :not(.se-corners) { position: relative; z-index: 1; }
.se-section--soft { background: var(--inv-soft); }

/* opening */
.se-sprig { display: block; width: 7.5rem; height: auto; margin: 0 auto 1.2rem; }
.se-arabic { margin-bottom: 1rem !important; font-family: 'Amiri', serif; font-size: 1.6rem; line-height: 2; color: var(--inv-primary); }
.se-opening__greeting { margin-bottom: .9rem !important; font-style: italic; font-size: 1.3rem; font-weight: 600; color: var(--inv-primary); }
.se-opening__message { max-width: 24rem; margin: 0 auto !important; color: var(--se-muted); line-height: 1.75; }

.se-quote {
    margin: 2.4rem 0 0 !important; padding: 2rem 1.4rem 1.5rem;
    border-radius: 18px; background: var(--se-card);
    border: 1px solid color-mix(in srgb, var(--inv-accent) 40%, transparent);
    box-shadow: var(--se-shadow);
}
.se-quote__mark { display: block; width: 1.6rem; height: auto; margin: 0 auto .8rem; color: var(--inv-accent); }
.se-quote blockquote { margin: 0; font-style: italic; font-size: 1.1rem; line-height: 1.7; }
.se-quote figcaption { margin-top: .9rem; font: 500 .72rem/1.4 var(--se-sans); letter-spacing: .2em; text-transform: uppercase; color: var(--se-gold-ink); }

/* couple */
.se-person { display: grid; justify-items: center; }
.se-person__photo { width: 11.5rem; margin-bottom: 1.4rem !important; }
.se-person__initial {
    display: grid !important; place-items: center;
    background: linear-gradient(160deg, var(--inv-leaf), var(--inv-leafdark));
    font: 400 4.5rem/1 var(--se-script); color: #fff;
}
.se-person__sprig { position: absolute; right: -2.6rem; bottom: -.9rem; width: 6.5rem; height: auto; transform: rotate(-14deg); }
.se-person:last-child .se-person__sprig { right: auto; left: -2.6rem; transform: scaleX(-1) rotate(-14deg); }
.se-person__role { font: 500 .68rem/1.4 var(--se-sans); letter-spacing: .3em; text-transform: uppercase; color: var(--se-gold-ink); }
.se-person__nick { margin: .15rem 0 .1rem !important; font: 400 2.7rem/1.2 var(--se-script); color: var(--inv-primary); }
.se-person__name { font-size: 1.28rem; font-weight: 600; letter-spacing: .02em; line-height: 1.35; }
.se-person__parents { margin-top: .55rem !important; color: var(--se-muted); font-size: 1.02rem; line-height: 1.55; }
.se-person__parents strong { color: var(--inv-text); font-weight: 600; }

.se-couple__and { display: flex; align-items: center; justify-content: center; gap: 1rem; margin: 2.3rem 0 2.1rem; }
.se-couple__and span:not(.se-rule) { font: 400 3.4rem/1 var(--se-script); color: var(--se-gold-ink); }
.se-couple__and .se-rule { width: 3.5rem; }

/* countdown: the month calendar on a paper card (a strip of washi tape), compact boxes below */
.se-cal {
    --inv-cal-bg: color-mix(in srgb, #ffffff 78%, var(--inv-background));
    --inv-cal-text: var(--inv-text);
    --inv-cal-mark: var(--se-gold-ink);
    position: relative; max-width: 21.5rem; margin: 0 auto 1.8rem; padding: 1.5rem 1.2rem 1.1rem;
    border-radius: 6px; text-align: left; rotate: -.6deg;
    border: 1px solid color-mix(in srgb, var(--inv-accent) 30%, transparent);
    box-shadow: 0 1px 0 #fff inset, 0 22px 40px -28px color-mix(in srgb, var(--inv-primary) 80%, transparent);
}
/* a translucent tape across the top-left corner */
.se-cal::before {
    content: ''; position: absolute; top: -.7rem; left: 1.2rem; width: 5.5rem; height: 1.5rem; transform: rotate(-4deg);
    background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--inv-leaf) 60%, transparent) 0 6px, color-mix(in srgb, var(--inv-leaf) 42%, transparent) 6px 12px);
}
.se-cal .inv-cal__month { font: 400 2.3rem/1 var(--se-script); color: var(--inv-primary); }
.se-cal .inv-cal__year { font: 500 .78rem/1 var(--se-sans); letter-spacing: .24em; color: var(--se-muted); opacity: 1; }
.se-cal .inv-cal__dow { font-family: var(--se-sans); font-weight: 500; color: var(--se-muted); opacity: 1; }
.se-cal .inv-cal__grid > :nth-child(7n + 1) { color: var(--se-gold-ink); }
.se-cal .inv-cal__day { font-size: 1.05rem; }
.se-cal .inv-cal__day--mark { color: var(--inv-primary); }
.se-cal .inv-cal__circle { color: var(--inv-accent); }
.se-cal .inv-cal__note { font-style: italic; font-size: 1.02rem; color: var(--inv-text); }

.se-countdown .inv-countdown { gap: .45rem; }
.se-countdown .inv-countdown__item {
    display: grid; place-content: center; width: 4.4rem; min-width: 0; height: 4.2rem; padding: 0;
    border-radius: 12px; background: var(--inv-primary);
    box-shadow: 0 12px 22px -14px color-mix(in srgb, var(--inv-primary) 90%, transparent);
}
.se-countdown .inv-countdown__value { font: 600 1.75rem/1 var(--se-serif); color: color-mix(in srgb, var(--inv-accent) 55%, #fff); }
.se-countdown .inv-countdown__label { margin-top: .25rem; font: 500 .55rem/1 var(--se-sans); letter-spacing: .18em; text-transform: uppercase; opacity: 1; color: color-mix(in srgb, #fff 82%, transparent); }
.se-countdown .inv-countdown__done { font-style: italic; color: var(--se-muted); }
.se-countdown .inv-countdown__actions { margin-top: 1.4rem; gap: .6rem; }
.se-countdown .inv-countdown__actions .inv-button { padding: .65rem 1rem; font-size: .66rem; letter-spacing: .1em; }

/* events: the section lies on the cover photo behind a cream veil */
.se-events { background: var(--x-photo, none) center 30% / cover no-repeat, var(--inv-soft); }
.se-events::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(to bottom, var(--inv-background) 0%, color-mix(in srgb, var(--inv-background) 86%, transparent) 30%, color-mix(in srgb, var(--inv-soft) 82%, transparent) 100%);
}

/* two rounded photos, playfully offset, above the title */
.se-collage { position: relative; height: 12.5rem; max-width: 21rem; margin: -1rem auto 2.2rem; }
.se-collage::before {
    content: ''; position: absolute; inset: 2.4rem -1.6rem 1.8rem; border-radius: 999px;
    background: color-mix(in srgb, var(--inv-leaf) 45%, transparent);
}
.se-collage img {
    position: absolute; width: 58%; aspect-ratio: 4 / 3; object-fit: cover;
    border: 4px solid var(--se-card); box-shadow: var(--se-shadow);
}
.se-collage__a { left: 0; bottom: 0; border-radius: 0 40px 40px 40px; }
.se-collage__b { right: 0; top: 0; border-radius: 40px 40px 40px 0; }

.se-event {
    margin-bottom: 1.8rem; overflow: hidden;
    border-radius: 32px; background: color-mix(in srgb, var(--se-card) 94%, transparent);
    box-shadow: 0 24px 46px -30px color-mix(in srgb, var(--inv-primary) 90%, transparent);
}
.se-event:last-child { margin-bottom: 0; }
.se-event__band {
    position: relative; padding: 1rem 1rem 1.15rem; border-radius: 32px 32px 0 0;
    background: linear-gradient(160deg, var(--inv-primary), var(--inv-leafdark));
}
.se-event__sprig { display: block; width: 4.4rem; height: auto; margin: 0 auto -.1rem; }
.se-event__name { font: 400 2.4rem/1.15 var(--se-script); color: #fff; }
.se-event__body { padding: 1.3rem 1.3rem 1.6rem; }
.se-event__photo { height: 8.5rem; margin-bottom: 1.2rem; border-radius: 18px; background: var(--x-photo) center 35% / cover no-repeat; }
.se-event__body svg {
    display: inline-block; width: 1.05rem; height: 1.05rem; vertical-align: -.15em; margin-right: .3rem;
    fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.se-event__time { font: 500 .92rem/1.5 var(--se-sans); letter-spacing: .08em; color: var(--se-gold-ink); }
.se-event__date { margin-top: .15rem !important; font-size: 1.25rem; font-weight: 600; color: var(--inv-text); }
.se-event__place {
    margin: 1.1rem auto 0; padding: 1rem .9rem; max-width: 20rem;
    border: 1px dashed color-mix(in srgb, var(--inv-accent) 70%, transparent); border-radius: 18px;
}
.se-event__place > svg { display: block; width: 1.4rem; height: 1.4rem; margin: 0 auto .35rem; color: var(--inv-primary); }
.se-event__venue { display: block; font-size: 1.15rem; font-weight: 600; color: var(--inv-primary); }
.se-event__address { display: block; margin-top: .2rem; color: var(--se-muted); font-size: 1rem; line-height: 1.5; }
.se-event__dress { margin-top: .9rem !important; font-style: italic; color: var(--se-muted); }
.se-event .inv-maps { margin-top: 1.2rem; text-align: center; }

/* love story: compact zig-zag on a thin centre line */
.se-timeline { position: relative; margin: 0; padding: 0; list-style: none; }
.se-timeline::before {
    content: ''; position: absolute; top: .4rem; bottom: .4rem; left: 50%; width: 1px; transform: translateX(-.5px);
    background: linear-gradient(to bottom, var(--se-line) 85%, transparent);
}
.se-moment {
    position: relative; display: grid; grid-template-columns: 1fr 2.4rem 1fr; column-gap: .7rem; align-items: start;
}
.se-moment + .se-moment { margin-top: 1.8rem; }
.se-moment__num {
    grid-column: 2; grid-row: 1; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%;
    border: 1px solid var(--inv-accent); background: var(--inv-background);
    font: italic 500 .9rem/1 var(--se-serif); color: var(--se-gold-ink);
}
.se-moment__text { grid-column: 1; grid-row: 1; text-align: right; }
.se-moment__side { grid-column: 3; grid-row: 1; text-align: left; }
.se-moment--flip .se-moment__text { grid-column: 3; text-align: left; }
.se-moment--flip .se-moment__side { grid-column: 1; text-align: right; }
.se-moment__title {
    padding-bottom: .35rem; font-size: 1.22rem; font-weight: 600; line-height: 1.25; color: var(--inv-primary);
    border-bottom: 1.5px dotted var(--se-line);
}
.se-moment__story { margin-top: .45rem !important; color: var(--se-muted); font-size: .98rem; line-height: 1.55; }
.se-moment__date { font: 400 1.5rem/1.15 var(--se-script); color: var(--se-gold-ink); }
.se-moment__photo {
    display: inline-block; width: min(100%, 8.2rem); aspect-ratio: 1; margin-top: .55rem; object-fit: cover; border-radius: 50%;
    border: 3px solid var(--se-card); box-shadow: 0 0 0 1px var(--se-line), 0 14px 24px -16px rgb(0 0 0 / .5);
}

/* gallery: pairs of squares with a wide photo every fifth */
.se-gallery .inv-gallery { gap: .55rem; }
.se-gallery .inv-gallery__item { border-radius: 14px; box-shadow: 0 10px 22px -16px rgb(0 0 0 / .45); }
.se-gallery .inv-gallery__item:nth-child(5n + 1),
.se-gallery .inv-gallery__item:nth-child(5n + 2):last-child,
.se-gallery .inv-gallery__item:nth-child(5n + 4):last-child { grid-column: span 2; aspect-ratio: 16 / 10; }

/* live streaming */
.se-live__icon {
    display: grid; place-items: center; width: 3.4rem; height: 3.4rem; margin: 0 auto .8rem; border-radius: 50%;
    background: var(--inv-soft);
}
.se-live__icon svg { width: 1.7rem; height: 1.7rem; fill: none; stroke: var(--inv-primary); stroke-width: 1.5; stroke-linejoin: round; }
.se-live__platform { font: 400 2.1rem/1.2 var(--se-script); color: var(--inv-primary); }
.se-live__text { margin: .4rem 0 .6rem !important; color: var(--se-muted); line-height: 1.6; }
.se-live__note { margin-bottom: 1.1rem !important; font-style: italic; font-size: 1rem; }
.se-live__note:last-of-type { margin-bottom: 1.1rem !important; }
.se-live__card .inv-button { margin-top: .4rem; }

/* gift: every account is a compact bank card, two per row (an odd last card spans both) */
.se-gift .inv-gift { display: grid; gap: 1.1rem; }
.se-gift .inv-gift__accounts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.se-gift .inv-gift__accounts > .inv-gift__account:last-child:nth-child(odd) { grid-column: 1 / -1; }
.se-gift .inv-gift__account + .inv-gift__account { margin-top: 0; }
.se-gift .inv-gift__account:not(.inv-gift__address) {
    position: relative; overflow: hidden; min-width: 0; min-height: 9.5rem;
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 2.95rem .8rem .8rem; border-radius: 13px; text-align: left; color: #fff;
    background:
        radial-gradient(circle at 105% -15%, rgb(255 255 255 / .25), transparent 45%),
        radial-gradient(circle at -10% 115%, rgb(255 255 255 / .12), transparent 40%),
        linear-gradient(135deg, var(--inv-primary), color-mix(in srgb, var(--inv-leafdark) 60%, #1d2619));
    box-shadow: 0 16px 28px -18px color-mix(in srgb, var(--inv-primary) 90%, #000), inset 0 0 0 1px rgb(255 255 255 / .14);
}
/* the chip */
.se-gift .inv-gift__account:not(.inv-gift__address)::before {
    content: ''; position: absolute; top: .85rem; left: .8rem; width: 2.25rem; height: 1.7rem; border-radius: .34rem;
    background:
        linear-gradient(90deg, transparent 31%, rgb(0 0 0 / .2) 31% 34%, transparent 34% 66%, rgb(0 0 0 / .2) 66% 69%, transparent 69%),
        linear-gradient(0deg, transparent 46%, rgb(0 0 0 / .2) 46% 54%, transparent 54%),
        linear-gradient(135deg, #f6e3ad, #cfae6c 55%, #9b7a3d);
    box-shadow: inset 0 0 0 1px rgb(0 0 0 / .15);
}
/* a pale eucalyptus sprig as a watermark */
.se-gift .inv-gift__account:not(.inv-gift__address)::after {
    content: ''; position: absolute; right: -1rem; bottom: -1.2rem; width: 6rem; height: 6rem; pointer-events: none; opacity: .16;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M10 95C30 60 55 40 92 8' fill='none' stroke='%23fff' stroke-width='1.6'/%3E%3Cg fill='%23fff'%3E%3Cellipse cx='22' cy='70' rx='11' ry='8' transform='rotate(-60 22 70)'/%3E%3Cellipse cx='36' cy='78' rx='10' ry='7' transform='rotate(20 36 78)'/%3E%3Cellipse cx='40' cy='50' rx='10' ry='7' transform='rotate(-70 40 50)'/%3E%3Cellipse cx='56' cy='56' rx='9' ry='6.5' transform='rotate(10 56 56)'/%3E%3Cellipse cx='60' cy='30' rx='8' ry='6' transform='rotate(-70 60 30)'/%3E%3Cellipse cx='76' cy='34' rx='8' ry='5.5' transform='rotate(0 76 34)'/%3E%3Cellipse cx='86' cy='14' rx='6' ry='4.5' transform='rotate(-40 86 14)'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
}
.se-gift .inv-gift__account > * { position: relative; z-index: 1; }
.se-gift .inv-gift__account:not(.inv-gift__address) .inv-gift__bank {
    position: absolute; top: .95rem; right: .7rem; left: 3.35rem; margin: 0; text-align: right;
    font: 600 .66rem/1.5rem var(--se-sans); letter-spacing: .08em; text-transform: uppercase;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.se-gift .inv-gift__logo { height: 1.5rem; padding: .18rem .45rem; border-radius: .35rem; }
.se-gift .inv-gift__logo img { max-width: 4.6rem; }
.se-gift .inv-gift__number {
    margin: 0 0 .25rem; font: 500 1rem/1.3 var(--se-mono); letter-spacing: .06em;
    text-shadow: 0 1px 2px rgb(0 0 0 / .25); overflow-wrap: anywhere;
}
.se-gift .inv-gift__account:not(.inv-gift__address) .inv-gift__holder {
    margin: 0 0 .65rem; font: 500 .6rem/1.4 var(--se-sans); letter-spacing: .12em; text-transform: uppercase; opacity: .95;
    overflow-wrap: anywhere;
}
.se-gift .inv-gift__account:not(.inv-gift__address) .inv-button--outline {
    align-self: flex-start; padding: .35rem .7rem; font-size: .65rem; letter-spacing: .08em;
    background: rgb(255 255 255 / .14); color: #fff; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .7);
}
/* the gift address: a plain card */
.se-gift .inv-gift__address {
    padding: 1.5rem 1.3rem; border-radius: 16px; text-align: center;
    background: var(--se-card); border: 1px dashed var(--se-line); box-shadow: var(--se-shadow);
}
.se-gift .inv-gift__address .inv-gift__bank { font: 500 .7rem/1.4 var(--se-sans); letter-spacing: .3em; text-transform: uppercase; color: var(--se-gold-ink); }
.se-gift .inv-gift__address .inv-gift__holder { margin: .5rem 0 .2rem; font-weight: 600; font-size: 1.15rem; }
.se-gift .inv-gift__address p:not([class]) { margin-bottom: 1rem; color: var(--se-muted); line-height: 1.6; }

/* forms (rsvp, wishes) */
.se-form { text-align: left; }
.se-form .inv-form { gap: .95rem; }
.se-form .inv-form label, .se-form .inv-form__choices legend { font: 500 .8rem/1.4 var(--se-sans); letter-spacing: .04em; color: var(--se-muted); }
.se-form .inv-form input:not([type=radio]):not([type=checkbox]), .se-form .inv-form select, .se-form .inv-form textarea {
    padding: .75rem .9rem; border-radius: 10px; background: #fff; color: #2a2f28;
    border: 1px solid color-mix(in srgb, var(--inv-primary) 30%, transparent);
    font: 400 1rem/1.4 var(--se-sans); transition: border-color .2s ease, box-shadow .2s ease;
}
.se-form .inv-form input:focus, .se-form .inv-form select:focus, .se-form .inv-form textarea:focus {
    outline: none; border-color: var(--inv-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--inv-primary) 18%, transparent);
}
.se-form .inv-form__choices label {
    padding: .45rem .8rem; border-radius: 999px; background: #fff; color: var(--inv-text);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--inv-primary) 25%, transparent);
}
.se-form .inv-form > .inv-button { width: 100%; margin-top: .2rem; }
.se-form .inv-rsvp__deadline { margin-bottom: .9rem !important; font-style: italic; color: var(--se-muted); text-align: center; }
.se-form .inv-form__notice { font-family: var(--se-sans); font-size: .85rem; color: var(--inv-text); }

/* wishes: three compact cards per page with a sage pager */
.se-form .inv-wishes__list { margin-top: 1.3rem; gap: .55rem; }
.se-form .inv-wishes:not(.inv-wishes--paged) { --inv-wishes-height: 20rem; }
.se-form .inv-wish {
    padding: .65rem .8rem; border-radius: 11px; background: color-mix(in srgb, var(--inv-soft) 85%, #fff);
    border-left: 3px solid var(--inv-leaf);
}
.se-form .inv-wish__name { font-size: .92rem; font-weight: 600; color: var(--inv-primary); }
.se-form .inv-wish__message { font-size: .88rem; line-height: 1.45; }
.se-form .inv-wish__time { font: 400 .7rem/1.3 var(--se-sans); color: var(--se-muted); opacity: 1; }
.se-form .inv-wishes__empty { font-style: italic; text-align: center; }
.se-form .inv-wishes__pager { gap: .9rem; margin-top: 1rem; }
.se-form .inv-wishes__page-button {
    display: grid; place-items: center; width: 2.2rem; height: 2.2rem; padding: 0 0 .12rem;
    font: 400 1.3rem/1 var(--se-serif); color: var(--inv-primary);
    background: color-mix(in srgb, var(--inv-soft) 70%, #fff); border: 1px solid var(--se-line);
    transition: background .2s ease, color .2s ease;
}
.se-form .inv-wishes__page-button:not(:disabled):hover { background: var(--inv-primary); color: #fff; }
.se-form .inv-wishes__page { font: 500 .74rem/1 var(--se-sans); letter-spacing: .18em; color: var(--se-muted); opacity: 1; }

/* closing */
.se-closing { padding-top: 5rem; padding-bottom: 8.5rem; }
.se-closing__photo { position: relative; width: 12rem; aspect-ratio: 4 / 5; margin: 0 auto 1.8rem !important; border-radius: 50%; }
.se-closing__photo img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.se-closing__photo::before { content: ''; position: absolute; inset: -9px; border-radius: 50%; border: 1px solid var(--se-line); }
.se-closing__message { max-width: 23rem; margin: .8rem auto 1.1rem !important; color: var(--se-muted); line-height: 1.75; }
.se-closing__sign { font-style: italic; font-size: 1.05rem; }
.se-closing__names { margin: .2rem 0 .8rem !important; font: 400 2.9rem/1.2 var(--se-script); color: var(--inv-primary); }
.se-closing__names span { color: var(--se-gold-ink); font-size: .78em; }

/* ---------- shared bits: check-in, branding, menu, music ---------- */

.se-page .inv-checkin { position: relative; margin: 2rem auto; color: #1f241d; }
.se-page .inv-branding { padding: 1.4rem 1rem 1rem; font: 400 .72rem/1.4 var(--se-sans); letter-spacing: .04em; color: var(--se-muted); opacity: 1; }
.se-body:has(.inv-nav) .inv-branding { padding-bottom: 1rem; }

.se-body .inv-nav {
    --inv-nav-bg: color-mix(in srgb, var(--inv-background) 90%, transparent);
    --inv-nav-text: color-mix(in srgb, var(--inv-text) 78%, transparent);
    --inv-nav-active: var(--inv-primary);
    max-width: min(calc(100vw - 1.5rem), calc(var(--se-column) - 1.5rem));
    border-color: color-mix(in srgb, var(--inv-accent) 45%, transparent);
    font-family: var(--se-sans);
}

.se-body .inv-music__space { display: none; }
.se-body .inv-music { right: max(1rem, calc(50vw - var(--se-column) / 2 + 1rem)); }
.se-body .inv-music__button { background: var(--inv-primary); box-shadow: 0 0 0 2px var(--inv-background), 0 0 0 3px var(--se-line), 0 8px 18px -8px rgb(0 0 0 / .4); }

/* ---------- motion ---------- */

/* the leafy divider under each heading draws out from the centre once the heading is in view */
html.inv-anim .se-head .se-divider { transform: scaleX(.15); opacity: 0; transition: transform 1.1s .4s cubic-bezier(.2, .7, .2, 1), opacity .8s .4s ease; }
html.inv-anim .se-head.is-revealed .se-divider { transform: none; opacity: 1; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .se-sway, html.inv-anim .se-sway { animation: none !important; }
    .se-cover--leave { transition: opacity .3s ease; }
    .se-cover--gone { transform: translateX(-50%); }
}

/* ---------- fit: the whole cover (names, date, guest, button) fits one phone screen ---------- */
.se-cover__inner {
    min-height: 100svh; justify-content: space-evenly;
    padding: calc(clamp(1.9rem, 5svh, 2.6rem) + env(safe-area-inset-top)) 2rem calc(clamp(1.9rem, 4.5svh, 2.4rem) + env(safe-area-inset-bottom));
}
.se-cover__photo { height: clamp(130px, 28svh, 270px); }
.se-cover__quote { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.se-cover .se-corner:not([class$="-sm"]) { width: clamp(110px, 36%, 170px); }
@media (max-height: 760px) {
    .se-cover .se-corner:not([class$="-sm"]) { width: clamp(110px, 34%, 160px); }
    .se-cover .se-corner[class$="-sm"] { width: clamp(64px, 20%, 96px); }
    .se-mono { width: 3rem; height: 3rem; margin-bottom: .5rem !important; font-size: 1.05rem; }
    .se-cover__title { margin-bottom: .7rem !important; }
    .se-cover__photo { height: clamp(130px, 25svh, 270px); }
    .se-cover__names { margin: .45rem 0 .2rem !important; font-size: clamp(2.3rem, 10.5vw, 2.9rem); }
    .se-cover__quote { -webkit-line-clamp: 6; margin-top: .5rem !important; font-size: .94rem; line-height: 1.45; }
    .se-cover__guest { margin: .8rem 0; padding: .6rem 1.2rem .6rem; }
    .se-cover__guestname { font-size: 1.2rem; }
}
@media (max-height: 660px) {
    .se-cover .se-corner:not([class$="-sm"]) { width: clamp(96px, 29%, 140px); }
    .se-mono { width: 2.6rem; height: 2.6rem; margin-bottom: .35rem !important; font-size: .95rem; }
    .se-cover__photo { height: clamp(120px, 22svh, 270px); }
    .se-cover__names { font-size: clamp(2.1rem, 9.5vw, 2.6rem); }
    .se-cover__quote { -webkit-line-clamp: 6; font-size: .88rem; }
    .se-cover__guest { margin: .6rem 0 .7rem; }
    .se-cover__sorry { font-size: .7rem; }
}

/* ---------- fit: the page ends close under the names; the closing branches shrink to the corners ---------- */
.se-closing { padding-bottom: 1.6rem; }
.se-closing .se-corner { width: clamp(84px, 25%, 112px); }
