/* Kabut Biru (Tema Fase 3, 3 Dec 2026): the blue hour seen through a misted window. Base layout from cine-seri.css;
 * this file gives the palette (night blue, ice, silver), the type (Italiana for display, Mulish for reading), a blue
 * duotone over the photos with mist drifting across them, and the pieces of the page: the misted cover the guest wipes
 * clear (cine-seri.js), names coming out of the blur, the verse on frosted glass, two moon portraits, the story down
 * the clock of the blue hour, frosted event cards, a crescent over the countdown, watercolour dress colours, a soft
 * mosaic, and a closing that warms into dawn. */
@font-face { font-family: "Italiana"; src: url("/frontend/assets/fonts/italiana-latin.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Mulish"; src: url("/frontend/assets/fonts/mulish-latin.woff2") format("woff2"); font-weight: 400 800; font-style: normal; font-display: swap; }

:root {
    --c-night: #1c2a3a; --c-ink: #e6eef5; --c-muted: rgba(201, 216, 230, .86); --c-accent: #c9d8e6; /* 9:1 on night blue */ --c-accent-ink: #1c2a3a;
    --c-line: rgba(154, 167, 180, .5); --c-glass: rgba(20, 31, 44, .6); --c-field: rgba(201, 216, 230, .08);
    --c-veil: rgba(18, 28, 40, .5); --c-shade-top: rgba(18, 28, 40, .8); --c-shade-foot: rgba(18, 28, 40, .92); --c-photo-foot: rgba(18, 28, 40, .95);
    --f-display: "Italiana", Didot, Georgia, serif; --f-script: "Italiana", Didot, Georgia, serif; --f-body: "Mulish", system-ui, sans-serif;
    --ct-shine: var(--c-accent);
    --mist: rgba(201, 216, 230, .2);
    --frost: rgba(214, 226, 238, .1); --frost-edge: rgba(214, 226, 238, .28); --silver: #b4c0cc;
    --dawn-mid: rgba(78, 58, 92, .88); --dawn-low: rgba(132, 74, 66, .94); --sun: rgba(255, 186, 132, .55);
}
:root[data-scheme="light"] {
    --c-night: #e4ecf3; --c-ink: #17222e; --c-muted: #3d4c5c; --c-accent: #3f5368; /* 7.1:1 on ice */ --c-accent-ink: #f4f8fb;
    --c-line: rgba(63, 83, 104, .38); --c-glass: rgba(236, 242, 247, .86); --c-field: rgba(255, 255, 255, .72);
    --c-veil: rgba(228, 236, 243, .74); --c-shade-top: rgba(228, 236, 243, .9); --c-shade-foot: rgba(228, 236, 243, .94); --c-photo-foot: rgba(228, 236, 243, .95);
    --mist: rgba(255, 255, 255, .45);
    --frost: rgba(255, 255, 255, .5); --frost-edge: rgba(255, 255, 255, .85); --silver: #4d5d6e;
    --dawn-mid: rgba(240, 222, 230, .9); --dawn-low: rgba(250, 214, 188, .95); --sun: rgba(255, 170, 110, .55);
}
.cine-backdrop { background: radial-gradient(120% 80% at 50% 18%, #2c3f55, #1c2a3a 72%); }
.kb-amp { color: var(--c-accent); }
.cine-kicker, .cine-chapter-date { color: var(--silver); }
.cine-verse-card blockquote, .cine-swipe-cue, .cine-gift-close { font-style: normal; } /* Italiana has no italic */
.cine-title { letter-spacing: .04em; }

/* A blue duotone over the photos behind the words (CSS only; the files are untouched). Portraits and the gallery keep
   their colours. */
.cine-slide, .cine-backdrop-video, .cine-section-photo img { filter: grayscale(1) sepia(.55) hue-rotate(178deg) saturate(1.5) brightness(.9) contrast(1.04); }

/* Mist: two soft banks of light drifting across the photo, very slowly, in opposite directions. */
.cs-sign { overflow: hidden; }
.cs-sign::before, .cs-sign::after { content: ""; position: absolute; left: -50%; width: 200%; height: 55%;
    background: radial-gradient(40% 50% at 30% 50%, var(--mist), transparent 70%), radial-gradient(35% 45% at 75% 55%, var(--mist), transparent 70%); filter: blur(18px); }
.cs-sign::before { top: 8%; }
.cs-sign::after { bottom: 4%; opacity: .8; }
@media (prefers-reduced-motion: no-preference) {
    .cs-sign::before { animation: kb-drift 70s ease-in-out infinite alternate; }
    .cs-sign::after { animation: kb-drift 90s ease-in-out infinite alternate-reverse; }
}
@keyframes kb-drift { from { transform: translate3d(-12%, 0, 0); } to { transform: translate3d(12%, 0, 0); } }

/* ---- The misted window (cover) ------------------------------------------------------------- */
.kb-opening { justify-content: space-between; background: #1c2a3a; color: #e6eef5; }
.kb-opening .cine-opening-photo { filter: grayscale(.35) saturate(.9) brightness(.92); }
/* The mist: the same photo, blurred and paled, over the clear one. cine-seri.js masks it where the guest wipes. */
.kb-fog { position: fixed; inset: -3%; background: var(--cover, radial-gradient(120% 80% at 50% 18%, #2c3f55, #1c2a3a 72%)) center 30% / cover no-repeat;
    filter: blur(16px) grayscale(.6) brightness(1.05); transition: opacity 1.2s ease; -webkit-mask-size: 100% 100%; mask-size: 100% 100%; }
.kb-fog::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(28, 42, 58, .5), rgba(150, 172, 196, .34) 42%, rgba(150, 172, 196, .3) 58%, rgba(28, 42, 58, .6)); }
.kb-fog.is-clear { opacity: 0; }
.kb-opening .cine-opening-shade { background: linear-gradient(180deg, rgba(18, 28, 40, .62), transparent 30%, transparent 55%, rgba(18, 28, 40, .82) 82%); pointer-events: none; }
.kb-opening .cs-sign { position: fixed; inset: 0; pointer-events: none; }
.kb-cover-top, .kb-cover-foot { position: relative; z-index: 2; }
.kb-cover-top > *, .kb-cover-foot > * { animation: kb-unblur 1.6s ease both; }
.kb-cover-top > :nth-child(2) { animation-delay: .3s; }
.kb-cover-top > :nth-child(3) { animation-delay: .6s; }
.kb-cover-foot > * { animation-delay: .9s; }
@keyframes kb-unblur { from { opacity: 0; filter: blur(12px); } }
.kb-cover-names { margin: .9rem 0 0; font: 400 clamp(2.9rem, 14vw, 4.4rem)/1 var(--f-display); letter-spacing: .05em; text-wrap: balance; text-shadow: 0 2px 18px rgba(18, 28, 40, .55); }
.kb-cover-names .kb-amp { display: block; margin: .1em 0; font-size: .6em; color: #c9d8e6; }
.kb-date { margin: 1rem 0 0; color: #e6eef5; text-shadow: 0 1px 10px rgba(18, 28, 40, .7); font: 600 .78rem/1.4 var(--f-body); letter-spacing: .3em; text-transform: uppercase; }
.kb-hero .kb-date { color: var(--c-accent); text-shadow: none; }
.kb-opening .cine-opening-kicker { color: #e6eef5; text-shadow: 0 1px 10px rgba(18, 28, 40, .7); }
.kb-wipe-hint { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: .5rem; align-self: center; margin: 0; padding: .5rem 1rem;
    border: 1px solid rgba(230, 238, 245, .4); border-radius: 999px; background: rgba(28, 42, 58, .35); color: #e6eef5; font: 500 .8rem/1.3 var(--f-body);
    letter-spacing: .06em; pointer-events: none; transition: opacity .6s ease; }
.kb-wipe-hint svg { width: 1.3rem; height: 1.3rem; flex: none; }
.kb-wipe-hint.is-gone { opacity: 0; }
@media (prefers-reduced-motion: no-preference) { .kb-wipe-hint svg { animation: kb-wave 2.4s ease-in-out infinite; } }
@keyframes kb-wave { 0%, 100% { transform: translateX(-.2rem) rotate(-8deg); } 50% { transform: translateX(.3rem) rotate(8deg); } }
.kb-opening .cine-guest-label, .kb-opening .cine-guest-note { color: rgba(230, 238, 245, .88); }
.kb-opening .cine-opening-cta { background: #e6eef5; color: #1c2a3a; }
.kb-opening .cine-opening-cta:focus-visible { outline-color: #e6eef5; }
/* Open: the mist and the words lift, the photo dissolves into the same photo behind the invitation. */
.kb-opening.is-closing .kb-fog { opacity: 0; transition-duration: .9s; }
.kb-opening.is-closing :is(.kb-cover-top, .kb-cover-foot, .kb-wipe-hint) > *, .kb-opening.is-closing .kb-wipe-hint { animation: cine-out .8s ease-in both; }
.kb-opening.is-closing .cine-opening-photo { opacity: 0; transform: scale(1.04); }
.kb-opening.is-closing .cine-opening-shade { opacity: 0; }
@media (max-height: 40rem) {
    .kb-cover-names { font-size: clamp(2.2rem, 10svh, 3rem); }
    .kb-wipe-hint { display: none; }
}

/* ---- Home: the names come out of the blur ---------------------------------------------------- */
.kb-names { margin: 0; font: 400 clamp(3.1rem, 15vw, 5rem)/1 var(--f-display); letter-spacing: .05em; }
.kb-names > span > span { display: block; }
.kb-names .kb-amp { margin: .08em 0; font-size: .55em; }
@media (prefers-reduced-motion: no-preference) {
    .has-reveal .kb-hero [data-reveal]:not(.is-revealed) .kb-names { opacity: 0; filter: blur(14px); }
    .kb-hero [data-reveal].is-revealed .kb-names { animation: kb-unblur 1.8s ease both; }
}

/* ---- Verse on a pane of frosted glass ------------------------------------------------------- */
.kb-pane { position: relative; max-width: 26rem; margin-inline: auto; padding: 2.4rem 1.6rem 2rem; overflow: hidden; border: 1px solid var(--frost-edge); border-radius: 1.5rem;
    background: linear-gradient(160deg, var(--frost), transparent 70%), var(--c-glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); text-shadow: none; }
.kb-small-title { margin: 0 0 1.2rem; color: var(--silver); font: 600 .75rem/1.4 var(--f-body); letter-spacing: .3em; text-transform: uppercase; }
.kb-verse-text { margin: 0; }
.kb-verse-text + .kb-verse-text { margin-top: 1.4rem; }
.kb-verse-text blockquote { margin: 0; font: 400 clamp(1.3rem, 5.4vw, 1.6rem)/1.5 var(--f-display); text-wrap: pretty; }
.kb-verse-text figcaption { margin-top: .9rem; color: var(--c-muted); font-size: .85rem; letter-spacing: .08em; }
.kb-pane .cine-lead { margin-top: 1.2rem; }
/* Two drops of condensation running down the glass. */
.kb-drop { position: absolute; top: -1rem; width: 5px; height: 9px; border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%; background: var(--frost-edge); opacity: 0; }
.kb-drop:nth-of-type(1) { left: 14%; }
.kb-drop:nth-of-type(2) { right: 20%; }
@media (prefers-reduced-motion: no-preference) {
    .kb-drop:nth-of-type(1) { animation: kb-run 9s ease-in 1s infinite; }
    .kb-drop:nth-of-type(2) { animation: kb-run 12s ease-in 5s infinite; }
}
@keyframes kb-run { 0% { opacity: 0; transform: translateY(0); } 10% { opacity: .9; } 70% { opacity: .7; } 100% { opacity: 0; transform: translateY(26rem); } }

/* ---- Two moons ------------------------------------------------------------------------------ */
.kb-moons { justify-content: center; gap: 2.6rem; }
.kb-moon { display: grid; grid-template-columns: clamp(7.5rem, 34vw, 10rem) 1fr; align-items: center; gap: 1.3rem; max-width: 30rem; }
.kb-moon-right { grid-template-columns: 1fr clamp(7.5rem, 34vw, 10rem); margin-left: auto; text-align: right; }
.kb-moon-right .kb-moon-photo { order: 2; }
.kb-moon-photo { display: grid; place-items: center; aspect-ratio: 1; overflow: hidden; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #dfe8f1, #8a9cb0);
    box-shadow: 0 0 0 1px var(--frost-edge), 0 0 2.4rem .4rem rgba(201, 216, 230, .32); color: #1c2a3a; font: 400 3rem/1 var(--f-display); }
.kb-moon-photo img { width: 100%; height: 100%; object-fit: cover; }
.kb-moon-name { margin: 0; font: 400 clamp(2rem, 9vw, 2.6rem)/1.05 var(--f-display); letter-spacing: .04em; }
.kb-moon-full { margin-top: .4rem !important; font-weight: 600; font-size: .95rem; line-height: 1.4; }
.kb-moon-parent { margin-top: .35rem !important; color: var(--c-muted); font-size: .88rem; line-height: 1.55; }
.kb-moon .cine-socials { margin-top: .5rem; }
.kb-moon-right .cine-socials { justify-content: flex-end; }
/* Each moon rises into its place, the halo brightening as it settles. */
@media (prefers-reduced-motion: no-preference) {
    .has-reveal .kb-moon:not(.is-revealed) .kb-moon-photo { transform: translateY(2.5rem); box-shadow: 0 0 0 1px var(--frost-edge); }
    .kb-moon-photo { transition: transform 1.6s cubic-bezier(.2, .7, .2, 1), box-shadow 2.2s ease .4s; }
}
@media (max-width: 22rem) {
    .kb-moon, .kb-moon-right { grid-template-columns: 1fr; justify-items: center; text-align: center; }
    .kb-moon-right .kb-moon-photo { order: 0; }
    .kb-moon-photo { width: 8rem; }
}

/* ---- Our Story down the clock of the blue hour ---------------------------------------------- */
.kb-hours { position: relative; max-width: 30rem; margin: 0; padding: 0 0 0 4.6rem; list-style: none; }
.kb-hours::before { content: ""; position: absolute; left: 3.4rem; top: .4rem; bottom: .4rem; width: 2px; border-radius: 2px;
    background: linear-gradient(180deg, #2f4a66, #6d8aa8 55%, #e9c9a8); }
.kb-hour { position: relative; padding-bottom: 2.2rem; }
.kb-hour:last-child { padding-bottom: 0; }
.kb-hour::before { content: ""; position: absolute; left: -1.55rem; top: .35rem; width: .7rem; height: .7rem; border-radius: 50%; background: var(--c-night); box-shadow: 0 0 0 2px var(--c-accent); }
.kb-hour-time { position: absolute; left: -4.6rem; top: .1rem; width: 2.6rem; color: var(--silver); font: 400 1.05rem/1.2 var(--f-display); text-align: right; letter-spacing: .04em; }
.kb-hour h3 { margin: .3rem 0 0; font: 400 1.55rem/1.2 var(--f-display); letter-spacing: .03em; }
.kb-hour img { display: block; width: 100%; max-width: 20rem; aspect-ratio: 4 / 3; margin-top: .8rem; border-radius: .9rem; object-fit: cover; }
.kb-hour p:not(.kb-hour-time, .cine-chapter-date) { margin-top: .6rem; color: var(--c-muted); font-size: .94rem; line-height: 1.7; text-wrap: pretty; }

/* ---- Events: frosted cards ------------------------------------------------------------------ */
.kb-events .cine-block { margin-inline: auto; text-align: center; }
.kb-frost { position: relative; width: 100%; max-width: 26rem; box-sizing: border-box; margin-inline: auto; padding: 1.8rem 1.4rem 1.5rem; border: 1px solid var(--frost-edge);
    border-radius: 1.5rem; background: linear-gradient(150deg, var(--frost), transparent 60%), var(--c-glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    text-align: center; text-shadow: none; }
.kb-crescent { display: block; width: 1.6rem; height: 1.6rem; margin: 0 auto .8rem; color: var(--c-accent); }
.kb-frost h3 { margin: 0; font: 400 clamp(1.8rem, 8vw, 2.2rem)/1.1 var(--f-display); letter-spacing: .03em; }
.kb-frost-date { margin-top: .7rem !important; font-weight: 600; font-size: .95rem; }
.kb-frost-time { margin-top: .2rem !important; color: var(--c-muted); font-size: .92rem; }
.kb-frost address { margin-top: .9rem; color: var(--c-muted); font-style: normal; font-size: .9rem; line-height: 1.6; }
.kb-frost address strong { display: block; color: var(--c-ink); font-weight: 600; }
.kb-frost .cine-directions { margin-top: 1.1rem; }

/* ---- Countdown under a crescent ------------------------------------------------------------- */
.kb-moon-disc { position: relative; width: 6.5rem; aspect-ratio: 1; margin: 0 auto 1.6rem; border-radius: 50%; background: radial-gradient(circle at 38% 34%, #f1f5f9, #b9c8d8 70%);
    box-shadow: 0 0 3rem .6rem rgba(201, 216, 230, .28); overflow: hidden; }
/* The shadow slides across the disc, leaving a crescent. */
:root[data-scheme="light"] .kb-moon-disc { background: radial-gradient(circle at 38% 34%, #fdf6e9, #e2c493 70%); box-shadow: 0 0 3rem .6rem rgba(226, 196, 147, .4); }
.kb-moon-disc::after { content: ""; position: absolute; inset: -2%; border-radius: 50%; background: var(--c-night); transform: translateX(28%); }
@media (prefers-reduced-motion: no-preference) {
    .has-reveal .kb-countdown [data-reveal]:not(.is-revealed) .kb-moon-disc::after { transform: translateX(110%); }
    .kb-moon-disc::after { transition: transform 2.4s cubic-bezier(.3, .6, .2, 1) .3s; }
}
.kb-clock div { border: 1px solid var(--frost-edge); border-radius: 1rem; background: var(--c-glass); text-shadow: none; }

/* ---- Dress code: watercolour washes --------------------------------------------------------- */
.kb-washes { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem; margin: 0 0 1.4rem; }
.kb-wash { width: 4.4rem; aspect-ratio: 1; margin: 0 -.5rem; border-radius: 47% 53% 44% 56% / 52% 45% 55% 48%;
    background: radial-gradient(circle at 40% 38%, var(--swatch) 0 52%, color-mix(in srgb, var(--swatch) 55%, transparent) 72%, transparent 74%);
    filter: blur(.4px); mix-blend-mode: normal; }
.kb-wash:nth-child(2n) { border-radius: 55% 45% 52% 48% / 46% 56% 44% 54%; transform: translateY(.4rem); }

/* ---- Gallery: a soft mosaic ----------------------------------------------------------------- */
.kb-mosaic-page .cine-block { margin-inline: auto; text-align: center; }
.kb-gallery-line { color: var(--c-muted); line-height: 1.7; }
.kb-mosaic { display: grid; grid-template-columns: 1.3fr 1fr; grid-auto-rows: clamp(6rem, 22vw, 9rem); gap: .5rem; width: 100%; max-width: 30rem; margin: 0 auto; padding: 0; list-style: none; }
.kb-mosaic li:first-child { grid-row: span 2; }
.kb-mosaic li:nth-child(4):last-child { grid-column: span 2; }
.kb-tile { position: relative; display: block; width: 100%; height: 100%; padding: 0; overflow: hidden; border: 0; border-radius: 1rem; background: var(--c-glass); cursor: zoom-in; }
.kb-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease, filter .8s ease; }
.kb-tile:hover img, .kb-tile:focus-visible img { transform: scale(1.04); }
.kb-tile:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }
/* The mosaic surfaces from the mist, tile by tile. */
@media (prefers-reduced-motion: no-preference) {
    .has-reveal .kb-mosaic:not(.is-revealed) img { filter: blur(14px); opacity: .4; }
    .kb-mosaic li:nth-child(2) img { transition-delay: .15s; }
    .kb-mosaic li:nth-child(3) img { transition-delay: .3s; }
    .kb-mosaic li:nth-child(4) img { transition-delay: .45s; }
    .kb-mosaic li:nth-child(5) img { transition-delay: .6s; }
    .kb-tile img { transition: transform .8s ease, filter 1.4s ease, opacity 1.4s ease; }
}
.kb-all { align-self: center; }

/* ---- RSVP and gift: frosted glass ----------------------------------------------------------- */
.kb-rsvp .cine-panel { border-color: var(--frost-edge); background: linear-gradient(160deg, var(--frost), transparent 60%), var(--c-glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }

/* ---- Closing: dawn -------------------------------------------------------------------------- */
.kb-dawn { overflow: hidden; background: linear-gradient(180deg, transparent, var(--dawn-mid) 42%, var(--dawn-low)); }
.kb-dawn .cine-block, .kb-dawn .cine-credit { position: relative; z-index: 1; }
.kb-sun { position: absolute; left: 50%; bottom: -30vmin; width: 90vmin; aspect-ratio: 1; border-radius: 50%; translate: -50% 0;
    background: radial-gradient(circle, var(--sun), transparent 66%); pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
    .kb-sun { transition: transform 3s cubic-bezier(.2, .6, .2, 1), opacity 3s ease; }
    .has-reveal .kb-dawn:not(:has(.is-revealed)) .kb-sun { transform: translateY(25%); opacity: 0; }
}
.kb-end-names { margin-top: 1.4rem !important; font: 400 clamp(1.9rem, 8vw, 2.4rem)/1.1 var(--f-display); letter-spacing: .05em; }
:root:not([data-scheme="light"]) .kb-dawn :is(.cine-lead, .cine-signoff) { color: rgba(246, 236, 230, .9); }
