/* ==========================================================================
   Nord - minimalist and airy, photos in arched windows that open on scroll
   Signature: every photo sits in a tall arch whose clip-path rises from the
   sill when it scrolls into view; generous white space, rounded type,
   hairline rules. Palette: --inv-primary, --inv-accent (soft tint), --inv-bg, --inv-text
   ========================================================================== */

.nord {
    --nd-muted: color-mix(in srgb, var(--inv-text) 64%, var(--inv-bg));
    --nd-line: color-mix(in srgb, var(--inv-text) 14%, var(--inv-bg));
    --nd-soft: var(--inv-accent);
    --kit-radius: 999px;
    font-family: var(--inv-font-body);
    font-weight: 300;
    font-size: 1.06rem;
    line-height: 1.85;
    color: var(--inv-text);
    background: var(--inv-bg);
    overflow-x: clip;
}
.nord h1, .nord h2, .nord h3 { font-family: var(--inv-font-heading); font-weight: 300; line-height: 1.15; letter-spacing: -.01em; }
/* zero specificity, so the template's own heading classes can set their spacing */
:where(.nord) :is(h1, h2, h3) { margin: 0; }
.nd-kicker { font-size: .72rem; font-weight: 500; letter-spacing: .32em; text-transform: uppercase; color: var(--inv-primary); margin: 0 0 14px; }

/* ---------- Arched windows ---------- */
.nd-arch { position: relative; margin: 0; overflow: hidden; border-radius: 999px 999px 0 0; background: var(--nd-soft); }
.nd-arch img { display: block; width: 100%; height: 100%; object-fit: cover; }
.nd-arch.kit-reveal { opacity: 1; transform: none; clip-path: inset(100% 0 0 0 round 999px 999px 0 0); transition: clip-path 1.6s cubic-bezier(.6, 0, .2, 1); }
.nd-arch.kit-reveal img { scale: 1.15; transition: scale 2.2s cubic-bezier(.2, .7, .2, 1); }
.nd-arch.is-visible { clip-path: inset(0 0 0 0 round 999px 999px 0 0); }
.nd-arch.is-visible img { scale: 1; }
.nd-arch.is-open { animation: nd-open 1.8s cubic-bezier(.6, 0, .2, 1) .2s both; }
.nd-arch.is-open img { animation: nd-settle 2.4s cubic-bezier(.2, .7, .2, 1) .2s both; }
@keyframes nd-open { from { clip-path: inset(100% 0 0 0 round 999px 999px 0 0); } to { clip-path: inset(0 0 0 0 round 999px 999px 0 0); } }
@keyframes nd-settle { from { scale: 1.18; } to { scale: 1; } }
html:not(.kit-js) .nd-arch.kit-reveal { clip-path: none; }
html:not(.kit-js) .nd-arch img { scale: 1; }

/* ---------- Navigation ---------- */
.nd-nav { position: absolute; top: 0; left: 0; right: 0; z-index: 6; padding: 20px clamp(16px, 5vw, 60px); display: flex; justify-content: flex-end; }
.nd-nav .kit-nav-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 2px 24px; }
.nd-nav a { text-decoration: none; font-size: .78rem; font-weight: 400; letter-spacing: .16em; text-transform: uppercase; color: var(--nd-muted); padding: 6px 0; }
.nd-nav a:hover, .nd-nav a.is-current { color: var(--inv-primary); }
.nd-nav .kit-nav-brand { font-family: var(--inv-font-heading); font-size: 1.2rem; letter-spacing: .06em; text-transform: none; color: var(--inv-text); margin-right: auto; }
.nd-nav.is-stuck { align-items: center; padding: 10px clamp(16px, 5vw, 60px); background: color-mix(in srgb, var(--inv-bg) 94%, transparent); box-shadow: 0 1px 0 var(--nd-line); }
.nord .kit-to-top { background: var(--inv-text); color: var(--inv-bg); }
@media (max-width: 899px) {
    .nd-nav { padding: 12px 14px; }
    .nd-nav .kit-nav-toggle { color: var(--inv-text); font-size: 1.4rem; margin-left: auto; }
    .nd-nav .kit-nav-links { display: none; }
    .nd-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); border: 1px solid var(--nd-line); border-radius: 24px; }
}

/* ---------- Hero ---------- */
.nd-hero { min-height: 100svh; display: grid; align-items: center; padding: 110px clamp(22px, 6vw, 80px) 70px; }
.nd-hero-grid { width: min(1120px, 100%); margin: 0 auto; display: grid; gap: 60px; align-items: center; }
@media (min-width: 900px) { .nd-hero-grid { grid-template-columns: 1fr 440px; gap: 90px; } }
.nd-names { font-size: clamp(3.2rem, 8vw, 6rem); color: var(--inv-text); }
.nd-names span { display: block; }
.nd-names em { display: block; font-style: normal; font-size: .4em; color: var(--inv-primary); margin: .2em 0; }
.nd-subtitle { max-width: 420px; margin: 28px 0 0; color: var(--nd-muted); }
.nd-hero-date { display: flex; flex-direction: column; gap: 2px; margin: 36px 0 0; padding-top: 18px; border-top: 1px solid var(--nd-line); max-width: 320px; font-size: .92rem; letter-spacing: .06em; }
.nd-hero-date span:first-child { color: var(--inv-primary); font-weight: 500; }
.nd-arch--hero { width: min(440px, 82vw); aspect-ratio: 3 / 4.2; margin: 0 auto; }
@media (max-width: 899px) { .nd-hero-text { text-align: center; } .nd-subtitle, .nd-hero-date { margin-inline: auto; } .nd-names span, .nd-names em { display: inline; } .nd-names em { margin: 0 .3em; } }

/* ---------- Sections ---------- */
.nd-section { max-width: 1040px; margin: 0 auto; padding: clamp(80px, 11vw, 140px) 22px; }
.nd-welcome, .nd-family, .nd-countdown, .nd-contact { text-align: center; }
.nd-title { display: grid; justify-items: center; gap: 16px; margin-bottom: 44px; text-align: center; }
.nd-title-arch { width: 22px; height: 30px; border: 1.5px solid var(--inv-primary); border-bottom: 0; border-radius: 999px 999px 0 0; }
.nd-title h2 { font-size: clamp(2rem, 4.6vw, 2.9rem); }
.nd-prose { max-width: 560px; margin: 0 auto; font-size: 1.12rem; text-align: center; }
.nd-prose p { margin: 0 0 1em; }
.nd-quote-author { color: var(--nd-muted); }
.nd-lead { color: var(--nd-muted); margin: 0 0 30px; }

/* Couple */
.nd-couple-grid { display: grid; gap: 70px; }
@media (min-width: 760px) { .nd-couple-grid { grid-template-columns: 1fr 1fr; gap: 90px; } .nd-person:nth-child(2) { margin-top: 90px; } }
.nd-person { text-align: center; }
.nd-portrait { width: min(280px, 70vw); aspect-ratio: 3 / 4.2; margin: 0 auto 26px; }
.nd-initial { display: grid; place-items: center; width: 100%; height: 100%; font-family: var(--inv-font-heading); font-size: 5rem; color: var(--inv-primary); }
.nd-person h3 { font-size: 1.6rem; margin-bottom: 8px; }
.nd-person p { color: var(--nd-muted); max-width: 340px; margin: 0 auto; }

/* Family */
.nd-family-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px 60px; margin: 0; }
.nd-family-list dt { font-size: .7rem; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--inv-primary); }
.nd-family-list dd { margin: 6px 0 0; font-family: var(--inv-font-heading); font-size: 1.2rem; }

/* Story */
.nd-story-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 90px; }
.nd-story-item { display: grid; gap: 34px; align-items: center; }
@media (min-width: 760px) { .nd-story-item { grid-template-columns: 340px 1fr; gap: 80px; } .nd-story-item:nth-child(even) { grid-template-columns: 1fr 340px; } .nd-story-item:nth-child(even) .nd-story-photo { order: 2; } }
.nd-story-photo { width: min(340px, 80vw); aspect-ratio: 3 / 4; margin: 0 auto; }
.nd-story-text h3 { font-size: 1.7rem; margin-bottom: 10px; }
.nd-story-text .nd-kicker { margin-bottom: 8px; }
.nd-story-text p { margin: 0 0 .6em; color: var(--nd-muted); }

/* Events */
.nd-event-list { display: grid; gap: 0; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); border-top: 1px solid var(--nd-line); }
.nd-event { padding: 34px 24px; text-align: center; }
.nd-event + .nd-event { border-left: 1px solid var(--nd-line); }
@media (max-width: 760px) { .nd-event + .nd-event { border-left: 0; border-top: 1px solid var(--nd-line); } }
.nd-event-time { font-family: var(--inv-font-heading); font-size: 2.4rem; color: var(--inv-primary); margin: 0; line-height: 1; }
.nd-event h3 { font-size: 1.3rem; margin: 12px 0 6px; }
.nd-event-place { font-weight: 500; margin: 12px 0 0; }
.nd-event-address, .nd-event-notes { color: var(--nd-muted); margin: 4px 0 0; font-size: .95rem; }
.nord .kit-event-actions { justify-content: center; margin-top: 16px; }
.nord .kit-button { border-radius: 999px; border: 1px solid var(--nd-line); color: var(--inv-text); background: transparent; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.nord .kit-button:hover { border-color: var(--inv-primary); color: var(--inv-primary); }

/* Countdown in small arches */
.nd-countdown .kit-countdown { gap: clamp(10px, 3vw, 26px); margin-top: 16px; }
.nd-countdown .kit-countdown-unit { width: clamp(70px, 17vw, 108px); aspect-ratio: 3 / 4; min-width: 0; align-content: center; border-radius: 999px 999px 0 0; background: var(--nd-soft); }
.nd-countdown .kit-countdown-value { color: var(--inv-primary); font-weight: 300; font-size: clamp(1.7rem, 5vw, 2.6rem); }
.nd-countdown .kit-countdown-label { font-size: clamp(.56rem, 1.6vw, .7rem); }

/* Gallery of arches */
.nd-gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 760px) { .nd-gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 26px; } .nd-gallery-grid a:nth-child(3n+2) { translate: 0 50px; } }
.nd-gallery-grid a { aspect-ratio: 3 / 4; border-radius: 999px 999px 0 0; }
.nd-gallery { padding-bottom: clamp(120px, 14vw, 180px); }

/* RSVP */
.nd-rsvp-card { max-width: 620px; margin: 0 auto; text-align: center; }
.nord .inv-rsvp__submit { border-radius: 999px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; }

/* Info */
.nd-info-grid { display: grid; gap: 40px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); text-align: center; }
.nd-info-item h3 { font-size: 1.2rem; color: var(--inv-primary); margin-bottom: 8px; }
.nd-info-item p { margin: 0 0 .5em; color: var(--nd-muted); }
.nd-faq { max-width: 640px; margin: 60px auto 0; text-align: center; }
.nd-faq details { text-align: left; border-bottom: 1px solid var(--nd-line); padding: 16px 4px; }
.nd-faq summary { cursor: pointer; list-style: none; font-weight: 400; }
.nd-faq summary::-webkit-details-marker { display: none; }
.nd-faq summary::after { content: "+"; float: right; color: var(--inv-primary); }
.nd-faq details[open] summary::after { content: "-"; }
.nd-faq details p { margin: 8px 0 0; color: var(--nd-muted); }

/* Contact */
.nd-contact-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px 80px; }
.nd-contact-name { font-family: var(--inv-font-heading); font-size: 1.6rem; margin: 0 0 4px; }
.nd-contact-person a { color: var(--inv-primary); text-decoration: none; }

/* Footer */
.nd-footer { padding: 80px 22px; text-align: center; border-top: 1px solid var(--nd-line); }
.nd-footer-arch { display: block; width: 40px; height: 56px; margin: 0 auto 26px; border: 1.5px solid var(--inv-primary); border-bottom: 0; border-radius: 999px 999px 0 0; }
.nd-footer-message { color: var(--nd-muted); margin: 0 0 8px; }
.nd-footer-names { font-family: var(--inv-font-heading); font-size: clamp(2.2rem, 6vw, 3.2rem); margin: 0 0 8px; }
.nd-hashtag { color: var(--inv-primary); margin: 0 0 8px; }

@media (prefers-reduced-motion: reduce) { .nd-arch.kit-reveal, .nd-arch.is-open, .nd-arch img { transition: none; animation: none; clip-path: none; scale: 1; } }
