/* ==========================================================================
   Aura - a contemporary birthday: blooms of coloured light drifting behind frosted-glass cards,
   huge condensed letters in a flowing gradient
   Palette: --inv-primary and --inv-accent (the two lights), --inv-bg, --inv-text
   The blooms drift by themselves (CSS only); everything stops with prefers-reduced-motion
   ========================================================================== */

.aura {
    --a-mix: color-mix(in srgb, var(--inv-primary) 50%, var(--inv-accent));
    --a-ink-soft: color-mix(in srgb, var(--inv-text) 74%, var(--inv-bg));
    --a-glass: color-mix(in srgb, var(--inv-bg) 58%, transparent);
    --a-edge: color-mix(in srgb, var(--inv-text) 16%, transparent);
    --a-gradient: linear-gradient(100deg, var(--inv-primary), var(--a-mix), var(--inv-accent), var(--inv-primary));
    /* Buttons keep the text readable: the gradient stays close to the primary colour */
    --a-button: linear-gradient(100deg, var(--inv-primary), color-mix(in srgb, var(--inv-primary) 72%, var(--inv-accent)), var(--inv-primary));
    --kit-radius: 16px;
    --kit-field-bg: color-mix(in srgb, var(--inv-bg) 50%, transparent);
    --kit-field-border: var(--a-edge);
    --kit-button-bg: var(--inv-primary);
    --kit-button-text: var(--inv-bg);
    font-family: var(--inv-font-body);
    font-size: 1.02rem;
    line-height: 1.65;
    background: var(--inv-bg);
    overflow-x: clip;
}
.aura h1, .aura h2, .aura h3 { font-family: var(--inv-font-heading); font-weight: 800; line-height: .95; text-transform: uppercase; letter-spacing: .005em; }
/* zero specificity, so the template's own heading classes can set their spacing */
:where(.aura) :is(h1, h2, h3) { margin: 0; }
:where(.aura) p { margin: 0 0 .9em; }
.aura a { color: var(--inv-primary); }
.a-kicker { font-size: .74rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--inv-primary); margin: 0 0 10px; }

/* Flowing gradient lettering (large type only) */
.a-gradient-text { color: var(--inv-primary); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .a-gradient-text { background: var(--a-gradient); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: a-flow 9s linear infinite; }
}
@keyframes a-flow { to { background-position: 300% 0; } }

/* ---------- The aura ---------- */
.a-aura { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.a-aura span { position: absolute; width: 62vmax; aspect-ratio: 1; border-radius: 50%; filter: blur(70px); opacity: .55; will-change: transform; }
.a-aura span:nth-child(1) { background: var(--inv-primary); left: -18vmax; top: -16vmax; animation: a-drift-1 26s ease-in-out infinite alternate; }
.a-aura span:nth-child(2) { background: var(--inv-accent); right: -22vmax; top: 10vh; animation: a-drift-2 32s ease-in-out infinite alternate; }
.a-aura span:nth-child(3) { background: var(--a-mix); left: 10vw; bottom: -30vmax; opacity: .4; animation: a-drift-3 28s ease-in-out infinite alternate; }
.a-aura span:nth-child(4) { background: var(--inv-accent); width: 30vmax; left: 40vw; top: 30vh; opacity: .3; animation: a-drift-2 22s ease-in-out infinite alternate-reverse; }
@keyframes a-drift-1 { to { transform: translate(18vw, 22vh) scale(1.15); } }
@keyframes a-drift-2 { to { transform: translate(-20vw, 18vh) scale(.85); } }
@keyframes a-drift-3 { to { transform: translate(14vw, -24vh) scale(1.2); } }
.a-aura::after { content: ""; position: absolute; inset: 0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 .08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.a-hero, .a-main, .a-footer { position: relative; z-index: 1; }
/* The hero sits above the page so its sticky navigation stays on top of the sections */
.a-hero { z-index: 2; }

/* ---------- Glass ---------- */
.a-glass {
    background: var(--a-glass); border: 1px solid var(--a-edge); border-radius: 28px;
    -webkit-backdrop-filter: blur(24px) saturate(1.3); backdrop-filter: blur(24px) saturate(1.3);
    box-shadow: inset 0 1px 0 color-mix(in srgb, white 14%, transparent), 0 30px 60px -40px rgba(0, 0, 0, .55);
}
/* A ring of light round the most important cards */
.a-glass--ring { position: relative; }
.a-glass--ring::before {
    content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; pointer-events: none;
    background: var(--a-gradient); background-size: 300% 100%; animation: a-flow 9s linear infinite;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.a-pill { display: inline-block; padding: 7px 16px; border-radius: 999px; background: var(--a-glass); border: 1px solid var(--a-edge); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); font-size: .82rem; font-weight: 500; margin: 0 0 12px; }
.a-glow { position: relative; margin: 0; border-radius: 32px; overflow: hidden; box-shadow: 0 0 0 1px var(--a-edge), 0 30px 80px -30px var(--inv-accent), 0 10px 60px -30px var(--inv-primary); }
.a-glow img { width: 100%; height: 100%; object-fit: cover; display: block; }
.a-button { display: inline-flex; align-items: center; min-height: 52px; padding: 12px 28px; border-radius: 999px; text-decoration: none; font-weight: 600; background: var(--a-button); background-size: 300% 100%; animation: a-flow 9s linear infinite; color: var(--inv-bg); }
.aura .a-button { color: var(--inv-bg); }
.a-button:hover { filter: brightness(1.08); }

/* ---------- Titles ---------- */
.a-title { margin: 0 0 clamp(26px, 4vw, 44px); }
.a-title h2 { font-size: clamp(3rem, 11vw, 6rem); }

/* ---------- Navigation ---------- */
.a-nav { position: absolute; top: 0; left: 0; right: 0; z-index: 6; display: flex; justify-content: center; padding: 16px; }
.a-nav .kit-nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; padding: 6px; border-radius: 999px; background: var(--a-glass); border: 1px solid var(--a-edge); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.a-nav a { text-decoration: none; font-size: .82rem; font-weight: 500; color: var(--inv-text); padding: 7px 14px; border-radius: 999px; }
.a-nav a:hover, .a-nav a.is-current { background: color-mix(in srgb, var(--inv-text) 10%, transparent); }
.a-nav .kit-nav-brand { font-family: var(--inv-font-heading); font-weight: 800; font-size: 1.7rem; color: var(--inv-primary); margin-right: auto; padding: 0; }
.a-nav .kit-nav-brand:hover { background: none; }
.a-nav.is-stuck { justify-content: space-between; align-items: center; padding: 8px clamp(16px, 4vw, 40px); background: color-mix(in srgb, var(--inv-bg) 70%, transparent); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border-bottom: 1px solid var(--a-edge); }
.a-nav.is-stuck .kit-nav-links { background: none; border: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
.aura .kit-to-top { border-radius: 50%; background: var(--a-glass); border: 1px solid var(--a-edge); color: var(--inv-text); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
@media (max-width: 899px) {
    .a-nav { justify-content: flex-end; padding: 12px; }
    .a-nav .kit-nav-toggle { width: 46px; height: 46px; border-radius: 50%; background: var(--a-glass); border: 1px solid var(--a-edge); color: var(--inv-text); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); font-size: 1.2rem; }
    .a-nav .kit-nav-links { display: none; }
    .a-nav.is-open .kit-nav-links {
        display: flex; flex-direction: column; align-items: stretch; gap: 2px; position: absolute; top: 66px; left: 12px; right: 12px;
        padding: 12px; border-radius: 24px; background: color-mix(in srgb, var(--inv-bg) 88%, transparent);
    }
    .a-nav.is-stuck { padding: 6px 12px; }
}

/* ---------- Hero ---------- */
.a-hero { min-height: 100vh; min-height: 100svh; display: grid; align-items: center; padding: 90px clamp(16px, 4vw, 40px) 50px; }
.a-hero-grid { display: grid; gap: 40px; width: min(1200px, 100%); margin: 0 auto; }
.a-name { position: relative; font-size: clamp(5rem, 24vw, 13rem); line-height: .82; margin: 10px 0 6px; overflow-wrap: anywhere; }
.a-name .a-gradient-text { position: relative; z-index: 1; }
/* The age: an outlined numeral standing behind the name */
.a-age { position: absolute; right: 0; top: -.22em; z-index: 0; font-size: 1.15em; line-height: 1; color: transparent; -webkit-text-stroke: 2px color-mix(in srgb, var(--inv-text) 30%, transparent); }
.a-years { font-family: var(--inv-font-heading); font-weight: 300; font-size: clamp(1.6rem, 5vw, 2.4rem); text-transform: uppercase; letter-spacing: .06em; margin: 0 0 20px; }
.a-hero-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.a-hero-facts .a-pill { margin: 0; }
.aura .a-subtitle { max-width: 40ch; font-size: 1.12rem; color: var(--inv-text); margin: 14px 0 26px; }
.a-hero-photo { aspect-ratio: 4 / 5; }
@media (min-width: 900px) {
    .a-hero-grid { grid-template-columns: 1.15fr .85fr; align-items: center; gap: 60px; }
    .a-hero-photo { max-height: 78vh; transform: rotate(2deg); }
}
@keyframes a-rise { from { opacity: 0; transform: translateY(40px) scale(.96); } to { opacity: 1; transform: none; } }
.kit-js .a-name { animation: a-rise 1.1s cubic-bezier(.2, .7, .2, 1) .1s both; }

/* ---------- Sections ---------- */
.a-main { width: min(1200px, 100%); margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.a-section { padding-top: clamp(70px, 11vw, 120px); }

.a-welcome-card { padding: clamp(30px, 6vw, 60px); max-width: 860px; }
.a-welcome-title { font-size: clamp(2.6rem, 9vw, 4.4rem); margin-bottom: 16px; }
.a-prose { font-size: 1.15rem; max-width: 60ch; }
.a-quote-author { font-weight: 600; color: var(--inv-primary); }

.a-celebrant-card { display: grid; gap: 34px; padding: clamp(24px, 5vw, 50px); }
.a-portrait { aspect-ratio: 4 / 5; width: min(340px, 100%); }
.a-initial { display: grid; place-items: center; width: 100%; height: 100%; font-family: var(--inv-font-heading); font-weight: 800; font-size: 9rem; }
.a-celebrant-name { font-family: var(--inv-font-heading); font-weight: 800; font-size: clamp(2.4rem, 7vw, 3.6rem); line-height: 1; text-transform: uppercase; margin-bottom: 14px; }
.a-celebrant-message { font-size: 1.15rem; max-width: 46ch; }
@media (min-width: 760px) { .a-celebrant-card { grid-template-columns: minmax(0, 340px) 1fr; align-items: center; gap: 56px; } }

.a-theme-card { padding: clamp(34px, 7vw, 70px); text-align: center; }
.a-theme-title { font-size: clamp(2.8rem, 10vw, 5.4rem); margin-bottom: 16px; }
.a-theme-text { font-size: 1.15rem; max-width: 52ch; margin-left: auto; margin-right: auto; }

/* Programme: a line of light */
.a-timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; position: relative; }
.a-timeline::before { content: ""; position: absolute; left: 11px; top: 14px; bottom: 14px; width: 2px; border-radius: 2px; background: linear-gradient(var(--inv-primary), var(--inv-accent)); box-shadow: 0 0 18px var(--inv-accent); }
.a-stop { position: relative; padding-left: 46px; }
.a-stop-dot { position: absolute; left: 3px; top: 30px; width: 18px; height: 18px; border-radius: 50%; background: var(--inv-bg); border: 3px solid var(--inv-primary); box-shadow: 0 0 16px var(--inv-primary); }
.a-stop-card { padding: 26px 26px 22px; }
.a-stop-time { font-family: var(--inv-font-heading); font-weight: 800; font-size: 3rem; line-height: 1; margin-bottom: 8px; }
.a-stop-card h3 { font-size: 2rem; margin-bottom: 6px; }
.a-stop-place { font-weight: 600; margin: 8px 0 0; }
.a-stop-address, .a-stop-notes { color: var(--a-ink-soft); margin: 0; }
.a-stop-notes { margin-top: 6px; }
.a-stop .kit-event-actions { justify-content: flex-start; }
@media (min-width: 900px) {
    .a-timeline { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 22px; padding-top: 34px; }
    .a-timeline::before { left: 14px; right: 14px; top: 8px; bottom: auto; width: auto; height: 2px; background: linear-gradient(90deg, var(--inv-primary), var(--inv-accent)); }
    .a-stop { padding-left: 0; }
    .a-stop-dot { left: 14px; top: -34px; }
}
.aura .kit-button { border-radius: 999px; border: 1px solid var(--a-edge); background: color-mix(in srgb, var(--inv-text) 8%, transparent); color: var(--inv-text); font-size: .84rem; font-weight: 500; padding: 9px 16px; text-decoration: none; }
.aura .kit-button:hover { background: var(--inv-primary); color: var(--inv-bg); border-color: var(--inv-primary); }

/* Countdown: glass tiles */
.a-countdown { text-align: center; }
.a-countdown .kit-countdown { gap: clamp(8px, 2.4vw, 18px); }
.a-countdown .kit-countdown-unit { min-width: 0; width: clamp(74px, 21vw, 150px); padding: 20px 6px 16px; border-radius: 24px; background: var(--a-glass); border: 1px solid var(--a-edge); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.a-countdown .kit-countdown-value { font-weight: 800; font-size: clamp(2.6rem, 10vw, 5rem); color: var(--inv-primary); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .a-countdown .kit-countdown-value { background: var(--a-gradient); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: a-flow 9s linear infinite; }
}
.a-countdown .kit-countdown-label { font-weight: 500; opacity: .85; }

/* Gallery: tiles that glow */
.a-gallery-grid.kit-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(10px, 2vw, 18px); }
.a-gallery-grid.kit-gallery a { border-radius: 22px; aspect-ratio: 4 / 5; box-shadow: 0 0 0 1px var(--a-edge); transition: box-shadow .4s, transform .4s; }
.a-gallery-grid.kit-gallery a:hover, .a-gallery-grid.kit-gallery a:focus-visible { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--a-edge), 0 24px 50px -24px var(--inv-accent), 0 10px 40px -20px var(--inv-primary); }
@media (min-width: 760px) {
    .a-gallery-grid.kit-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .a-gallery-grid.kit-gallery a:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
}

/* RSVP */
.a-reply { max-width: 760px; margin: 0 auto; padding: clamp(28px, 5vw, 50px); }
.aura .inv-rsvp__intro, .aura .inv-rsvp__deadline { text-align: left; }
.aura .inv-rsvp__intro { font-size: 1.15rem; }
.aura .inv-rsvp__deadline { font-weight: 600; color: var(--inv-primary); }
.aura .inv-rsvp__choice label { border-radius: 999px; font-weight: 500; }
.aura .inv-rsvp__submit { background: var(--a-button); background-size: 300% 100%; animation: a-flow 9s linear infinite; font-weight: 600; }

/* Info, contact */
.a-info-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.a-info-item { padding: 26px 24px 14px; }
.a-info-item h3 { font-size: 1.9rem; margin-bottom: 8px; color: var(--inv-primary); }
.a-info-item p { color: var(--a-ink-soft); }
.a-faq { max-width: 800px; margin-top: 40px; }
.a-faq details { border-radius: 22px; margin-bottom: 10px; }
.a-faq summary { cursor: pointer; list-style: none; padding: 18px 56px 18px 22px; position: relative; font-weight: 600; font-size: 1.06rem; border-radius: inherit; }
.a-faq summary::-webkit-details-marker { display: none; }
.a-faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--inv-primary); transition: transform .3s; }
.a-faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.a-faq summary:focus-visible { outline: 2px solid var(--inv-primary); outline-offset: 2px; }
.a-faq details p { padding: 0 22px; color: var(--a-ink-soft); }
.a-faq details p:last-child { padding-bottom: 18px; }
.a-contact-list { display: flex; flex-wrap: wrap; gap: 14px; }
.a-contact-person { padding: 20px 26px; min-width: 220px; }
.a-contact-name { font-family: var(--inv-font-heading); font-weight: 800; font-size: 2rem; text-transform: uppercase; line-height: 1; margin-bottom: 6px; }
.a-contact-person a { font-weight: 500; text-decoration: none; }

/* Footer */
.a-footer { text-align: center; padding: clamp(100px, 14vw, 150px) 16px 70px; }
.a-footer-message { font-size: 1.3rem; color: var(--a-ink-soft); }
.a-footer-name { font-family: var(--inv-font-heading); font-weight: 800; font-size: clamp(4rem, 18vw, 12rem); line-height: .85; text-transform: uppercase; margin: 10px 0 24px; }

@media (prefers-reduced-motion: reduce) {
    .a-aura span, .a-gradient-text, .a-glass--ring::before, .a-button, .aura .inv-rsvp__submit, .a-countdown .kit-countdown-value, .kit-js .a-name { animation: none; }
}
