/* ==========================================================================
   Stea - a quiet night sky: twinkling stars, a golden moon, a lullaby
   Palette: --inv-primary (gold), --inv-accent (night haze), --inv-bg (sky), --inv-text (starlight)
   ========================================================================== */

.stea {
    --st-haze: color-mix(in srgb, var(--inv-accent) 45%, var(--inv-bg));
    --st-line: color-mix(in srgb, var(--inv-primary) 45%, transparent);
    --st-ink-soft: color-mix(in srgb, var(--inv-text) 74%, var(--inv-bg));
    --st-glow: color-mix(in srgb, var(--inv-primary) 55%, transparent);
    --kit-radius: 6px;
    --kit-field-bg: color-mix(in srgb, var(--inv-surface) 70%, transparent);
    --kit-field-border: var(--st-line);
    font-family: var(--inv-font-body);
    font-weight: 300;
    font-size: 1.06rem;
    background: var(--inv-bg);
    overflow-x: clip;
}
.stea h1, .stea h2, .stea 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(.stea) :is(h1, h2, h3) { margin: 0; }
.st-kicker { font-size: .74rem; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--inv-primary); margin: 0 0 10px; }

/* ---------- Stars, moon, shooting star ---------- */
.st-stars { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.st-star { position: absolute; display: block; transform: scale(var(--s)); animation: st-twinkle 4.5s ease-in-out var(--d) infinite; }
.st-star--dot { width: 3px; height: 3px; border-radius: 50%; background: var(--inv-text); opacity: .7; }
.st-star--spark {
    width: 14px; height: 14px; background: var(--inv-primary);
    clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
    filter: drop-shadow(0 0 4px var(--st-glow));
}
@keyframes st-twinkle { 0%, 100% { opacity: .9; } 50% { opacity: .15; transform: scale(calc(var(--s) * .6)); } }

.st-moon { fill: var(--inv-primary); filter: drop-shadow(0 0 18px var(--st-glow)); }

.st-shooting {
    position: absolute; top: 14%; left: 62%; width: 140px; height: 2px; pointer-events: none;
    background: linear-gradient(90deg, var(--inv-primary), transparent); border-radius: 2px;
    transform: rotate(-24deg); opacity: 0; animation: st-shoot 9s ease-in 3s infinite;
}
@keyframes st-shoot {
    0% { opacity: 0; transform: rotate(-24deg) translateX(0); }
    3% { opacity: 1; }
    10% { opacity: 0; transform: rotate(-24deg) translateX(-360px); }
    100% { opacity: 0; transform: rotate(-24deg) translateX(-360px); }
}
@media (prefers-reduced-motion: reduce) { .st-star, .st-shooting, .st-hero-moon::before { animation: none; } .st-shooting { display: none; } }

/* ---------- Navigation ---------- */
.st-nav { position: absolute; top: 0; left: 0; right: 0; z-index: 6; padding: 20px clamp(16px, 4vw, 48px); display: flex; justify-content: flex-end; }
.st-nav .kit-nav-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 26px; }
.st-nav a { text-decoration: none; font-size: .78rem; font-weight: 400; letter-spacing: .18em; text-transform: uppercase; color: var(--st-ink-soft); padding: 6px 0; transition: color .3s; }
.st-nav a:hover, .st-nav a.is-current { color: var(--inv-primary); }
.st-nav .kit-nav-brand { font-family: var(--inv-font-heading); font-size: 1.5rem; letter-spacing: .04em; text-transform: none; color: var(--inv-primary); margin-right: auto; }
.st-nav.is-stuck { align-items: center; padding: 10px clamp(16px, 4vw, 48px); background: color-mix(in srgb, var(--inv-bg) 90%, transparent); box-shadow: 0 1px 0 var(--st-line); }
.stea .kit-to-top { border-radius: 50%; background: var(--inv-bg); border: 1px solid var(--inv-primary); color: var(--inv-primary); box-shadow: 0 0 18px var(--st-glow); }
@media (max-width: 899px) {
    .st-nav { padding: 12px; }
    .st-nav .kit-nav-toggle { color: var(--inv-primary); font-size: 1.4rem; margin-left: auto; }
    .st-nav .kit-nav-links { display: none; }
    .st-nav.is-open .kit-nav-links {
        display: flex; flex-direction: column; align-items: flex-start; gap: 14px; position: absolute; top: 58px; right: 12px; left: 12px;
        padding: 22px; background: var(--inv-surface); border: 1px solid var(--st-line); border-radius: 12px;
    }
}

/* ---------- Hero: the night sky ---------- */
.st-hero {
    position: relative; min-height: 100svh; display: grid; align-items: center; overflow: hidden;
    padding: 110px clamp(20px, 6vw, 80px) 80px;
    background: radial-gradient(ellipse 80% 70% at 72% 40%, var(--st-haze) 0%, transparent 70%), var(--inv-bg);
}
.st-hero-grid { position: relative; z-index: 2; display: grid; gap: 50px; align-items: center; max-width: 1180px; width: 100%; margin: 0 auto; }
@media (min-width: 900px) { .st-hero-grid { grid-template-columns: 1.1fr 1fr; } }
.st-hero-text { text-align: center; }
@media (min-width: 900px) { .st-hero-text { text-align: left; } }
.st-name { font-size: clamp(4.2rem, 15vw, 9rem); color: var(--inv-primary); line-height: .95; margin: 6px 0 22px !important; text-shadow: 0 0 40px var(--st-glow); }
.st-subtitle { font-size: 1.2rem; color: var(--st-ink-soft); max-width: 26em; margin: 0 0 30px; }
@media (max-width: 899px) { .st-subtitle { margin-left: auto; margin-right: auto; } }
.st-hero-when { display: grid; gap: 4px; margin: 0; padding-left: 18px; border-left: 1px solid var(--inv-primary); text-align: left; }
@media (max-width: 899px) { .st-hero-when { display: inline-grid; } }
.st-hero-when span:first-child { font-family: var(--inv-font-heading); font-size: 1.35rem; }
.st-hero-when span + span { color: var(--st-ink-soft); }

.st-hero-moon { position: relative; width: min(420px, 72vw); aspect-ratio: 1; margin: 0 auto; }
.st-full-moon {
    position: absolute; inset: 0; margin: 0; border-radius: 50%; overflow: hidden; background: var(--st-haze);
    box-shadow: 0 0 0 1px var(--inv-primary), 0 0 0 10px color-mix(in srgb, var(--inv-primary) 12%, transparent);
}
/* Moonlight: a soft halo that breathes (opacity only, cheap to animate) */
.st-hero-moon::before {
    content: ""; position: absolute; inset: -22%; border-radius: 50%;
    background: radial-gradient(circle, var(--st-glow) 0%, transparent 62%); animation: st-glow 6s ease-in-out infinite;
}
.st-full-moon img { width: 100%; height: 100%; object-fit: cover; }
@keyframes st-glow { 50% { opacity: .55; } }
.st-hero-crescent { position: absolute; z-index: 1; width: 26%; top: -8%; left: -12%; transform: rotate(-20deg); }

/* ---------- Sections ---------- */
.st-section { position: relative; max-width: 1040px; margin: 0 auto; padding: clamp(70px, 10vw, 120px) 22px; text-align: center; }
.st-title { display: flex; align-items: center; justify-content: center; gap: clamp(10px, 2vw, 22px); margin: 0 auto 40px; }
.st-title h2 { font-size: clamp(2.2rem, 6vw, 3.4rem); color: var(--inv-text); }
.st-title-line { flex: 0 0 clamp(22px, 6vw, 90px); height: 1px; background: linear-gradient(90deg, transparent, var(--inv-primary)); position: relative; }
.st-title-line:last-child { background: linear-gradient(90deg, var(--inv-primary), transparent); }
.st-title-line::after { content: "✦"; position: absolute; top: 50%; transform: translateY(-52%); font-size: .7rem; color: var(--inv-primary); }
.st-title-line:first-child::after { right: -4px; }
.st-title-line:last-child::after { left: -4px; }
.st-prose { max-width: 620px; margin: 0 auto; font-size: 1.22rem; line-height: 1.75; color: var(--st-ink-soft); }
.st-prose p { margin: 0 0 1em; }
.st-quote-author { font-family: var(--inv-font-heading); color: var(--inv-primary); }
.st-lead { font-family: var(--inv-font-heading); font-size: 1.3rem; color: var(--st-ink-soft); margin: -14px 0 34px; }

/* Child */
.st-child { max-width: none; overflow: hidden; background: var(--st-haze); }
.st-child-card { position: relative; z-index: 1; display: grid; gap: 34px; align-items: center; justify-items: center; max-width: 900px; margin: 0 auto; }
@media (min-width: 760px) { .st-child-card { grid-template-columns: auto 1fr; text-align: left; justify-items: start; } .st-child-card .st-title { justify-content: flex-start; } .st-child-card .st-title-line:first-child { display: none; } }
.st-child-photo {
    width: min(280px, 64vw); aspect-ratio: 1; margin: 0; border-radius: 50%; overflow: hidden; display: grid; place-items: center;
    background: var(--inv-bg); box-shadow: 0 0 0 1px var(--inv-primary), 0 0 50px var(--st-glow);
}
.st-child-photo img { width: 100%; height: 100%; object-fit: cover; }
.st-initial { font-family: var(--inv-font-heading); font-size: 6rem; color: var(--inv-primary); }
.st-child-card .st-title { margin-bottom: 16px; }
.st-child-name { font-family: var(--inv-font-heading); font-size: 1.7rem; margin: 0 0 6px; }
.st-child-born { color: var(--inv-primary); margin: 0 0 18px; letter-spacing: .04em; }
.st-child-message { font-family: var(--inv-font-heading); font-size: 1.3rem; color: var(--st-ink-soft); margin: 0 0 .5em; max-width: 30em; }

/* Family */
.st-family-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px 60px; }
.st-family-names { font-family: var(--inv-font-heading); font-size: 1.6rem; margin: 0; }

/* Events: a line of golden stars */
.st-timeline { list-style: none; margin: 0 auto; padding: 0; max-width: 700px; text-align: left; position: relative; }
.st-timeline::before { content: ""; position: absolute; left: 11px; top: 10px; bottom: 10px; width: 1px; background: linear-gradient(var(--inv-primary), transparent); }
.st-event { position: relative; display: grid; grid-template-columns: 90px 1fr; gap: 20px; padding: 0 0 46px 46px; }
.st-event-star { position: absolute; left: 0; top: -2px; width: 24px; text-align: center; font-size: 1.2rem; color: var(--inv-primary); text-shadow: 0 0 10px var(--st-glow); background: var(--inv-bg); line-height: 1.4; }
.st-event-time { font-family: var(--inv-font-heading); font-size: 1.7rem; color: var(--inv-primary); margin: 0; line-height: 1.1; }
.st-event h3 { font-size: 1.6rem; margin-bottom: 6px; }
.st-event-place { font-weight: 500; margin: 12px 0 2px; }
.st-event-address, .st-event-notes { color: var(--st-ink-soft); margin: 2px 0 0; font-size: .96rem; }
@media (max-width: 560px) { .st-event { grid-template-columns: 1fr; gap: 4px; } }
.stea .kit-event-actions { justify-content: flex-start; margin-top: 16px; }
.stea .kit-button { border-color: var(--inv-primary); color: var(--inv-primary); background: transparent; font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; }
.stea .kit-button:hover { background: var(--inv-primary); color: var(--inv-bg); }

/* Countdown */
.st-countdown { padding-top: 30px; padding-bottom: 30px; }
.st-countdown .kit-countdown-value { font-family: var(--inv-font-heading); font-size: clamp(2.6rem, 9vw, 4.4rem); color: var(--inv-primary); text-shadow: 0 0 30px var(--st-glow); }
.st-countdown .kit-countdown-label { color: var(--st-ink-soft); letter-spacing: .2em; }
.st-countdown .kit-countdown-unit + .kit-countdown-unit { position: relative; }
.st-countdown .kit-countdown-unit + .kit-countdown-unit::before { content: "✦"; position: absolute; left: calc(-1 * clamp(6px, 2vw, 16px) - 6px); top: 30%; font-size: .8rem; color: var(--st-line); }

/* Gallery: round and tall shapes, like phases of the moon */
.st-gallery { max-width: 1120px; }
.st-gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 760px) { .st-gallery-grid { grid-template-columns: repeat(4, 1fr); gap: 22px; } }
.st-gallery-grid a { border-radius: 999px 999px 8px 8px; box-shadow: 0 0 0 1px var(--st-line); aspect-ratio: 3 / 4; }
.st-gallery-grid a:nth-child(even) { border-radius: 8px 8px 999px 999px; }

/* RSVP */
.st-rsvp-card { position: relative; max-width: 680px; margin: 0 auto; padding: clamp(40px, 7vw, 64px) clamp(20px, 6vw, 56px); background: var(--inv-surface); border: 1px solid var(--st-line); border-radius: 12px; box-shadow: 0 0 60px -20px var(--st-glow); }
.stea .inv-rsvp { text-align: left; }
.stea .inv-rsvp__intro { text-align: center; font-family: var(--inv-font-heading); font-size: 1.25rem; color: var(--st-ink-soft); }
.stea .inv-rsvp__deadline { text-align: center; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--inv-primary); }
.stea .inv-rsvp__choice label { font-weight: 400; }
.stea .inv-rsvp__field > label, .stea .inv-rsvp__field legend { font-size: .76rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--st-ink-soft); }
.stea .inv-rsvp__events label { font-size: 1rem; letter-spacing: 0; text-transform: none; color: var(--inv-text); }
.stea .inv-rsvp__field input:not([type=checkbox]):not([type=radio]), .stea .inv-rsvp__field select, .stea .inv-rsvp__field textarea { color: var(--inv-text); }
.stea .inv-rsvp__submit { font-weight: 500; letter-spacing: .2em; text-transform: uppercase; font-size: .84rem; padding: 16px 30px; color: var(--inv-bg); box-shadow: 0 0 30px -6px var(--st-glow); }

/* Info */
.st-info-grid { display: grid; gap: 34px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.st-info-item h3 { font-size: 1.45rem; color: var(--inv-primary); margin-bottom: 10px; }
.st-info-item p { margin: 0 0 .6em; color: var(--st-ink-soft); }
.st-faq { max-width: 680px; margin: 60px auto 0; text-align: left; }
.st-faq > .st-kicker { text-align: center; margin-bottom: 14px; }
.st-faq details { border-bottom: 1px solid var(--st-line); padding: 18px 4px; }
.st-faq summary { cursor: pointer; list-style: none; font-family: var(--inv-font-heading); font-size: 1.25rem; display: flex; justify-content: space-between; gap: 16px; }
.st-faq summary::-webkit-details-marker { display: none; }
.st-faq summary::after { content: "✦"; color: var(--inv-primary); transition: transform .4s; }
.st-faq details[open] summary::after { transform: rotate(45deg); }
.st-faq details p { margin: 10px 0 0; color: var(--st-ink-soft); }

/* Contact */
.st-contact-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px 70px; }
.st-contact-name { font-family: var(--inv-font-heading); font-size: 1.6rem; margin: 0 0 6px; }
.st-contact-person a { color: var(--inv-primary); text-decoration: none; letter-spacing: .06em; }

/* Footer */
.st-footer { position: relative; overflow: hidden; text-align: center; padding: 100px 22px 70px; background: linear-gradient(180deg, var(--inv-bg), var(--st-haze)); }
.st-footer > p { position: relative; }
.st-footer-moon { position: relative; width: 70px; display: block; margin: 0 auto 18px; transform: rotate(-20deg); }
.st-footer-name { font-family: var(--inv-font-heading); font-size: clamp(3rem, 11vw, 5.4rem); color: var(--inv-primary); line-height: 1; margin: 0 0 14px; text-shadow: 0 0 40px var(--st-glow); }
.st-footer-message { font-family: var(--inv-font-heading); font-size: 1.35rem; margin: 0 0 8px; }
.st-hashtag { color: var(--inv-primary); letter-spacing: .06em; margin: 0 0 18px; }
