/*
 * Template "Dasar" (Khitanan): calm and classic. Cream paper, a crescent and star, arch frames.
 * Mobile-first, one centered column (~460px) on a tinted backdrop on wide screens.
 *
 * Colors come from the chosen color variant (template.json → <x-inv.head>):
 *   --inv-primary (green / navy / blue), --inv-accent (gold), --inv-background (cream), --inv-text
 * Everything else is mixed from those, so a new variant only needs four colors.
 *
 * Motion only runs with html.inv-anim (set by <x-inv.head> unless the guest prefers reduced motion);
 * without it every drawing is shown finished.
 *
 * Contents: 1 base · 2 cover · 3 shared pieces (heading, arch, crescent, icons) · 4 sections in page order
 *           · 5 forms (RSVP, wishes) · 6 shared components (nav, ambient…) · 7 screen sizes · 8 motion
 */

/* ---------- 1. base ---------- */
:root {
    --dasar-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --dasar-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --dasar-paper: color-mix(in srgb, #fff 72%, var(--inv-background));
    --dasar-tint: color-mix(in srgb, var(--inv-primary) 7%, var(--inv-background));
    --dasar-line: color-mix(in srgb, var(--inv-primary) 18%, transparent);
    /* the gold accent is too light for small text on cream: text uses this darker mix */
    --dasar-accent-text: color-mix(in srgb, var(--inv-accent) 55%, var(--inv-text));
    --dasar-muted: color-mix(in srgb, var(--inv-text) 78%, var(--inv-background));
    --dasar-shadow: 0 18px 40px -26px color-mix(in srgb, var(--inv-primary) 55%, transparent);
    /* the arch shape (a mosque window): round top, softly rounded bottom; for a 3:4 box */
    /* a tile of eight-point stars, used as a mask so it takes any color */
    --dasar-star-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cpath d='M28 16l3.5 8.5L40 28l-8.5 3.5L28 40l-3.5-8.5L16 28l8.5-3.5Z' fill='none' stroke='%23000' stroke-width='1.2'/%3E%3Cpath d='M19.5 19.5h17v17h-17Z' fill='none' stroke='%23000' stroke-width='1.2' transform='rotate(45 28 28)'/%3E%3C/svg%3E");
    --dasar-arch-radius: 50% 50% 14px 14px / 37.5% 37.5% 14px 14px;
    /* colors of the shared components */
    --inv-ambient-1: var(--inv-accent);
    --inv-ambient-2: color-mix(in srgb, var(--inv-primary) 45%, #fff);
    --inv-nav-bg: color-mix(in srgb, var(--dasar-paper) 92%, transparent);
    --inv-nav-text: color-mix(in srgb, var(--inv-text) 72%, transparent);
    --inv-nav-active: var(--inv-primary);
    --inv-radius: 14px;
}

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

body {
    margin: 0;
    background: var(--inv-background);
    color: var(--inv-text);
    font-family: var(--dasar-sans);
    font-size: 15px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }
a { color: var(--inv-primary); }

.dasar-preview {
    position: sticky; top: 0; z-index: 60; padding: .5rem 1rem; text-align: center;
    background: #fff4d6; color: #6b4e00; font-size: .8125rem;
}

/* the one column of the page */
.dasar-main { max-width: 460px; margin: 0 auto; padding: 0 1.25rem; background: var(--inv-background); }
.dasar-branding { max-width: 460px; margin: 0 auto; background: var(--inv-background); }
/* the page end: the last line sits ~125px above the end, clear of the bottom menu, the music button and
   the "Gulir" pill. The music player adds its own 72px spacer (.inv-music__space) when music or auto scroll is on. */
body.dasar-body .dasar-branding.inv-branding { padding-bottom: 3.5rem; }
body.dasar-body:not(:has(.inv-music__space)) .dasar-branding.inv-branding { padding-bottom: 8rem; }
body.dasar-body:not(:has(.inv-music__space)) .dasar-main { padding-bottom: 5rem; }

/* every section: the same rhythm, content centered */
.dasar-section { padding: 3.25rem 0; text-align: center; }
.dasar-section > p { margin: 0 auto 1rem; max-width: 34ch; }

.dasar-arabic { font-family: 'Amiri', 'Traditional Arabic', serif; line-height: 1.9; color: var(--inv-primary); }
.dasar-amp { font-family: var(--dasar-serif); font-style: italic; color: var(--dasar-accent-text); }

/* a small rounded link with an icon (Instagram) */
.dasar-chip {
    display: inline-flex; align-items: center; gap: .35rem; min-height: 2.25rem; padding: .3rem .85rem;
    border-radius: 999px; font-size: .82rem; font-weight: 500; text-decoration: none; color: var(--inv-primary);
    background: var(--dasar-paper); box-shadow: inset 0 0 0 1px var(--dasar-line);
}
.dasar-chip .dasar-icon { width: 1rem; height: 1rem; }

/* ---------- 2. cover ---------- */
.dasar-cover {
    position: fixed; inset: 0; z-index: 30; overflow-x: hidden; overflow-y: auto;
    display: flex; flex-direction: column; align-items: center; justify-content: safe center;
    min-height: 100svh; padding: 2.4rem 1.25rem 2.5rem;
    isolation: isolate; text-align: center; color: var(--inv-text);
    background:
        radial-gradient(120% 60% at 50% 0%, color-mix(in srgb, var(--inv-accent) 16%, transparent), transparent 70%),
        linear-gradient(to bottom, var(--inv-background), color-mix(in srgb, var(--inv-primary) 12%, var(--inv-background)));
    transition: opacity .9s ease;
}
/* a faint grid of eight-point stars; the mask keeps it in the primary color */
.dasar-cover__pattern {
    position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .055;
    background: var(--inv-primary);
    -webkit-mask: var(--dasar-star-pattern) 0 0 / 56px 56px repeat;
    mask: var(--dasar-star-pattern) 0 0 / 56px 56px repeat;
}
.dasar-cover__inner { display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 400px; }

/* the art: arch window with the crescent hanging over its top and a soft light behind */
.dasar-cover__art { position: relative; margin-top: 1.4rem; }
.dasar-cover__glow {
    position: absolute; left: 50%; top: -2.4rem; z-index: -1; width: 11rem; height: 11rem; margin-left: -5.5rem;
    border-radius: 50%; pointer-events: none;
    background: radial-gradient(closest-side, color-mix(in srgb, var(--inv-accent) 55%, #fff), color-mix(in srgb, var(--inv-accent) 18%, transparent) 55%, transparent);
    transition: transform 1s cubic-bezier(.5, 0, .3, 1), opacity 1s ease;
}
.dasar-cover__crescent {
    position: absolute; left: 50%; top: 0; z-index: 2; width: 4rem; height: 4rem;
    transform: translate(-50%, -62%);
    filter: drop-shadow(0 0 10px color-mix(in srgb, var(--inv-accent) 60%, transparent));
}
.dasar-arch--cover { --arch-w: min(25svh, 58vw); }

.dasar-cover__title {
    margin: 1.1rem 0 .1rem; font-size: .72rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase;
    color: var(--inv-primary);
}
.dasar-cover__names {
    margin: 0; font-family: var(--dasar-serif); font-weight: 600; font-size: 2.9rem; line-height: 1.08;
    color: var(--inv-primary); overflow-wrap: anywhere;
}
.dasar-cover--many .dasar-cover__names { font-size: 2.3rem; }
.dasar-cover__date {
    display: flex; align-items: center; gap: .7rem; margin: .35rem 0 0;
    font-size: .88rem; font-weight: 500; letter-spacing: .04em; color: var(--dasar-muted);
}
.dasar-cover__date::before, .dasar-cover__date::after { content: ''; width: 1.6rem; height: 1px; background: var(--inv-accent); }
.dasar-cover__quote {
    max-width: 30ch; margin: .7rem auto 0; font-family: var(--dasar-serif); font-style: italic;
    font-size: 1.02rem; line-height: 1.4; color: var(--dasar-muted);
}
.dasar-cover__guest {
    width: min(100%, 17.5rem); margin: 1rem 0 0; padding: .55rem 1rem .6rem; border-radius: 14px;
    background: color-mix(in srgb, #fff 62%, transparent); box-shadow: inset 0 0 0 1px var(--dasar-line);
}
.dasar-cover__guest p { margin: 0; font-size: .74rem; letter-spacing: .06em; color: var(--dasar-muted); }
.dasar-cover__guest-name { display: block; font-family: var(--dasar-serif); font-size: 1.3rem; font-weight: 600; line-height: 1.25; color: var(--inv-text); overflow-wrap: anywhere; }
.dasar-cover__open { margin-top: 1.1rem; min-height: 2.9rem; padding: .7rem 1.8rem; font-weight: 600; letter-spacing: .02em; box-shadow: var(--dasar-shadow); }

/* opening: the light swells over the screen while the cover fades up and away (never blocks: .9s) */
.dasar-cover--leave { transition: opacity .9s ease .1s; }
.dasar-cover__inner { transition: transform .9s cubic-bezier(.5, 0, .3, 1); }
.dasar-cover--gone { opacity: 0; }
.dasar-cover--gone .dasar-cover__inner { transform: translateY(-2.5rem); }
.dasar-cover--gone .dasar-cover__glow { transform: scale(9); opacity: .9; }

/* ---------- 3. shared pieces ---------- */

/* section heading: eyebrow, title, drawn accent */
.dasar-heading { margin: 0 0 1.9rem; }
.dasar-heading__eyebrow { margin: 0 0 .3rem; font-size: .7rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--dasar-accent-text); }
.dasar-heading__title { margin: 0; font-family: var(--dasar-serif); font-size: 2.1rem; font-weight: 600; line-height: 1.12; color: var(--inv-primary); }
.dasar-heading__accent { display: block; width: 7.5rem; height: 1.05rem; margin: .55rem auto 0; overflow: visible; }
.dasar-heading__line { fill: none; stroke: var(--inv-accent); stroke-width: 1.3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 1.1s cubic-bezier(.65, 0, .35, 1) .35s; }
.dasar-heading__star { fill: var(--inv-accent); transform-origin: 66px 9px; transform-box: view-box; transition: transform .7s cubic-bezier(.34, 1.56, .64, 1) .25s; }
html.inv-anim .dasar-heading:not(.is-revealed) .dasar-heading__line { stroke-dashoffset: 1; }
html.inv-anim .dasar-heading:not(.is-revealed) .dasar-heading__star { transform: scale(0) rotate(-90deg); }

/* icons */
.dasar-icon { width: 1.15rem; height: 1.15rem; flex: none; }

/* crescent and star (fill + outline that can draw itself) */
.dasar-crescent { display: block; overflow: visible; }
.dasar-crescent__fill { fill: var(--inv-accent); }
.dasar-crescent__line { fill: none; stroke: color-mix(in srgb, var(--inv-accent) 65%, var(--inv-text)); stroke-width: 1.6; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }

/* arch frame: an outer gold line, a cream gap, then the window with the photo or the illustration */
.dasar-arch {
    --arch-w: 11rem;
    position: relative; width: var(--arch-w); margin: 0 auto; padding: 6px;
    border-radius: var(--dasar-arch-radius); background: var(--dasar-paper);
    box-shadow: inset 0 0 0 1.5px var(--inv-accent), var(--dasar-shadow);
}
.dasar-arch::after {
    content: ''; position: absolute; inset: -6px; border-radius: var(--dasar-arch-radius); pointer-events: none;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--inv-accent) 45%, transparent);
}
.dasar-arch__window { position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--dasar-arch-radius); }
.dasar-arch__photo { display: block; width: 100%; height: 100%; object-fit: cover; }
.dasar-arch__empty {
    position: absolute; inset: 0; display: grid; place-items: center;
    background:
        radial-gradient(80% 60% at 50% 22%, color-mix(in srgb, var(--inv-accent) 35%, transparent), transparent 70%),
        linear-gradient(165deg, color-mix(in srgb, var(--inv-primary) 82%, #fff), var(--inv-primary));
}
.dasar-arch__moon { position: absolute; left: 50%; top: 13%; width: 34%; transform: translateX(-50%); opacity: .55; }
.dasar-arch__moon .dasar-crescent__fill { fill: #fff; }
.dasar-arch__moon .dasar-crescent__line { stroke: none; }
.dasar-arch__initial {
    position: relative; margin-top: 22%; font-family: var(--dasar-serif); font-weight: 600; line-height: 1;
    font-size: calc(var(--arch-w) * .42); color: #fff; text-shadow: 0 6px 18px rgb(0 0 0 / .18);
}
.dasar-arch__initial--many { font-size: calc(var(--arch-w) * .25); white-space: nowrap; }

/* ---------- 4. sections ---------- */

/* opening */
.dasar-opening { padding-top: 3.75rem; }
.dasar-opening__basmalah { margin: 0 0 1.1rem; font-size: 1.75rem; }
.dasar-opening__greeting { margin: 0 auto .8rem !important; font-family: var(--dasar-serif); font-size: 1.25rem; font-weight: 600; font-style: italic; color: var(--inv-primary); }
.dasar-opening__message { color: var(--dasar-muted); }

/* child: one big arch, or 2–3 smaller ones side by side */
.dasar-child__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 2.25rem 1rem; }
.dasar-child__person { flex: 1 1 100%; min-width: 0; }
.dasar-child__list--2 .dasar-child__person, .dasar-child__list--3 .dasar-child__person { flex: 0 1 calc(50% - .5rem); }
.dasar-arch--child { --arch-w: 12.5rem; }
.dasar-child__list--2 .dasar-arch--child, .dasar-child__list--3 .dasar-arch--child { --arch-w: min(9rem, 38vw); }
.dasar-child__nickname { margin: 1.1rem 0 0; font-size: .7rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--dasar-accent-text); }
.dasar-child__name { margin: .15rem 0 .35rem; font-family: var(--dasar-serif); font-size: 1.85rem; font-weight: 600; line-height: 1.12; color: var(--inv-primary); overflow-wrap: anywhere; }
.dasar-child__list--2 .dasar-child__name, .dasar-child__list--3 .dasar-child__name { font-size: 1.35rem; }
.dasar-child__meta { display: flex; flex-wrap: wrap; justify-content: center; gap: .1rem .9rem; margin: 0 0 .75rem; font-size: .84rem; color: var(--dasar-muted); }
.dasar-child__meta span + span::before { content: '·'; margin-right: .9rem; color: var(--inv-accent); }
.dasar-child__list--2 .dasar-child__meta, .dasar-child__list--3 .dasar-child__meta { flex-direction: column; }
.dasar-child__list--2 .dasar-child__meta span + span::before, .dasar-child__list--3 .dasar-child__meta span + span::before { content: none; }
.dasar-child__parents {
    margin: 2.25rem auto 0; padding: 1.4rem 1.25rem; border-radius: 18px; background: var(--dasar-tint);
    box-shadow: inset 0 0 0 1px var(--dasar-line);
}
.dasar-child__parents-label { margin: 0 0 .3rem; font-size: .7rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--dasar-accent-text); }
.dasar-child__parents-names { display: flex; flex-direction: column; align-items: center; margin: 0; font-family: var(--dasar-serif); font-size: 1.3rem; font-weight: 600; line-height: 1.3; }
.dasar-child__parents-names .dasar-amp { font-size: 1.1rem; }
.dasar-child__address { display: inline-flex; align-items: flex-start; gap: .45rem; margin: .9rem 0 0; font-size: .84rem; text-align: left; color: var(--dasar-muted); }
.dasar-child__address .dasar-icon { margin-top: .15rem; color: var(--inv-primary); }

/* message: a paper card with a large quotation mark */
.dasar-message__card {
    position: relative; margin: 0; padding: 2.3rem 1.4rem 1.5rem; border-radius: 20px; background: var(--dasar-paper);
    box-shadow: var(--dasar-shadow), inset 0 0 0 1px var(--dasar-line);
}
.dasar-message__mark { position: absolute; left: 50%; top: 0; width: 2.6rem; height: 2rem; padding: .35rem; transform: translate(-50%, -50%); border-radius: 999px; fill: var(--inv-accent); background: var(--inv-background); }
.dasar-message__card p { margin: 0; font-family: var(--dasar-serif); font-size: 1.2rem; font-style: italic; line-height: 1.5; }
.dasar-message__card cite { display: block; margin-top: 1rem; font-style: normal; font-size: .8rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--inv-primary); }
.dasar-message__card cite::before { content: '— '; }

/* events: paper cards with an arch photo, a date block and icon rows */
.dasar-event {
    padding: 1.1rem 1.1rem 1.3rem; border-radius: 22px; background: var(--dasar-paper); text-align: left;
    box-shadow: var(--dasar-shadow), inset 0 0 0 1px var(--dasar-line);
}
.dasar-event + .dasar-event { margin-top: 1.5rem; }
.dasar-event__photo { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; margin-bottom: 1.1rem; border-radius: 7rem 7rem 12px 12px; }
.dasar-event__head { display: flex; align-items: center; gap: .9rem; padding-bottom: .9rem; border-bottom: 1px dashed var(--dasar-line); }
.dasar-event__date {
    display: grid; place-items: center; flex: none; width: 4.1rem; margin: 0; padding: .45rem 0 .5rem; border-radius: 2rem 2rem 10px 10px;
    background: var(--inv-primary); color: #fff; text-align: center; line-height: 1;
}
.dasar-event__day { font-variant-numeric: lining-nums; font-family: var(--dasar-serif); font-size: 1.9rem; font-weight: 700; }
.dasar-event__month { margin-top: .2rem; font-size: .62rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.dasar-event__name { margin: 0; font-family: var(--dasar-serif); font-size: 1.6rem; font-weight: 600; line-height: 1.1; color: var(--inv-primary); }
.dasar-event__weekday { margin: .25rem 0 0; font-size: .84rem; color: var(--dasar-muted); }
.dasar-event__rows { display: grid; gap: .75rem; margin: 1rem 0 0; padding: 0; list-style: none; font-size: .9rem; }
.dasar-event__rows li { display: flex; align-items: flex-start; gap: .7rem; }
.dasar-event__rows .dasar-icon {
    width: 2rem; height: 2rem; padding: .42rem; border-radius: 50%; color: var(--inv-primary);
    background: color-mix(in srgb, var(--inv-primary) 10%, transparent);
}
.dasar-event__rows li > span { padding-top: .28rem; }
.dasar-event__venue { display: block; font-weight: 600; }
.dasar-event__address { display: block; font-size: .84rem; color: var(--dasar-muted); }
.dasar-event .inv-maps { margin-top: 1.1rem; text-align: center; }
.dasar-event .inv-maps .inv-button { width: 100%; }
.dasar-event .inv-maps__frame { height: 190px; border-radius: 14px; }

/* countdown: round cards with a slowly turning dotted ring; calendar well below the buttons */
.dasar-countdown .inv-countdown { gap: clamp(.4rem, 2.4vw, .8rem); }
.dasar-countdown .inv-countdown__item {
    position: relative; display: grid; place-content: center; width: clamp(4rem, 18.5vw, 4.7rem); min-width: 0; aspect-ratio: 1; padding: 0;
    border-radius: 50%; background: var(--dasar-paper); box-shadow: var(--dasar-shadow), inset 0 0 0 1.5px color-mix(in srgb, var(--inv-primary) 30%, transparent);
}
.dasar-countdown .inv-countdown__item::before {
    content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 1.5px dotted color-mix(in srgb, var(--inv-accent) 85%, transparent);
}
.dasar-countdown .inv-countdown__value { font-variant-numeric: lining-nums tabular-nums; font-family: var(--dasar-serif); font-size: 1.65rem; font-weight: 700; color: var(--inv-primary); }
.dasar-countdown .inv-countdown__label { margin-top: .1rem; font-size: .6rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
.dasar-countdown .inv-countdown__done { font-family: var(--dasar-serif); font-size: 1.2rem; font-style: italic; color: var(--inv-primary); }
.dasar-countdown .inv-countdown__actions { flex-direction: column; align-items: center; gap: .6rem; margin-top: 1.6rem; }
.dasar-countdown .inv-countdown__actions .inv-button { width: min(100%, 17rem); min-height: 2.75rem; padding: .6rem 1rem; font-size: .84rem; font-weight: 500; background: var(--dasar-paper); }
.dasar-countdown .inv-cal {
    --inv-cal-bg: var(--dasar-paper); --inv-cal-mark: color-mix(in srgb, var(--inv-accent) 70%, var(--inv-text));
    max-width: 19rem; margin: 2.5rem auto 0; border-radius: 18px; box-shadow: var(--dasar-shadow), inset 0 0 0 1px var(--dasar-line);
}
.dasar-countdown .inv-cal__month { font-family: var(--dasar-serif); font-size: 1.4rem; font-weight: 600; color: var(--inv-primary); }

/* prayer: a framed panel with stars in the corners */
.dasar-prayer__frame {
    position: relative; padding: 2rem 1.4rem 1.7rem; border-radius: 6px; background: var(--dasar-tint);
    outline: 1px solid color-mix(in srgb, var(--inv-accent) 70%, transparent); outline-offset: -8px;
}
.dasar-prayer__corner { position: absolute; width: .95rem; height: .95rem; fill: var(--inv-accent); }
.dasar-prayer__corner--tl { left: 2px; top: 2px; }
.dasar-prayer__corner--tr { right: 2px; top: 2px; }
.dasar-prayer__corner--bl { left: 2px; bottom: 2px; }
.dasar-prayer__corner--br { right: 2px; bottom: 2px; }
.dasar-prayer__arabic { margin: 0 0 1rem; font-size: 1.5rem; }
.dasar-prayer__text { margin: 0; }
.dasar-prayer__text p { margin: 0; font-family: var(--dasar-serif); font-size: 1.12rem; font-style: italic; line-height: 1.5; }
.dasar-prayer__text cite { display: inline-block; margin-top: .8rem; font-style: normal; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--inv-primary); }

/* rundown: a vertical time line (time pill | line + dot | text) */
.dasar-rundown__list { position: relative; margin: 0; padding: 0; list-style: none; text-align: left; }
.dasar-rundown__list::before {
    content: ''; position: absolute; left: 5.05rem; top: .55rem; bottom: .55rem; width: 2px; border-radius: 2px;
    background: linear-gradient(to bottom, var(--inv-accent), var(--inv-primary)); transform-origin: top;
}
.dasar-rundown__item { position: relative; display: grid; grid-template-columns: 4.3rem minmax(0, 1fr); column-gap: 1.6rem; padding: 0 0 1.35rem; }
.dasar-rundown__item:last-child { padding-bottom: 0; }
.dasar-rundown__item::before {
    content: ''; position: absolute; left: calc(5.05rem - 5px); top: .4rem; width: 12px; height: 12px; border-radius: 50%;
    background: var(--inv-background); box-shadow: inset 0 0 0 3px var(--inv-primary), 0 0 0 4px var(--inv-background);
}
.dasar-rundown__time {
    justify-self: start; align-self: start; padding: .2rem .6rem; border-radius: 999px; font-size: .82rem; font-weight: 600;
    font-variant-numeric: tabular-nums; color: var(--inv-primary); background: color-mix(in srgb, var(--inv-primary) 10%, transparent);
}
.dasar-rundown__body h3 { margin: 0; font-size: .98rem; font-weight: 600; line-height: 1.4; }
.dasar-rundown__body p { margin: .15rem 0 0; font-size: .85rem; color: var(--dasar-muted); }

/* story: chapters joined by a dotted path, a year badge on each */
.dasar-story__list { margin: 0; padding: 0; list-style: none; }
.dasar-story__item { position: relative; display: flex; flex-direction: column; align-items: center; }
.dasar-story__item + .dasar-story__item { padding-top: 2.4rem; }
.dasar-story__item + .dasar-story__item::before {
    content: ''; position: absolute; left: 50%; top: .3rem; height: 1.8rem; border-left: 2px dotted var(--inv-accent);
}
.dasar-story__badge {
    position: relative; z-index: 1; margin-bottom: -1rem; padding: .3rem .95rem; border-radius: 999px;
    font-size: .8rem; font-weight: 600; letter-spacing: .08em; color: #fff; background: var(--inv-primary);
    box-shadow: 0 0 0 4px var(--inv-background);
}
.dasar-story__card {
    width: 100%; padding: 1.7rem 1.2rem 1.3rem; border-radius: 20px; background: var(--dasar-paper);
    box-shadow: var(--dasar-shadow), inset 0 0 0 1px var(--dasar-line);
}
.dasar-story__photo { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 1rem; border-radius: 8rem 8rem 12px 12px; }
.dasar-story__card h3 { margin: 0; font-family: var(--dasar-serif); font-size: 1.4rem; font-weight: 600; line-height: 1.2; color: var(--inv-primary); }
.dasar-story__card p { margin: .45rem 0 0; font-size: .9rem; color: var(--dasar-muted); }

/* gallery */
.dasar-gallery .inv-gallery { gap: .6rem; }
.dasar-gallery .inv-gallery__item { border-radius: 14px; box-shadow: var(--dasar-shadow); }
.dasar-gallery .inv-gallery__item:first-child { grid-column: 1 / -1; aspect-ratio: 4 / 3; border-radius: 9rem 9rem 14px 14px; }

/* live streaming */
.dasar-stream__card {
    padding: 1.6rem 1.3rem; border-radius: 22px; color: #fff;
    background:
        radial-gradient(70% 70% at 50% 0%, color-mix(in srgb, var(--inv-accent) 35%, transparent), transparent 70%),
        var(--inv-primary);
}
.dasar-stream__icon { display: inline-grid; place-items: center; width: 3.2rem; height: 3.2rem; border-radius: 50%; background: rgb(255 255 255 / .16); }
.dasar-stream__icon .dasar-icon { width: 1.7rem; height: 1.7rem; }
.dasar-stream__title { margin: .7rem 0 .3rem; font-family: var(--dasar-serif); font-size: 1.8rem; font-weight: 600; line-height: 1.1; }
.dasar-stream__card p { margin: 0 auto .4rem; max-width: 30ch; font-size: .9rem; }
.dasar-stream__note { opacity: .9; font-size: .84rem !important; }
.dasar-stream__card .inv-button { margin-top: .7rem; min-height: 2.75rem; background: #fff; color: var(--inv-primary); font-weight: 600; }

/* RSVP card and the check after sending */
.dasar-rsvp__card {
    position: relative; padding: 1.5rem 1.15rem 1.4rem; border-radius: 22px; background: var(--dasar-paper);
    box-shadow: var(--dasar-shadow), inset 0 0 0 1px var(--dasar-line);
}
.dasar-rsvp__intro { margin: 0 auto 1.1rem; max-width: 30ch; font-size: .9rem; color: var(--dasar-muted); }
.dasar-rsvp__sent { margin-bottom: 1rem; }
.dasar-rsvp__check { display: block; width: 4.25rem; height: 4.25rem; margin: 0 auto .5rem; }
.dasar-rsvp__check circle { fill: var(--inv-primary); }
.dasar-rsvp__check path { fill: none; stroke: #fff; stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; }
html.inv-anim .dasar-rsvp__sent .dasar-rsvp__check { animation: dasar-bounce .8s cubic-bezier(.34, 1.56, .64, 1) both; }
html.inv-anim .dasar-rsvp__sent .dasar-rsvp__check path { animation: dasar-draw .45s ease-out .35s both; }
.dasar-rsvp__thanks { margin: 0; font-family: var(--dasar-serif); font-size: 1.6rem; font-weight: 700; color: var(--inv-primary); }
.dasar-rsvp__line { margin: .1rem 0 0; font-size: .9rem; color: var(--dasar-muted); }
.dasar-rsvp .inv-rsvp__deadline { margin: 0 0 1rem; font-size: .84rem; font-style: italic; color: var(--inv-primary); }

/* gift: envelope cards, two per row; the address card full width below */
.dasar-gift__intro { color: var(--dasar-muted); }
.dasar-gift .inv-gift__accounts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; margin-top: 1.25rem; }
.dasar-gift .inv-gift__account:last-child:nth-child(odd) { grid-column: 1 / -1; }
.dasar-gift .inv-gift__account {
    position: relative; display: flex; flex-direction: column; align-items: center; gap: .3rem; min-width: 0; margin: 0;
    padding: 1.15rem .75rem .9rem; border-radius: 16px; background: var(--dasar-paper);
    box-shadow: var(--dasar-shadow), inset 0 0 0 1px var(--dasar-line);
    outline: 1px dashed color-mix(in srgb, var(--inv-accent) 60%, transparent); outline-offset: -6px;
}
.dasar-gift .inv-gift__account p { margin: 0; }
.dasar-gift .inv-gift__bank { font-weight: 600; font-size: .85rem; color: var(--inv-primary); }
.dasar-gift .inv-gift__logo { height: 1.6rem; padding: .2rem .5rem; border-radius: .4rem; background: #fff; }
.dasar-gift .inv-gift__logo img { max-width: 5rem; }
.dasar-gift .inv-gift__number {
    font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; font-size: .98rem; font-weight: 600;
    letter-spacing: .03em; line-height: 1.3; overflow-wrap: anywhere; color: var(--inv-text);
}
.dasar-gift .inv-gift__holder { font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; color: var(--dasar-muted); overflow-wrap: anywhere; }
.dasar-gift .inv-gift__account .inv-button { margin-top: .35rem; min-height: 2.25rem; padding: .35rem .9rem; font-size: .72rem; }
.dasar-gift .inv-gift__address { margin-top: .7rem; font-size: .875rem; }
.dasar-gift .inv-gift__address .inv-gift__holder { font-size: .72rem; }

/* co-hosts: names with a small star between them */
.dasar-cohosts__list { margin: 0; padding: 0; list-style: none; font-family: var(--dasar-serif); font-size: 1.15rem; font-weight: 600; line-height: 1.35; }
.dasar-cohosts__list li + li::before {
    content: ''; display: block; width: .6rem; height: .6rem; margin: .55rem auto; background: var(--inv-accent);
    clip-path: polygon(50% 0, 63% 37%, 100% 50%, 63% 63%, 50% 100%, 37% 63%, 0 50%, 37% 37%);
}

/* contacts: cards with an initial and a WhatsApp button */
.dasar-contacts__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.dasar-contacts__list > :last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - .375rem); }
.dasar-contact {
    display: flex; flex-direction: column; align-items: center; min-width: 0; padding: 1.1rem .7rem 1rem; border-radius: 18px;
    background: var(--dasar-paper); box-shadow: var(--dasar-shadow), inset 0 0 0 1px var(--dasar-line);
}
.dasar-contact__avatar {
    display: grid; place-items: center; width: 3rem; height: 3rem; margin-bottom: .5rem; border-radius: 50%;
    font-family: var(--dasar-serif); font-size: 1.5rem; font-weight: 700; color: var(--inv-primary);
    background: color-mix(in srgb, var(--inv-primary) 11%, transparent); box-shadow: 0 0 0 3px var(--dasar-paper), 0 0 0 4px color-mix(in srgb, var(--inv-accent) 55%, transparent);
}
.dasar-contact p { margin: 0; }
.dasar-contact__name { font-weight: 600; font-size: .95rem; overflow-wrap: anywhere; }
.dasar-contact__role { font-size: .78rem; color: var(--dasar-muted); }
.dasar-contact__button { margin-top: .7rem; min-height: 2.5rem; padding: .45rem .9rem; font-size: .8rem; font-weight: 600; }
.dasar-contact__button .dasar-icon { width: 1.05rem; height: 1.05rem; }
.dasar-contact__phone { margin-top: .5rem !important; font-size: .85rem; }

/* health protocol */
.dasar-protocol__list { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.dasar-protocol__list li {
    display: inline-flex; align-items: center; gap: .35rem; padding: .45rem .85rem; border-radius: 999px; font-size: .84rem;
    background: var(--dasar-paper); box-shadow: inset 0 0 0 1px var(--dasar-line);
}
.dasar-protocol__list .dasar-icon { width: 1rem; height: 1rem; color: var(--inv-primary); }
.dasar-protocol__note { font-size: .88rem; color: var(--dasar-muted); }

/* vendors: small tiles, two per row */
.dasar-vendors__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; margin: 0; padding: 0; list-style: none; }
.dasar-vendors__list > :last-child:nth-child(odd) { grid-column: 1 / -1; }
.dasar-vendor { display: flex; flex-direction: column; align-items: center; min-width: 0; padding: .85rem .6rem; border-radius: 14px; background: var(--dasar-tint); }
.dasar-vendor__role { font-size: .64rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--dasar-accent-text); }
.dasar-vendor__name { margin-top: .1rem; font-family: var(--dasar-serif); font-size: 1.12rem; font-weight: 600; line-height: 1.2; overflow-wrap: anywhere; }
.dasar-vendor__link { display: inline-flex; align-items: center; gap: .3rem; min-height: 2rem; font-size: .76rem; text-decoration: none; overflow-wrap: anywhere; }
.dasar-vendor__link .dasar-icon { width: .95rem; height: .95rem; }

/* closing */
.dasar-closing { padding-bottom: 2.5rem; }
.dasar-closing__art { position: relative; width: max-content; margin: 1.6rem auto 1.6rem; }
.dasar-closing__crescent { position: absolute; left: 50%; top: 0; z-index: 2; width: 3rem; height: 3rem; transform: translate(-50%, -62%); }
.dasar-arch--closing { --arch-w: 10.5rem; }
.dasar-closing__message { margin: 0 auto; max-width: 32ch; color: var(--dasar-muted); }
.dasar-closing__salam { margin: 1.1rem 0 0; font-family: var(--dasar-serif); font-size: 1.15rem; font-style: italic; font-weight: 600; color: var(--inv-primary); }
.dasar-closing__signature { margin: 1.4rem 0 .1rem; font-size: .84rem; color: var(--dasar-muted); }
.dasar-closing__names { margin: 0; font-family: var(--dasar-serif); font-size: 2.3rem; font-weight: 600; line-height: 1.15; color: var(--inv-primary); }

/* ---------- 5. forms (shared RSVP + wishes, restyled) ---------- */
.dasar-main .inv-form { gap: 1rem; }
.dasar-main .inv-form label, .dasar-main .inv-form__choices legend { font-size: .82rem; font-weight: 600; color: var(--inv-text); }
.dasar-main .inv-form input:not([type=radio]):not([type=checkbox]),
.dasar-main .inv-form select,
.dasar-main .inv-form textarea {
    width: 100%; min-height: 2.9rem; padding: .7rem .9rem; border: 0; border-radius: 12px;
    font: 400 .95rem/1.4 var(--dasar-sans); color: var(--inv-text); background: #fff;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--inv-primary) 26%, transparent);
    transition: box-shadow .2s ease;
}
.dasar-main .inv-form select {
    appearance: none; padding-right: 2.4rem;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23777' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right .8rem center / 1.1rem no-repeat;
}
.dasar-main .inv-form input:not([type=radio]):focus-visible,
.dasar-main .inv-form select:focus-visible,
.dasar-main .inv-form textarea:focus-visible {
    outline: none; box-shadow: inset 0 0 0 2px var(--inv-primary), 0 0 0 4px color-mix(in srgb, var(--inv-accent) 35%, transparent);
}
.dasar-main .inv-form button[type=submit] { width: 100%; min-height: 3rem; font-weight: 600; box-shadow: var(--dasar-shadow); }
.dasar-main .inv-form .inv-button--outline { width: 100%; min-height: 2.75rem; }
.dasar-main .inv-form__notice { text-align: center; }

/* the three answers as big cards with icons (the radio dot is hidden but still focusable) */
.dasar-rsvp .inv-form__choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .55rem; }
.dasar-rsvp .inv-form__choices legend { margin-bottom: .5rem; padding: 0; }
.dasar-rsvp .inv-form__choices label {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: .45rem;
    min-height: 5.4rem; padding: .85rem .3rem .75rem; border-radius: 16px; cursor: pointer; text-align: center;
    font-size: .84rem; font-weight: 600; line-height: 1.2; color: var(--inv-text); background: #fff;
    box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--inv-primary) 22%, transparent);
    transition: background-color .25s ease, color .25s ease, transform .25s cubic-bezier(.34, 1.56, .64, 1), box-shadow .25s ease;
}
.dasar-rsvp .inv-form__choices input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
/* icon: a tinted circle (::before) with a check, a cross or a question mark on it (::after, a mask in the text color) */
.dasar-rsvp .inv-form__choices label::before {
    content: ''; width: 2.1rem; height: 2.1rem; border-radius: 50%; flex: none;
    background: color-mix(in srgb, var(--inv-primary) 12%, transparent);
    transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), background-color .25s ease;
}
.dasar-rsvp .inv-form__choices label::after {
    content: ''; position: absolute; left: 50%; top: 1.3rem; width: 1.2rem; height: 1.2rem; margin-left: -.6rem;
    background: currentColor; color: var(--inv-primary); pointer-events: none;
    -webkit-mask: var(--dasar-choice-icon) center / contain no-repeat; mask: var(--dasar-choice-icon) center / contain no-repeat;
}
.dasar-rsvp .inv-form__choices label:nth-of-type(1) {
    --dasar-choice-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}
.dasar-rsvp .inv-form__choices label:nth-of-type(2) {
    --dasar-choice-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M6.5 6.5l11 11M17.5 6.5l-11 11'/%3E%3C/svg%3E");
}
.dasar-rsvp .inv-form__choices label:nth-of-type(3) {
    --dasar-choice-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M8.5 8.8a3.5 3.5 0 1 1 4.9 3.2c-.9.4-1.4 1.1-1.4 2v.5M12 19h.01'/%3E%3C/svg%3E");
}
.dasar-rsvp .inv-form__choices label:has(input:checked) {
    color: #fff; background: var(--inv-primary); transform: translateY(-3px);
    box-shadow: 0 12px 24px -12px color-mix(in srgb, var(--inv-primary) 80%, transparent);
}
.dasar-rsvp .inv-form__choices label:has(input:checked)::before { background-color: rgb(255 255 255 / .2); transform: scale(1.1); }
.dasar-rsvp .inv-form__choices label:has(input:checked)::after { color: #fff; }
.dasar-rsvp .inv-form__choices label:has(input:focus-visible) { outline: 2px solid var(--inv-accent); outline-offset: 3px; }

/* wishes: the form on a card, the wishes in a scroll box of about three */
.dasar-wishes .inv-wishes { --inv-wishes-height: 20rem; }
.dasar-wishes .inv-form {
    padding: 1.3rem 1.1rem; border-radius: 22px; background: var(--dasar-paper);
    box-shadow: var(--dasar-shadow), inset 0 0 0 1px var(--dasar-line);
}
.dasar-wishes .inv-wishes__list { margin-top: 1.1rem; }
.dasar-wishes .inv-wishes:not(.inv-wishes--paged) .inv-wishes__list {
    padding: .55rem; border-radius: 18px; background: var(--dasar-tint); box-shadow: inset 0 0 0 1px var(--dasar-line);
}
.dasar-wishes .inv-wish { padding: .75rem .9rem; border-radius: 14px; background: #fff; box-shadow: 0 2px 10px rgb(0 0 0 / .04); border-left: 3px solid var(--inv-accent); }
.dasar-wishes .inv-wish__name { font-weight: 600; color: var(--inv-primary); }
.dasar-wishes .inv-wish__message { font-size: .88rem; line-height: 1.5; }
.dasar-wishes .inv-wish__time { font-size: .72rem; color: var(--dasar-muted); }

/* ---------- 6. shared components ---------- */
.dasar-main .inv-button { font-weight: 500; }
.inv-nav { font-family: var(--dasar-sans); }

/* ---------- 7. screen sizes ---------- */

/* short phones: the cover art and type step down so everything fits without scrolling */
@media (max-height: 760px) {
    .dasar-arch--cover { --arch-w: min(22.5svh, 56vw); }
    .dasar-cover { padding-top: 2rem; padding-bottom: 2.25rem; }
    .dasar-cover__names { font-size: 2.55rem; }
    .dasar-cover--many .dasar-cover__names { font-size: 2.05rem; }
    .dasar-cover__quote { font-size: .95rem; margin-top: .55rem; }
    .dasar-cover__guest { margin-top: .85rem; }
    .dasar-cover__open { margin-top: .95rem; }
}
@media (max-height: 660px) {
    .dasar-arch--cover { --arch-w: min(20.5svh, 54vw); }
    .dasar-cover { padding-top: 1.6rem; padding-bottom: 2.1rem; }
    .dasar-cover__crescent { width: 3rem; height: 3rem; }
    .dasar-cover__title { margin-top: .9rem; }
    .dasar-cover__names { font-size: 2.25rem; }
    .dasar-cover--many .dasar-cover__names { font-size: 1.85rem; }
    .dasar-cover__date { font-size: .82rem; }
    .dasar-cover__quote { font-size: .9rem; line-height: 1.35; }
    .dasar-cover__guest { padding: .45rem .9rem .5rem; }
    .dasar-cover__guest-name { font-size: 1.15rem; }
    .dasar-cover__open { min-height: 2.75rem; padding: .6rem 1.6rem; }
}

/* wide screens: the phone-width column on a tinted backdrop with the star pattern */
@media (min-width: 560px) {
    body.dasar-body {
        background:
            linear-gradient(color-mix(in srgb, var(--inv-primary) 10%, var(--inv-background)), color-mix(in srgb, var(--inv-primary) 10%, var(--inv-background)));
    }
    body.dasar-body::before {
        content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .08; background: var(--inv-primary);
        -webkit-mask: var(--dasar-star-pattern) 0 0 / 56px 56px repeat; mask: var(--dasar-star-pattern) 0 0 / 56px 56px repeat;
    }
    .dasar-main { box-shadow: 0 0 0 1px var(--dasar-line), 0 30px 60px -40px rgb(0 0 0 / .35); }
    .dasar-branding { box-shadow: 0 0 0 1px var(--dasar-line); }
}

/* ---------- 8. motion ---------- */
@keyframes dasar-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes dasar-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes dasar-bounce { 0% { transform: scale(0); } 55% { transform: scale(1.15); } 75% { transform: scale(.94); } 100% { transform: scale(1); } }
@keyframes dasar-breathe { 0%, 100% { transform: scale(1); opacity: .85; } 50% { transform: scale(1.12); opacity: 1; } }
@keyframes dasar-spin { to { transform: rotate(1turn); } }
@keyframes dasar-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* cover: the crescent outline draws itself, then the gold fills in; the light breathes */
html.inv-anim .dasar-cover__crescent .dasar-crescent__line { animation: dasar-draw 1.4s cubic-bezier(.65, 0, .35, 1) .2s both; }
html.inv-anim .dasar-cover__crescent .dasar-crescent__line--star { animation-delay: .9s; animation-duration: .8s; }
html.inv-anim .dasar-cover__crescent .dasar-crescent__fill { animation: dasar-fade-in .8s ease 1.2s both; }
html.inv-anim .dasar-cover__glow { animation: dasar-breathe 5s ease-in-out 1.4s infinite; }
html.inv-anim .dasar-cover--gone .dasar-cover__glow { animation: none; }

/* closing: the crescent draws itself when it scrolls into view */
html.inv-anim .dasar-closing__art .dasar-crescent__line { stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s cubic-bezier(.65, 0, .35, 1) .3s; }
html.inv-anim .dasar-closing__art .dasar-crescent__fill { opacity: 0; transition: opacity .8s ease 1.3s; }
html.inv-anim .dasar-closing__art.is-revealed .dasar-crescent__line { stroke-dashoffset: 0; }
html.inv-anim .dasar-closing__art.is-revealed .dasar-crescent__fill { opacity: 1; }

/* countdown: the dotted rings turn slowly */
html.inv-anim .dasar-countdown .inv-countdown__item::before { animation: dasar-spin 40s linear infinite; }

/* scroll-drawn details (the default, without support, is the finished drawing) */
@supports (animation-timeline: view()) {
    html.inv-anim .dasar-rundown__list::before { animation: dasar-grow linear both; animation-timeline: view(); animation-range: entry 20% cover 55%; }
    html.inv-anim .dasar-story__item + .dasar-story__item::before { transform-origin: top; animation: dasar-grow linear both; animation-timeline: view(); animation-range: entry 0% entry 80%; }
}

@media (prefers-reduced-motion: reduce) {
    .dasar-cover, .dasar-cover--leave, .dasar-cover__inner, .dasar-cover__glow { transition: none; }
    .dasar-cover__glow, .dasar-countdown .inv-countdown__item::before { animation: none; }
}
