/* ==========================================================================
   Rose - romantic and dramatic, with falling rose petals
   Signature: a large, dark-toned photo in the hero with rose petals falling slowly
   across it, each one swaying and turning in 3D as it drops. Names are set in a
   calligraphic script; every section title sits under a rose drawn in one line,
   which traces itself when it scrolls into view. Petals fall again in the footer.
   Palette: --inv-primary (rose red / burgundy / peach), --inv-accent (petal tint), --inv-bg, --inv-text
   ========================================================================== */

.rose {
    --rs-script: "Ephesis", cursive;
    --rs-line: color-mix(in srgb, var(--inv-primary) 26%, transparent);
    --rs-muted: color-mix(in srgb, var(--inv-text) 66%, var(--inv-bg));
    --rs-soft: color-mix(in srgb, var(--inv-accent) 16%, var(--inv-bg));
    --kit-radius: 4px;
    font-family: var(--inv-font-body);
    font-size: 1.12rem;
    line-height: 1.75;
    color: var(--inv-text);
    background: var(--inv-bg);
    overflow-x: clip;
}
.rose h1, .rose h2, .rose h3 { font-family: var(--inv-font-heading); font-weight: 400; line-height: 1.1; }
/* zero specificity, so the template's own heading classes can set their spacing */
:where(.rose) :is(h1, h2, h3) { margin: 0; }
.rs-kicker { font-size: .8rem; letter-spacing: .26em; text-transform: uppercase; color: var(--inv-primary); margin: 0 0 8px; }

/* ---------- Petals ---------- */
.rs-petals { position: absolute; inset: 0; overflow: hidden; pointer-events: none; perspective: 600px; }
.rs-petal { position: absolute; top: -8%; left: var(--x); width: calc(22px * var(--s)); height: calc(26px * var(--s)); animation: rs-fall var(--d) linear var(--delay) infinite; }
.rs-petal i { display: block; width: 100%; height: 100%; border-radius: 100% 0 100% 10% / 90% 0 100% 10%;
    background: radial-gradient(circle at 70% 30%, color-mix(in srgb, var(--inv-accent) 70%, #fff), var(--inv-accent) 40%, color-mix(in srgb, var(--inv-primary) 80%, var(--inv-accent)));
    box-shadow: inset -2px -3px 6px color-mix(in srgb, var(--inv-primary) 40%, transparent);
    animation: rs-turn calc(var(--d) / 3) ease-in-out var(--delay) infinite alternate; rotate: var(--r); opacity: .92; }
@keyframes rs-fall {
    0% { transform: translate(0, 0); }
    25% { transform: translate(var(--sway), 28vh); }
    50% { transform: translate(calc(var(--sway) * -.4), 56vh); }
    75% { transform: translate(var(--sway), 84vh); }
    100% { transform: translate(0, 115vh); }
}
@keyframes rs-turn { from { transform: rotateX(0) rotateY(20deg); } to { transform: rotateX(70deg) rotateY(-50deg) rotateZ(40deg); } }

/* ---------- Navigation ---------- */
.rs-nav { position: absolute; top: 0; left: 0; right: 0; z-index: 6; padding: 18px clamp(16px, 4vw, 44px); display: flex; align-items: center; justify-content: center; }
.rs-nav .kit-nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 22px; }
.rs-nav a { text-decoration: none; font-size: .95rem; letter-spacing: .06em; color: #fff; padding: 4px 0; text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }
.rs-nav a:hover, .rs-nav a.is-current { color: var(--inv-accent); }
.rs-nav .kit-nav-brand { font-family: var(--rs-script); font-size: 2rem; margin-right: auto; }
.rs-nav.is-stuck { justify-content: flex-end; padding: 8px clamp(16px, 4vw, 44px); background: color-mix(in srgb, var(--inv-bg) 95%, transparent); border-bottom: 1px solid var(--rs-line); }
.rs-nav.is-stuck a { color: var(--inv-text); text-shadow: none; }
.rs-nav.is-stuck a:hover, .rs-nav.is-stuck a.is-current, .rs-nav.is-stuck .kit-nav-brand { color: var(--inv-primary); }
.rose .kit-to-top { background: var(--inv-primary); color: #fff; }
@media (max-width: 899px) {
    .rs-nav { justify-content: flex-end; padding: 10px 14px; }
    .rs-nav .kit-nav-toggle { margin-left: auto; font-size: 1.5rem; color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }
    .rs-nav.is-stuck .kit-nav-toggle { color: var(--inv-primary); text-shadow: none; }
    .rs-nav .kit-nav-links { display: none; }
    .rs-nav.is-open .kit-nav-links { display: flex; flex-direction: column; gap: 14px; position: absolute; top: 58px; left: 12px; right: 12px; padding: 24px; background: var(--inv-bg); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .35); }
    .rs-nav.is-open a { color: var(--inv-text); text-shadow: none; }
}

/* ---------- Hero ---------- */
.rs-hero { position: relative; min-height: 100svh; display: grid; place-items: center; padding: 100px 20px 80px; text-align: center; color: #fff; overflow: clip; isolation: isolate; background: #1a0d10; }
.rs-hero-photo { position: absolute; inset: 0; margin: 0; z-index: -2; }
.rs-hero-photo img { width: 100%; height: 100%; object-fit: cover; animation: rs-slow-zoom 30s ease-out both; }
@keyframes rs-slow-zoom { from { scale: 1.12; } to { scale: 1; } }
.rs-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20, 6, 10, .55), rgba(20, 6, 10, .25) 40%, color-mix(in srgb, var(--inv-primary) 45%, rgba(20, 6, 10, .8))); }
.rs-petals--hero { z-index: 1; }
.rs-hero-content { position: relative; z-index: 2; max-width: 900px; }
.rs-hero .rs-kicker { color: rgba(255, 255, 255, .9); }
.rose .rs-names { font-family: var(--rs-script); font-size: clamp(4.6rem, 14vw, 9.5rem); line-height: .95; text-shadow: 0 4px 30px rgba(0, 0, 0, .35); }
.rs-names span { display: inline-block; }
.rs-and { font-size: .55em; margin: 0 .2em; color: var(--inv-accent); }
@media (max-width: 640px) { .rs-names span { display: block; } }
.rs-hero-date { margin: 18px 0 0; font-family: var(--inv-font-heading); font-size: clamp(1.2rem, 3vw, 1.6rem); }
.rs-hero-date span { display: block; font-family: var(--inv-font-body); font-size: .9rem; letter-spacing: .22em; text-transform: uppercase; margin-top: 4px; opacity: .85; }
.rs-subtitle { max-width: 520px; margin: 22px auto 0; font-size: 1.12rem; opacity: .92; }

/* ---------- Sections ---------- */
.rs-section { max-width: 1040px; margin: 0 auto; padding: clamp(70px, 10vw, 110px) 22px; }
.rs-welcome, .rs-family, .rs-countdown, .rs-contact { text-align: center; }
.rs-title { margin-bottom: 34px; text-align: center; }
.rs-title h2 { font-size: clamp(2.2rem, 5vw, 3.2rem); color: var(--inv-primary); }
.rs-rose { display: block; width: 64px; height: 64px; margin: 0 auto 8px; fill: none; stroke: var(--inv-primary); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.rs-rose path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.is-visible .rs-rose path { transition: stroke-dashoffset 2.2s ease-in-out .2s; stroke-dashoffset: 0; }
.rs-prose { max-width: 640px; margin: 0 auto; font-size: 1.2rem; text-align: center; }
.rs-prose p { margin: 0 0 1em; }
.rs-quote-author { font-style: italic; }
.rs-lead { color: var(--rs-muted); margin: 0 0 22px; }

/* Couple: tall arches */
.rs-couple-grid { display: grid; gap: 56px; }
@media (min-width: 760px) { .rs-couple-grid { grid-template-columns: 1fr 1fr; gap: 64px; } }
.rs-person { text-align: center; }
.rs-portrait { margin: 0 auto 20px; width: min(320px, 78vw); aspect-ratio: 3 / 4; border-radius: 999px 999px 0 0; overflow: hidden; outline: 1px solid var(--rs-line); outline-offset: 10px; }
.rs-portrait img, .rs-initial { width: 100%; height: 100%; object-fit: cover; display: block; }
.rs-initial { display: grid; place-items: center; background: var(--rs-soft); font-family: var(--rs-script); font-size: 7rem; color: var(--inv-primary); }
.rs-person h3 { font-family: var(--rs-script); font-size: 3rem; color: var(--inv-primary); margin-bottom: 4px; }
.rs-person p { color: var(--rs-muted); max-width: 380px; margin: 0 auto; }

/* Family */
.rs-family-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px 56px; margin: 0; }
.rs-family-list dt { font-size: .76rem; letter-spacing: .22em; text-transform: uppercase; color: var(--inv-primary); }
.rs-family-list dd { margin: 4px 0 0; font-family: var(--inv-font-heading); font-size: 1.45rem; }

/* Story */
.rs-story-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 64px; }
.rs-story-item { display: grid; gap: 30px; align-items: center; }
@media (min-width: 760px) { .rs-story-item { grid-template-columns: 360px 1fr; gap: 56px; } .rs-story-item:nth-child(even) { grid-template-columns: 1fr 360px; } .rs-story-item:nth-child(even) .rs-story-photo { order: 2; } }
.rs-story-photo { margin: 0; aspect-ratio: 4 / 5; border-radius: 999px 999px 0 0; overflow: hidden; }
.rs-story-photo img { width: 100%; height: 100%; object-fit: cover; }
.rs-story-text h3 { font-size: 1.9rem; color: var(--inv-primary); margin-bottom: 8px; }
.rs-story-text p { margin: 0 0 .6em; }

/* Events */
.rs-event-list { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.rs-event { padding: 36px 24px 30px; text-align: center; background: #fff; border-radius: 999px 999px 6px 6px; box-shadow: 0 24px 50px -36px color-mix(in srgb, var(--inv-primary) 60%, #000); }
.rs-event-time { font-family: var(--rs-script); font-size: 3.4rem; line-height: 1; color: var(--inv-primary); margin: 0 0 6px; }
.rs-event h3 { font-size: 1.5rem; margin-bottom: 6px; }
.rs-event-place { margin: 12px 0 0; font-family: var(--inv-font-heading); font-size: 1.15rem; }
.rs-event-address, .rs-event-notes { margin: 2px 0 0; color: var(--rs-muted); }
.rose .kit-event-actions { justify-content: center; margin-top: 16px; }
.rose .kit-button { border-radius: 999px; border: 1px solid var(--inv-primary); background: transparent; color: var(--inv-primary); }
.rose .kit-button:hover { background: var(--inv-primary); color: #fff; }

/* Countdown */
.rs-countdown { max-width: none; background: var(--rs-soft); }
.rs-countdown .kit-countdown { gap: clamp(10px, 4vw, 40px); margin-top: 8px; }
.rs-countdown .kit-countdown-unit { min-width: 0; background: none; }
.rs-countdown .kit-countdown-value { font-family: var(--inv-font-heading); font-size: clamp(2.8rem, 9vw, 4.6rem); color: var(--inv-primary); line-height: 1; }
.rs-countdown .kit-countdown-label { font-size: .72rem; letter-spacing: .22em; color: var(--rs-muted); }

/* Gallery */
.rs-gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 760px) { .rs-gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.rs-gallery-grid a { aspect-ratio: 3 / 4; border-radius: 4px; }
.rs-gallery-grid a:nth-child(3n+2) { border-radius: 999px 999px 4px 4px; }

/* RSVP */
.rs-rsvp-card { position: relative; max-width: 660px; margin: 0 auto; padding: clamp(28px, 5vw, 52px); background: #fff; text-align: center; box-shadow: 0 30px 60px -40px color-mix(in srgb, var(--inv-primary) 60%, #000); border-top: 3px solid var(--inv-primary); }
.rose .inv-rsvp__submit { border-radius: 999px; letter-spacing: .08em; }

/* Info */
.rs-info-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.rs-info-item { padding: 26px; text-align: center; border: 1px solid var(--rs-line); }
.rs-info-item h3 { font-size: 1.5rem; color: var(--inv-primary); margin-bottom: 6px; }
.rs-info-item p { margin: 0 0 .5em; }
.rs-faq { max-width: 700px; margin: 48px auto 0; text-align: center; }
.rs-faq details { text-align: left; padding: 14px 4px; border-bottom: 1px solid var(--rs-line); }
.rs-faq summary { cursor: pointer; font-size: 1.15rem; }
.rs-faq details p { margin: 8px 0 0; color: var(--rs-muted); }

/* Contact */
.rs-contact-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px 64px; }
.rs-contact-name { font-family: var(--rs-script); font-size: 2.8rem; line-height: 1.1; color: var(--inv-primary); margin: 0; }
.rs-contact-person a { color: var(--inv-text); text-decoration: none; }

/* Footer */
.rs-footer { position: relative; padding: 90px 22px 70px; text-align: center; color: #fff; background: color-mix(in srgb, var(--inv-primary) 85%, #000); overflow: hidden; isolation: isolate; }
.rs-petals--footer { z-index: -1; }
.rs-footer-message { margin: 0 0 4px; opacity: .9; }
.rs-footer-names { font-family: var(--rs-script); font-size: clamp(3.6rem, 10vw, 6rem); line-height: 1; margin: 0 0 10px; }
.rs-hashtag { margin: 0 0 8px; letter-spacing: .1em; }
.rs-footer .rs-kicker { color: rgba(255, 255, 255, .8); }

@media (prefers-reduced-motion: reduce) {
    .rs-petal, .rs-petal i, .rs-hero-photo img { animation: none; }
    .rs-petal { top: var(--x); }
    .rs-rose path { stroke-dashoffset: 0; }
}
