/*
 * Galeri Seni (Pernikahan) — the invitation as an exhibition: clean walls lit from above, photos hung as artworks
 * (no frame, a canvas depth and soft shadow), small museum labels in Inter, titles in the client's heading font.
 * Phones: one column. ≥ 900px: a wide room, artwork and label side by side, alternating.
 */

:root {
    --inv-primary: #1c1b19;
    --inv-accent: #8a7a63;
    --inv-background: #f3f1ec;
    --inv-text: #1c1b19;
    --inv-deep: #e6e2da;
    --inv-radius: 2px;
    --gs-serif: var(--inv-font-heading, 'Bodoni Moda'), Georgia, serif;
    --gs-sans: 'Inter', system-ui, sans-serif;
    --gs-soft: color-mix(in srgb, var(--inv-text) 68%, transparent);
    --gs-line: color-mix(in srgb, var(--inv-text) 16%, transparent);
    --gs-card: color-mix(in srgb, var(--inv-background) 55%, #fff);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.gs-body {
    margin: 0; min-height: 100vh; overflow-x: hidden;
    color: var(--inv-text); font: 300 .95rem/1.75 var(--gs-sans); -webkit-font-smoothing: antialiased;
    /* the wall: a soft light from above, a faint floor shadow */
    background:
        radial-gradient(70% 40% at 50% 0%, color-mix(in srgb, #fff 55%, transparent), transparent 70%),
        linear-gradient(180deg, var(--inv-background), color-mix(in srgb, var(--inv-background) 92%, var(--inv-text)));
    background-attachment: fixed;
    background-color: var(--inv-background);
}
p, h1, h2, h3, blockquote, figure, dl, dd { margin: 0; }
.gs-preview { position: fixed; z-index: 60; top: 0; left: 0; right: 0; padding: .35rem 1rem; text-align: center; background: rgb(0 0 0 / .7); color: #fff; font-size: .72rem; }

/* ---------- type ---------- */
.gs-small { font: 500 .64rem/1.5 var(--gs-sans); letter-spacing: .26em; text-transform: uppercase; color: var(--inv-accent); }
.gs-heading { font: 400 clamp(1.6rem, 7vw, 2.1rem)/1.2 var(--gs-serif); }
.gs-text { color: var(--gs-soft); }
.gs-muted { color: var(--gs-soft); }
.gs-amp { font-style: italic; color: var(--inv-accent); }
.gs-arabic { font: 400 1.5rem/1.9 'Amiri', serif; color: var(--inv-accent); }
.gs-link { color: var(--inv-text); text-decoration: none; border-bottom: 1px solid var(--gs-line); font-size: .82rem; }

/* the museum label: small, left-aligned, a thin rule on top */
.gs-label { display: grid; gap: .3rem; padding-top: .9rem; border-top: 1px solid var(--gs-line); text-align: left; }
.gs-label__no { font: 500 .62rem/1.5 var(--gs-sans); letter-spacing: .22em; text-transform: uppercase; color: var(--inv-accent); }
.gs-label__title { font: 400 clamp(1.5rem, 6.5vw, 1.9rem)/1.2 var(--gs-serif); }
.gs-label__title--italic, .gs-label__sub { font-style: italic; }
.gs-label__sub { font: italic 400 1.05rem/1.4 var(--gs-serif); color: var(--gs-soft); }
.gs-label__meta { font-size: .86rem; line-height: 1.7; color: var(--gs-soft); }
.gs-label__note { font: italic 400 .98rem/1.55 var(--gs-serif); color: var(--gs-soft); }

/* thin rectangular buttons, like gallery signage */
.gs-button, .gs-body .inv-button {
    display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
    padding: .8rem 1.4rem; border: 0; border-radius: 0; cursor: pointer;
    background: var(--inv-text); color: var(--inv-background);
    font: 500 .68rem/1.2 var(--gs-sans); letter-spacing: .22em; text-transform: uppercase; text-decoration: none;
    transition: background-color .25s ease, color .25s ease;
}
.gs-button:hover, .gs-body .inv-button:hover { background: var(--inv-accent); }
.gs-body .inv-button--outline { background: transparent; color: var(--inv-text); box-shadow: inset 0 0 0 1px var(--inv-text); }

/* ---------- the artwork ---------- */
.gs-art { position: relative; margin: 0 auto; width: 100%; }
.gs-art__img, .gs-art__blank {
    display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
    /* a canvas: a hair of depth on the edge, a soft shadow on the wall below and to the right */
    box-shadow: 1px 1px 0 color-mix(in srgb, var(--inv-text) 18%, transparent), 0 30px 45px -28px rgb(0 0 0 / .55), 14px 22px 40px -30px rgb(0 0 0 / .35);
}
.gs-art__blank { display: grid; place-items: center; background: var(--gs-card); font: 400 3rem/1 var(--gs-serif); color: var(--inv-accent); }
.gs-art__blank span + span::before { content: '·'; margin: 0 .3rem; }
/* the light falling on the artwork */
.gs-art::after { content: ''; position: absolute; left: 10%; right: 10%; top: -2.5rem; height: 3rem; background: radial-gradient(50% 100% at 50% 100%, rgb(255 255 255 / .55), transparent); pointer-events: none; }

/* ---------- rooms (sections) ---------- */
.gs-room { position: relative; max-width: 30rem; margin: 0 auto; padding: 5rem 1.6rem; display: grid; gap: 1.1rem; }
.gs-room + .gs-room { border-top: 1px solid var(--gs-line); }
.gs-room__title { margin-bottom: .6rem; }
.gs-intro { text-align: left; }
.gs-quote { padding-left: 1rem; border-left: 1px solid var(--inv-accent); }
.gs-quote p { font: italic 400 1.08rem/1.65 var(--gs-serif); }
.gs-quote cite { display: block; margin-top: .6rem; font: 500 .6rem/1.5 var(--gs-sans); letter-spacing: .22em; text-transform: uppercase; font-style: normal; color: var(--inv-accent); }

.gs-exhibit { display: grid; gap: 1.4rem; margin-bottom: 3.4rem; }
.gs-exhibit:last-child { margin-bottom: 0; }

.gs-countdown { text-align: center; justify-items: center; }
.gs-countdown__date { font: 400 clamp(2.2rem, 10vw, 3rem)/1.1 var(--gs-serif); }
.gs-body .inv-countdown { margin-top: 1rem; gap: .5rem; }
.gs-body .inv-countdown__item { flex: 1; max-width: 4.8rem; min-width: 0; padding: .8rem .2rem; background: var(--gs-card); border-radius: 0; box-shadow: 0 0 0 1px var(--gs-line); }
.gs-body .inv-countdown__value { font: 400 1.7rem/1.1 var(--gs-serif); }
.gs-body .inv-countdown__label { font: 500 .55rem/1.3 var(--gs-sans); letter-spacing: .18em; text-transform: uppercase; color: var(--gs-soft); }
.gs-body .inv-countdown__actions { margin-top: 1.2rem; display: grid; gap: .5rem; justify-items: center; }

/* the information plaques */
.gs-plaques { display: grid; gap: 1.4rem; }
.gs-plaque { display: grid; gap: .5rem; padding: 1.6rem 1.4rem; background: var(--gs-card); box-shadow: 0 0 0 1px var(--gs-line), 0 22px 40px -32px rgb(0 0 0 / .4); text-align: left; }
.gs-plaque__photo { width: calc(100% + 2.8rem); margin: -1.6rem -1.4rem .8rem; aspect-ratio: 16 / 10; object-fit: cover; }
.gs-plaque__name { font: 400 clamp(1.6rem, 7vw, 2rem)/1.2 var(--gs-serif); }
.gs-plaque__rows { display: grid; gap: .55rem; margin-top: .5rem; }
.gs-plaque__rows div { display: grid; grid-template-columns: 5.6rem 1fr; gap: .8rem; padding-top: .55rem; border-top: 1px solid var(--gs-line); }
.gs-plaque__rows dt { font: 500 .6rem/1.9 var(--gs-sans); letter-spacing: .18em; text-transform: uppercase; color: var(--inv-accent); }
.gs-plaque__rows dd { font-size: .88rem; line-height: 1.6; }
.gs-plaque .inv-button { justify-self: start; margin-top: .6rem; }
.gs-body .inv-maps__frame { width: 100%; height: 11rem; border: 0; margin-top: .6rem; filter: grayscale(.8) contrast(.95); }

/* the salon wall */
.gs-body .gs-gallery .inv-gallery { gap: .9rem; }
.gs-body .gs-gallery .inv-gallery__item { border-radius: 0; box-shadow: 0 18px 30px -22px rgb(0 0 0 / .5); }
.gs-body .gs-gallery .inv-gallery__item:nth-child(5n + 1) { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.gs-body .gs-gallery .inv-gallery__item:nth-child(5n + 3) { aspect-ratio: 3 / 4; }

/* guest book and gifts */
.gs-card { padding: 1.4rem 1.2rem; background: var(--gs-card); box-shadow: 0 0 0 1px var(--gs-line), 0 22px 40px -32px rgb(0 0 0 / .4); }
.gs-body .inv-form input:not([type=radio]):not([type=checkbox]), .gs-body .inv-form select, .gs-body .inv-form textarea { border-radius: 0; border-color: var(--gs-line); background: #fff; color: #1c1b19; font: 300 1rem/1.4 var(--gs-sans); }
.gs-body .inv-form label { font-size: .8rem; color: var(--gs-soft); }
.gs-body .inv-form .inv-button { width: 100%; }
.gs-body .inv-wish { border-radius: 0; background: color-mix(in srgb, var(--inv-background) 70%, #fff); box-shadow: inset 0 0 0 1px var(--gs-line); }
.gs-body .inv-wish__name { font: 400 1.05rem/1.3 var(--gs-serif); }
.gs-body .inv-gift__account { border-radius: 0; background: var(--gs-card); box-shadow: 0 0 0 1px var(--gs-line); text-align: left; }
.gs-body .inv-gift__number { font: 400 1.4rem/1.3 var(--gs-serif); letter-spacing: .06em; }
.gs-body .inv-gift__account .inv-button { margin-top: .6rem; padding: .55rem 1rem; }
.gs-closing__sign { margin-top: .6rem; }

/* ---------- cover ---------- */
.gs-cover {
    position: fixed; inset: 0; z-index: 30; display: flex; overflow: hidden;
    background:
        radial-gradient(60% 45% at 50% 22%, color-mix(in srgb, #fff 70%, transparent), transparent 75%),
        linear-gradient(180deg, var(--inv-background), color-mix(in srgb, var(--inv-background) 90%, var(--inv-text)));
    background-color: var(--inv-background);
}
.gs-cover__inner {
    position: relative; z-index: 1; width: 100%; min-height: 100%;
    display: flex; flex-direction: column; justify-content: center; align-items: center; gap: .8rem;
    padding: calc(1.8rem + env(safe-area-inset-top)) 1.8rem calc(1.8rem + env(safe-area-inset-bottom));
}
.gs-cover__art { width: min(84vw, 24rem); }
.gs-cover__label .gs-label__note { font-size: .84rem; line-height: 1.42; }
.gs-cover .gs-label { gap: .2rem; }
.gs-guest__name { font-size: 1.05rem; }
.gs-cover__label { width: min(100%, 21rem); }
.gs-cover__label .gs-label__title { font-size: clamp(1.5rem, 7vw, 1.9rem); }
.gs-guest { width: min(100%, 21rem); display: grid; gap: .1rem; text-align: left; }
.gs-guest__name { font: 400 1.2rem/1.3 var(--gs-serif); overflow-wrap: anywhere; }
.gs-cover__open { width: min(100%, 21rem); justify-content: space-between; }
.gs-cover--leave { transition: opacity .9s ease, transform 1s cubic-bezier(.6, 0, .3, 1); }
.gs-cover--gone { opacity: 0; transform: translateY(-2rem); }
html.inv-anim .gs-cover__art .gs-art__img { animation: gs-hang 1.4s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes gs-hang { from { opacity: 0; transform: translateY(-14px); } }

@media (max-height: 800px) {
    .gs-cover__art { width: min(74vw, 20.5rem); }
}
@media (max-height: 740px) {
    .gs-cover__inner { gap: .6rem; }
    .gs-cover__art { width: min(64vw, 17.5rem); }
    .gs-cover__label .gs-label__note { font-size: .8rem; line-height: 1.4; }
}
@media (max-height: 640px) {
    .gs-cover__art { width: min(52vw, 14.5rem); }
    .gs-cover__label .gs-label__title { font-size: 1.6rem; }
    .gs-label { gap: .2rem; padding-top: .6rem; }
}

/* ---------- shared floating UI ---------- */
.gs-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) 70%, transparent);
    --inv-nav-active: var(--inv-text);
    border-radius: 0; border-color: var(--gs-line);
    box-shadow: 0 16px 30px -18px rgb(0 0 0 / .35); font-family: var(--gs-sans);
}
.gs-body .inv-nav__item { border-radius: 0; }
.gs-body .inv-music__button, .gs-body .inv-scroller__toggle, .gs-body .inv-pb-button, .gs-body .inv-to-top {
    background: var(--inv-text); color: var(--inv-background); border-radius: 0; box-shadow: 0 10px 20px -12px rgb(0 0 0 / .5);
}
.gs-body .inv-scroller__ring { display: none; }
.gs-body .inv-music__space { background: transparent; }

/* ---------- wide screens: a room, artwork and label side by side ---------- */
@media (min-width: 900px) {
    .gs-room { max-width: 64rem; padding: 7rem 3rem; }
    .gs-intro, .gs-countdown, .gs-rsvp, .gs-wishes, .gs-gift, .gs-stream { max-width: 38rem; }
    .gs-exhibit { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: end; gap: 3.5rem; margin-bottom: 6rem; }
    .gs-exhibit--flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
    .gs-exhibit--flip > .gs-art { order: 2; }
    .gs-plaques { grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); }
    .gs-body .gs-gallery .inv-gallery { --inv-gallery-columns: 3; }
    .gs-cover__inner { display: grid; grid-template-columns: auto 22rem; grid-template-rows: 1fr auto auto auto; justify-content: center; align-content: center; column-gap: 4.5rem; row-gap: 1.4rem; }
    .gs-cover__art { grid-row: 1 / -1; width: min(34vw, 26rem, 62vh); }
    .gs-cover__label { align-self: end; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    html.inv-anim .gs-cover__art .gs-art__img { animation: none; }
    .gs-cover--gone { transform: none; }
}

/* ---------- gift: the accounts as bank cards (two per row, an odd last one across), the address on its own card ---------- */
.gs-body .gs-gift .inv-gift { max-width: 27rem; margin: 0 auto; }
.gs-body .gs-gift .inv-gift__accounts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.gs-body .gs-gift .inv-gift__accounts > :last-child:nth-child(odd) { grid-column: 1 / -1; }
.gs-body .gs-gift .inv-gift__account:not(.inv-gift__address) {
    position: relative; overflow: hidden; isolation: isolate; width: auto; max-width: none; margin: 0; border: 0;
    display: flex; flex-direction: column; align-items: flex-start; gap: .25rem; min-height: 9.6rem; padding: .85rem .9rem .9rem;
    border-radius: 4px; text-align: left; color: #f3f1ec; background: repeating-linear-gradient(115deg, rgb(255 255 255 / .025) 0 2px, transparent 2px 7px), linear-gradient(135deg, #2b2925, #121110 80%); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .1), 0 18px 30px -18px rgb(0 0 0 / .6);
}
.gs-body .gs-gift .inv-gift__account + .inv-gift__account { margin-top: 0; }
.gs-body .gs-gift .inv-gift__account:not(.inv-gift__address)::before {
    content: ''; order: 1; display: block; width: 2rem; height: 1.45rem; margin: .35rem 0 .15rem; border-radius: 5px;
    background:
        linear-gradient(90deg, transparent 32%, rgb(0 0 0 / .22) 32% 35%, transparent 35% 65%, rgb(0 0 0 / .22) 65% 68%, transparent 68%),
        linear-gradient(180deg, transparent 45%, rgb(0 0 0 / .2) 45% 52%, transparent 52%),
        linear-gradient(135deg, #f3dfa2, #c9a14f 55%, #ecd28c);
}
.gs-body .gs-gift .inv-gift__account:not(.inv-gift__address)::after {
    content: ''; position: absolute; z-index: -1; right: .8rem; top: .9rem; width: 1.9rem; height: 1.2rem; opacity: .7;
    background: radial-gradient(circle at 30% 50%, rgb(255 255 255 / .55) 0 .58rem, transparent .62rem), radial-gradient(circle at 70% 50%, rgb(255 255 255 / .3) 0 .58rem, transparent .62rem);
}
.gs-body .gs-gift .inv-gift__account:not(.inv-gift__address) > * { order: 2; }
.gs-body .gs-gift .inv-gift__account:not(.inv-gift__address) > .inv-gift__bank { order: 0; min-height: 1.6rem; display: flex; align-items: center; font-size: .82rem; font-weight: 600; letter-spacing: .06em; color: #f3f1ec; }
.gs-body .gs-gift .inv-gift__logo { height: 1.6rem; padding: .2rem .5rem; border-radius: .35rem; }
.gs-body .gs-gift .inv-gift__account:not(.inv-gift__address) .inv-gift__number { margin-top: auto; font: 400 1.05rem/1.2 var(--gs-serif); letter-spacing: .08em; color: #f3f1ec; overflow-wrap: anywhere; }
.gs-body .gs-gift .inv-gift__account:not(.inv-gift__address) .inv-gift__holder { font-size: .58rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: rgb(243 241 236 / .7); }
.gs-body .gs-gift .inv-gift__account:not(.inv-gift__address) .inv-button {
    margin-top: .45rem; min-height: 0; padding: .38rem .7rem; font-size: .58rem; letter-spacing: .12em;
    background: transparent; color: #f3f1ec; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .45); border: 0;
}
.gs-body .gs-gift .inv-gift__address {
    position: relative; width: auto; max-width: none; margin: .8rem 0 0; padding: 1.3rem 1.1rem 1.2rem; border-radius: 0; text-align: center;
    background: var(--gs-card); color: var(--inv-text); box-shadow: 0 16px 30px -22px rgb(0 0 0 / .45); border: 0;
}
.gs-body .gs-gift .inv-gift__address::before { content: ''; position: absolute; inset: 6px; border-radius: inherit; border: 1px solid var(--gs-line); pointer-events: none; }
.gs-body .gs-gift .inv-gift__address .inv-gift__bank { font-size: .62rem; letter-spacing: .26em; text-transform: uppercase; opacity: .75; }
.gs-body .gs-gift .inv-gift__address .inv-gift__holder { margin-top: .3rem; font: 500 1.15rem/1.3 var(--gs-serif); }
.gs-body .gs-gift .inv-gift__address p { font-size: .9rem; line-height: 1.5; }
.gs-body .gs-gift .inv-gift__address .inv-button { margin-top: .8rem; }
@media (max-width: 340px) {
    .gs-body .gs-gift .inv-gift__accounts { grid-template-columns: minmax(0, 1fr); }
}
