/* ==========================================================================
   Acuarelă - the venue painted in watercolour, painting itself on load
   Signature: an SVG landscape (sky, hills, trees, manor, flowers) seen through a
   wet-edge filter; each layer is revealed by broad brush-stroke masks whose dash
   offset animates in painting order. Titles sit on spreading colour washes,
   photos have painted edges, and the page has watercolour-paper grain.
   Palette: --inv-primary (ink), --inv-accent (wash), --inv-bg (paper), --inv-text
   ========================================================================== */

.acuarela {
    --aq-script: "Dancing Script", cursive;
    --aq-wash: var(--inv-accent);
    --aq-sage: #A9BF9A;
    --aq-muted: color-mix(in srgb, var(--inv-text) 66%, var(--inv-bg));
    --aq-edge: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.06' numOctaves='3' seed='3'/%3E%3CfeDisplacementMap in='SourceGraphic' scale='6'/%3E%3C/filter%3E%3Crect x='4' y='4' width='92' height='92' filter='url(%23f)'/%3E%3C/svg%3E");
    --kit-radius: 12px;
    font-family: var(--inv-font-body);
    font-weight: 300;
    font-size: 1.1rem;
    line-height: 1.75;
    color: var(--inv-text);
    background: var(--inv-bg);
    overflow-x: clip;
}
.acuarela h1, .acuarela h2, .acuarela 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(.acuarela) :is(h1, h2, h3) { margin: 0; }
.aq-kicker { font-size: .78rem; font-weight: 400; letter-spacing: .26em; text-transform: uppercase; color: var(--inv-primary); margin: 0 0 10px; }

/* ---------- Painting ---------- */
.aq-venue { display: block; width: 100%; height: auto; overflow: visible; }
.aq-sky { fill: color-mix(in srgb, var(--aq-wash) 55%, #FFFFFF); }
.aq-sun { fill: #F6D38A; opacity: .8; }
.aq-cloud { fill: #FFFFFF; opacity: .75; }
.aq-far { fill: color-mix(in srgb, var(--aq-wash) 60%, #9FB4C6); opacity: .8; }
.aq-near { fill: color-mix(in srgb, var(--aq-sage) 85%, var(--aq-wash)); }
.aq-path { fill: #E8D8BE; }
.aq-trunk { fill: #8A6E55; }
.aq-tree { fill: color-mix(in srgb, #6F9468 85%, var(--aq-wash)); opacity: .9; }
.aq-tree--light { fill: color-mix(in srgb, #A9C78F 80%, #fff); opacity: .7; }
.aq-wall { fill: #F4EBDD; }
.aq-wall--tower { fill: #EFE3D1; }
.aq-roof { fill: color-mix(in srgb, var(--inv-primary) 55%, #C07A5E); opacity: .9; }
.aq-shade { fill: rgba(90, 70, 60, .12); }
.aq-window { fill: color-mix(in srgb, var(--inv-primary) 45%, #7E97AE); opacity: .8; }
.aq-door { fill: #8A6E55; }
.aq-flower { fill: color-mix(in srgb, var(--inv-primary) 40%, #F29CA8); }
.aq-flower--b { fill: #F6D38A; }
.aq-paper { mix-blend-mode: multiply; pointer-events: none; }
.aq-stroke { stroke-dasharray: 1; stroke-dashoffset: 1; animation: aq-brush 1.6s cubic-bezier(.5, .1, .4, 1) forwards; animation-delay: calc(var(--n) * .75s + .3s); }
@keyframes aq-brush { to { stroke-dashoffset: 0; } }
html:not(.kit-js) .aq-stroke { stroke-dashoffset: 0; }

/* Washes and blots */
.aq-title { position: relative; display: grid; place-items: center; margin-bottom: 30px; text-align: center; isolation: isolate; }
.aq-title h2 { font-size: clamp(2.2rem, 5.4vw, 3.3rem); color: var(--inv-primary); padding: 18px 30px; }
.aq-wash { position: absolute; inset: 0 12%; z-index: -1; border-radius: 48% 52% 46% 54% / 60% 44% 56% 40%;
    background: radial-gradient(ellipse at 40% 45%, color-mix(in srgb, var(--aq-wash) 80%, transparent), color-mix(in srgb, var(--aq-wash) 35%, transparent) 60%, transparent 75%);
    filter: blur(2px); scale: .3; opacity: 0; transition: scale 1.6s cubic-bezier(.2, .7, .2, 1), opacity 1s ease; }
.aq-title.is-visible .aq-wash, html:not(.kit-js) .aq-wash { scale: 1; opacity: 1; }
.aq-blot { display: block; width: 90px; height: 50px; margin: -6px auto 8px; border-radius: 50% 44% 56% 48%; background: radial-gradient(ellipse, color-mix(in srgb, var(--aq-wash) 90%, transparent), transparent 70%); }

/* Painted edges for photos */
.aq-painted, .aq-portrait img, .aq-story-photo img, .aq-gallery-grid img { -webkit-mask: var(--aq-edge) center / 100% 100% no-repeat; mask: var(--aq-edge) center / 100% 100% no-repeat; }

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

/* ---------- Hero ---------- */
.aq-hero { min-height: 100svh; display: grid; place-items: center; padding: 90px 18px 60px; }
.aq-hero-inner { width: min(900px, 100%); text-align: center; }
.acuarela .aq-names { font-family: var(--aq-script); font-weight: 700; font-size: clamp(3.4rem, 10vw, 6.4rem); color: var(--inv-primary); line-height: 1.05; }
.aq-names em { font-style: normal; font-size: .6em; color: var(--aq-muted); }
.aq-painting { margin: 20px auto 0; width: min(820px, 100%); }
.aq-painting figcaption { margin-top: 6px; font-family: var(--aq-script); font-size: 1.5rem; color: var(--aq-muted); }
.aq-subtitle { max-width: 560px; margin: 18px auto 0; color: var(--aq-muted); font-style: italic; }
.aq-hero-date { margin: 16px 0 0; font-family: var(--inv-font-heading); font-size: 1.5rem; color: var(--inv-primary); letter-spacing: .06em; }

/* ---------- Sections ---------- */
.aq-section { max-width: 1040px; margin: 0 auto; padding: clamp(60px, 9vw, 100px) 22px; }
.aq-welcome, .aq-family, .aq-countdown, .aq-contact { text-align: center; }
.aq-prose { max-width: 640px; margin: 0 auto; font-size: 1.14rem; text-align: center; }
.aq-prose p { margin: 0 0 1em; }
.aq-quote-author { font-style: italic; }
.aq-lead { font-style: italic; color: var(--aq-muted); margin: 0 0 22px; }

/* Couple */
.aq-couple-grid { display: grid; gap: 50px; }
@media (min-width: 760px) { .aq-couple-grid { grid-template-columns: 1fr 1fr; gap: 60px; } }
.aq-person { text-align: center; }
.aq-portrait { margin: 0 auto 18px; width: min(290px, 72vw); }
.aq-portrait img, .aq-initial { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.aq-initial { display: grid; place-items: center; background: var(--aq-wash); font-family: var(--aq-script); font-size: 6rem; color: var(--inv-primary); }
.aq-person h3 { font-family: var(--aq-script); font-weight: 700; font-size: 2.4rem; color: var(--inv-primary); margin-bottom: 6px; }
.aq-person p { color: var(--aq-muted); max-width: 380px; margin: 0 auto; }

/* Family */
.aq-family-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px 50px; margin: 0; }
.aq-family-list dt { font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; color: var(--inv-primary); }
.aq-family-list dd { margin: 6px 0 0; font-family: var(--inv-font-heading); font-size: 1.35rem; }

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

/* Events */
.aq-event-list { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.aq-event { padding: 30px 24px; text-align: center; }
.aq-event-time { font-family: var(--inv-font-heading); font-size: 2.4rem; color: var(--inv-primary); margin: 0; line-height: 1; }
.aq-event h3 { font-size: 1.4rem; margin: 8px 0 4px; }
.aq-event-place { font-weight: 400; margin: 10px 0 0; }
.aq-event-address, .aq-event-notes { color: var(--aq-muted); margin: 4px 0 0; font-size: 1rem; }
.acuarela .kit-event-actions { justify-content: center; margin-top: 14px; }
.acuarela .kit-button { border-radius: 999px; border: 1px solid var(--inv-primary); color: var(--inv-primary); background: transparent; }
.acuarela .kit-button:hover { background: var(--inv-primary); color: #fff; }

/* Countdown on colour blots */
.aq-countdown .kit-countdown { gap: clamp(8px, 2.5vw, 22px); margin-top: 12px; }
.aq-countdown .kit-countdown-unit { width: clamp(80px, 19vw, 120px); aspect-ratio: 1; min-width: 0; align-content: center; border-radius: 46% 54% 50% 50% / 55% 45% 55% 45%;
    background: radial-gradient(ellipse at 40% 40%, color-mix(in srgb, var(--aq-wash) 85%, #fff), color-mix(in srgb, var(--aq-wash) 55%, transparent) 70%, transparent 74%); }
.aq-countdown .kit-countdown-unit:nth-child(2) { border-radius: 54% 46% 44% 56% / 48% 56% 44% 52%; }
.aq-countdown .kit-countdown-unit:nth-child(3) { border-radius: 50% 50% 56% 44% / 42% 52% 48% 58%; }
.aq-countdown .kit-countdown-value { color: var(--inv-primary); font-family: var(--inv-font-heading); font-size: clamp(1.9rem, 5.5vw, 2.9rem); }
.aq-countdown .kit-countdown-label { font-size: clamp(.58rem, 1.7vw, .72rem); }

/* Gallery */
.aq-gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 760px) { .aq-gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
.aq-gallery-grid a { aspect-ratio: 4 / 5; border-radius: 0; overflow: visible; }

/* RSVP */
.aq-rsvp-card { position: relative; max-width: 660px; margin: 0 auto; padding: clamp(28px, 5vw, 50px); text-align: center; isolation: isolate; }
.aq-rsvp-card::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 30px; background: #fff; box-shadow: 0 0 0 1px color-mix(in srgb, var(--aq-wash) 60%, transparent), 0 30px 60px -40px color-mix(in srgb, var(--inv-primary) 40%, #000); }
.acuarela .inv-rsvp__submit { border-radius: 999px; }

/* Info */
.aq-info-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); text-align: center; }
.aq-info-item h3 { font-size: 1.35rem; color: var(--inv-primary); margin-bottom: 6px; }
.aq-info-item p { margin: 0 0 .5em; color: var(--aq-muted); }
.aq-faq { max-width: 700px; margin: 44px auto 0; text-align: center; }
.aq-faq details { text-align: left; border-bottom: 1px solid color-mix(in srgb, var(--aq-wash) 80%, transparent); padding: 14px 4px; }
.aq-faq summary { cursor: pointer; list-style: none; font-style: italic; }
.aq-faq summary::-webkit-details-marker { display: none; }
.aq-faq summary::before { content: "❀"; color: var(--inv-primary); margin-right: 10px; font-style: normal; }
.aq-faq details p { margin: 8px 0 0 26px; color: var(--aq-muted); }

/* Contact */
.aq-contact-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 60px; }
.aq-contact-name { font-family: var(--aq-script); font-weight: 700; font-size: 2.2rem; color: var(--inv-primary); margin: 0 0 2px; }
.aq-contact-person a { color: var(--inv-text); text-decoration: none; }

/* Footer */
.aq-footer { padding: 70px 22px 60px; text-align: center; background: radial-gradient(ellipse 60% 80% at 50% 100%, color-mix(in srgb, var(--aq-wash) 55%, transparent), transparent 70%); }
.aq-footer-message { font-style: italic; margin: 0 0 4px; }
.aq-footer-names { font-family: var(--aq-script); font-weight: 700; font-size: clamp(2.8rem, 8vw, 4.4rem); color: var(--inv-primary); margin: 0 0 6px; }
.aq-hashtag { color: var(--inv-primary); margin: 0 0 6px; }

@media (prefers-reduced-motion: reduce) { .aq-stroke { animation: none; stroke-dashoffset: 0; } .aq-wash { transition: none; scale: 1; opacity: 1; } }
.aq-venue { -webkit-mask: radial-gradient(ellipse 72% 74% at 50% 50%, #000 62%, transparent 100%); mask: radial-gradient(ellipse 72% 74% at 50% 50%, #000 62%, transparent 100%); }
