/* ==========================================================================
   Nor - a pastel sky with drifting clouds, for a christening
   Palette: --inv-primary (text accents, buttons), --inv-accent (sky tint), --inv-bg (page), --inv-text
   ========================================================================== */

.nor {
    --n-sky: color-mix(in srgb, var(--inv-accent) 55%, var(--inv-bg));
    --n-sky-soft: color-mix(in srgb, var(--inv-accent) 28%, var(--inv-bg));
    --n-cloud: #fff;
    --n-ink-soft: color-mix(in srgb, var(--inv-text) 76%, var(--inv-bg));
    --n-shadow: 0 18px 40px -26px color-mix(in srgb, var(--inv-primary) 70%, transparent);
    --kit-radius: 22px;
    --kit-field-bg: #fff;
    --kit-field-border: color-mix(in srgb, var(--inv-accent) 80%, var(--inv-text) 8%);
    font-family: var(--inv-font-body);
    font-size: 1.05rem;
    background: var(--inv-bg);
    overflow-x: clip;
}
.nor h1, .nor h2, .nor h3 { font-family: var(--inv-font-heading); font-weight: 500; line-height: 1.1; }
/* zero specificity, so the template's own heading classes can set their spacing */
:where(.nor) :is(h1, h2, h3) { margin: 0; }

.n-kicker { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--inv-primary); margin: 0 0 8px; }

/* ---------- Clouds (partials/defs) ---------- */
.n-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.n-cloud-photo { margin: 0; clip-path: url(#n-cloud-clip); background: var(--n-cloud); display: grid; place-items: center; }
.n-cloud-photo img { width: 100%; height: 100%; object-fit: cover; }

.n-sky { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.n-drift {
    position: absolute; left: var(--x); top: var(--y); fill: var(--n-cloud);
    filter: drop-shadow(0 10px 14px color-mix(in srgb, var(--inv-primary) 16%, transparent));
    animation: n-drift 60s ease-in-out var(--delay) infinite alternate;
}
.n-drift--1 { width: clamp(90px, 14vw, 180px); opacity: .95; animation-duration: 38s; }
.n-drift--2 { width: clamp(120px, 20vw, 260px); opacity: .8; animation-duration: 52s; }
.n-drift--3 { width: clamp(70px, 10vw, 130px); opacity: .6; animation-duration: 70s; }
@keyframes n-drift { from { transform: translateX(-6vw); } to { transform: translateX(8vw); } }
@media (prefers-reduced-motion: reduce) { .n-drift { animation: none; } }
@media (max-width: 760px) { .n-drift--3 { display: none; } }

.n-bank { position: absolute; left: 0; bottom: -1px; width: 100%; height: clamp(50px, 8vw, 110px); fill: var(--inv-bg); pointer-events: none; }
.n-bank--top { top: -1px; bottom: auto; transform: scaleY(-1); fill: var(--inv-bg); }

/* ---------- Navigation ---------- */
.n-nav { position: absolute; top: 0; left: 0; right: 0; z-index: 6; padding: 18px 20px; display: flex; justify-content: center; }
.n-nav .kit-nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.n-nav a { text-decoration: none; font-weight: 700; font-size: .88rem; color: var(--inv-text); padding: 8px 14px; border-radius: 999px; transition: background .25s, color .25s; }
.n-nav a:hover, .n-nav a.is-current { background: #fff; color: var(--inv-primary); }
.n-nav .kit-nav-brand { font-family: var(--inv-font-heading); font-size: 1.5rem; font-weight: 600; color: var(--inv-primary); padding: 0 4px; margin-right: auto; }
.n-nav .kit-nav-brand:hover { background: none; }
.n-nav.is-stuck { justify-content: space-between; align-items: center; padding: 8px clamp(16px, 4vw, 40px); background: color-mix(in srgb, #fff 88%, transparent); box-shadow: 0 10px 30px -18px color-mix(in srgb, var(--inv-primary) 60%, transparent); }
.nor .kit-to-top { border-radius: 50%; background: #fff; border: 0; color: var(--inv-primary); box-shadow: var(--n-shadow); }
@media (max-width: 760px) {
    .n-nav { justify-content: flex-end; padding: 10px 12px; }
    .n-nav .kit-nav-toggle { color: var(--inv-primary); font-size: 1.4rem; }
    .n-nav .kit-nav-links { display: none; }
    .n-nav.is-open .kit-nav-links {
        display: flex; flex-direction: column; gap: 4px; position: absolute; top: 58px; left: 12px; right: 12px;
        padding: 14px; background: #fff; border-radius: 26px; box-shadow: var(--n-shadow);
    }
}

/* ---------- Hero: the sky ---------- */
.n-hero {
    position: relative; min-height: 100svh; display: grid; place-items: center; overflow: hidden;
    padding: 100px 20px clamp(110px, 14vw, 170px); text-align: center;
    background: linear-gradient(180deg, var(--n-sky) 0%, var(--n-sky-soft) 60%, var(--inv-bg) 100%);
}
.n-hero-inner { position: relative; z-index: 2; max-width: 680px; }
.n-hero-photo { width: min(360px, 74vw); aspect-ratio: 1 / .92; margin: 0 auto 22px; filter: drop-shadow(0 20px 30px color-mix(in srgb, var(--inv-primary) 25%, transparent)); }
.nor .n-name { font-size: clamp(4rem, 16vw, 8rem); font-weight: 700; color: var(--inv-primary); letter-spacing: -.01em; line-height: 1; margin: 4px 0 10px; }
.n-subtitle { font-size: 1.15rem; color: var(--n-ink-soft); max-width: 30em; margin: 0 auto 24px; }
.n-date-pill {
    display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; margin: 0; padding: 12px 26px;
    background: #fff; border-radius: 999px; box-shadow: var(--n-shadow); font-weight: 700;
}
.n-date-pill span + span { font-weight: 400; color: var(--n-ink-soft); }

/* ---------- Sections ---------- */
.n-section { position: relative; max-width: 1040px; margin: 0 auto; padding: clamp(70px, 10vw, 110px) 22px; text-align: center; }
.n-sky-band { max-width: none; background: var(--n-sky-soft); padding-left: max(22px, calc((100% - 996px) / 2)); padding-right: max(22px, calc((100% - 996px) / 2)); border-radius: 60px; margin: 0 clamp(0px, 2vw, 24px); }
.nor .n-title { font-family: var(--inv-font-heading); font-size: clamp(2.2rem, 6vw, 3.3rem); font-weight: 600; color: var(--inv-primary); margin: 0 0 34px; line-height: 1.1; }
.nor .n-title--small { font-size: clamp(1.8rem, 5vw, 2.4rem); margin-bottom: 20px; }
.n-prose { max-width: 620px; margin: 0 auto; font-size: 1.2rem; line-height: 1.7; }
.n-prose p { margin: 0 0 1em; }
.n-lead { font-size: 1.2rem; margin: -18px 0 30px; color: var(--n-ink-soft); }

/* Child */
.n-child { display: grid; gap: 34px; align-items: center; justify-items: center; }
@media (min-width: 800px) { .n-child { grid-template-columns: 1fr 1.1fr; text-align: left; justify-items: start; } .n-child-photo { justify-self: end; } }
.n-child-photo { width: min(340px, 72vw); aspect-ratio: 1 / .92; }
.n-initial { font-family: var(--inv-font-heading); font-size: 7rem; color: var(--inv-primary); }
.nor .n-child .n-title { margin-bottom: 8px; }
.n-child-name { font-family: var(--inv-font-heading); font-size: 1.6rem; margin: 0 0 6px; }
.n-child-born { margin: 0 0 22px; color: var(--n-ink-soft); }
.n-child-born strong { color: var(--inv-text); }
.n-bubble { position: relative; max-width: 460px; padding: 22px 26px; background: #fff; border-radius: 28px; box-shadow: var(--n-shadow); text-align: left; font-size: 1.1rem; }
.n-bubble p { margin: 0 0 .5em; }
.n-bubble p:last-child { margin: 0; }
.n-bubble::before { content: ""; position: absolute; left: 34px; top: -12px; width: 26px; height: 26px; background: #fff; border-radius: 50%; }
.n-bubble::after { content: ""; position: absolute; left: 22px; top: -26px; width: 14px; height: 14px; background: #fff; border-radius: 50%; }
@media (max-width: 799px) { .n-bubble { text-align: center; } .n-bubble::before { left: 50%; } .n-bubble::after { left: calc(50% - 12px); } }

/* Family: puffy cards */
.n-family-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.n-puff { min-width: 250px; padding: 26px 34px; background: #fff; border-radius: 999px; box-shadow: var(--n-shadow); }
.n-puff--accent { background: var(--inv-primary); color: #fff; }
.n-puff--accent .n-kicker { color: inherit; opacity: .9; }
.n-puff-names { font-family: var(--inv-font-heading); font-size: 1.4rem; margin: 0; }

/* Events */
.n-events { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); max-width: 820px; margin: 0 auto; }
.n-event { padding: 30px 26px 28px; background: #fff; border-radius: 34px; box-shadow: var(--n-shadow); }
.n-event-time { position: relative; width: 150px; margin: -6px auto 12px; display: grid; place-items: center; }
.n-event-time svg { width: 100%; fill: var(--n-sky); }
.n-event-time span { position: absolute; top: 52%; left: 50%; transform: translate(-50%, -50%); font-family: var(--inv-font-heading); font-weight: 600; font-size: 1.5rem; color: var(--inv-primary); }
.n-event h3 { font-size: 1.55rem; margin-bottom: 6px; }
.n-event-place { font-weight: 700; margin: 14px 0 2px; }
.n-event-address, .n-event-notes { color: var(--n-ink-soft); margin: 2px 0 0; font-size: .96rem; }
.nor .kit-event-actions { justify-content: center; margin-top: 18px; }
.nor .kit-button { border-radius: 999px; border-color: var(--n-sky); background: var(--n-sky-soft); color: var(--inv-primary); font-weight: 700; }
.nor .kit-button:hover { background: var(--inv-primary); border-color: var(--inv-primary); color: #fff; }

/* Countdown: numbers on clouds */
.n-countdown .kit-countdown { gap: clamp(6px, 2vw, 18px); }
.n-countdown .kit-countdown-unit {
    position: relative; width: clamp(78px, 21vw, 140px); aspect-ratio: 2 / 1.25; display: grid; place-content: center; padding-top: 8%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 100'%3E%3Cpath fill='%23fff' d='M34 90A26 26 0 0 1 36 38.5A36 36 0 0 1 100 22A30 30 0 0 1 152 36A27 27 0 0 1 168 90Z'/%3E%3C/svg%3E") center / contain no-repeat;
    filter: drop-shadow(0 10px 12px color-mix(in srgb, var(--inv-primary) 18%, transparent));
}
.n-countdown .kit-countdown-value { font-family: var(--inv-font-heading); font-weight: 600; font-size: clamp(1.4rem, 5vw, 2.4rem); color: var(--inv-primary); line-height: 1; }
.n-countdown .kit-countdown-label { font-size: .64rem; font-weight: 700; letter-spacing: .1em; }

/* Gallery */
.n-gallery { max-width: 1100px; }
.n-gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 760px) { .n-gallery-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; } }
.n-gallery-grid a { border-radius: 28px; box-shadow: var(--n-shadow); }
.n-gallery-grid a:nth-child(3n + 2) { border-radius: 28px 28px 80px 28px; }
.n-gallery-grid a:nth-child(3n) { border-radius: 80px 28px 28px 28px; }

/* RSVP */
.n-rsvp-card { max-width: 680px; margin: 0 auto; padding: clamp(36px, 6vw, 56px) clamp(20px, 6vw, 52px); background: #fff; border-radius: 40px; box-shadow: var(--n-shadow); }
.nor .inv-rsvp { text-align: left; }
.nor .inv-rsvp__intro { text-align: center; font-size: 1.1rem; color: var(--n-ink-soft); }
.nor .inv-rsvp__deadline { text-align: center; font-weight: 700; color: var(--inv-primary); }
.nor .inv-rsvp__choice label { border-radius: 999px; font-weight: 700; }
.nor .inv-rsvp__field > label, .nor .inv-rsvp__field legend { font-weight: 700; }
.nor .inv-rsvp__events label { font-weight: 400; }
.nor .inv-rsvp__field input:not([type=checkbox]):not([type=radio]), .nor .inv-rsvp__field select { border-radius: 999px; padding: 12px 18px; }
.nor .inv-rsvp__submit { border-radius: 999px; font-family: var(--inv-font-heading); font-weight: 600; font-size: 1.1rem; padding: 15px 34px; }

/* Info */
.n-info-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); text-align: left; }
.n-info-item { padding: 28px; border-radius: 30px; background: var(--n-sky-soft); }
.n-info-item h3 { font-size: 1.35rem; color: var(--inv-primary); margin-bottom: 10px; }
.n-info-item p { margin: 0 0 .6em; }
.n-faq { max-width: 680px; margin: 56px auto 0; text-align: left; }
.nor .n-faq h3 { text-align: center; font-size: 1.5rem; color: var(--inv-primary); margin-bottom: 16px; }
.n-faq details { background: #fff; border-radius: 24px; padding: 16px 22px; margin-bottom: 10px; box-shadow: var(--n-shadow); }
.n-faq summary { cursor: pointer; list-style: none; font-weight: 700; display: flex; justify-content: space-between; gap: 16px; }
.n-faq summary::-webkit-details-marker { display: none; }
.n-faq summary::after { content: "+"; font-family: var(--inv-font-heading); font-size: 1.4rem; line-height: 1; color: var(--inv-primary); transition: transform .3s; }
.n-faq details[open] summary::after { transform: rotate(45deg); }
.n-faq details p { margin: 10px 0 0; color: var(--n-ink-soft); }

/* Contact */
.n-contact-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.n-contact-person { min-width: 220px; padding: 24px 30px; background: #fff; border-radius: 30px; box-shadow: var(--n-shadow); }
.n-contact-name { font-family: var(--inv-font-heading); font-size: 1.5rem; margin: 0 0 4px; }
.n-contact-person a { color: var(--inv-primary); font-weight: 700; text-decoration: none; }

/* Footer: back to the sky */
.n-footer {
    position: relative; overflow: hidden; text-align: center; padding: clamp(120px, 14vw, 170px) 22px 70px; margin-top: 40px;
    background: linear-gradient(0deg, var(--n-sky) 0%, var(--n-sky-soft) 100%);
}
.n-footer > p { position: relative; }
.n-footer-name { font-family: var(--inv-font-heading); font-weight: 600; font-size: clamp(3rem, 11vw, 5.5rem); color: var(--inv-primary); line-height: 1; margin: 0 0 12px; }
.n-footer-message { font-size: 1.2rem; margin: 0 0 8px; }
.n-hashtag { font-weight: 700; color: var(--inv-primary); margin: 0 0 16px; }
