/*
 * Template "Sakinah Tanpa Foto" (Pernikahan): a calm, syar'i-friendly wedding without photos of people.
 * Colors from the variant (x-inv.head): --inv-primary (titles, buttons, ornaments), --inv-accent (soft gold
 * lines), --inv-background (ivory paper), --inv-text, --inv-deep (dark text accents, bank cards) and
 * --inv-soft (a pale tint for the alternating bands).
 */

:root {
    --inv-primary: #5e7560;
    --inv-accent: #b39867;
    --inv-background: #f8f5ed;
    --inv-text: #2d3830;
    --inv-deep: #3e5141;
    --inv-soft: #e5ebe0;
    --inv-radius: 14px;

    --sk-col: min(100vw, 460px);
    --sk-edge: max(0px, calc((100vw - var(--sk-col)) / 2));
    --sk-label: 'Marcellus', 'Times New Roman', serif;
    --sk-serif: 'Cormorant Garamond', 'Times New Roman', serif;
    --sk-script: 'Parisienne', 'Brush Script MT', cursive;
    --sk-text: 'Crimson Pro', Georgia, serif;
    --sk-mono: 'DM Mono', ui-monospace, 'Courier New', monospace;
    --sk-arabic: 'Amiri', 'Traditional Arabic', serif;

    --sk-muted: color-mix(in srgb, var(--inv-text) 78%, var(--inv-background));
    --sk-line: color-mix(in srgb, var(--inv-accent) 55%, transparent);
    --sk-paper: color-mix(in srgb, #fff 70%, var(--inv-background));
    --sk-shadow: 0 18px 40px -26px color-mix(in srgb, var(--inv-deep) 55%, transparent);

    /* the eight-point khatam lattice (used as a mask, tinted by CSS) */
    --sk-lattice: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56' fill='none' stroke='black' stroke-width='.8'%3E%3Cpath d='M18 18h20v20H18Z'/%3E%3Cpath d='M28 13.9 42.1 28 28 42.1 13.9 28Z'/%3E%3Ccircle cx='28' cy='28' r='3.5'/%3E%3Cpath d='M0 0l13.9 13.9M56 0 42.1 13.9M0 56l13.9-13.9M56 56 42.1 42.1M28 0v6M28 50v6M0 28h6M50 28h6'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-behavior: smooth; }
p, h1, h2, h3, figure, blockquote, ol, ul { margin: 0; }
a { color: inherit; }
img { max-width: 100%; }

body.sk-body {
    min-height: 100vh;
    color: var(--inv-text);
    font-family: var(--sk-text);
    font-size: 16.5px;
    line-height: 1.65;
    font-variant-numeric: lining-nums;
    -webkit-font-smoothing: antialiased;
    background:
        radial-gradient(60vw 50vh at 50% 0%, color-mix(in srgb, var(--inv-soft) 90%, transparent), transparent 70%),
        color-mix(in srgb, var(--inv-soft) 55%, var(--inv-background));
    background-attachment: fixed;
}
/* the khatam lattice backdrop on wide screens, behind the column */
body.sk-body::before {
    content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background: var(--inv-primary); opacity: .1;
    -webkit-mask: var(--sk-lattice) center / 56px 56px repeat; mask: var(--sk-lattice) center / 56px 56px repeat;
}

.sk-preview {
    position: fixed; top: 0; left: 50%; z-index: 60; transform: translateX(-50%);
    padding: .3rem .9rem; border-radius: 0 0 10px 10px; white-space: nowrap;
    background: var(--inv-primary); color: #fff; font: 600 .72rem/1.4 var(--sk-text);
}

/* ---------- shared pieces ---------- */
.sk-kicker {
    font-family: var(--sk-label); font-size: .72rem; letter-spacing: .28em; text-transform: uppercase;
    color: color-mix(in srgb, var(--inv-accent) 55%, var(--inv-text));
}
.sk-script { font-family: var(--sk-script); font-weight: 400; line-height: 1.2; color: var(--inv-primary); }
.sk-khatam { display: block; color: var(--inv-accent); }
.sk-moon { display: block; color: var(--inv-accent); }
.sk-icon { display: inline-block; vertical-align: -.2em; width: 1.05rem; height: 1.05rem; flex: none; }

.sk-divider { display: flex; align-items: center; justify-content: center; gap: .6rem; max-width: 15rem; margin: 1.5rem auto; color: var(--inv-accent); }
.sk-divider__line { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--sk-line), transparent); }
.sk-divider__star { flex: none; width: 1.3rem; height: 1.3rem; }
.sk-divider--title { margin: .35rem auto 0; max-width: 12rem; }

.sk-chip {
    display: inline-flex; align-items: center; gap: .45rem; margin-top: 1rem;
    padding: .42rem 1rem; border-radius: 999px; text-decoration: none;
    font: 600 .86rem/1.2 var(--sk-text); color: var(--inv-primary);
    background: var(--sk-paper);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--inv-primary) 35%, transparent);
}
.sk-chip .sk-icon { width: 1rem; height: 1rem; }

.sk-card {
    position: relative; padding: 1.5rem 1.25rem; border-radius: 20px; text-align: left;
    background: var(--sk-paper);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--inv-accent) 35%, transparent), var(--sk-shadow);
}
.sk-lead { max-width: 32ch; margin: 0 auto 1.8rem; color: var(--sk-muted); font-size: 1rem; font-style: italic; }

/* the mihrab arch stretches over its frame */
.sk-arch { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.sk-arch__fill { fill: color-mix(in srgb, #fff 55%, var(--inv-soft)); }
.sk-arch__line { stroke: var(--inv-accent); stroke-width: 1.3; }
.sk-arch__inner { stroke: var(--inv-accent); stroke-width: .8; opacity: .55; }
.sk-arch--line .sk-arch__fill { fill: none; }

/* line flowers in the lower corners, swaying from their stem */
.sk-flower {
    position: absolute; z-index: 1; width: 7.2rem; height: 7.2rem; color: var(--inv-primary); opacity: .55; pointer-events: none;
    transform-origin: 0 100%; will-change: transform; animation: sk-sway 7s ease-in-out infinite alternate;
}
.sk-flower--bl { bottom: .4rem; left: .2rem; }
.sk-flower--br { bottom: .4rem; right: .2rem; scale: -1 1; transform-origin: 50% 100%; animation-delay: -3.5s; }

/* the lantern swings from the top of its chain, the crescent rocks gently */
.sk-lantern {
    display: block; color: var(--inv-accent); transform-origin: 50% 0;
    will-change: transform; animation: sk-swing 5.5s ease-in-out infinite alternate;
}
.sk-lantern__cap { fill: color-mix(in srgb, var(--inv-accent) 35%, var(--inv-background)); }
.sk-lantern__body { fill: color-mix(in srgb, var(--inv-primary) 14%, var(--inv-background)); }
.sk-lantern__window { fill: color-mix(in srgb, #ffe2a0 75%, var(--inv-background)); }

@keyframes sk-sway { from { rotate: -2.2deg; } to { rotate: 2.2deg; } }
@keyframes sk-swing { from { rotate: -5deg; } to { rotate: 5deg; } }
@keyframes sk-rock { from { rotate: -7deg; } to { rotate: 5deg; } }
@keyframes sk-turn { to { rotate: 360deg; } }
@keyframes sk-pulse { 0%, 100% { opacity: .5; scale: 1; } 50% { opacity: .9; scale: 1.06; } }

/* ---------- cover ---------- */
.sk-cover {
    position: fixed; top: 0; bottom: 0; left: 50%; z-index: 30; width: var(--sk-col); transform: translateX(-50%);
    overflow: hidden auto; overscroll-behavior: contain; isolation: isolate;
    background:
        radial-gradient(70% 45% at 50% 42%, color-mix(in srgb, #fff 70%, transparent), transparent 75%),
        linear-gradient(180deg, var(--inv-background), color-mix(in srgb, var(--inv-soft) 70%, var(--inv-background)));
}
.sk-cover::before {
    content: ''; position: absolute; inset: 0; z-index: -2; pointer-events: none;
    background: var(--inv-primary); opacity: .07;
    -webkit-mask: var(--sk-lattice) center / 56px 56px repeat; mask: var(--sk-lattice) center / 56px 56px repeat;
}
.sk-cover__lantern { position: absolute; top: 0; right: 15%; z-index: 1; width: 2.1rem; height: 5.9rem; }
.sk-cover__moon { position: absolute; top: 1.6rem; left: 13%; z-index: 1; width: 2.3rem; height: 2.3rem; color: var(--inv-accent); will-change: transform; animation: sk-rock 6s ease-in-out infinite alternate; }

.sk-cover__inner {
    position: relative; z-index: 2; min-height: 100%;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: calc(3.6rem + env(safe-area-inset-top)) 1.6rem calc(2.6rem + env(safe-area-inset-bottom));
    text-align: center;
}
.sk-cover__frame {
    position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: center; gap: .35rem;
    width: 100%; max-width: 19.5rem; padding: 4.6rem 1.4rem 2rem;
}
.sk-cover__the { margin-top: .4rem; }

.sk-medallion { position: relative; display: grid; place-items: center; width: 6.2rem; height: 6.2rem; margin: .5rem 0 .2rem; }
.sk-medallion__star { position: absolute; inset: 0; width: 100%; height: 100%; animation: sk-turn 120s linear infinite; }
.sk-medallion__letters {
    position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .1rem;
    width: 3.4rem; height: 3.4rem; border-radius: 50%;
    background: var(--sk-paper); box-shadow: 0 0 0 1px var(--sk-line);
    font: 600 1.25rem/1 var(--sk-serif); color: var(--inv-primary);
}
.sk-medallion__letters i { font: 400 1rem/1 var(--sk-script); color: var(--inv-accent); font-style: normal; }

.sk-cover__names { display: flex; flex-direction: column; align-items: center; font-size: clamp(2.6rem, 11.5vw, 3.2rem); line-height: 1.1; }
.sk-cover__amp { font-size: .55em; color: var(--inv-accent); }
.sk-cover__date { margin-top: .6rem; font: .8rem/1.5 var(--sk-label); letter-spacing: .16em; text-transform: uppercase; color: var(--inv-text); }
.sk-cover__quote { max-width: 26ch; margin-top: .4rem; font: italic 500 1rem/1.45 var(--sk-serif); color: var(--sk-muted); }

.sk-guest {
    width: min(100%, 17rem); margin-top: 1.4rem; padding: .8rem 1.2rem .9rem; border-radius: 6px;
    background: color-mix(in srgb, #fff 55%, transparent);
    border: 1px solid var(--sk-line);
    outline: 1px solid color-mix(in srgb, var(--inv-accent) 28%, transparent); outline-offset: 3px;
}
.sk-guest__label { font: .66rem/1.4 var(--sk-label); letter-spacing: .26em; text-transform: uppercase; color: var(--sk-muted); }
.sk-guest__name { display: block; margin-top: .15rem; font: 600 1.35rem/1.3 var(--sk-serif); color: var(--inv-text); overflow-wrap: anywhere; }

.sk-open {
    margin-top: 1.3rem; padding: .85rem 1.7rem; gap: .55rem;
    font: .84rem/1 var(--sk-label); letter-spacing: .14em; text-transform: uppercase;
    background: var(--inv-primary); color: #fff;
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--inv-primary) 15%, transparent), 0 12px 24px -14px var(--inv-deep);
}
.sk-open__icon { width: 1.15rem; height: 1.15rem; }
.sk-open:hover { filter: brightness(1.08); }

.sk-cover--leave { transition: opacity .9s ease, transform 1s cubic-bezier(.6, 0, .3, 1); }
.sk-cover--gone { opacity: 0; transform: translateX(-50%) translateY(-4%); }

/* ---------- page ---------- */
.sk-page {
    position: relative; display: flex; flex-direction: column;
    width: var(--sk-col); min-height: 100vh; margin: 0 auto; overflow: hidden;
    background: var(--inv-background);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--inv-accent) 25%, transparent), 0 0 80px -20px color-mix(in srgb, var(--inv-deep) 45%, transparent);
}
.sk-main { position: relative; }
.sk-section { position: relative; isolation: isolate; padding: 4.5rem 1.5rem; text-align: center; }
/* alternating bands: a pale tint with the faint lattice */
.sk-tint { background: linear-gradient(180deg, color-mix(in srgb, var(--inv-soft) 75%, var(--inv-background)), color-mix(in srgb, var(--inv-soft) 45%, var(--inv-background))); }
.sk-tint::before {
    content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: var(--inv-primary); opacity: .06;
    -webkit-mask: var(--sk-lattice) center / 56px 56px repeat; mask: var(--sk-lattice) center / 56px 56px repeat;
}

.sk-title { display: grid; justify-items: center; gap: .35rem; margin-bottom: 1.6rem; }
.sk-title__moon { width: 1.5rem; height: 1.5rem; margin-bottom: .2rem; }
.sk-title__text { font: 500 2.25rem/1.15 var(--sk-serif); color: var(--inv-primary); }

/* ---------- hero (first screen after opening) ---------- */
.sk-hero { position: relative; isolation: isolate; display: grid; place-items: center; min-height: 34rem; padding: 6rem 1.5rem 4rem; overflow: hidden; text-align: center; }
.sk-hero__watermark { position: absolute; top: 50%; left: 50%; z-index: -2; width: 26rem; height: 26rem; translate: -50% -50%; opacity: .14; }
.sk-hero__lantern { position: absolute; top: 0; left: 50%; width: 1.9rem; height: 5.3rem; margin-left: -.95rem; z-index: 1; }
.sk-hero__arch { position: relative; isolation: isolate; display: grid; justify-items: center; gap: .5rem; width: min(100%, 17rem); padding: 5.4rem 1.2rem 2.4rem; }
.sk-hero__moon { width: 1.7rem; height: 1.7rem; animation: sk-rock 6s ease-in-out infinite alternate; }
.sk-hero__names { font-size: 2.7rem; line-height: 1.15; }
.sk-hero__names span { display: block; font-size: .55em; color: var(--inv-accent); }
.sk-hero__date { font: .78rem/1.5 var(--sk-label); letter-spacing: .16em; text-transform: uppercase; }

/* ---------- opening ---------- */
.sk-opening { padding-top: 3rem; }
.sk-basmalah { display: grid; justify-items: center; gap: .6rem; margin-bottom: 1.4rem; }
.sk-basmalah__star { width: 2rem; height: 2rem; }
.sk-arabic { font-family: var(--sk-arabic); font-size: clamp(1.8rem, 8vw, 2.3rem); line-height: 1.9; color: var(--inv-primary); }
.sk-opening__greeting { font: italic 500 1.3rem/1.4 var(--sk-serif); color: var(--inv-primary); }
.sk-opening__message { max-width: 33ch; margin: 0 auto; color: var(--sk-muted); }

.sk-verse {
    position: relative; margin: 3rem auto 0; padding: 2.6rem 1.5rem 1.8rem; max-width: 23rem;
    border-radius: 50% 50% 18px 18px / 64px 64px 18px 18px;
    background: var(--sk-paper);
    box-shadow: inset 0 0 0 1px var(--sk-line), inset 0 0 0 6px var(--sk-paper), inset 0 0 0 7px color-mix(in srgb, var(--inv-accent) 25%, transparent), var(--sk-shadow);
}
.sk-verse__badge {
    position: absolute; top: -1.2rem; left: 50%; display: grid; place-items: center;
    width: 2.4rem; height: 2.4rem; margin-left: -1.2rem; border-radius: 50%;
    background: var(--inv-background); box-shadow: 0 0 0 1px var(--sk-line);
}
.sk-verse__moon { width: 1.3rem; height: 1.3rem; }
.sk-verse blockquote { font: italic 500 1.15rem/1.6 var(--sk-serif); color: var(--inv-text); }
.sk-verse figcaption { margin-top: 1rem; font: .72rem/1.4 var(--sk-label); letter-spacing: .2em; text-transform: uppercase; color: var(--inv-primary); }

/* ---------- couple: arch frames with initials ---------- */
.sk-person { display: grid; justify-items: center; }
.sk-niche { position: relative; isolation: isolate; width: min(60%, 12.5rem); aspect-ratio: 3 / 4.1; margin-bottom: 1.5rem; }
.sk-niche__watermark { position: absolute; top: 38%; left: 50%; z-index: -1; width: 82%; height: auto; aspect-ratio: 1; translate: -50% -50%; opacity: .22; }
.sk-niche__lantern { position: absolute; top: 9%; left: 50%; width: 1.25rem; height: 3.5rem; margin-left: -.625rem; }
.sk-niche__initial {
    position: absolute; top: 40%; left: 0; right: 0; translate: 0 -10%;
    font: 400 5.6rem/1 var(--sk-serif); font-style: italic; color: var(--inv-primary);
}
.sk-niche__flower { position: absolute; left: 6%; bottom: 3%; width: 46%; height: auto; aspect-ratio: 1; opacity: .5; }
.sk-person:nth-of-type(2) .sk-niche__flower { left: auto; right: 6%; scale: -1 1; transform-origin: 50% 100%; }

.sk-person__label { font-size: .66rem; margin-bottom: .1rem; }
.sk-person__nick { font-size: 2.8rem; }
.sk-person__name { margin-top: .1rem; font: 600 1.45rem/1.25 var(--sk-serif); color: var(--inv-text); }
.sk-person__parents { max-width: 30ch; margin-top: .5rem; font-size: .98rem; color: var(--sk-muted); }
.sk-person__parents span { display: block; font-size: .88rem; font-style: italic; }

.sk-amp { display: flex; align-items: center; gap: .9rem; max-width: 15rem; margin: 2.2rem auto; color: var(--inv-accent); }
.sk-amp__badge { position: relative; display: grid; place-items: center; width: 4.2rem; height: 4.2rem; flex: none; }
.sk-amp__star { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; }
.sk-amp__badge .sk-script {
    position: relative; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%;
    background: var(--inv-background); box-shadow: 0 0 0 1px var(--sk-line);
    font-size: 1.6rem; line-height: 1; padding-top: .15rem;
}

/* ---------- countdown ---------- */
.sk-datecard { position: relative; isolation: isolate; display: grid; justify-items: center; width: 9rem; margin: 0 auto 1.8rem; padding: 2.8rem .5rem 1rem; }
.sk-datecard__day, .sk-datecard__month { font: .72rem/1.4 var(--sk-label); letter-spacing: .2em; text-transform: uppercase; color: var(--sk-muted); }
.sk-datecard__num { font: 500 3.2rem/1.1 var(--sk-serif); color: var(--inv-primary); }

.inv-countdown { gap: .5rem; }
.inv-countdown__item {
    flex: 1; min-width: 0; max-width: 5rem; padding: 1.1rem .2rem .65rem;
    border-radius: 50% 50% 10px 10px / 28px 28px 10px 10px;
    background: var(--sk-paper);
    box-shadow: inset 0 0 0 1px var(--sk-line), 0 10px 20px -16px var(--inv-deep);
}
.inv-countdown__value { font: 600 1.7rem/1.2 var(--sk-serif); color: var(--inv-primary); }
.inv-countdown__label { margin-top: .1rem; font: .62rem/1.3 var(--sk-label); letter-spacing: .12em; text-transform: uppercase; color: var(--sk-muted); }
.inv-countdown__actions { margin-top: 1.5rem; }
.inv-countdown__actions .inv-button { padding: .6rem 1.05rem; font-size: .82rem; }
.inv-countdown__done { font: italic 500 1.2rem var(--sk-serif); }

/* ---------- buttons ---------- */
.inv-button {
    background: var(--inv-primary); color: #fff; font: 600 .9rem/1.2 var(--sk-text); letter-spacing: .02em;
    box-shadow: 0 10px 20px -14px var(--inv-deep);
}
.inv-button--outline {
    background: var(--sk-paper); color: var(--inv-primary);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--inv-primary) 40%, transparent);
}

/* ---------- events (centered, R2) ---------- */
.sk-event { display: grid; justify-items: center; gap: .3rem; padding: .4rem 0; }
.sk-event__star { width: 1.8rem; height: 1.8rem; margin-bottom: .2rem; }
.sk-event__name { font: 500 2.05rem/1.15 var(--sk-serif); color: var(--inv-primary); margin-bottom: .35rem; }
.sk-event__line { font-size: 1rem; }
.sk-event__date { font-weight: 600; }
.sk-event__time { font: .84rem/1.5 var(--sk-label); letter-spacing: .08em; color: color-mix(in srgb, var(--inv-accent) 60%, var(--inv-text)); }
.sk-event__line .sk-icon, .sk-event__venue .sk-icon, .sk-event__dress .sk-icon { color: var(--inv-accent); margin-right: .2rem; }
.sk-event__venue { margin-top: .5rem; font: 700 1.25rem/1.35 var(--sk-serif); color: var(--inv-text); }
.sk-event__address { max-width: 30ch; font-size: .95rem; color: var(--sk-muted); }
.sk-event__dress {
    margin-top: .5rem; padding: .3rem .9rem; border-radius: 999px; font-size: .9rem;
    background: color-mix(in srgb, var(--inv-soft) 70%, transparent);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--inv-accent) 30%, transparent);
}
.sk-event__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; width: 100%; max-width: 21rem; margin-top: 1.2rem; }
.sk-event__actions .sk-btn:only-child { grid-column: 1 / -1; }
.sk-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-width: 0;
    padding: .7rem .6rem; border-radius: 999px; text-decoration: none; white-space: nowrap;
    font: 600 .86rem/1.2 var(--sk-text); color: #fff; background: var(--inv-primary);
    box-shadow: 0 10px 20px -14px var(--inv-deep);
}
.sk-btn--soft { background: var(--sk-paper); color: var(--inv-primary); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--inv-primary) 40%, transparent); }
.sk-btn .sk-icon { width: 1rem; height: 1rem; }

/* dashed separator with a crescent between the events */
.sk-sep { display: flex; align-items: center; gap: .7rem; max-width: 17rem; margin: 2.2rem auto; }
.sk-sep span { flex: 1; border-top: 1.5px dashed var(--sk-line); }
.sk-sep__moon { width: 1.2rem; height: 1.2rem; flex: none; }

/* ---------- love story: quiet timeline ---------- */
.sk-timeline { position: relative; display: grid; gap: 1.8rem; max-width: 24rem; margin: 0 auto; padding: 0; list-style: none; text-align: left; }
.sk-timeline::before {
    content: ''; position: absolute; top: .5rem; bottom: .5rem; left: 1.05rem; width: 1px;
    background: linear-gradient(transparent, var(--sk-line) 6%, var(--sk-line) 94%, transparent);
}
.sk-moment { position: relative; display: grid; grid-template-columns: 2.1rem minmax(0, 1fr); column-gap: 1rem; align-items: start; }
.sk-moment__dot {
    display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%;
    background: var(--inv-background); color: var(--inv-primary);
    box-shadow: 0 0 0 1px var(--sk-line), 0 0 0 4px color-mix(in srgb, var(--inv-soft) 70%, var(--inv-background));
}
.sk-moment__dot .sk-icon { width: 1rem; height: 1rem; }
.sk-moment__date { font: .72rem/1.4 var(--sk-label); letter-spacing: .2em; text-transform: uppercase; color: color-mix(in srgb, var(--inv-accent) 60%, var(--inv-text)); padding-top: .3rem; }
.sk-moment__title { margin-top: .1rem; font: 600 1.35rem/1.25 var(--sk-serif); color: var(--inv-primary); overflow-wrap: anywhere; }
.sk-moment__story { margin-top: .3rem; font-size: .98rem; line-height: 1.6; color: var(--sk-muted); overflow-wrap: anywhere; }

/* ---------- live ---------- */
.sk-live__card { display: grid; justify-items: center; gap: .6rem; text-align: center; }
.sk-live__icon { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: var(--inv-primary); color: #fff; }
.sk-live__icon .sk-icon { width: 1.5rem; height: 1.5rem; }
.sk-live__badge { display: inline-flex; align-items: center; gap: .45rem; font: .74rem/1.4 var(--sk-label); letter-spacing: .18em; text-transform: uppercase; color: var(--inv-primary); }
.sk-live__badge span { width: .5rem; height: .5rem; border-radius: 50%; background: #d64545; box-shadow: 0 0 0 4px color-mix(in srgb, #d64545 22%, transparent); animation: sk-pulse 2s ease-in-out infinite; }
.sk-live__note { font-size: .92rem; color: var(--sk-muted); }

/* ---------- gift: accounts as soft bank cards ---------- */
.sk-giftbox { display: grid; gap: 1rem; }
.inv-gift__account + .inv-gift__account { margin-top: 0; }
.inv-gift__accounts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.inv-gift__account:last-child:nth-child(odd) { grid-column: 1 / -1; }
.inv-gift__account:not(.inv-gift__address) {
    position: relative; isolation: isolate; overflow: hidden; min-width: 0; margin: 0;
    display: flex; flex-direction: column; align-items: flex-start;
    padding: .85rem .85rem .9rem; border-radius: 16px; text-align: left; color: #fff;
    background:
        radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--inv-accent) 35%, transparent), transparent 55%),
        linear-gradient(135deg, var(--inv-primary), var(--inv-deep) 75%);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, #fff 18%, transparent), 0 16px 28px -20px var(--inv-deep);
}
/* the chip */
.inv-gift__account:not(.inv-gift__address)::before {
    content: ''; display: block; order: 1; width: 1.7rem; height: 1.3rem; margin-top: .55rem; border-radius: 4px;
    background:
        linear-gradient(90deg, transparent 31%, rgb(0 0 0 / .2) 32% 34%, transparent 35% 65%, rgb(0 0 0 / .2) 66% 68%, transparent 69%),
        linear-gradient(transparent 46%, rgb(0 0 0 / .2) 47% 53%, transparent 54%),
        linear-gradient(135deg, #f6e6b8, var(--inv-accent) 55%, color-mix(in srgb, var(--inv-accent) 70%, #000));
    box-shadow: inset 0 0 0 1px rgb(0 0 0 / .15);
}
/* a faint khatam lattice on the card */
.inv-gift__account:not(.inv-gift__address)::after {
    content: ''; position: absolute; right: -2rem; bottom: -2.5rem; z-index: -1; width: 8rem; height: 8rem;
    background: #fff; opacity: .18;
    -webkit-mask: var(--sk-lattice) center / 34px 34px repeat, radial-gradient(closest-side, #000 40%, transparent);
    -webkit-mask-composite: source-in;
    mask: var(--sk-lattice) center / 34px 34px repeat intersect, radial-gradient(closest-side, #000 40%, transparent);
}
.inv-gift__account:not(.inv-gift__address) .inv-gift__bank {
    order: 0; margin: 0; min-height: 1.5rem; max-width: 100%; display: flex; align-items: center; overflow-wrap: anywhere;
    font: .74rem/1.2 var(--sk-label); letter-spacing: .1em; text-transform: uppercase; color: #fff;
}
.inv-gift__account:not(.inv-gift__address) .inv-gift__logo { height: 1.5rem; padding: .2rem .45rem; border-radius: .35rem; }
.inv-gift__account:not(.inv-gift__address) .inv-gift__logo img { max-width: 5.5rem; }
.inv-gift__account:not(.inv-gift__address) .inv-gift__number {
    order: 2; max-width: 100%; margin: .55rem 0 0; font: 500 .98rem/1.3 var(--sk-mono); letter-spacing: .04em; color: #fff;
    text-shadow: 0 1px 0 rgb(0 0 0 / .3); overflow-wrap: anywhere;
}
.inv-gift__account:not(.inv-gift__address) .inv-gift__holder {
    order: 3; max-width: 100%; margin: .2rem 0 0; font: .62rem/1.35 var(--sk-label); letter-spacing: .1em; text-transform: uppercase;
    color: rgb(255 255 255 / .85); overflow-wrap: anywhere;
}
.inv-gift__account:not(.inv-gift__address) .inv-button {
    order: 4; margin-top: .65rem; padding: .35rem .75rem; font-size: .7rem;
    background: rgb(255 255 255 / .14); color: #fff;
    box-shadow: inset 0 0 0 1px rgb(255 255 255 / .4);
}
.inv-gift__address {
    padding: 1.4rem 1.2rem; border-radius: 16px; text-align: center; background: var(--sk-paper);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--inv-accent) 40%, transparent), var(--sk-shadow);
}
.inv-gift__address .inv-gift__bank { margin: 0 0 .4rem; font: .74rem/1.4 var(--sk-label); letter-spacing: .2em; text-transform: uppercase; color: var(--inv-primary); }
.inv-gift__address .inv-gift__holder { margin: 0 0 .2rem; font: 600 1.15rem/1.3 var(--sk-serif); }
.inv-gift__address p { margin: 0 0 .9rem; font-size: .95rem; color: var(--sk-muted); }

/* ---------- forms & wishes ---------- */
.sk-form .inv-form label, .sk-form .inv-form__choices legend { font-weight: 600; font-size: .92rem; }
.sk-form .inv-form input:not([type=radio]):not([type=checkbox]), .sk-form .inv-form select, .sk-form .inv-form textarea {
    border: 1px solid color-mix(in srgb, var(--inv-accent) 45%, transparent); border-radius: 12px;
    background: #fff; color: var(--inv-text); padding: .7rem .85rem; font-family: var(--sk-text); font-size: 1rem;
}
.sk-form .inv-form input:focus, .sk-form .inv-form select:focus, .sk-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) 16%, transparent);
}
.sk-form .inv-form .inv-button[type=submit] { width: 100%; padding: .85rem 1rem; }
.inv-rsvp__deadline { margin: 0 0 .9rem; font-size: .9rem; color: var(--sk-muted); text-align: center; }
.inv-form__notice { background: color-mix(in srgb, var(--inv-soft) 80%, transparent); }
.inv-wishes { --inv-wishes-height: 20rem; }
.inv-wishes:not(.inv-wishes--paged) .inv-wishes__list {
    padding: .5rem .45rem .5rem .35rem; border-radius: 12px;
    background: color-mix(in srgb, var(--inv-soft) 50%, transparent);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--inv-accent) 20%, transparent);
}
.inv-wish {
    padding: .65rem .8rem; background: #fff; border-radius: 4px 14px 14px 14px;
    box-shadow: inset 3px 0 0 var(--inv-primary), inset 0 0 0 1px color-mix(in srgb, var(--inv-accent) 22%, transparent);
}
.inv-wish__name { font: 600 1.05rem/1.3 var(--sk-serif); color: var(--inv-primary); }
.inv-wish__message { font-size: .95rem; line-height: 1.45; }
.inv-wish__time { font-size: .74rem; }

/* ---------- closing ---------- */
.sk-closing { padding-bottom: 2rem; }
.sk-scene { position: relative; isolation: isolate; width: min(72%, 15rem); aspect-ratio: 3 / 3.6; margin: 0 auto 1.6rem; }
.sk-scene__moon { position: absolute; top: 17%; left: 50%; width: 1.8rem; height: 1.8rem; margin-left: -.9rem; animation: sk-rock 6s ease-in-out infinite alternate; }
.sk-scene__lantern { position: absolute; top: 24%; width: 1.25rem; height: 3.6rem; }
.sk-scene__lantern--left { left: 16%; }
.sk-scene__lantern--right { right: 16%; animation-delay: -2.7s; }
.sk-scene__medallion { position: absolute; top: 46%; left: 50%; margin: 0; translate: -50% 0; }
.sk-scene__flower { position: absolute; bottom: 0; width: 42%; height: auto; aspect-ratio: 1; opacity: .6; }
.sk-scene__flower--left { left: -6%; }
.sk-scene__flower--right { right: -6%; scale: -1 1; transform-origin: 50% 100%; }

.sk-closing__kicker { margin-bottom: .9rem; }
.sk-closing__message { max-width: 32ch; margin: 0 auto; color: var(--sk-muted); }
.sk-closing__sign { margin-bottom: .2rem; }
.sk-closing__names { font-size: clamp(2.5rem, 11vw, 3rem); }

/* ---------- footer & floating UI ---------- */
.sk-foot { flex: 1; display: grid; align-content: start; justify-items: center; padding: .5rem 1rem 0; }
.sk-foot__star { width: 1.8rem; height: 1.8rem; opacity: .8; }
.sk-branding { color: var(--sk-muted); opacity: 1; }

.sk-nav.inv-nav {
    --inv-nav-bg: color-mix(in srgb, var(--inv-background) 94%, transparent);
    --inv-nav-text: color-mix(in srgb, var(--inv-text) 70%, transparent);
    --inv-nav-active: var(--inv-primary);
    border-color: var(--sk-line);
    box-shadow: 0 10px 30px -14px color-mix(in srgb, var(--inv-deep) 60%, transparent);
}
.sk-nav.inv-nav--icons .inv-nav__item.is-active { border-radius: 999px 999px .8rem .8rem; color: #fff; }

/* floating buttons stay inside the column */
.inv-music { right: calc(var(--sk-edge) + 1rem); }
.inv-music__button { background: var(--inv-primary); color: #fff; box-shadow: 0 0 0 2px var(--inv-background), 0 0 0 3px var(--sk-line), 0 8px 18px -8px var(--inv-deep); }
.inv-autoscroll { color: var(--inv-primary); font-family: var(--sk-text); }
.inv-autoscroll--running { background: var(--inv-primary); color: #fff; }
.inv-to-top { left: calc(var(--sk-edge) + 1rem); border-radius: 999px 999px .6rem .6rem; background: var(--sk-paper); color: var(--inv-primary); box-shadow: 0 0 0 1px var(--sk-line), 0 6px 14px rgb(0 0 0 / .15); }
.inv-qr-tab { right: var(--sk-edge); font-family: var(--sk-text); color: var(--inv-primary); border-color: var(--sk-line); background: color-mix(in srgb, var(--inv-background) 96%, transparent); border-radius: 1rem 0 0 1rem; }
.inv-qr-sheet .inv-checkin { font-family: var(--sk-text); color: var(--inv-text); }
.inv-checkin__title { color: var(--inv-primary); }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .sk-flower, .sk-lantern, .sk-cover__moon, .sk-hero__moon, .sk-scene__moon, .sk-medallion__star, .sk-live__badge span { animation: none; }
    .sk-cover--leave { transition: opacity .3s ease; }
}

/* arches fade softly into the paper at their foot */
.sk-arch--fill { -webkit-mask-image: linear-gradient(#000 78%, transparent); mask-image: linear-gradient(#000 78%, transparent); }

/* ---------- fit: the page end and the cover on every phone ---------- */

/* the page ends close under the closing names and the small khatam star (the menu covers the last ~90px) */
.sk-closing { padding-bottom: 1.2rem; }

/* the cover blocks share the screen height; the corner flowers stay small beside the guest box */
.sk-cover__inner { justify-content: space-evenly; }
.sk-cover .sk-flower { width: min(7.2rem, 13svh); height: min(7.2rem, 13svh); }

@media (max-height: 760px) {
    .sk-cover__inner { padding: calc(2.4rem + env(safe-area-inset-top)) 1.5rem calc(1.8rem + env(safe-area-inset-bottom)); }
    .sk-cover__frame { padding: 3.7rem 1.2rem 1.3rem; gap: .25rem; }
    .sk-cover__the { margin-top: .2rem; }
    .sk-medallion { width: 5rem; height: 5rem; margin: .3rem 0 .1rem; }
    .sk-medallion__letters { width: 2.8rem; height: 2.8rem; font-size: 1.1rem; }
    .sk-cover__names { font-size: clamp(2.3rem, 10.5vw, 2.6rem); line-height: 1.05; }
    .sk-cover__date { margin-top: .4rem; }
    .sk-cover__quote { max-width: 30ch; font-size: .95rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
    .sk-guest { margin-top: 1rem; padding-block: .65rem .7rem; }
    .sk-open { margin-top: 1rem; }
}
@media (max-height: 660px) {
    .sk-cover__inner { padding: calc(2rem + env(safe-area-inset-top)) 1.4rem calc(1.4rem + env(safe-area-inset-bottom)); }
    .sk-cover__frame { padding: 3.1rem 1rem .9rem; }
    .sk-medallion { width: 4.2rem; height: 4.2rem; }
    .sk-medallion__letters { width: 2.4rem; height: 2.4rem; font-size: 1rem; }
    .sk-cover__names { font-size: 2.1rem; }
    .sk-cover__quote { font-size: .9rem; -webkit-line-clamp: 6; }
    .sk-guest { margin-top: .8rem; padding-block: .5rem .55rem; }
    .sk-guest__name { font-size: 1.2rem; }
    .sk-open { margin-top: .8rem; padding-block: .75rem; }
}
