/*
 * Template "Garden Sketch" (Pernikahan): an English garden in ink & watercolor — a sketchbook, but rich.
 * Hero: a trellis arch in ink with a watercolor wash (sections/_arch) holding the photo, real Redouté climbing roses
 * (img/) growing up it. Deep garden green sections alternate with warm sketch-paper pages.
 * Fonts: Cormorant Garamond (headings + body), Mrs Saint Delafield (names), Caveat (small margin notes).
 * Colors come from the color variant: --inv-primary (garden green), --inv-deep (darkest green), --inv-accent (rose /
 * terracotta), --inv-highlight (terracotta for text on paper), --inv-background (sketch paper), --inv-paper (cards),
 * --inv-text, --inv-wash (rose watercolor), --inv-leaf (leaf watercolor).
 * Every class of this template starts with "gs-".
 */

:root {
    --inv-primary: #24533b;
    --inv-accent: #c65d4f;
    --inv-background: #f2e8d5;
    --inv-text: #1d2a21;
    --inv-wash: #e9b2a3;
    --inv-leaf: #9bb68c;
    --inv-paper: #fbf6ec;
    --inv-deep: #132e21;
    --inv-highlight: #a9412f;
    --inv-radius: 14px;

    --gs-serif: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
    --gs-hand-font: 'Caveat', 'Segoe Print', 'Comic Sans MS', cursive;
    --gs-script: 'Mrs Saint Delafield', 'Brush Script MT', cursive;
    --gs-mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, 'Liberation Mono', monospace;

    /* derived tones: pen for the line art, muted body text, hairlines, text on the deep green */
    --gs-pen: color-mix(in srgb, var(--inv-primary) 88%, var(--inv-text));
    --gs-ink: var(--inv-highlight);
    --gs-muted: color-mix(in srgb, var(--inv-text) 86%, var(--inv-background));
    --gs-line: color-mix(in srgb, var(--gs-pen) 45%, transparent);
    --gs-cream: color-mix(in srgb, var(--inv-paper) 94%, var(--inv-accent));
    --gs-cream-muted: color-mix(in srgb, var(--inv-paper) 84%, var(--inv-deep));
    --gs-rose-hi: color-mix(in srgb, var(--inv-accent) 52%, #fff);
    --gs-shadow: 0 18px 36px -24px color-mix(in srgb, var(--inv-deep) 75%, transparent);
    --gs-deep-grad:
        radial-gradient(90% 50% at 85% 0%, color-mix(in srgb, var(--inv-accent) 20%, transparent), transparent 70%),
        linear-gradient(180deg, var(--inv-primary), var(--inv-deep));
    /* sketch-paper grain */
    --gs-grain:
        radial-gradient(color-mix(in srgb, var(--inv-text) 7%, transparent) .6px, transparent .9px) 0 0 / 7px 7px,
        radial-gradient(color-mix(in srgb, var(--inv-highlight) 8%, transparent) .7px, transparent 1px) 3px 5px / 13px 11px;
    /* cloth weave of the sketchbook cover */
    --gs-cloth:
        repeating-linear-gradient(0deg, rgb(255 255 255 / .025) 0 1px, transparent 1px 3px),
        repeating-linear-gradient(90deg, rgb(0 0 0 / .05) 0 1px, transparent 1px 3px);
    --gs-column: 460px;

    /* the classic hand-drawn border radius (and its mirror for the second pen stroke) */
    --gs-wobble: 255px 15px 225px 15px / 15px 225px 15px 255px;
    --gs-wobble-2: 15px 225px 15px 255px / 255px 15px 225px 15px;
}

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

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

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

/* ---------- line art (sprite classes) ---------- */

.gs-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.gs-l {
    fill: none; stroke: var(--gs-pen); stroke-width: 1.15; stroke-linecap: round; stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}
.gs-thin { stroke-width: .8; }
.gs-wl { fill: var(--inv-leaf); opacity: .8; }
.gs-wf { fill: var(--inv-wash); opacity: .85; }
.gs-ww { fill: color-mix(in srgb, var(--inv-accent) 22%, var(--inv-paper)); opacity: .7; }
.gs-heart { fill: var(--inv-accent); }
.gs-dot { fill: var(--gs-pen); }

/* ---------- column and wide-screen backdrop ---------- */

.gs-backdrop { display: none; }
@media (max-width: 559px) { :root { --gs-column: 100vw; } }

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

@media (min-width: 560px) {
    .gs-backdrop {
        display: block; position: fixed; inset: 0; z-index: 0; overflow: hidden;
        background: var(--x-photo, none) center / cover no-repeat, var(--inv-deep);
        filter: blur(14px) saturate(.85); transform: scale(1.08);
    }
    .gs-backdrop::after {
        content: ''; position: absolute; inset: 0;
        background: linear-gradient(180deg, color-mix(in srgb, var(--inv-primary) 80%, transparent), color-mix(in srgb, var(--inv-deep) 92%, transparent));
    }
    .gs-page { box-shadow: 0 30px 80px -20px rgb(0 0 0 / .6); }
}

.gs-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-deep); color: var(--inv-paper);
    font: 600 .72rem/1.3 var(--gs-serif); letter-spacing: .02em; white-space: nowrap; opacity: .92;
}

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

.gs-label {
    font-family: var(--gs-serif);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--inv-highlight);
}

.gs-note {
    display: inline-block;
    font: 600 1.3rem/1.2 var(--gs-hand-font);
    color: var(--inv-highlight);
    transform: rotate(-2deg);
}

.gs-head { margin-bottom: 2rem; }
.gs-title {
    margin: .35rem 0 .3rem !important;
    font-family: var(--gs-serif);
    font-size: 2.45rem;
    font-weight: 500;
    line-height: 1.12;
    color: var(--inv-primary);
}
.gs-title em { font-style: italic; font-weight: 500; color: var(--inv-highlight); }
.gs-divider { display: block; width: 11rem; height: auto; margin: 0 auto; overflow: visible; }
.gs-head .gs-note { margin-top: .4rem; }
/* the heading sits on a soft rose wash */
.gs-head { position: relative; }
.gs-head::before {
    content: ''; position: absolute; z-index: -1; left: 50%; top: 42%; width: 15rem; height: 4.2rem;
    transform: translate(-50%, -50%) rotate(-3deg);
    border-radius: 46% 54% 52% 48% / 60% 50% 50% 40%;
    background: radial-gradient(closest-side, color-mix(in srgb, var(--inv-wash) 55%, transparent), transparent);
}

.gs-lead { max-width: 24rem; margin: 0 auto !important; color: var(--gs-muted); line-height: 1.75; }
.gs-intro { max-width: 22rem; margin: -.6rem auto 1.6rem !important; color: var(--gs-muted); line-height: 1.6; }

/* hand-drawn box: a wobbly pen border plus a second, slightly offset stroke */
.gs-hand { position: relative; border: 1.5px solid var(--gs-pen); border-radius: var(--gs-wobble); }
.gs-hand::after {
    content: ''; position: absolute; inset: -5px -3px -3px -6px; pointer-events: none;
    border: 1px solid var(--gs-line); border-radius: var(--gs-wobble-2); transform: rotate(-.7deg);
}

.gs-card { padding: 1.6rem 1.2rem; background: var(--inv-paper); color: var(--inv-text); box-shadow: var(--gs-shadow); }

.gs-tape {
    position: absolute; top: -.75rem; left: 50%; z-index: 2; width: 4.8rem; height: 1.45rem;
    transform: translateX(-50%) rotate(-3deg);
    background: color-mix(in srgb, var(--inv-wash) 78%, transparent);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gs-pen) 14%, transparent);
    clip-path: polygon(3% 0, 97% 4%, 100% 50%, 96% 100%, 2% 96%, 0 50%);
}

.gs-pill {
    display: inline-flex; align-items: center; gap: .45rem; margin-top: .8rem;
    padding: .4rem 1rem .45rem; border-radius: var(--gs-wobble);
    color: var(--inv-primary); text-decoration: none; border: 1.5px solid var(--gs-pen);
    font: 600 .98rem/1 var(--gs-serif);
    transition: background .25s ease, color .25s ease;
}
.gs-pill:hover { background: var(--inv-primary); color: var(--inv-paper); }

/* a Redouté rose plate (sections/_flora): positioned per use, sways gently */
.gs-flora { position: absolute; z-index: 0; display: block; pointer-events: none; transform-origin: 50% 100%; }
.gs-flora img { display: block; width: 100%; height: auto; filter: drop-shadow(0 8px 14px rgb(0 0 0 / .18)); }
html.inv-anim .gs-flora { animation: gs-sway 9s ease-in-out infinite alternate; }
html.inv-anim .gs-flora:nth-of-type(2n) { animation-duration: 11s; animation-delay: -4s; }
@keyframes gs-sway {
    from { rotate: -1.4deg; }
    to { rotate: 1.6deg; }
}

/* a client photo behind a section, under a green gradient (or a faint photo under paper) */
.gs-bgphoto { position: absolute !important; inset: 0; z-index: 0 !important; overflow: hidden; background: var(--gs-deep-grad); }
.gs-bgphoto img { position: absolute; left: 0; top: -40px; width: 100%; height: calc(100% + 80px); max-width: none; object-fit: cover; opacity: .55; filter: saturate(.8); }
.gs-bgphoto::after {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(80% 40% at 50% 0%, color-mix(in srgb, var(--inv-accent) 18%, transparent), transparent 70%),
        linear-gradient(180deg, color-mix(in srgb, var(--inv-deep) 92%, transparent), color-mix(in srgb, var(--inv-primary) 78%, transparent) 45%, color-mix(in srgb, var(--inv-deep) 96%, transparent));
}
.gs-bgphoto--paper { background: var(--gs-grain), var(--inv-background); }
.gs-bgphoto--paper img { opacity: .45; filter: saturate(.7) sepia(.2) blur(1px); }
.gs-bgphoto--paper::after {
    background:
        radial-gradient(60% 26% at 50% 40%, color-mix(in srgb, var(--inv-background) 82%, transparent), transparent 100%),
        linear-gradient(180deg, var(--inv-background) 0%, color-mix(in srgb, var(--inv-background) 55%, transparent) 30%, color-mix(in srgb, var(--inv-wash) 22%, transparent) 62%, color-mix(in srgb, var(--inv-background) 90%, transparent) 100%);
}

/* ---------- the trellis arch (sections/_arch) ---------- */

.gs-arch { position: relative; width: 16rem; aspect-ratio: 300 / 400; }
/* the photo in the opening: x 76–224, y 76–384 of 300x400, round top */
.gs-arch__photo {
    position: absolute; left: 25.333%; top: 19%; width: 49.333%; height: 77%;
    display: block; object-fit: cover; object-position: center 30%; border-radius: 999px 999px 2px 2px;
    box-shadow: inset 0 0 0 1px rgb(0 0 0 / .1);
}
.gs-arch__photo--empty {
    display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: .4rem; overflow: hidden;
    background:
        radial-gradient(ellipse 70% 40% at 40% 30%, color-mix(in srgb, var(--inv-wash) 85%, transparent), transparent 70%),
        radial-gradient(ellipse 80% 45% at 60% 85%, color-mix(in srgb, var(--inv-leaf) 90%, transparent), transparent 70%),
        var(--inv-paper);
    font: 400 2.6rem/1 var(--gs-script); color: var(--inv-primary);
}
.gs-arch__photo--empty i { font: italic 500 .5em var(--gs-serif); color: var(--inv-highlight); margin: 0 .1em; }
.gs-arch__photo--empty img { display: block; width: 86%; height: auto; margin-bottom: -8%; filter: drop-shadow(0 6px 10px rgb(0 0 0 / .18)); }
.gs-arch__art { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.gs-arch__wash { opacity: .9; }
.gs-arch__ink path { fill: none; stroke: var(--gs-pen); stroke-width: 1.15; stroke-linecap: round; stroke-linejoin: round; }
.gs-arch__ink .gs-arch__fine { stroke-width: .8; opacity: .85; }
.gs-arch__seal { fill: var(--inv-paper); stroke: var(--gs-pen); stroke-width: 1.2; }
.gs-arch__seal-ring { fill: none; stroke: var(--inv-accent); stroke-width: .8; stroke-dasharray: 2 2.4; }
.gs-arch__mono {
    position: absolute; z-index: 2; left: 50%; top: 6%; transform: translate(-50%, -50%);
    font: 600 .95rem/1 var(--gs-serif); letter-spacing: .02em; color: var(--inv-primary); white-space: nowrap;
}
.gs-arch__mono span + span::before { content: '·'; margin: 0 .12em; color: var(--inv-highlight); }
.gs-arch__rose { position: absolute; z-index: 3; display: block; pointer-events: none; transform-origin: 50% 100%; }
.gs-arch__rose img { display: block; width: 100%; height: auto; filter: drop-shadow(0 6px 10px rgb(0 0 0 / .28)); }
.gs-arch__rose--left { left: -17%; bottom: -1%; width: 50%; }
.gs-arch__rose--right { right: -15%; bottom: 1%; width: 44%; }
.gs-arch__rose--right img { transform: scaleX(-1); }
.gs-arch__rose--crown { right: -19%; top: -7%; width: 50%; transform-origin: 100% 0; rotate: 6deg; }
html.inv-anim .gs-arch__rose--left { animation: gs-sway 8s ease-in-out infinite alternate; }
html.inv-anim .gs-arch__rose--right { animation: gs-sway 9.5s ease-in-out -3s infinite alternate; }
html.inv-anim .gs-arch__rose--crown { animation: gs-swing 10s ease-in-out -2s infinite alternate; }
@keyframes gs-swing {
    from { rotate: 4.5deg; }
    to { rotate: 7.5deg; }
}

/* the ink draws itself once (cover), then the washes and roses fade in */
html.inv-anim .gs-arch--draw .gs-draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: gs-draw 1.7s cubic-bezier(.45, 0, .2, 1) .35s forwards; }
html.inv-anim .gs-arch--draw .gs-arch__wash { opacity: 0; animation: gs-fade 1s ease 1s forwards; }
html.inv-anim .gs-arch--draw .gs-arch__photo { opacity: 0; transform: scale(1.04); animation: gs-photo 1.2s ease .5s forwards; }
html.inv-anim .gs-arch--draw .gs-arch__rose img { opacity: 0; animation: gs-fade .9s ease 1.3s forwards; }
html.inv-anim .gs-arch--draw .gs-arch__rose--right img { animation-delay: 1.5s; }
html.inv-anim .gs-arch--draw .gs-arch__rose--crown img { animation-delay: 1.65s; }
@keyframes gs-draw { to { stroke-dashoffset: 0; } }
@keyframes gs-fade { to { opacity: .92; } }
@keyframes gs-photo { to { opacity: 1; transform: none; } }

/* ---------- cover: the sketchbook's green cloth cover ---------- */

.gs-cover {
    --gs-pen: color-mix(in srgb, var(--inv-paper) 82%, var(--inv-accent));
    --gs-line: color-mix(in srgb, var(--inv-paper) 35%, transparent);
    position: fixed; top: 0; bottom: 0; left: 50%; z-index: 30;
    width: min(100%, var(--gs-column));
    transform: translateX(-50%);
    transform-origin: 50% 0;
    overflow-x: hidden; overflow-y: auto;
    background:
        radial-gradient(70% 40% at 50% 34%, color-mix(in srgb, var(--inv-leaf) 26%, transparent), transparent 72%),
        radial-gradient(90% 30% at 50% 100%, color-mix(in srgb, var(--inv-accent) 22%, transparent), transparent 70%),
        var(--gs-cloth),
        linear-gradient(180deg, var(--inv-primary), var(--inv-deep) 85%);
    color: var(--gs-cream);
}
.gs-cover .gs-arch__seal { fill: var(--inv-deep); }
.gs-cover .gs-arch__mono { color: var(--gs-cream); }
.gs-cover .gs-arch__mono span + span::before { color: var(--gs-rose-hi); }
.gs-cover .gs-arch .gs-wl { fill: color-mix(in srgb, var(--inv-leaf) 70%, var(--inv-primary)); opacity: .55; }
.gs-cover .gs-arch .gs-wf { opacity: .5; }
.gs-cover--leave { transition: opacity .8s ease, transform .9s cubic-bezier(.6, 0, .3, 1); }
.gs-cover--gone { opacity: 0; transform: translateX(-50%) perspective(1400px) rotateX(75deg); }

/* spiral binding along the top edge */
.gs-spiral {
    position: absolute; top: 0; left: 1.4rem; right: 1.4rem; z-index: 3; height: 22px; pointer-events: none; opacity: .75;
    background:
        radial-gradient(circle at 50% 16px, rgb(0 0 0 / .5) 0 2.4px, transparent 2.9px) 0 0 / 18px 22px repeat-x,
        radial-gradient(4.5px 10px at 50% 6px, transparent 58%, color-mix(in srgb, var(--inv-paper) 80%, #a8a8a8) 64% 82%, transparent 88%) 0 0 / 18px 22px repeat-x;
}

.gs-cover__inner {
    position: relative; z-index: 2;
    display: flex; flex-direction: column; align-items: center; justify-content: space-evenly;
    min-height: 100vh; min-height: 100svh; padding: 2.6rem 1.6rem 1.8rem; text-align: center;
}
.gs-cover .gs-label { color: var(--gs-rose-hi); }
.gs-cover__title { margin-bottom: .6rem !important; }
.gs-cover__arch { --enter-delay: .3s; width: min(72vw, 290px); margin-bottom: .3rem; }

.gs-cover__names {
    margin: .2rem 0 0 !important;
    font-family: var(--gs-script); font-weight: 400;
    font-size: clamp(2.7rem, 12vw, 3.3rem); line-height: 1.1;
    color: var(--gs-cream);
    text-shadow: 0 2px 16px rgb(0 0 0 / .35);
}
.gs-amp { font-family: var(--gs-serif); font-style: italic; font-size: .48em; color: var(--gs-rose-hi); }

.gs-cover__date { font: 700 .76rem/1.4 var(--gs-serif); letter-spacing: .2em; text-transform: uppercase; color: var(--gs-cream); }
.gs-cover__quote { max-width: 20rem; margin-top: .4rem !important; font-style: italic; font-size: .9rem; line-height: 1.4; color: var(--gs-cream-muted); }

/* the guest's name on a slip of sketch paper held by tape */
.gs-cover__guest {
    position: relative; width: min(100%, 18.5rem); margin: .85rem 0 .9rem;
    padding: .7rem 1.2rem .5rem; border-radius: 3px;
    background: var(--gs-grain), var(--inv-paper); color: var(--inv-text);
    transform: rotate(-1deg);
    box-shadow: 0 14px 26px -14px rgb(0 0 0 / .6);
}
.gs-cover__guest .gs-tape { top: -.6rem; width: 4.2rem; height: 1.2rem; }
.gs-cover__to { font: 700 .66rem/1.4 var(--gs-serif); letter-spacing: .2em; text-transform: uppercase; color: var(--inv-highlight); }
.gs-cover__guestname { display: block; margin: .1rem 0; font: 700 1.3rem/1.2 var(--gs-serif); color: var(--inv-text); overflow-wrap: anywhere; }
.gs-cover__sorry { font-style: italic; font-size: .74rem; color: var(--gs-muted); }

.gs-open { gap: .55rem; }

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

.gs-body .inv-button {
    padding: .62rem 1.4rem .66rem;
    border: 0; border-radius: 999px;
    font: 700 .82rem/1.15 var(--gs-serif); letter-spacing: .16em; text-transform: uppercase;
    background: linear-gradient(135deg, color-mix(in srgb, var(--inv-accent) 85%, #fff), var(--inv-highlight));
    color: #fff;
    box-shadow: 0 10px 22px -12px color-mix(in srgb, var(--inv-highlight) 90%, #000), inset 0 1px 0 rgb(255 255 255 / .3);
    transition: filter .25s ease, transform .25s ease;
}
.gs-body .inv-button:hover { filter: brightness(1.06); transform: translateY(-1px); }
.gs-body .inv-button--outline {
    background: var(--inv-paper); color: var(--inv-primary);
    box-shadow: inset 0 0 0 1.5px var(--inv-primary);
}
.gs-section--deep .inv-button--outline {
    background: rgb(255 255 255 / .06); color: var(--gs-cream);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gs-cream) 70%, transparent);
}

/* ---------- hero (first screen after opening): a sketchbook page ---------- */

.gs-hero {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 3rem 1.6rem 3.2rem; text-align: center; overflow: hidden;
}
.gs-hero > * { position: relative; z-index: 1; }
.gs-hero__wash {
    position: absolute !important; z-index: 0 !important; inset: 0; pointer-events: none;
    background:
        radial-gradient(45% 28% at 26% 36%, color-mix(in srgb, var(--inv-leaf) 45%, transparent), transparent 70%),
        radial-gradient(40% 26% at 78% 58%, color-mix(in srgb, var(--inv-wash) 55%, transparent), transparent 70%);
}
.gs-hero .gs-label { margin-bottom: 1.5rem !important; }

/* photo with a pen border, a second offset stroke and a watercolor wash behind */
.gs-sketchframe { position: relative; width: min(78vw, 19rem); aspect-ratio: 4 / 5; }
.gs-sketchframe > img, .gs-hero__mono {
    position: relative; z-index: 1; display: block; width: 100%; height: 100%; object-fit: cover;
    border: 5px solid #fff; border-radius: 2px; box-shadow: 0 0 0 1.5px var(--gs-pen), var(--gs-shadow);
}
.gs-sketchframe::before {
    content: ''; position: absolute; inset: -11px -8px -9px -12px; z-index: 2; pointer-events: none;
    border: 1px solid var(--gs-pen); border-radius: var(--gs-wobble-2); transform: rotate(1.4deg); opacity: .6;
}
.gs-sketchframe::after {
    content: ''; position: absolute; inset: 18px -22px -20px 20px; z-index: 0;
    border-radius: 42% 58% 46% 54% / 52% 44% 56% 48%;
    background: radial-gradient(ellipse at 60% 60%, color-mix(in srgb, var(--inv-wash) 90%, transparent), color-mix(in srgb, var(--inv-leaf) 70%, transparent) 70%, transparent 75%);
}
.gs-hero__mono {
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(165deg, var(--inv-leaf), var(--inv-wash));
    font: 400 4rem/1 var(--gs-script); color: var(--inv-primary);
}
.gs-hero__mono span + span::before { content: '&'; margin: 0 .15em; font-size: .6em; }
.gs-hero__photo > img { object-position: center 30%; }
.gs-hero__bouquet { z-index: 3; right: -2.6rem; bottom: -3rem; width: 8.6rem; rotate: -8deg; }

.gs-hero__names {
    margin: 2.2rem 0 .1rem !important;
    font-family: var(--gs-script); font-size: clamp(3rem, 13.5vw, 3.6rem); line-height: 1.15; color: var(--inv-primary);
}
.gs-hero__names span { font-family: var(--gs-serif); font-style: italic; font-size: .48em; color: var(--inv-highlight); }
.gs-hero__date { font: 700 .84rem/1.4 var(--gs-serif); letter-spacing: .18em; text-transform: uppercase; color: var(--inv-highlight); }
.gs-hero__note { margin-top: .8rem; color: var(--inv-primary); }

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

.gs-section { position: relative; padding: 4.6rem 1.4rem 4.8rem; text-align: center; overflow: hidden; isolation: isolate; }
.gs-section > :where(:not(.gs-flora, .gs-bgphoto, .gs-closing__photo)) { position: relative; z-index: 1; }
.gs-section--tint { background: var(--gs-grain), color-mix(in srgb, var(--inv-leaf) 22%, var(--inv-background)); }
.gs-section--wash {
    background:
        radial-gradient(ellipse 55% 30% at 8% 18%, color-mix(in srgb, var(--inv-leaf) 34%, transparent), transparent 70%),
        radial-gradient(ellipse 50% 28% at 95% 82%, color-mix(in srgb, var(--inv-wash) 34%, transparent), transparent 70%);
}
.gs-section--tint.gs-section--wash {
    background:
        radial-gradient(ellipse 55% 30% at 8% 18%, color-mix(in srgb, var(--inv-leaf) 34%, transparent), transparent 70%),
        radial-gradient(ellipse 50% 28% at 95% 82%, color-mix(in srgb, var(--inv-wash) 34%, transparent), transparent 70%),
        var(--gs-grain), color-mix(in srgb, var(--inv-leaf) 20%, var(--inv-background));
}

/* the deep garden green pages */
.gs-section--deep, .gs-closing {
    --gs-pen: color-mix(in srgb, var(--inv-paper) 78%, var(--inv-accent));
    --gs-line: color-mix(in srgb, var(--inv-paper) 38%, transparent);
    --gs-muted: var(--gs-cream-muted);
    background: var(--gs-deep-grad);
    color: var(--gs-cream);
}
.gs-section--deep .gs-label, .gs-closing .gs-label { color: var(--gs-rose-hi); }
.gs-section--deep .gs-title, .gs-closing .gs-title { color: var(--gs-cream); }
.gs-section--deep .gs-title em, .gs-closing .gs-title em { color: var(--gs-rose-hi); }
.gs-section--deep .gs-note { color: var(--gs-rose-hi); }
.gs-section--deep .gs-head::before { background: radial-gradient(closest-side, color-mix(in srgb, var(--inv-accent) 30%, transparent), transparent); }
.gs-section--deep .gs-l { stroke: var(--gs-pen); }
.gs-section--deep .gs-wl { opacity: .55; }

/* opening (paper over a faint client photo) */
.gs-opening { padding-top: 4rem; }
.gs-sprig { display: block; width: 7rem; height: auto; margin: 0 auto 1.2rem; overflow: visible; }
.gs-arabic { margin-bottom: 1rem !important; font-family: 'Amiri', serif; font-size: 1.6rem; line-height: 2; color: var(--inv-primary); }
.gs-opening__greeting { margin-bottom: .8rem !important; font-style: italic; font-weight: 600; font-size: 1.35rem; color: var(--inv-primary); }
.gs-opening__message { color: var(--inv-text); }

/* the quote: a deep green arched "garden window" over a client photo, a rambler draping over its corner */
.gs-quote {
    position: relative; margin: 3.6rem .2rem 0 !important; padding: 4.4rem 1.4rem 1.7rem;
    border-radius: 50% 50% 18px 18px / 7.5rem 7.5rem 18px 18px; overflow: visible;
    color: var(--gs-cream); box-shadow: var(--gs-shadow);
}
.gs-quote > .gs-bgphoto { border-radius: inherit; }
.gs-quote::before {
    content: ''; position: absolute; inset: 7px; z-index: 1; pointer-events: none;
    border: 1px solid color-mix(in srgb, var(--gs-cream) 45%, transparent);
    border-radius: 50% 50% 13px 13px / 7.1rem 7.1rem 13px 13px;
}
.gs-quote__body { position: relative; z-index: 2; }
.gs-quote__mark { display: block; height: 2rem; font: 600 3.6rem/1 var(--gs-serif); color: var(--gs-rose-hi); }
.gs-quote blockquote { margin: 0; font-style: italic; font-size: 1.12rem; line-height: 1.7; }
.gs-quote figcaption { margin-top: .9rem; font: 700 .8rem/1.4 var(--gs-serif); letter-spacing: .2em; text-transform: uppercase; color: var(--gs-rose-hi); }
.gs-quote__rose { z-index: 3; right: -1rem; top: -3.4rem; width: 6.4rem; }

/* couple: arched portraits beside the text, alternating sides */
.gs-person { display: grid; grid-template-columns: 46% 1fr; align-items: center; gap: 1.1rem; text-align: left; }
.gs-person--bride { grid-template-columns: 1fr 46%; text-align: right; }
.gs-person--bride .gs-person__photo { order: 2; }
.gs-portrait { position: relative; width: 100%; aspect-ratio: 3 / 4; }
.gs-portrait > img, .gs-portrait__initial {
    position: relative; z-index: 1; display: block; width: 100%; height: 100%; object-fit: cover;
    border-radius: 999px 999px 4px 4px; border: 4px solid #fff;
    box-shadow: 0 0 0 1.5px var(--gs-pen), var(--gs-shadow);
}
.gs-portrait__initial {
    display: grid; place-items: center; background: linear-gradient(165deg, var(--inv-leaf), var(--inv-wash));
    font: 400 4rem/1 var(--gs-script); color: var(--inv-primary);
}
.gs-portrait::before {
    content: ''; position: absolute; inset: -9px -6px -6px -9px; z-index: 2; pointer-events: none;
    border-radius: 999px 999px 6px 6px; border: 1px solid var(--gs-pen); opacity: .55; transform: rotate(-2.5deg);
}
.gs-portrait::after {
    content: ''; position: absolute; inset: 16px -16px -14px 14px; z-index: 0;
    border-radius: 999px 999px 40% 50%;
    background: color-mix(in srgb, var(--inv-leaf) 75%, transparent);
}
.gs-person--bride .gs-portrait::after { inset: 16px 14px -14px -16px; background: color-mix(in srgb, var(--inv-wash) 80%, transparent); }
.gs-person__rose { z-index: 3; left: -2.4rem; bottom: -2.4rem; width: 6.8rem; }
.gs-person--bride .gs-person__rose { left: auto; right: -2.4rem; }
.gs-person--bride .gs-person__rose img { transform: scaleX(-1); }
.gs-person__role { font: 700 .72rem/1.4 var(--gs-serif); letter-spacing: .26em; text-transform: uppercase; color: var(--inv-highlight); }
.gs-person__nick { margin: .05rem 0 .1rem !important; font: 400 3rem/1.15 var(--gs-script); color: var(--inv-primary); }
.gs-person__name { font-size: 1.22rem; font-weight: 700; line-height: 1.25; }
.gs-person__parents { margin-top: .45rem !important; font-size: 1.02rem; color: var(--gs-muted); line-height: 1.45; }
.gs-person__parents strong { color: var(--inv-text); font-weight: 600; }

.gs-couple__and { display: flex; align-items: center; justify-content: center; gap: .4rem; margin: 2.4rem 0 2.2rem; }
.gs-couple__and svg { width: 5.5rem; height: auto; overflow: visible; }
.gs-couple__and .gs-flip { transform: scaleX(-1); }
.gs-couple__and span { font: italic 500 2.8rem/1 var(--gs-serif); color: var(--inv-highlight); }

/* countdown (deep green over a photo) */
.gs-countdown__rose { left: -3.2rem; bottom: -2rem; width: 10rem; opacity: .95; }
.gs-countdown__date {
    display: inline-flex; align-items: center; gap: .5rem; margin: -.6rem 0 1.7rem !important;
    padding: .3rem 1rem .35rem; border-radius: 999px;
    background: rgb(255 255 255 / .07); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gs-rose-hi) 55%, transparent);
    font-size: 1.15rem; font-weight: 600; color: var(--gs-cream);
}
.gs-countdown__date svg, .gs-event svg {
    width: 1.05rem; height: 1.05rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6;
    stroke-linecap: round; stroke-linejoin: round;
}
.gs-countdown .inv-countdown { gap: .55rem; }
.gs-countdown .inv-countdown__item {
    display: grid; place-content: center; width: 4.6rem; height: 5rem; min-width: 0; padding: 0;
    border: 1.5px solid color-mix(in srgb, var(--inv-primary) 60%, transparent); border-radius: var(--gs-wobble);
    background:
        radial-gradient(ellipse 60% 55% at 62% 70%, color-mix(in srgb, var(--inv-leaf) 55%, transparent), transparent 72%),
        var(--gs-grain), var(--inv-paper);
    color: var(--inv-primary);
    box-shadow: 0 14px 22px -14px rgb(0 0 0 / .6);
}
.gs-countdown .inv-countdown__item:nth-child(even) {
    border-radius: var(--gs-wobble-2);
    background:
        radial-gradient(ellipse 60% 55% at 38% 68%, color-mix(in srgb, var(--inv-wash) 70%, transparent), transparent 72%),
        var(--gs-grain), var(--inv-paper);
}
.gs-countdown .inv-countdown__value { font: 700 2.1rem/1 var(--gs-serif); color: var(--inv-highlight); }
.gs-countdown .inv-countdown__label { margin-top: .2rem; font: 700 .68rem/1 var(--gs-serif); letter-spacing: .16em; text-transform: uppercase; color: var(--inv-primary); opacity: 1; }
.gs-countdown .inv-countdown__done { font-style: italic; color: var(--gs-cream); }
.gs-countdown .inv-countdown__actions { margin-top: 1.8rem; gap: .6rem; }
.gs-countdown .inv-countdown__actions .inv-button { padding: .5rem .95rem .52rem; font-size: .7rem; letter-spacing: .12em; }

/* events: rounded hand-inked cards with a deep green header band */
.gs-events__rose { right: -2.6rem; top: -1.6rem; width: 9rem; transform-origin: 100% 0; }
.gs-events__rose img { transform: scaleX(-1); }
.gs-event {
    display: block; max-width: 23rem; margin: 0 auto; overflow: hidden; border-radius: 30px 26px 32px 24px;
    background: var(--inv-paper); box-shadow: 0 0 0 1.5px var(--gs-pen), var(--gs-shadow);
}
.gs-event + .gs-event { margin-top: 1.9rem; }
.gs-event__band {
    --gs-pen: color-mix(in srgb, var(--inv-paper) 75%, transparent);
    position: relative; overflow: hidden; padding: 1.1rem 1.1rem 2.7rem; text-align: left;
    background:
        radial-gradient(ellipse 60% 80% at 100% 100%, color-mix(in srgb, var(--inv-accent) 40%, transparent), transparent 70%),
        var(--gs-cloth),
        linear-gradient(160deg, var(--inv-primary), var(--inv-deep));
    color: var(--gs-cream);
}
.gs-event .gs-event__venue-art { position: absolute; right: -.6rem; bottom: -.4rem; width: 8.4rem; height: auto; opacity: .6; overflow: visible; fill: initial; stroke: initial; }
.gs-event__band .gs-wl { opacity: .35; }
.gs-event__no { position: relative; font: 700 .72rem/1.4 var(--gs-serif); letter-spacing: .26em; text-transform: uppercase; color: var(--gs-rose-hi); }
.gs-event__name { position: relative; margin-top: .15rem !important; font: 500 2.1rem/1.1 var(--gs-serif); color: var(--gs-cream); }
.gs-event__body { position: relative; display: flex; flex-direction: column; align-items: center; padding: 0 1.1rem 1.5rem; }
.gs-event__photo { position: relative; z-index: 2; width: 5.8rem; aspect-ratio: 1; margin: -2.5rem 0 .75rem !important; transform: rotate(3deg); }
.gs-event__photo img {
    display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
    border: 4px solid var(--inv-paper); box-shadow: 0 0 0 1.5px var(--inv-primary), var(--gs-shadow);
}
.gs-event__time {
    display: inline-flex; align-items: center; gap: .45rem;
    font: 700 1.25rem/1.3 var(--gs-serif); color: var(--inv-highlight);
}
.gs-event__date { display: inline-flex; align-items: center; gap: .45rem; margin-top: .1rem !important; font-size: 1.12rem; font-weight: 600; }
.gs-event__place {
    display: grid; justify-items: center; gap: .1rem; width: 100%; margin-top: .9rem;
    padding: .8rem .9rem .85rem; border-radius: 14px;
    background: color-mix(in srgb, var(--inv-leaf) 20%, var(--inv-paper));
}
.gs-event__pin { width: 1.35rem !important; height: 1.35rem !important; margin-bottom: .15rem; color: var(--inv-highlight); }
.gs-event__venue { font-size: 1.22rem; font-weight: 700; line-height: 1.3; color: var(--inv-primary); }
.gs-event__address { color: var(--gs-muted); line-height: 1.5; }
.gs-event__dress {
    display: inline-flex; align-items: center; gap: .45rem; margin-top: .9rem !important;
    padding: .25rem .9rem .3rem; border: 1px dashed var(--gs-pen); border-radius: var(--gs-wobble);
    background: color-mix(in srgb, var(--inv-wash) 30%, transparent);
    font: 600 1.05rem/1.3 var(--gs-serif); color: var(--inv-text);
}
.gs-event__actions {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem;
    width: 100%; margin-top: 1.2rem;
}
.gs-event__actions .gs-event__button:only-child { grid-column: 1 / -1; }
.gs-body .gs-event__button { gap: .4rem; padding: .6rem .4rem .62rem; font-size: .7rem; letter-spacing: .1em; white-space: nowrap; }
.gs-event__button svg { width: 1rem; height: 1rem; }
/* the venue sketch slides in after its card rises */
html.inv-anim .gs-event .gs-event__venue-art { transform: translateX(40%); opacity: 0; transition: transform 1s cubic-bezier(.16, 1, .3, 1) .4s, opacity .8s ease .4s; }
html.inv-anim .gs-event.is-revealed .gs-event__venue-art, html.inv-anim .is-revealed .gs-event .gs-event__venue-art { transform: none; opacity: .6; }

/* love story (deep green, compact zig-zag on a dashed cream line) */
.gs-story { padding-bottom: 7.4rem; }
.gs-story__rose { right: -2.2rem; bottom: -3.4rem; width: 8.4rem; }
.gs-story__rose img { transform: scaleX(-1); }
.gs-moments { position: relative; margin: 0; padding: .2rem 0; list-style: none; }
.gs-moments::before { content: ''; position: absolute; top: .6rem; bottom: .6rem; left: 50%; border-left: 1.5px dashed var(--gs-line); }
.gs-moment { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 2rem minmax(0, 1fr); column-gap: .7rem; align-items: start; }
.gs-moment > * { grid-row: 1; }
.gs-moment + .gs-moment { margin-top: 1.9rem; }
.gs-moment__dot {
    grid-column: 2; position: relative; z-index: 2; display: grid; place-items: center;
    width: 2rem; height: 2rem; border-radius: 48% 52% 50% 50% / 52% 48% 52% 48%;
    background: var(--inv-accent); border: 1.5px solid var(--gs-cream); color: #fff;
    font: 700 1rem/1 var(--gs-serif);
}
html.inv-anim .gs-moment__dot { transform: scale(0) rotate(-30deg); transition: transform .6s cubic-bezier(.34, 1.56, .64, 1) .45s; }
html.inv-anim .is-revealed .gs-moment__dot, html.inv-anim .gs-moments.is-revealed .gs-moment__dot { transform: none; }
.gs-moment--left .gs-moment__text { grid-column: 1; text-align: right; }
.gs-moment--left .gs-moment__side { grid-column: 3; align-items: flex-start; text-align: left; }
.gs-moment--right .gs-moment__text { grid-column: 3; text-align: left; }
.gs-moment--right .gs-moment__side { grid-column: 1; align-items: flex-end; text-align: right; }
.gs-moment__title { padding-top: .1rem; font-size: 1.25rem; font-weight: 700; line-height: 1.25; color: var(--gs-cream); overflow-wrap: anywhere; }
.gs-moment__rule { display: block; width: 3.4rem; margin: .35rem 0; border-top: 2px dotted var(--gs-rose-hi); opacity: .8; }
.gs-moment--left .gs-moment__rule { margin-left: auto; }
.gs-moment__story { color: var(--gs-cream-muted); font-size: 1rem; line-height: 1.45; overflow-wrap: anywhere; }
.gs-moment__side { display: flex; flex-direction: column; gap: .5rem; }
.gs-moment__date { font: 700 1.35rem/1.15 var(--gs-hand-font); color: var(--gs-rose-hi); overflow-wrap: anywhere; }
.gs-moment__photo { position: relative; width: min(100%, 6rem); transform: rotate(-3deg); }
.gs-moment--right .gs-moment__photo { transform: rotate(3deg); }
.gs-moment__photo .gs-tape { top: auto; bottom: -.35rem; width: 3.4rem; height: 1.1rem; }
.gs-moment__photo img {
    display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%;
    border: 4px solid var(--inv-paper); box-shadow: 0 10px 20px -12px rgb(0 0 0 / .7);
}
.gs-body .gs-moment__sketch { position: relative; width: 5.2rem; animation: none; }

/* gallery: photos pinned in the sketchbook, the first under an arched top */
.gs-gallery__rose { left: -2.8rem; top: -1rem; width: 8.6rem; rotate: 180deg; transform-origin: 50% 50%; }
html.inv-anim .gs-gallery__rose { animation: none; }
.gs-gallery .inv-gallery { gap: .65rem; }
.gs-gallery .inv-gallery__item {
    border-radius: 3px; border: 4px solid #fff;
    box-shadow: 0 0 0 1px var(--gs-line), 0 12px 22px -16px rgb(0 0 0 / .55);
}
.gs-gallery .inv-gallery__item:first-child { grid-column: span 2; aspect-ratio: 4 / 3.4; border-radius: 50% 50% 4px 4px / 9rem 9rem 4px 4px; }
.gs-gallery .inv-gallery__item:nth-child(n + 2):last-child:nth-child(even) { grid-column: span 2; aspect-ratio: 16 / 10; }

/* live streaming */
.gs-live__icon { display: block; width: 3.2rem; height: 3.2rem; margin: 0 auto .5rem; }
.gs-live__icon svg { width: 100%; height: 100%; fill: color-mix(in srgb, var(--inv-leaf) 60%, transparent); stroke: var(--gs-pen); stroke-width: 1.3; stroke-linejoin: round; }
.gs-live__platform { font: 500 2rem/1.2 var(--gs-serif); color: var(--inv-primary); }
.gs-live__text { margin: .3rem 0 .6rem !important; color: var(--gs-muted); line-height: 1.55; }
.gs-live__note { margin-bottom: 1.1rem !important; font: 600 1.25rem/1.3 var(--gs-hand-font); color: var(--inv-highlight); }

/* gift (deep green): sketch-paper bank cards, two per row (an odd last card spans both) */
.gs-gift__rose { left: -3rem; bottom: -2.4rem; width: 9rem; }
.gs-gift .inv-gift { display: grid; gap: 1.1rem; }
.gs-gift .inv-gift__accounts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.gs-gift .inv-gift__accounts > .inv-gift__account:last-child:nth-child(odd) { grid-column: 1 / -1; }
.gs-gift .inv-gift__account + .inv-gift__account { margin-top: 0; }
.gs-gift .inv-gift__account:not(.inv-gift__address) {
    position: relative; overflow: hidden; min-width: 0; min-height: 9.6rem;
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 3rem .8rem .8rem; border-radius: 14px; text-align: left; color: var(--inv-text);
    background:
        radial-gradient(ellipse 60% 70% at 108% -10%, color-mix(in srgb, var(--inv-wash) 70%, transparent), transparent 70%),
        radial-gradient(ellipse 50% 60% at -12% 118%, color-mix(in srgb, var(--inv-leaf) 45%, transparent), transparent 70%),
        var(--gs-grain), var(--inv-paper);
    box-shadow: 0 18px 30px -18px rgb(0 0 0 / .7);
    --gs-muted: color-mix(in srgb, var(--inv-text) 80%, var(--inv-paper));
}
/* the chip */
.gs-gift .inv-gift__account:not(.inv-gift__address)::before {
    content: ''; position: absolute; top: .85rem; left: .8rem; width: 2.2rem; height: 1.65rem; 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, var(--gs-rose-hi), var(--inv-accent) 55%, var(--inv-highlight));
    box-shadow: inset 0 0 0 1px rgb(0 0 0 / .15);
}
/* a pen double line as a watermark */
.gs-gift .inv-gift__account:not(.inv-gift__address)::after {
    content: ''; position: absolute; right: -1.6rem; bottom: -1.8rem; width: 6.5rem; height: 6rem; pointer-events: none;
    border: 1px solid color-mix(in srgb, var(--inv-primary) 35%, transparent); border-radius: var(--gs-wobble);
    box-shadow: 4px -3px 0 -1px color-mix(in srgb, var(--inv-primary) 18%, transparent);
    transform: rotate(-8deg);
}
.gs-gift .inv-gift__account > * { position: relative; z-index: 1; }
.gs-gift .inv-gift__account:not(.inv-gift__address) .inv-gift__bank {
    position: absolute; top: .95rem; right: .7rem; left: 3.3rem; margin: 0; text-align: right;
    font: 700 .74rem/1.5rem var(--gs-serif); letter-spacing: .08em; text-transform: uppercase; color: var(--inv-primary);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.gs-gift .inv-gift__logo { height: 1.5rem; padding: .18rem .45rem; border-radius: .35rem; }
.gs-gift .inv-gift__logo img { max-width: 4.6rem; }
.gs-gift .inv-gift__number { margin: 0 0 .25rem; font: 600 .95rem/1.3 var(--gs-mono); letter-spacing: .04em; color: var(--inv-text); overflow-wrap: anywhere; }
.gs-gift .inv-gift__account:not(.inv-gift__address) .inv-gift__holder {
    margin: 0 0 .65rem; font: 700 .66rem/1.4 var(--gs-serif); letter-spacing: .12em; text-transform: uppercase; color: var(--gs-muted);
    overflow-wrap: anywhere;
}
.gs-gift .inv-gift__account:not(.inv-gift__address) .inv-button--outline {
    align-self: flex-start; padding: .32rem .75rem .34rem; font-size: .64rem;
    background: transparent; color: var(--inv-primary); box-shadow: inset 0 0 0 1.3px var(--inv-primary);
}
/* the gift address: a hand-drawn paper card */
.gs-gift .inv-gift__address {
    padding: 1.5rem 1.3rem; text-align: center; color: var(--inv-text);
    background: var(--gs-grain), var(--inv-paper); border-radius: 14px;
    box-shadow: 0 18px 30px -18px rgb(0 0 0 / .7);
}
.gs-gift .inv-gift__address .inv-gift__bank { font: 700 .76rem/1.4 var(--gs-serif); letter-spacing: .28em; text-transform: uppercase; color: var(--inv-highlight); }
.gs-gift .inv-gift__address .inv-gift__holder { margin: .5rem 0 .2rem; font-weight: 700; font-size: 1.2rem; color: var(--inv-primary); }
.gs-gift .inv-gift__address p:not([class]) { margin-bottom: 1rem; color: var(--inv-text); line-height: 1.55; }
.gs-gift .inv-gift__address .inv-button--outline { background: transparent; color: var(--inv-primary); box-shadow: inset 0 0 0 1.5px var(--inv-primary); }

/* forms (rsvp, wishes) */
.gs-rsvp__rose { right: -3.8rem; top: -2.6rem; width: 8.4rem; }
.gs-form {
    --gs-pen: color-mix(in srgb, var(--inv-primary) 88%, var(--inv-text));
    --gs-line: color-mix(in srgb, var(--gs-pen) 40%, transparent);
    --gs-muted: color-mix(in srgb, var(--inv-text) 86%, var(--inv-background));
    text-align: left; padding-top: 2rem; background: var(--gs-grain), var(--inv-paper);
}
.gs-form .inv-form { gap: .95rem; }
.gs-form .inv-form label, .gs-form .inv-form__choices legend { font: 600 1rem/1.4 var(--gs-serif); color: var(--gs-muted); }
.gs-form .inv-form input:not([type=radio]):not([type=checkbox]), .gs-form .inv-form select, .gs-form .inv-form textarea {
    padding: .7rem .9rem; border-radius: 10px; background: #fff; color: #262a26;
    border: 1.5px solid color-mix(in srgb, var(--gs-pen) 35%, transparent);
    font: 500 1.08rem/1.4 var(--gs-serif); transition: border-color .2s ease, box-shadow .2s ease;
}
.gs-form .inv-form input:focus, .gs-form .inv-form select:focus, .gs-form .inv-form textarea:focus {
    outline: none; border-color: var(--inv-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--inv-leaf) 70%, transparent);
}
.gs-form .inv-form__choices label {
    padding: .4rem .85rem; border-radius: var(--gs-wobble); background: #fff; color: var(--inv-text);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gs-pen) 35%, transparent);
}
.gs-form .inv-form > .inv-button { width: 100%; margin-top: .2rem; }
.gs-form .inv-rsvp__deadline { margin-bottom: .9rem !important; font-style: italic; color: var(--gs-muted); text-align: center; }
.gs-form .inv-form__notice { font-size: 1rem; color: var(--inv-text); }

/* wishes: small notes, three per page */
.gs-form .inv-wishes__list { margin-top: 1.3rem; gap: .6rem; }
.gs-form .inv-wishes:not(.inv-wishes--paged) { --inv-wishes-height: 20rem; }
.gs-form .inv-wish {
    padding: .7rem .85rem; border-radius: var(--gs-wobble-2);
    background: color-mix(in srgb, var(--inv-leaf) 22%, #fff);
    border: 1px solid var(--gs-line);
}
.gs-form .inv-wish:nth-child(even) { background: color-mix(in srgb, var(--inv-wash) 24%, #fff); border-radius: var(--gs-wobble); }
.gs-form .inv-wish__name { font: 700 1.08rem/1.2 var(--gs-serif); color: var(--inv-primary); }
.gs-form .inv-wish__message { font-size: 1.02rem; line-height: 1.45; color: var(--inv-text); }
.gs-form .inv-wish__time { font-size: .82rem; color: var(--gs-muted); opacity: 1; }
.gs-form .inv-wish__reply { border-color: var(--gs-line); }
.gs-form .inv-wishes__empty { font-style: italic; text-align: center; color: var(--gs-muted); }
.gs-form .inv-wishes__pager { gap: .9rem; margin-top: 1rem; }
.gs-form .inv-wishes__page-button {
    display: grid; place-items: center; width: 2.3rem; height: 2.2rem; padding: 0 0 .12rem;
    border-radius: var(--gs-wobble); border: 1.5px solid var(--gs-pen);
    font: 600 1.35rem/1 var(--gs-serif); color: var(--inv-primary); background: var(--inv-paper);
    transition: background .2s ease, color .2s ease;
}
.gs-form .inv-wishes__page-button:not(:disabled):hover { background: var(--inv-primary); color: var(--inv-paper); }
.gs-form .inv-wishes__page { font: 600 1rem/1 var(--gs-serif); color: var(--gs-muted); opacity: 1; }

/* closing: the photo full-bleed fading into deep green, roses rising from the corners */
.gs-closing { display: grid; align-items: end; min-height: 40rem; padding: 15.5rem 1.5rem 6.8rem; background: var(--inv-deep); overflow: hidden; }
.gs-closing__photo { position: absolute; inset: 0 0 auto; height: min(68%, 460px); overflow: hidden; background: var(--gs-deep-grad); }
.gs-closing__photo img { position: absolute; left: 0; top: -30px; width: 100%; height: calc(100% + 60px); max-width: none; object-fit: cover; object-position: center 30%; filter: saturate(.95) contrast(1.03); }
.gs-closing__photo::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, color-mix(in srgb, var(--inv-deep) 15%, transparent) 0%, transparent 22%, color-mix(in srgb, var(--inv-primary) 55%, transparent) 52%, color-mix(in srgb, var(--inv-deep) 94%, transparent) 80%, var(--inv-deep) 100%);
}
.gs-closing__photo--empty {
    height: 100%;
    background:
        radial-gradient(70% 40% at 50% 22%, color-mix(in srgb, var(--inv-accent) 30%, transparent), transparent 70%),
        radial-gradient(60% 30% at 50% 50%, color-mix(in srgb, var(--inv-leaf) 25%, transparent), transparent 70%),
        var(--gs-cloth), var(--gs-deep-grad);
}
.gs-closing__photo--empty::after { display: none; }
.gs-closing__rose { z-index: 1; bottom: 2.6rem; width: 30%; opacity: .97; }
.gs-closing__rose--left { left: -14%; }
.gs-closing__rose--right { right: -13%; width: 28%; }
.gs-closing__rose--right img { transform: scaleX(-1); }
.gs-closing > .gs-closing__body { position: relative; z-index: 2; display: grid; justify-items: center; }
.gs-closing__title { font-size: clamp(1.9rem, 8.5vw, 2.4rem); }
.gs-closing .gs-divider { margin: .1rem auto .6rem; }
.gs-closing__message { margin-bottom: .7rem !important; font-size: .93rem; line-height: 1.6; color: var(--gs-cream); text-shadow: 0 1px 10px rgb(0 0 0 / .5); }
.gs-closing__sign { font: 700 .76rem/1.4 var(--gs-serif); letter-spacing: .24em; text-transform: uppercase; color: var(--gs-rose-hi); }
.gs-closing__names { margin: .25rem 0 .7rem !important; font: 400 clamp(2.1rem, 9.5vw, 2.6rem)/1.2 var(--gs-script); color: var(--gs-cream); text-shadow: 0 2px 18px rgb(0 0 0 / .5); }
.gs-closing__names span { font-family: var(--gs-serif); font-style: italic; font-size: .48em; color: var(--gs-rose-hi); }
.gs-seal {
    display: inline-grid; grid-auto-flow: column; place-items: center; gap: .15rem;
    width: 4rem; height: 4rem; border-radius: 50%;
    background: var(--inv-paper); color: var(--inv-primary);
    box-shadow: 0 0 0 1.5px var(--inv-paper), 0 0 0 3px var(--inv-accent), 0 10px 22px -10px rgb(0 0 0 / .6);
    font: 600 1.15rem/1 var(--gs-serif);
}
.gs-seal i { font-style: italic; font-size: .75em; color: var(--inv-highlight); }
.gs-closing__seal { width: 3rem; height: 3rem; font-size: .88rem; }

/* ---------- six rose petals drift once when the invitation is opened ---------- */

.gs-drift { position: fixed; inset: 0; z-index: 29; overflow: hidden; pointer-events: none; display: none; }
html.inv-anim.inv-opened .gs-drift { display: block; }
.gs-drift i {
    position: absolute; top: -30px; width: 16px; height: 13px; opacity: 0;
    border-radius: 80% 10% 80% 30%; background: linear-gradient(135deg, var(--gs-rose-hi), var(--inv-accent));
    animation: gs-fall 5.5s cubic-bezier(.3, .1, .6, 1) forwards;
}
.gs-drift i:nth-child(1) { left: 12%; animation-delay: .2s; }
.gs-drift i:nth-child(2) { left: 30%; animation-delay: .9s; width: 12px; height: 10px; }
.gs-drift i:nth-child(3) { left: 52%; animation-delay: .4s; }
.gs-drift i:nth-child(4) { left: 70%; animation-delay: 1.3s; width: 13px; }
.gs-drift i:nth-child(5) { left: 86%; animation-delay: .6s; }
.gs-drift i:nth-child(6) { left: 42%; animation-delay: 1.8s; width: 11px; height: 9px; }
@keyframes gs-fall {
    0% { opacity: 0; transform: translate(0, 0) rotate(0); }
    10% { opacity: .9; }
    85% { opacity: .8; }
    100% { opacity: 0; transform: translate(40px, 105vh) rotate(320deg); }
}

/* ---------- floating UI: QR card, branding, menu, back to top, music ---------- */

.gs-page .inv-checkin {
    position: relative; margin: 0 auto 2.5rem; background: var(--inv-paper); color: var(--inv-text);
    border: 1.5px solid var(--gs-pen); border-radius: var(--gs-wobble); box-shadow: var(--gs-shadow);
}
.gs-page .inv-checkin__title { font: 700 .78rem/1.4 var(--gs-serif); letter-spacing: .2em; color: var(--inv-primary); }

.gs-page .inv-branding {
    position: relative; padding: 1.3rem 1rem 1rem; background: var(--inv-deep);
    font: 500 .85rem/1.4 var(--gs-serif); color: var(--gs-cream-muted); opacity: 1;
}
.gs-page:has(.gs-closing) { background: var(--gs-grain), var(--inv-background); }
.gs-page:has(.gs-closing) .inv-branding { margin-top: -1px; }
.gs-body:has(.inv-nav) .gs-page .inv-branding { padding-bottom: calc(5.4rem + env(safe-area-inset-bottom)); }

.gs-body .inv-nav {
    --inv-nav-bg: color-mix(in srgb, var(--inv-paper) 95%, transparent);
    --inv-nav-text: color-mix(in srgb, var(--inv-text) 80%, transparent);
    --inv-nav-active: var(--inv-primary);
    max-width: min(calc(100vw - 1.5rem), calc(var(--gs-column) - 1.5rem));
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--inv-primary) 25%, transparent), 0 12px 26px -12px rgb(0 0 0 / .5);
}
.gs-body .inv-nav__item.is-active { color: #fff; }
.gs-body .inv-nav__label { font: 600 .66rem/1 var(--gs-serif); letter-spacing: .02em; }
.gs-body .inv-nav__item { padding-left: .4rem; padding-right: .4rem; }

.gs-body .inv-to-top {
    left: max(1rem, calc(50vw - var(--gs-column) / 2 + 1rem));
    background: var(--inv-paper); color: var(--inv-primary);
    box-shadow: inset 0 0 0 1.5px var(--inv-primary), 0 8px 18px -8px rgb(0 0 0 / .4);
}

.gs-body .inv-music__space { display: none; }
.gs-body .inv-music { right: max(1rem, calc(50vw - var(--gs-column) / 2 + 1rem)); }
.gs-body .inv-music__button {
    background: var(--inv-primary); color: var(--inv-paper);
    box-shadow: 0 0 0 2px var(--inv-paper), 0 0 0 3.5px var(--inv-accent), 0 8px 18px -8px rgb(0 0 0 / .4);
}
.gs-body .inv-autoscroll { font-family: var(--gs-serif); font-weight: 600; }

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

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .gs-flora, .gs-arch__rose { animation: none !important; }
    .gs-moment__dot, .gs-event .gs-event__venue-art { transform: none !important; }
    .gs-cover--leave { transition: opacity .3s ease; }
    .gs-cover--gone { transform: translateX(-50%); }
    .gs-drift { display: none !important; }
}

/* ---------- fit: the whole cover (title → "Buka Undangan") on one phone screen ---------- */

@media (max-height: 760px) {
    .gs-cover__inner { padding: 2.2rem 1.6rem 1.4rem; }
    .gs-cover__title { margin-bottom: .4rem !important; }
    .gs-cover__arch { width: min(66vw, 262px); }
    .gs-cover__names { font-size: clamp(2.4rem, 10.5vw, 2.8rem); }
    .gs-cover__quote { margin-top: .3rem !important; font-size: .82rem; line-height: 1.38; }
    .gs-cover__guest { margin: .6rem 0 .7rem; padding: .55rem 1.1rem .4rem; }
    .gs-cover__guestname { font-size: 1.18rem; }
    .gs-cover__sorry { font-size: .7rem; }
}
@media (max-height: 700px) {
    .gs-cover__arch { width: min(60vw, 232px); }
}
@media (max-height: 660px) {
    .gs-cover__inner { padding: 2.1rem 1.5rem 1.2rem; }
    .gs-cover__title { margin-bottom: .3rem !important; font-size: .72rem; }
    .gs-cover__arch { width: min(56vw, 205px); margin-bottom: .2rem; }
    .gs-cover__names { font-size: 2.3rem; line-height: 1.08; }
    .gs-cover__date { font-size: .76rem; }
    .gs-cover__quote { font-size: .78rem; line-height: 1.34; }
    .gs-cover__guest { margin: .5rem 0 .55rem; padding: .5rem 1.05rem .38rem; }
    .gs-cover__guestname { font-size: 1.1rem; }
    .gs-cover__sorry { font-size: .68rem; }
}
@media (max-height: 600px) {
    .gs-spiral { display: none; }
    .gs-cover__inner { padding: 1.9rem 1.4rem 1rem; }
    .gs-cover__title { margin-bottom: .45rem !important; }
    .gs-cover__arch { width: min(50vw, 180px); }
    .gs-cover__names { font-size: 2.1rem; }
    .gs-cover__quote { font-size: .82rem; line-height: 1.32; }
    .gs-cover__guest { margin: .7rem 0 .55rem; }
    .gs-cover__guestname { font-size: 1.15rem; }
}

/* ---------- fit: the page ends close to the closing seal (no paper strip under the deep green closing) ---------- */

.gs-page:has(.gs-closing) { padding-bottom: 0; }

/* ---------- intro scene "Taman Sketsa" (scene.json + sections/_scene; the intro lives in <body>, outside the page) ---------- */

.inv-scene__art > .gs-scene-rose { height: auto; filter: drop-shadow(0 8px 12px rgb(0 0 0 / .22)); }
.gs-scene-spiral { left: 1rem; right: 1rem; opacity: .6; }
.gs-scene-arch { overflow: visible; }
.gs-scene-arch__wash { opacity: .75; }
.gs-scene-arch__ink path { fill: none; stroke: var(--gs-pen); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.gs-scene-arch__ink .gs-scene-arch__fine { stroke-width: 1; opacity: .8; }
.gs-scene-arch__seal text { font: 600 11px var(--gs-serif); letter-spacing: .04em; fill: var(--inv-primary); }
.gs-scene-petal {
    display: block; width: 100%; height: 100%; border-radius: 80% 10% 80% 30%;
    background: linear-gradient(135deg, var(--gs-rose-hi), var(--inv-accent));
}
/* the pen draws the trellis, then the watercolor and the medallion come in */
html.inv-anim .inv-intro.is-playing .gs-scene-arch__ink path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: gs-draw 2.4s cubic-bezier(.45, 0, .2, 1) .8s forwards; }
html.inv-anim .inv-intro.is-playing .gs-scene-arch__ink .gs-scene-arch__fine { animation-delay: 1.3s; }
html.inv-anim .inv-intro.is-playing .gs-scene-arch__wash { opacity: 0; animation: gs-scene-wash 1.4s ease 2.1s forwards; }
html.inv-anim .inv-intro.is-playing .gs-scene-arch__seal { opacity: 0; animation: gs-fade .9s ease 2.7s forwards; }
@keyframes gs-scene-wash { to { opacity: .75; } }

/* the name card: an arched page of sketch paper set inside the trellis opening, double pen line */
.inv-intro--scene:has(.gs-scene-arch) .inv-scene__card {
    top: 50%; width: min(var(--scene-card-w, 62vw), 19rem, 46svh); aspect-ratio: 4 / 5; padding: 3rem 1.1rem 1.4rem;
    -webkit-mask: none; mask: none; -webkit-backdrop-filter: none; backdrop-filter: none;
    border-radius: 50% 50% 6px 6px / 40% 40% 6px 6px;
    background: var(--gs-grain), var(--inv-paper);
    box-shadow: 0 0 0 1.5px var(--gs-pen), 0 0 0 5px var(--inv-paper), 0 0 0 6px color-mix(in srgb, var(--inv-accent) 70%, transparent), 0 26px 50px -22px color-mix(in srgb, var(--inv-deep) 70%, transparent);
}
.inv-intro--scene:has(.gs-scene-arch) .inv-intro__label { font: 600 .7rem/1.3 var(--gs-serif); letter-spacing: .26em; color: var(--inv-highlight); }
.inv-intro--scene:has(.gs-scene-arch) .inv-intro__names { font: 400 clamp(2.4rem, 11vw, 3.1rem)/1.05 var(--gs-script); color: var(--inv-primary); }
.inv-intro--scene:has(.gs-scene-arch) .inv-intro__date { font: 600 .8rem/1.3 var(--gs-serif); letter-spacing: .12em; text-transform: uppercase; color: var(--inv-text); }
.inv-intro--scene:has(.gs-scene-arch) .inv-intro__rule { background: linear-gradient(90deg, transparent, var(--inv-accent), transparent); }
.inv-intro--scene:has(.gs-scene-arch) .inv-intro__skip { font-family: var(--gs-serif); font-weight: 600; }
