/* Lilin (Tema Fase 4, 3 Dec 2026): candlelight. Base layout from cine-seri.css; this file gives the palette (warm
 * black, amber, ivory), the type (EB Garamond for display, Jost for reading), a deep vignette with a warm light that
 * trembles over the photos, and the candles: the cover's single candle, the names in a pool of light, the wax seal,
 * chiaroscuro portraits, one more candle per chapter, the burning-down countdown, glowing dress colours, gilt frames
 * on a dark wall, the RSVP candle that lights when the answer is sent, a flame per wish and the candles blown out. */
@font-face { font-family: "EB Garamond"; src: url("/frontend/assets/fonts/eb-garamond-latin.woff2") format("woff2"); font-weight: 400 800; font-style: normal; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("/frontend/assets/fonts/eb-garamond-italic-latin.woff2") format("woff2"); font-weight: 400 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Jost"; src: url("/frontend/assets/fonts/jost-latin.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }

:root {
    --c-night: #120c08; --c-ink: #f3e6cf; --c-muted: rgba(243, 230, 207, .8); --c-accent: #e0a85a; /* 9:1 on warm black */ --c-accent-ink: #120c08;
    --c-line: rgba(224, 168, 90, .38); --c-glass: rgba(22, 14, 9, .66); --c-field: rgba(243, 230, 207, .07);
    --c-veil: rgba(18, 12, 8, .58); --c-shade-top: rgba(18, 12, 8, .84); --c-shade-foot: rgba(18, 12, 8, .94); --c-photo-foot: rgba(18, 12, 8, .95);
    --f-display: "EB Garamond", Garamond, Georgia, serif; --f-script: "EB Garamond", Garamond, Georgia, serif; --f-body: "Jost", system-ui, sans-serif;
    --ct-shine: #ffd79a;
    --glow: rgba(255, 178, 92, .26); --wax: #f1e4cc; --gilt: #b88a3e;
}
:root[data-scheme="light"] {
    --c-night: #f3e6cf; --c-ink: #2b1c10; --c-muted: #5b4532; --c-accent: #8a5418; /* 5.9:1 on ivory */ --c-accent-ink: #fffaf0;
    --c-line: rgba(138, 84, 24, .36); --c-glass: rgba(249, 241, 227, .88); --c-field: rgba(255, 255, 255, .72);
    --c-veil: rgba(243, 230, 207, .78); --c-shade-top: rgba(243, 230, 207, .9); --c-shade-foot: rgba(243, 230, 207, .94); --c-photo-foot: rgba(243, 230, 207, .95);
    --glow: rgba(255, 178, 92, .3); --ct-shine: #b06a16;
}
.cine-backdrop { background: radial-gradient(80% 60% at 50% 60%, #3a2210, #120c08 75%); }
.lc-amp { color: var(--c-accent); font-style: italic; }
.cine-title { font-weight: 500; }

/* Candlelight over the photos: warm and low, the corners lost in shadow, the light trembling a little. */
.cine-slide, .cine-backdrop-video, .cine-section-photo img { filter: sepia(.35) saturate(1.1) brightness(.85) contrast(1.05); }
.cs-sign { background: radial-gradient(75% 60% at 50% 62%, var(--glow), transparent 70%), radial-gradient(130% 100% at 50% 55%, transparent 40%, rgba(10, 6, 3, .85) 100%); }
:root[data-scheme="light"] .cs-sign { background: radial-gradient(75% 60% at 50% 62%, var(--glow), transparent 70%), radial-gradient(130% 100% at 50% 55%, transparent 50%, rgba(120, 80, 40, .25) 100%); }
@media (prefers-reduced-motion: no-preference) { .cs-sign { animation: lc-tremble 3.6s ease-in-out infinite; } }
@keyframes lc-tremble { 0%, 100% { opacity: 1; } 30% { opacity: .86; } 45% { opacity: .97; } 70% { opacity: .9; } }

/* ---- A candle: a wax taper (i) with a flame on its wick ---------------------------------- */
.lc-taper { position: relative; display: inline-grid; justify-items: center; align-content: end; width: 1.6rem; height: calc(2.4rem + var(--burn, 1) * 6rem); }
.lc-taper i { display: block; width: 1.1rem; height: calc(var(--burn, 1) * 6rem); border-radius: .2rem .2rem .1rem .1rem;
    background: linear-gradient(90deg, #d9c8a8, var(--wax) 35%, #fff8e8 50%, var(--wax) 65%, #cbb894); box-shadow: 0 -.3rem .8rem rgba(255, 190, 110, .35); }
.lc-taper i::before { content: ""; display: block; width: 2px; height: .5rem; margin: -.5rem auto 0; background: #2a1a0e; }
.lc-flame { position: relative; display: block; width: .9rem; height: 1.6rem; margin-bottom: .55rem; border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%;
    background: radial-gradient(ellipse at 50% 78%, #fff 0 18%, #ffe29a 34%, #ffb347 58%, rgba(255, 120, 40, .3) 78%, transparent 82%); transform-origin: 50% 90%;
    box-shadow: 0 0 1.4rem .5rem rgba(255, 180, 90, .45), 0 0 4rem 1.6rem rgba(255, 160, 70, .18); }
.lc-flame::after { content: ""; position: absolute; left: 50%; bottom: .1rem; width: .3rem; height: .45rem; margin-left: -.15rem; border-radius: 50%; background: rgba(80, 120, 255, .55); }
@media (prefers-reduced-motion: no-preference) { .lc-flame { animation: lc-flicker 2.3s ease-in-out infinite; } }
@keyframes lc-flicker { 0%, 100% { transform: rotate(-2deg) scaleY(1); } 25% { transform: rotate(2deg) scaleY(1.06); } 50% { transform: rotate(-1deg) scaleY(.95); } 75% { transform: rotate(1.5deg) scaleY(1.03); } }
.lc-taper-small { --burn: .45; }
.lc-taper-small .lc-flame { width: .7rem; height: 1.25rem; }

/* ---- Cover: one candle in a dark room ----------------------------------------------------- */
.lc-opening { justify-content: space-between; background: #120c08; color: #f3e6cf; }
.lc-opening .cine-opening-photo { filter: sepia(.4) brightness(.55) contrast(1.1); }
.lc-room { position: fixed; inset: 0; pointer-events: none; background: radial-gradient(55% 40% at 50% 64%, rgba(255, 170, 80, .22), transparent 70%), radial-gradient(120% 90% at 50% 60%, transparent 30%, rgba(8, 5, 3, .92) 85%);
    transition: opacity 1.2s ease .3s; }
@media (prefers-reduced-motion: no-preference) { .lc-room { animation: lc-tremble 3.2s ease-in-out infinite; } }
.lc-opening .cine-opening-shade { background: linear-gradient(180deg, rgba(18, 12, 8, .7), transparent 30%, transparent 60%, rgba(18, 12, 8, .85)); }
.lc-cover-top, .lc-cover-foot, .lc-cover-candle { position: relative; z-index: 2; }
.lc-cover-top > *, .lc-cover-foot > * { animation: lc-kindle 1.8s ease both; }
.lc-cover-top > :nth-child(2) { animation-delay: .4s; }
.lc-cover-top > :nth-child(3) { animation-delay: .7s; }
.lc-cover-foot > * { animation-delay: 1s; }
@keyframes lc-kindle { from { opacity: 0; text-shadow: 0 0 0 transparent; } 60% { text-shadow: 0 0 1.2rem rgba(255, 190, 110, .6); } }
.lc-opening .cine-opening-kicker { color: #f0c27e; }
.lc-cover-names { margin: .8rem 0 0; font: italic 400 clamp(2.9rem, 13vw, 4.3rem)/1.05 var(--f-display); text-shadow: 0 0 1.6rem rgba(255, 170, 80, .35); }
.lc-cover-names .lc-amp { display: block; font-size: .6em; color: #f0c27e; }
.lc-cover-date { margin: .9rem 0 0; color: #f0c27e; font: 500 .8rem/1.4 var(--f-body); letter-spacing: .3em; text-transform: uppercase; }
.lc-cover-candle { display: grid; place-items: center; }
.lc-cover-candle .lc-taper { --burn: .55; }
.lc-opening .cine-guest-name { text-shadow: 0 0 1rem rgba(255, 180, 100, .45); }
.lc-opening .cine-guest-label, .lc-opening .cine-guest-note { color: rgba(243, 230, 207, .88); }
.lc-opening .cine-opening-cta { background: #e0a85a; color: #120c08; box-shadow: 0 0 1.6rem rgba(255, 170, 80, .35); }
/* Open: the flame swells and its light fills the room. */
.lc-opening.is-closing { background-color: transparent; }
.lc-opening.is-closing .lc-cover-candle .lc-flame { animation: lc-swell 1.1s ease-in forwards; }
@keyframes lc-swell { to { transform: scale(14); opacity: 0; } }
.lc-opening.is-closing .lc-room { opacity: 0; }
.lc-opening.is-closing :is(.lc-cover-top, .lc-cover-foot) > * { animation: cine-out .7s ease-in both; }
.lc-opening.is-closing .cine-opening-photo { opacity: 0; transform: scale(1.04); }
.lc-opening.is-closing .cine-opening-shade { opacity: 0; }
@media (max-height: 40rem) { .lc-cover-candle { display: none; } .lc-cover-names { font-size: clamp(2.2rem, 10svh, 3rem); } }

/* ---- Home: a pool of light ---------------------------------------------------------------- */
.lc-hero { overflow: hidden; }
.lc-pool { position: absolute; left: 50%; top: 50%; width: 130vmin; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, var(--glow), transparent 60%); }
.lc-names { margin: 0; font: italic 400 clamp(3.2rem, 15vw, 5rem)/1 var(--f-display); text-shadow: 0 0 1.8rem rgba(255, 170, 80, .3); }
.lc-names > span > span { display: block; }
.lc-names .lc-amp { margin: .1em 0; font-size: .55em; }
.lc-date { margin-top: 1.1rem !important; color: var(--c-accent); font: 500 .8rem/1.4 var(--f-body); letter-spacing: .3em; text-transform: uppercase; }
@media (prefers-reduced-motion: no-preference) {
    .has-reveal .lc-hero [data-reveal]:not(.is-revealed) .lc-names { opacity: 0; }
    .lc-hero [data-reveal].is-revealed .lc-names { animation: lc-kindle 2.2s ease both; }
}

/* ---- Verse: a card sealed with wax -------------------------------------------------------- */
.lc-letter { position: relative; max-width: 25rem; margin: 2rem auto 0; padding: 2.8rem 1.5rem 1.8rem; border: 1px solid var(--c-line); border-radius: .3rem; background: var(--c-glass); text-shadow: none; }
.lc-seal { position: absolute; left: 50%; top: -1.9rem; display: grid; place-items: center; width: 3.8rem; height: 3.8rem; margin-left: -1.9rem; border-radius: 47% 53% 50% 50% / 52% 48% 52% 48%;
    background: radial-gradient(circle at 38% 32%, #c4423a, #8c1f1a 60%, #6b1512); box-shadow: inset 0 0 0 .35rem rgba(0, 0, 0, .12), 0 .3rem .8rem rgba(0, 0, 0, .4);
    color: #f6d3b8; font: italic 500 1.15rem/1 var(--f-display); letter-spacing: .02em; }
.lc-small-title { margin: 0 0 1rem; color: var(--c-accent); font: 500 .75rem/1.4 var(--f-body); letter-spacing: .3em; text-transform: uppercase; }
.lc-verse { margin: 0; }
.lc-verse + .lc-verse { margin-top: 1.3rem; }
.lc-verse blockquote { margin: 0; font: italic 400 clamp(1.25rem, 5vw, 1.5rem)/1.55 var(--f-display); text-wrap: pretty; }
.lc-verse figcaption { margin-top: .8rem; color: var(--c-muted); font-size: .85rem; letter-spacing: .1em; }
.lc-letter .cine-lead { margin-top: 1.1rem; }

/* ---- Chiaroscuro portraits ---------------------------------------------------------------- */
.lc-portraits { justify-content: center; gap: 2.4rem; }
.lc-portrait { display: grid; grid-template-columns: clamp(7.5rem, 36vw, 10rem) 1fr; align-items: center; gap: 1.2rem; max-width: 30rem; }
.lc-portrait-right { grid-template-columns: 1fr clamp(7.5rem, 36vw, 10rem); margin-left: auto; text-align: right; }
.lc-portrait-right .lc-portrait-photo { order: 2; }
.lc-portrait-photo { position: relative; display: grid; place-items: center; aspect-ratio: 3 / 4; overflow: hidden; border-radius: .2rem; background: #2a1a0e; color: var(--c-accent); font: italic 3rem/1 var(--f-display); }
.lc-portrait-photo img { width: 100%; height: 100%; object-fit: cover; filter: sepia(.3) contrast(1.15) brightness(.95); }
/* Light from one side, dark on the other. */
.lc-portrait-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255, 180, 100, .2), transparent 40%, rgba(10, 6, 3, .75)), radial-gradient(120% 100% at 30% 35%, transparent 45%, rgba(10, 6, 3, .7)); }
.lc-portrait-right .lc-portrait-photo::after { background: linear-gradient(270deg, rgba(255, 180, 100, .2), transparent 40%, rgba(10, 6, 3, .75)), radial-gradient(120% 100% at 70% 35%, transparent 45%, rgba(10, 6, 3, .7)); }
@media (prefers-reduced-motion: no-preference) {
    .lc-portrait-photo img { transition: filter 2s ease; }
    .has-reveal .lc-portrait:not(.is-revealed) .lc-portrait-photo img { filter: sepia(.3) brightness(.2); }
}
.lc-portrait-name { margin: 0; font: italic 400 clamp(2rem, 9vw, 2.6rem)/1.05 var(--f-display); }
.lc-portrait-full { margin-top: .35rem !important; font-weight: 500; font-size: .95rem; }
.lc-portrait-parent { margin-top: .35rem !important; color: var(--c-muted); font-size: .86rem; line-height: 1.55; }
.lc-portrait-right .cine-socials { justify-content: flex-end; }
@media (max-width: 22rem) {
    .lc-portrait, .lc-portrait-right { grid-template-columns: 1fr; justify-items: center; text-align: center; }
    .lc-portrait-right .lc-portrait-photo { order: 0; }
    .lc-portrait-photo { width: 9rem; }
}

/* ---- Story: one more candle per chapter --------------------------------------------------- */
.lc-chapter { width: min(70vw, 16rem); padding: 1.1rem 1rem 1.2rem; border: 1px solid var(--c-line); border-radius: .3rem; background: var(--c-glass); text-shadow: none; scroll-snap-align: start; }
.lc-candles { display: flex; gap: .4rem; height: 2.2rem; align-items: flex-end; margin-bottom: .7rem !important; }
.lc-candles i { position: relative; width: .45rem; height: 1.2rem; border-radius: .1rem; background: var(--wax); opacity: .55; }
.lc-candles i.is-lit { opacity: 1; }
.lc-candles i.is-lit::before { content: ""; position: absolute; left: 50%; bottom: 1.25rem; width: .45rem; height: .8rem; margin-left: -.225rem; border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%;
    background: radial-gradient(ellipse at 50% 78%, #fff 0 20%, #ffcf70 50%, transparent 82%); box-shadow: 0 0 .7rem .2rem rgba(255, 180, 90, .45); }
.lc-chapter h3 { margin: .3rem 0 .6rem; font: italic 500 1.4rem/1.2 var(--f-display); }
.lc-chapter img { display: block; width: 100%; aspect-ratio: 4 / 3; margin-bottom: .7rem; border-radius: .2rem; object-fit: cover; filter: sepia(.2); }
.lc-chapter p:not(.lc-candles, .cine-chapter-date) { color: var(--c-muted); font-size: .9rem; line-height: 1.65; }

/* ---- Events: pools of light --------------------------------------------------------------- */
.lc-events .cine-block { margin-inline: auto; text-align: center; }
.lc-lit { width: 100%; max-width: 25rem; box-sizing: border-box; margin: 0 auto; padding: 1.4rem 1.3rem 1.5rem; border-radius: 1.2rem; text-align: center; text-shadow: none;
    background: radial-gradient(80% 70% at 50% 0, var(--glow), transparent 70%), var(--c-glass); border: 1px solid var(--c-line); }
.lc-flame-small { width: .7rem; height: 1.2rem; margin: 0 auto .8rem; }
.lc-lit h3 { margin: 0; font: italic 500 clamp(1.7rem, 7.5vw, 2.1rem)/1.1 var(--f-display); }
.lc-lit-date { margin-top: .6rem !important; font-weight: 500; font-size: .95rem; }
.lc-lit-time { margin-top: .15rem !important; color: var(--c-muted); font-size: .9rem; }
.lc-lit address { margin-top: .8rem; color: var(--c-muted); font-style: normal; font-size: .88rem; line-height: 1.6; }
.lc-lit address strong { display: block; color: var(--c-ink); font-weight: 500; }
.lc-lit .cine-directions { margin-top: 1rem; }

/* ---- Countdown: the candle burns down towards the day ------------------------------------- */
.lc-countdown .lc-taper { margin: 0 auto 1.4rem; }

/* ---- Dress colours that glow -------------------------------------------------------------- */
.lc-glows { display: flex; flex-wrap: wrap; justify-content: center; gap: .9rem; margin: 0 0 1.4rem; }
.lc-glow { width: 3.2rem; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 38% 34%, color-mix(in srgb, var(--swatch) 60%, #fff), var(--swatch) 55%);
    box-shadow: 0 0 1.4rem .2rem color-mix(in srgb, var(--swatch) 45%, transparent), 0 0 0 1px var(--c-line); }

/* ---- Gallery: gilt frames on a dark wall, a beam passing over ----------------------------- */
.lc-salon .cine-block { margin-inline: auto; text-align: center; }
.lc-gallery-line { color: var(--c-muted); font: italic 400 1.05rem/1.6 var(--f-display); }
.lc-frames { position: relative; display: grid; grid-template-columns: 1.2fr 1fr; grid-auto-rows: clamp(6rem, 24vw, 9rem); gap: .9rem; width: 100%; max-width: 28rem; margin: 0 auto; padding: 0; list-style: none; }
.lc-frames li:first-child { grid-row: span 2; }
.lc-frames li:nth-child(4):last-child { grid-column: span 2; }
.lc-frames::after { content: ""; position: absolute; inset: -1rem; pointer-events: none; background: linear-gradient(105deg, transparent 35%, rgba(255, 210, 140, .16) 48%, transparent 60%); background-size: 260% 100%; background-position: 120% 0; }
@media (prefers-reduced-motion: no-preference) { .lc-frames::after { animation: lc-beam 9s ease-in-out infinite; } }
@keyframes lc-beam { 0%, 15% { background-position: 120% 0; } 60%, 100% { background-position: -20% 0; } }
.lc-frame { position: relative; display: block; width: 100%; height: 100%; padding: .4rem; border: 0; cursor: zoom-in;
    background: linear-gradient(135deg, #e6c27a, var(--gilt) 30%, #7a5520 55%, #d6ad5e 80%, #8a6226); box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .35), 0 .6rem 1.4rem rgba(0, 0, 0, .55); }
.lc-frame img { width: 100%; height: 100%; object-fit: cover; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .5); filter: sepia(.15) brightness(.92); }
.lc-frame:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; }
.lc-all { align-self: center; }

/* ---- RSVP: the candle lights once the answer is sent -------------------------------------- */
.lc-rsvp .lc-taper { margin: 0 auto .6rem; }
.lc-rsvp .lc-flame { opacity: 0; transform: scale(.3); transition: opacity .8s ease, transform .8s cubic-bezier(.3, 1.4, .5, 1); }
.lc-rsvp:has(form.is-sent) .lc-flame { opacity: 1; transform: none; }

/* ---- Wishes: a small flame for each ------------------------------------------------------- */
.lc-wishes .cine-wish-list li { position: relative; padding-left: 1.4rem; }
.lc-wishes .cine-wish-list li::before { content: ""; position: absolute; left: .1rem; top: 1.2rem; width: .5rem; height: .85rem; border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%;
    background: radial-gradient(ellipse at 50% 78%, #fff 0 20%, #ffcf70 50%, transparent 82%); box-shadow: 0 0 .7rem .2rem rgba(255, 180, 90, .4); }

/* ---- Goodnight: the candles blown out ----------------------------------------------------- */
.lc-trio { display: flex; justify-content: center; gap: 1.4rem; margin-bottom: 1.2rem; }
.lc-trio .lc-taper:nth-child(2) { --burn: .6; }
.lc-trio .lc-flame { transition: opacity .6s ease, transform .6s ease; }
.lc-trio .lc-taper::after { content: ""; position: absolute; left: 50%; bottom: calc(var(--burn) * 6rem + .4rem); width: .5rem; height: 2.6rem; margin-left: -.25rem; opacity: 0;
    border-left: 2px solid rgba(220, 210, 200, .45); border-radius: 50%; filter: blur(1px); }
@media (prefers-reduced-motion: no-preference) {
    .lc-goodnight [data-reveal].is-revealed .lc-trio .lc-flame { opacity: 0; transform: scale(.2) translateY(.4rem); transition-delay: calc(1.2s + var(--n, 0) * .5s); }
    .lc-goodnight [data-reveal].is-revealed .lc-trio .lc-taper::after { animation: lc-smoke 3s ease-out both; animation-delay: calc(1.3s + var(--n, 0) * .5s); }
}
.lc-trio .lc-taper:nth-child(2) { --n: 1; }
.lc-trio .lc-taper:nth-child(3) { --n: 2; }
@keyframes lc-smoke { 0% { opacity: 0; transform: translateY(0) scaleY(.4); } 25% { opacity: .9; } 100% { opacity: 0; transform: translateY(-2.4rem) scaleY(1.3) skewX(18deg); } }
.lc-end-names { margin-top: 1.3rem !important; font: italic 400 clamp(1.9rem, 8vw, 2.4rem)/1.1 var(--f-display); }
