/*
 * Template "Taman Cat Air" (Pernikahan) — "Rose Garden": a watercolor wedding suite.
 * Colors from the variant (x-inv.head): --inv-primary (deep berry: names, buttons, deep bands),
 * --inv-accent (apricot), --inv-background (paper), --inv-text, --inv-leaf (labels, green band),
 * --inv-bloom (rose color blooms), --inv-wash (soft washed sections).
 * Fonts: script for names (--inv-font-display, the client's pair), Bodoni Moda headings, Figtree text.
 * Painted flowers (img/*.webp, public-domain botanical art) sit on corners, photos and cards; they are
 * tinted per color variant (--tc-flora-filter) and sway very gently.
 * Motion: cover entrance (photo fades in with a slight zoom, flowers settle in), blooms breathe very
 * slowly, gentle fade-up on scroll, petals drift once on "Buka undangan". All off with "reduce motion".
 */

:root {
    --inv-primary: #9e2f52;
    --inv-accent: #e58a5c;
    --inv-background: #fffaf4;
    --inv-text: #3c2a2e;
    --inv-leaf: #5b7a4a;
    --inv-bloom: #e98fa8;
    --inv-wash: #f4d3d8;
    --inv-radius: 14px;

    --tc-col: min(100vw, 460px);
    --tc-script: var(--inv-font-display, 'Pinyon Script'), 'Brush Script MT', cursive;
    --tc-serif: 'Bodoni Moda', 'Didot', Georgia, serif;
    --tc-sans: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;

    --tc-soft: color-mix(in srgb, var(--inv-text) 80%, var(--inv-background));
    --tc-label: color-mix(in srgb, var(--inv-leaf) 82%, var(--inv-text));
    --tc-line: color-mix(in srgb, var(--inv-primary) 22%, transparent);
    --tc-deep: color-mix(in srgb, var(--inv-primary) 80%, #12040a);
    --tc-on-deep: #fff7f2;
    --tc-accent-light: color-mix(in srgb, var(--inv-accent) 62%, #fff);
    --tc-washed: color-mix(in srgb, var(--inv-wash) 58%, var(--inv-background));
    --tc-olive-deep: color-mix(in srgb, var(--inv-leaf) 70%, #0d1609);
    --tc-shadow: color-mix(in srgb, var(--inv-text) 14%, transparent);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
p, h1, h2, h3, figure, blockquote, ol { margin: 0; }
a { color: inherit; }

body.tc-body {
    min-height: 100vh;
    background: var(--tc-washed);
    color: var(--inv-text);
    font-family: var(--tc-sans);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.tc-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.tc-preview {
    position: fixed; top: 0; left: 50%; z-index: 60; transform: translateX(-50%);
    padding: .3rem .9rem; border-radius: 0 0 10px 10px; white-space: nowrap;
    background: var(--inv-primary); color: #fff; font-size: .7rem; font-weight: 700;
}

/* ---------- backdrop for wide screens: big soft blooms of color ---------- */
.tc-backdrop { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.tc-backdrop i { position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; opacity: .6; }
.tc-backdrop i:nth-child(1) { left: -25vmax; top: -25vmax; background: radial-gradient(closest-side, var(--inv-bloom), transparent); }
.tc-backdrop i:nth-child(2) { right: -28vmax; top: 20vh; background: radial-gradient(closest-side, color-mix(in srgb, var(--inv-accent) 70%, transparent), transparent); }
.tc-backdrop i:nth-child(3) { left: 10vw; bottom: -40vmax; background: radial-gradient(closest-side, color-mix(in srgb, var(--inv-leaf) 40%, transparent), transparent); }

/* ---------- abstract watercolor blooms: soft radial washes, breathing very slowly ---------- */
.tc-bloom {
    position: absolute; z-index: 0; width: 92%; aspect-ratio: 1; border-radius: 50%; pointer-events: none;
    background: radial-gradient(closest-side at 55% 55%, color-mix(in srgb, var(--inv-bloom) 72%, transparent), color-mix(in srgb, var(--inv-wash) 70%, transparent) 52%, transparent);
}
.tc-bloom--apricot { background: radial-gradient(closest-side at 45% 45%, color-mix(in srgb, var(--inv-accent) 62%, transparent), color-mix(in srgb, var(--inv-accent) 26%, transparent) 55%, transparent); }
.tc-bloom--small { width: 56%; background: radial-gradient(closest-side, color-mix(in srgb, var(--inv-bloom) 50%, transparent), transparent); }
.tc-bloom--glow { width: 100%; background: radial-gradient(closest-side, color-mix(in srgb, var(--inv-accent) 34%, transparent), transparent); }
html.inv-anim .tc-bloom { animation: tc-breathe 14s ease-in-out infinite alternate; will-change: transform; }
html.inv-anim .tc-bloom:nth-of-type(2n) { animation-delay: -7s; animation-duration: 17s; }
@keyframes tc-breathe { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.08) translate(3%, 2%); } }

/* ---------- painted flowers: tinted per variant, gentle sway ---------- */
body { --tc-flora-filter: saturate(1); }
.tc-v-lavender-field { --tc-flora-filter: hue-rotate(-28deg) saturate(.95); }
.tc-v-sage-meadow { --tc-flora-filter: hue-rotate(16deg) saturate(.85); }
.tc-v-peach-bloom { --tc-flora-filter: hue-rotate(12deg) saturate(1.05); }
.tc-flora {
    position: absolute; z-index: 2; display: block; height: auto; pointer-events: none; user-select: none;
    filter: var(--tc-flora-filter) drop-shadow(0 6px 10px rgb(70 20 35 / .14));
}
.tc-section > .tc-flora { position: absolute; z-index: 2; }
.tc-flora--rose { filter: var(--tc-flora-filter) hue-rotate(-12deg) saturate(.85) drop-shadow(0 6px 10px rgb(70 20 35 / .14)); }
.tc-flora--fern { filter: var(--tc-flora-filter) saturate(.55) hue-rotate(-18deg) brightness(.85) drop-shadow(0 6px 10px rgb(30 40 20 / .12)); }
html.inv-anim .tc-flora { animation: tc-sway 9s ease-in-out infinite alternate; }
html.inv-anim .tc-flora:nth-of-type(2n) { animation-duration: 11s; animation-delay: -4s; }
@keyframes tc-sway { from { rotate: -1.6deg; } to { rotate: 1.6deg; } }

/* ---------- petals: five or six drift down once after "Buka undangan", then stop ---------- */
.tc-drift { display: none; position: fixed; top: 0; left: 50%; z-index: 35; width: var(--tc-col); height: 100vh; transform: translateX(-50%); overflow: hidden; pointer-events: none; }
html.inv-anim .tc-drift { display: block; }
.tc-drift i {
    position: absolute; top: -4%; left: var(--x); width: 14px; height: 11px; opacity: 0;
    border-radius: 85% 0 85% 0;
    background: radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--tc-petal, var(--inv-bloom)) 50%, #fff), var(--tc-petal, var(--inv-bloom)));
}
.tc-drift.is-go i { animation: tc-petal var(--d) cubic-bezier(.3, .2, .5, 1) var(--delay) forwards; }
.tc-drift i:nth-child(1) { --x: 12%; --d: 4.6s; --delay: .1s; }
.tc-drift i:nth-child(2) { --x: 30%; --d: 5.4s; --delay: .5s; --tc-petal: var(--inv-accent); }
.tc-drift i:nth-child(3) { --x: 48%; --d: 4.2s; --delay: .25s; --tc-petal: var(--inv-primary); }
.tc-drift i:nth-child(4) { --x: 64%; --d: 5s; --delay: .7s; }
.tc-drift i:nth-child(5) { --x: 80%; --d: 4.8s; --delay: .35s; --tc-petal: var(--inv-accent); }
.tc-drift i:nth-child(6) { --x: 92%; --d: 5.6s; --delay: .9s; }
@keyframes tc-petal {
    0% { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 0; }
    10% { opacity: .85; }
    50% { transform: translate3d(-26px, 52vh, 0) rotate(220deg); }
    80% { opacity: .7; }
    100% { transform: translate3d(14px, 104vh, 0) rotate(400deg); opacity: 0; }
}

/* ---------- shared bits ---------- */
.tc-amp { font-family: var(--tc-script); color: var(--inv-accent); }
.tc-arabic { font-family: 'Amiri', 'Traditional Arabic', serif; font-size: 1.7rem; line-height: 1.8; color: var(--inv-primary); margin-bottom: .9rem; }
.tc-lead { max-width: 22rem; margin: 0 auto 1.5rem; color: var(--tc-soft); font-size: .93rem; }

/* section heading: letter-spaced caps, big serif title with one italic colored word, a growing line */
.tc-head { margin-bottom: 2rem; text-align: center; }
.tc-head__kicker { font: 600 .7rem/1.4 var(--tc-sans); letter-spacing: .32em; text-transform: uppercase; color: var(--tc-label); }
.tc-head__title { margin-top: .5rem; font: 400 clamp(2.1rem, 9.6vw, 2.6rem)/1.08 var(--tc-serif); color: var(--inv-text); letter-spacing: -.01em; }
.tc-head__title i { color: var(--inv-primary); }
.tc-head__line { display: block; width: 2.8rem; height: 2px; margin: 1rem auto 0; border-radius: 2px; background: linear-gradient(90deg, var(--inv-primary), var(--inv-accent)); }
html.inv-anim .tc-head .tc-head__line { transform: scaleX(0); transition: transform 1.1s cubic-bezier(.2, .7, .2, 1) .35s; }
html.inv-anim .tc-head.is-revealed .tc-head__line { transform: none; }

/* organic brush-like photo shape with a soft color shadow behind it */
.tc-blob { position: relative; aspect-ratio: 4 / 5; }
.tc-blob::before {
    content: ''; position: absolute; inset: -7% -9% -5% -6%;
    background: radial-gradient(ellipse at 40% 45%, color-mix(in srgb, var(--inv-bloom) 60%, transparent), color-mix(in srgb, var(--inv-accent) 32%, transparent) 60%, transparent 72%);
    border-radius: 46% 54% 51% 49% / 55% 47% 53% 45%; filter: blur(6px);
}
.tc-blob__photo {
    position: absolute; inset: 0; overflow: hidden;
    border-radius: 47% 53% 44% 56% / 58% 52% 48% 42%;
    box-shadow: 0 1.1rem 2.4rem color-mix(in srgb, var(--inv-primary) 24%, transparent);
}
.tc-blob__photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.tc-blob__photo--empty {
    display: grid; place-items: center;
    background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--inv-bloom) 70%, #fff), transparent 60%), linear-gradient(150deg, var(--inv-primary), var(--inv-accent));
}
.tc-blob__photo--empty span { font: italic 400 3.2rem/1 var(--tc-serif); color: #fff; letter-spacing: .06em; }

/* ---------- cover ---------- */
.tc-cover {
    position: fixed; top: 0; bottom: 0; left: 50%; z-index: 30; width: var(--tc-col); transform: translateX(-50%);
    overflow: hidden auto; overscroll-behavior: contain;
    background: var(--inv-background);
    text-align: center;
}

/* two corner arrangements (partly cropped) and a crown on the photo */
.tc-cover__tl { width: 72%; max-width: 330px; top: -1.5%; left: -20%; scale: -1 1; }
.tc-cover__br { width: 48%; max-width: 230px; right: -12%; bottom: -5%; transform: rotate(-28deg); }
.tc-crown { width: 66%; top: -11%; right: -22%; z-index: 3; }
.tc-crown-rose { width: 36%; left: -18%; bottom: -12%; z-index: 3; }
html.inv-anim .tc-cover .tc-flora { animation: tc-flora-in 1.6s cubic-bezier(.2, .7, .2, 1) both, tc-sway 9s 1.6s ease-in-out infinite alternate; }
html.inv-anim .tc-cover .tc-crown, html.inv-anim .tc-cover .tc-crown-rose { animation-delay: .5s, 2.1s; }
@keyframes tc-flora-in { from { opacity: 0; translate: 0 -12px; } to { opacity: 1; translate: 0 0; } }

.tc-cover__inner {
    position: relative; z-index: 2; min-height: 100%; min-height: 100svh;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .7rem;
    padding: calc(clamp(1.8rem, 5svh, 2.6rem) + env(safe-area-inset-top)) 1.6rem calc(clamp(1.8rem, 5svh, 2.6rem) + env(safe-area-inset-bottom));
}
.tc-cover__blob { width: min(56vw, 220px, 29svh); margin-bottom: .9rem; }
html.inv-anim .tc-cover__blob .tc-blob__photo img { animation: tc-zoom 2.2s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes tc-zoom { from { transform: scale(1.12); } to { transform: none; } }

/* the monogram on a small seal at the edge of the photo */
.tc-seal {
    position: absolute; z-index: 4; right: -4%; bottom: 4%;
    display: inline-flex; align-items: center; justify-content: center; gap: .12rem;
    min-width: 3rem; height: 3rem; padding: 0 .6rem; border-radius: 999px;
    background: var(--inv-primary); color: #fff;
    box-shadow: 0 0 0 3px var(--inv-background), 0 8px 18px color-mix(in srgb, var(--inv-primary) 35%, transparent);
    font: 500 1rem/1 var(--tc-serif); letter-spacing: .04em;
}
.tc-seal i { font: italic .8rem/1 var(--tc-serif); color: var(--tc-accent-light); }

.tc-cover__title { font: 500 .74rem/1.4 var(--tc-serif); letter-spacing: .32em; text-transform: uppercase; color: var(--inv-primary); }
.tc-cover__names {
    display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; column-gap: .6rem;
    font: 400 clamp(3rem, 14vw, 3.8rem)/1 var(--tc-script); color: var(--inv-primary); overflow-wrap: anywhere;
}
.tc-cover__names .tc-amp { font-size: .7em; }
.tc-cover__date { font: 500 .86rem/1.3 var(--tc-serif); letter-spacing: .2em; text-transform: uppercase; color: var(--inv-text); }
.tc-cover__quote {
    max-width: 19rem; font: italic 400 .95rem/1.45 var(--tc-serif); color: var(--tc-soft);
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden;
}
.tc-cover__guest { margin-top: .3rem; font-size: .8rem; color: var(--tc-soft); }
.tc-cover__guest-name { display: block; margin-top: .15rem; font: 500 1.28rem/1.25 var(--tc-serif); color: var(--inv-text); overflow-wrap: anywhere; }

.tc-open {
    margin-top: .5rem; padding: .95rem 2rem; gap: .55rem; border-radius: 999px;
    background: var(--inv-primary); color: #fff; font: 600 .92rem/1 var(--tc-sans); letter-spacing: .03em;
    box-shadow: 0 .8rem 1.7rem color-mix(in srgb, var(--inv-primary) 32%, transparent);
}
.tc-cover--leave { transition: opacity .9s ease, transform .9s ease; }
.tc-cover--gone { opacity: 0; transform: translateX(-50%) scale(1.04); }

@media (max-height: 760px) {
    .tc-cover__inner { gap: .55rem; }
    .tc-cover__blob { width: min(54vw, 210px, 27svh); margin-bottom: .7rem; }
    .tc-cover__names { font-size: clamp(2.7rem, 12.5vw, 3.3rem); }
    .tc-cover__quote { -webkit-line-clamp: 3; font-size: .9rem; }
    .tc-cover__guest-name { font-size: 1.18rem; }
    .tc-open { margin-top: .3rem; }
}
@media (max-height: 660px) {
    .tc-cover__inner { gap: .45rem; }
    .tc-cover__blob { width: min(50vw, 190px, 24svh); margin-bottom: .55rem; }
    .tc-seal { min-width: 2.5rem; height: 2.5rem; font-size: .85rem; }
    .tc-cover__names { font-size: clamp(2.4rem, 11vw, 2.9rem); }
    .tc-cover__date { font-size: .8rem; }
    .tc-cover__quote { -webkit-line-clamp: 3; font-size: .85rem; }
    .tc-cover__guest { margin-top: 0; }
    .tc-open { margin-top: .15rem; padding: .85rem 1.7rem; }
}

/* ---------- paper column ---------- */
.tc-paper {
    position: relative; width: var(--tc-col); min-height: 100vh; margin: 0 auto; overflow: hidden;
    background: var(--inv-background);
    box-shadow: 0 0 70px color-mix(in srgb, var(--inv-text) 16%, transparent);
}

.tc-hero { position: relative; overflow: hidden; padding: 5rem 1.5rem 2rem; text-align: center; }
.tc-hero__kicker { font: 500 .74rem/1.4 var(--tc-serif); letter-spacing: .32em; text-transform: uppercase; color: var(--inv-primary); }
.tc-hero__names { margin-top: .5rem; font: 400 clamp(2.9rem, 13vw, 3.6rem)/1.05 var(--tc-script); color: var(--inv-primary); overflow-wrap: anywhere; }
.tc-hero__date { margin-top: .5rem; font: 500 .84rem/1.3 var(--tc-serif); letter-spacing: .2em; text-transform: uppercase; }
.tc-hero__text { position: relative; z-index: 2; }
.tc-hero--photo {
    display: flex; flex-direction: column; justify-content: flex-end;
    min-height: 82vh; min-height: 82svh; padding: 0 1.5rem 1.8rem; isolation: isolate;
}
.tc-hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.tc-hero__photo { position: absolute; left: 0; top: -40px; width: 100%; height: calc(100% + 80px); object-fit: cover; object-position: 50% 30%; }
.tc-hero--photo::after {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(to bottom, transparent 0%, transparent 42%, color-mix(in srgb, var(--inv-background) 78%, transparent) 66%, var(--inv-background) 90%);
}

/* ---------- sections ---------- */
.tc-main { padding: 0; }
.tc-section { position: relative; overflow: hidden; padding: 3.6rem 1.4rem; text-align: center; }
.tc-section > * { position: relative; z-index: 1; }
.tc-section > .tc-bloom { position: absolute; z-index: 0; }
.tc-wash { background: var(--tc-washed); }

/* a client photo behind a deep band, under a strong color gradient (text stays readable) */
.tc-bgphoto { position: absolute !important; inset: 0; z-index: 0 !important; overflow: hidden; }
.tc-bgphoto img { position: absolute; left: 0; top: -40px; width: 100%; height: calc(100% + 80px); object-fit: cover; opacity: .75; filter: saturate(.85); }
.tc-bgphoto::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, color-mix(in srgb, var(--tc-deep) 88%, transparent), color-mix(in srgb, var(--tc-deep) 70%, transparent) 50%, color-mix(in srgb, var(--tc-deep) 90%, transparent));
}
.tc-live .tc-bgphoto::after { background: linear-gradient(180deg, color-mix(in srgb, var(--tc-olive-deep) 90%, transparent), color-mix(in srgb, var(--tc-olive-deep) 76%, transparent) 50%, color-mix(in srgb, var(--tc-olive-deep) 92%, transparent)); }

/* deep colored bands (quote, countdown, live streaming) */
.tc-deep {
    color: var(--tc-on-deep);
    background: radial-gradient(120% 70% at 100% 0%, color-mix(in srgb, var(--inv-primary) 85%, var(--inv-accent)), transparent 60%), var(--tc-deep);
}
.tc-deep .tc-head__kicker { color: var(--tc-accent-light); }
.tc-deep .tc-head__title { color: #fff; }
.tc-deep .tc-head__title i { color: var(--tc-accent-light); }
.tc-deep .tc-head__line { background: linear-gradient(90deg, var(--tc-accent-light), var(--inv-accent)); }
.tc-deep .tc-amp { color: var(--tc-accent-light); }

/* ---------- opening ---------- */
.tc-opening { padding-top: 6.4rem; }
.tc-opening__flora { width: 58%; max-width: 260px; top: .3rem; right: -14%; }
.tc-quote__flora { width: 20%; max-width: 92px; right: -4%; top: -1.2rem; }
.tc-opening__text { max-width: 22.5rem; margin: 0 auto; }
.tc-opening__greeting { font: italic 400 1.4rem/1.35 var(--tc-serif); color: var(--inv-primary); margin-bottom: .9rem; }
.tc-opening__message { font-size: .95rem; line-height: 1.8; color: var(--tc-soft); }
/* without photos: a watercolor wash gradient instead of flat paper */
.tc-opening {
    background:
        radial-gradient(70% 40% at 0% 100%, color-mix(in srgb, var(--inv-wash) 60%, transparent), transparent 70%),
        linear-gradient(180deg, var(--inv-background), var(--tc-washed) 75%, var(--inv-background));
}
.tc-opening--photo { background: var(--inv-background); }
/* with a photo: it shows ~25% through the paper, denser behind the text, fading into the paper at the edges */
.tc-bgphoto--soft img { opacity: 1; filter: saturate(.7) blur(1.5px); }
.tc-bgphoto--soft::after {
    background:
        radial-gradient(80% 50% at 50% 36%, color-mix(in srgb, var(--inv-background) 92%, transparent), color-mix(in srgb, var(--inv-background) 72%, transparent)),
        linear-gradient(180deg, color-mix(in srgb, var(--inv-background) 60%, transparent), transparent 22%, transparent 78%, var(--inv-background));
}
.tc-opening--photo .tc-opening__message { color: var(--inv-text); }

.tc-roundrow { display: flex; justify-content: center; gap: .5rem; margin-top: 2rem; }
.tc-roundrow__item {
    flex: 0 1 4.3rem; min-width: 0; aspect-ratio: 1; border-radius: 50%; overflow: hidden;
    border: 3px solid #fff; box-shadow: 0 8px 16px -8px var(--tc-shadow), 0 0 0 1px var(--tc-line);
}
.tc-roundrow__item:nth-child(even) { translate: 0 .6rem; }
.tc-roundrow__item img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* the quote on a deep band: big open quote mark, italic serif */
.tc-quote { padding: 4.6rem 1.8rem 3.6rem; }
.tc-quote__mark { display: block; height: 2.6rem; font: 400 6rem/1 var(--tc-serif); color: var(--inv-accent); }
.tc-quote blockquote { font: italic 400 1.2rem/1.6 var(--tc-serif); color: #fff; text-shadow: 0 1px 14px rgb(0 0 0 / .25); }
.tc-quote figcaption { margin-top: 1.1rem; font: 600 .72rem/1.4 var(--tc-sans); letter-spacing: .26em; text-transform: uppercase; color: var(--tc-accent-light); }

/* ---------- couple: arches with a soft color shadow on alternating sides ---------- */
.tc-person { display: grid; justify-items: center; gap: .25rem; }
.tc-arch { position: relative; width: min(60%, 225px); aspect-ratio: 3 / 4; margin-bottom: 1.2rem; }
.tc-arch::before {
    content: ''; position: absolute; inset: 7% -11% -6% 11%; border-radius: 999px 999px 1.2rem 1.2rem;
    background: linear-gradient(160deg, color-mix(in srgb, var(--inv-accent) 55%, transparent), color-mix(in srgb, var(--inv-bloom) 55%, transparent));
}
.tc-person--bride .tc-arch::before { inset: 7% 11% -6% -11%; background: linear-gradient(200deg, color-mix(in srgb, var(--inv-bloom) 60%, transparent), color-mix(in srgb, var(--inv-accent) 45%, transparent)); }
.tc-arch__photo {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%;
    border-radius: 999px 999px 1.2rem 1.2rem; box-shadow: 0 1rem 2rem -1rem var(--tc-shadow);
}
.tc-arch__photo--empty {
    display: grid; place-items: center; font: italic 400 4.5rem/1 var(--tc-serif); color: #fff;
    background: radial-gradient(circle at 35% 25%, color-mix(in srgb, var(--inv-bloom) 70%, #fff), transparent 60%), linear-gradient(160deg, var(--inv-primary), var(--inv-accent));
}
.tc-couple__flora { width: 44%; max-width: 200px; top: .2rem; left: -14%; scale: -1 1; }
.tc-arch__flora { width: 50%; left: -26%; bottom: -10%; z-index: 3; }
.tc-person--bride .tc-arch__flora { width: 44%; left: auto; right: -24%; bottom: -12%; scale: -1 1; }
.tc-person__label { font: 600 .68rem/1.4 var(--tc-sans); letter-spacing: .3em; text-transform: uppercase; color: var(--tc-label); }
.tc-person__nick { font: 400 3.3rem/1.1 var(--tc-script); color: var(--inv-primary); }
.tc-person__name { font: 500 1.3rem/1.25 var(--tc-serif); color: var(--inv-text); }
.tc-person__parents { margin-top: .4rem; font-size: .9rem; line-height: 1.55; color: var(--tc-soft); }
.tc-person__parents strong { color: var(--inv-text); font-weight: 600; }
.tc-person__ig {
    display: inline-flex; align-items: center; gap: .35rem; margin-top: .8rem; padding: .45rem .95rem; border-radius: 999px;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--inv-primary) 40%, transparent);
    color: var(--inv-primary); font-size: .82rem; font-weight: 600; text-decoration: none;
}
.tc-couple__amp { margin: 2rem 0 1.2rem; font: 400 4.4rem/.8 var(--tc-script); color: var(--inv-accent); }

/* ---------- countdown on a deep band: white calendar, big serif numerals ---------- */
.tc-cal {
    --inv-cal-bg: #fff; --inv-cal-text: var(--inv-text); --inv-cal-mark: var(--inv-primary);
    position: relative; margin: 0 auto 2rem; max-width: 21rem; padding: 1.3rem 1.2rem 1.1rem; border-radius: 1.3rem;
    background: #fff; color: var(--inv-text);
    box-shadow: 0 1.4rem 2.6rem -1rem rgb(0 0 0 / .35);
}
.tc-cal .inv-cal__month { font: 400 2.3rem/1.1 var(--tc-script); color: var(--inv-primary); }
.tc-cal .inv-cal__year { font-family: var(--tc-serif); }
.tc-cal .inv-cal__note { font: italic 400 1rem var(--tc-serif); color: var(--inv-text); }
.inv-countdown { gap: .5rem; }
.inv-countdown__item {
    flex: 1; min-width: 0; max-width: 4.8rem; padding: .85rem 0 .7rem; border-radius: 1rem;
    background: rgb(255 255 255 / .08); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .28);
}
.inv-countdown__value { font: 400 1.9rem/1 var(--tc-serif); color: #fff; }
.inv-countdown__label { margin-top: .35rem; font: 600 .6rem/1 var(--tc-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--tc-accent-light); }
.inv-countdown__done { font: italic 1.05rem var(--tc-serif); }
.inv-countdown__actions { margin-top: 1.5rem; }
.tc-deep .inv-countdown__actions .inv-button { padding: .6rem 1.05rem; font-size: .78rem; background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .6); }

/* ---------- buttons ---------- */
.inv-button { background: var(--inv-primary); color: #fff; font-weight: 600; letter-spacing: .02em; border-radius: 999px; }
.inv-button--outline { background: transparent; color: var(--inv-primary); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--inv-primary) 55%, transparent); }

/* ---------- events: white cards with a berry→apricot header and a big day numeral ---------- */
.tc-events { padding-top: 3.8rem; }
.tc-collage { position: relative; height: 11rem; margin: 0 0 2.2rem; }
.tc-collage span { position: absolute; width: 58%; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 1.2rem; box-shadow: 0 1rem 2rem -1rem var(--tc-shadow); }
.tc-collage__flora { width: 50%; right: -13%; top: -22%; z-index: 3; }
.tc-collage span img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tc-collage__a { left: 0; top: 2.6rem; border-radius: 1.2rem 1.2rem 1.2rem 3rem !important; }
.tc-collage__b { right: 0; top: 0; border: 4px solid var(--inv-background); }
html.inv-anim .tc-collage span { transition: translate 1.1s cubic-bezier(.16, 1, .3, 1) .25s; }
html.inv-anim .tc-collage:not(.is-revealed) .tc-collage__a { translate: 12% 0; }
html.inv-anim .tc-collage:not(.is-revealed) .tc-collage__b { translate: -12% 0; }

.tc-event {
    position: relative; border-radius: 1.4rem; background: #fff; text-align: left;
    box-shadow: 0 1.4rem 3rem -1.2rem color-mix(in srgb, var(--inv-text) 28%, transparent);
}
.tc-event + .tc-event { margin-top: 1.8rem; }
.tc-event__top {
    display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem;
    padding: 1.5rem 1.5rem 1.3rem; color: #fff; border-radius: 1.4rem 1.4rem 0 0;
    background: linear-gradient(120deg, var(--inv-primary), color-mix(in srgb, var(--inv-primary) 60%, var(--inv-accent)) 55%, var(--inv-accent));
}
.tc-event__flora { width: 46%; max-width: 210px; right: -9%; bottom: -8%; scale: 1 -1; z-index: 3; }
.tc-event__flora--alt { width: 34%; max-width: 160px; right: -7%; bottom: -9%; scale: 1 1; }
.tc-event__name { min-width: 0; font: 400 2.5rem/1.05 var(--tc-script); color: #fff; overflow-wrap: anywhere; }
.tc-event__day { flex: none; text-align: right; }
.tc-event__day b { display: block; font: 500 3.4rem/.9 var(--tc-serif); }
.tc-event__day small { display: block; margin-top: .35rem; font: 600 .68rem/1.2 var(--tc-sans); letter-spacing: .16em; text-transform: uppercase; }
.tc-event__photo { height: 9rem; background: var(--tc-photo) center / cover no-repeat; }
.tc-event__body { display: grid; gap: .95rem; padding: 1.4rem 1.5rem 1.6rem; }
.tc-event__li { display: grid; grid-template-columns: .9rem minmax(0, 1fr); gap: .75rem; font-size: .92rem; line-height: 1.5; color: var(--tc-soft); overflow-wrap: anywhere; }
.tc-event__li > i { width: .5rem; height: .5rem; margin-top: .45rem; border-radius: 50%; background: var(--inv-accent); justify-self: center; }
.tc-event__li b { display: block; font: 600 1rem/1.4 var(--tc-sans); color: var(--inv-text); }
.tc-event__dress { display: block; font: 600 .66rem/1.6 var(--tc-sans); letter-spacing: .2em; text-transform: uppercase; color: var(--inv-primary); }
.tc-event .inv-maps { text-align: left; }
.tc-event .inv-maps .inv-button { margin-top: .3rem; padding: .75rem 1.3rem; font-size: .84rem; background: transparent; color: var(--inv-primary); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--inv-primary) 50%, transparent); }

/* ---------- love story: a thin line down the left, a dot per moment ---------- */
.tc-story__fern { width: 30%; max-width: 140px; bottom: -.6rem; right: -8%; }
.tc-story__list { list-style: none; margin: 0 auto; padding: 0 0 0 1.9rem; max-width: 24rem; position: relative; display: grid; gap: 2.2rem; text-align: left; }
.tc-story__list::before {
    content: ''; position: absolute; left: .45rem; top: .5rem; bottom: .5rem; width: 1.5px;
    background: linear-gradient(var(--inv-primary), color-mix(in srgb, var(--inv-accent) 60%, transparent));
}
.tc-moment { position: relative; }
.tc-moment__dot {
    position: absolute; left: -1.9rem; top: .25rem; width: .95rem; height: .95rem; margin-left: .03rem; border-radius: 50%;
    background: var(--inv-primary); box-shadow: 0 0 0 4px var(--tc-washed), 0 0 0 5px var(--tc-line);
}
.tc-moment:nth-child(even) .tc-moment__dot { background: var(--inv-accent); }
.tc-moment__date { font: 700 .7rem/1.4 var(--tc-sans); letter-spacing: .2em; text-transform: uppercase; color: color-mix(in srgb, var(--inv-accent) 55%, var(--inv-text)); overflow-wrap: anywhere; }
.tc-moment__title { margin-top: .25rem; font: 500 1.35rem/1.25 var(--tc-serif); color: var(--inv-text); overflow-wrap: anywhere; }
.tc-moment__story { margin-top: .45rem; font-size: .9rem; line-height: 1.65; color: var(--tc-soft); overflow-wrap: anywhere; }
.tc-moment__photo { display: block; width: 100%; max-width: 16rem; aspect-ratio: 4 / 3; margin-top: .9rem; object-fit: cover; border-radius: 1rem 1rem 1rem 3rem; box-shadow: 0 1rem 1.8rem -1rem var(--tc-shadow); }

/* ---------- gallery slider ---------- */
.tc-gallery .inv-gallery-slider { grid-template-columns: minmax(0, 1fr); }
.tc-gallery .inv-gallery-slider__thumb { border-radius: 10px; }
.tc-gallery .inv-gallery-slider__thumb.is-active { border-color: var(--inv-primary); }
.tc-gallery .inv-gallery-slider__arrow { background: var(--inv-primary); color: #fff; }
.tc-gallery .inv-gallery-slider__stage { border-radius: 1.4rem; box-shadow: 0 1.4rem 2.6rem -1.2rem color-mix(in srgb, var(--inv-text) 40%, transparent); }
.tc-gallery .inv-gallery-slider__count { background: color-mix(in srgb, var(--inv-primary) 88%, transparent); color: #fff; }

/* ---------- live streaming: a deep green band ---------- */
.tc-live { color: var(--tc-on-deep); background: radial-gradient(90% 60% at 0% 100%, color-mix(in srgb, var(--inv-leaf) 70%, var(--inv-accent)), transparent 60%), var(--tc-olive-deep); }
.tc-live__badge { display: inline-flex; align-items: center; gap: .45rem; font: 600 .7rem/1.4 var(--tc-sans); letter-spacing: .26em; text-transform: uppercase; color: var(--tc-accent-light); }
.tc-live__badge span { width: .55rem; height: .55rem; border-radius: 50%; background: #ff6b5e; }
.tc-live__title { margin: .5rem 0 .8rem; font: 400 2.2rem/1.1 var(--tc-serif); color: #fff; }
.tc-live__title i { color: var(--tc-accent-light); }
.tc-live__text { max-width: 22rem; margin: 0 auto; font-size: .93rem; color: rgb(255 255 255 / .88); }
.tc-live__note { margin-top: .6rem; font: italic 1rem var(--tc-serif); color: rgb(255 255 255 / .85); }
.tc-live .tc-live__button { margin-top: 1.4rem; background: #fff; color: color-mix(in srgb, var(--inv-leaf) 70%, #0d1609); }

/* ---------- gift: bank cards in the theme gradient, address on white ---------- */
.tc-gift__flora { width: 25%; max-width: 120px; top: -.6rem; left: -10%; scale: -1 1; }
.inv-gift__accounts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.inv-gift__account:last-child:nth-child(odd) { grid-column: 1 / -1; }
.inv-gift__account + .inv-gift__account { margin-top: 0; }
.inv-gift__accounts + .inv-gift__address { margin-top: .8rem; }
.tc-gift .inv-gift__accounts .inv-gift__account {
    position: relative; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; text-align: left;
    padding: .9rem .8rem .8rem; border-radius: 1.1rem; color: #fff;
    background: radial-gradient(90% 80% at 100% 0%, color-mix(in srgb, var(--inv-accent) 75%, transparent), transparent 70%), var(--inv-primary);
    box-shadow: 0 1rem 1.6rem -1rem color-mix(in srgb, var(--inv-primary) 90%, transparent);
}
.tc-gift .inv-gift__accounts .inv-gift__account::before {
    content: ''; order: -1; width: 1.85rem; height: 1.35rem; margin-bottom: .4rem; border-radius: .3rem;
    background:
        linear-gradient(90deg, transparent 45%, rgb(0 0 0 / .16) 45% 55%, transparent 55%),
        linear-gradient(transparent 30%, rgb(0 0 0 / .14) 30% 38%, transparent 38% 62%, rgb(0 0 0 / .14) 62% 70%, transparent 70%),
        linear-gradient(135deg, #f6e3b4, #d6b26d);
}
.inv-gift__bank { margin: 0 0 .35rem; font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; overflow-wrap: anywhere; }
.tc-gift .inv-gift__accounts .inv-gift__bank { position: absolute; top: .8rem; right: .8rem; margin: 0; color: #fff; }
.inv-gift__logo { height: 1.45rem; padding: .2rem .5rem; border-radius: .4rem; background: #fff; max-width: 100%; }
.inv-gift__logo img { max-width: 3.8rem; }
.inv-gift__number { margin: 0; max-width: 100%; font: 600 clamp(.82rem, 3.6vw, .95rem)/1.3 ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; letter-spacing: .03em; overflow-wrap: anywhere; }
.tc-gift .inv-gift__accounts .inv-gift__number { color: #fff; }
.inv-gift__holder { margin: .15rem 0 .6rem; max-width: 100%; font-size: .6rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; overflow-wrap: anywhere; }
.tc-gift .inv-gift__accounts .inv-gift__holder { color: rgb(255 255 255 / .88); }
.tc-gift .inv-gift__accounts .inv-button { margin-top: auto; padding: .38rem .75rem; font-size: .65rem; background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .65); }
.inv-gift__address { padding: 1.2rem; border-radius: 1.1rem; background: #fff; box-shadow: 0 1rem 2rem -1.2rem var(--tc-shadow); }
.inv-gift__address .inv-gift__bank { color: var(--inv-primary); }
.inv-gift__address .inv-gift__holder { font-size: .85rem; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--inv-text); }
.inv-gift__address p { margin: 0 0 .7rem; font-size: .9rem; color: var(--tc-soft); }
.inv-gift__address .inv-button { padding: .5rem 1rem; font-size: .76rem; }

/* ---------- forms on white cards ---------- */
.tc-card { position: relative; padding: 1.6rem 1.25rem; border-radius: 1.4rem; background: #fff; box-shadow: 0 1.4rem 3rem -1.4rem color-mix(in srgb, var(--inv-text) 30%, transparent); }
.tc-form { text-align: left; }
.tc-card__flora { width: 36%; max-width: 170px; top: -3rem; right: -1.8rem; z-index: 3; }
.tc-rsvp .tc-lead { margin-bottom: 3rem; }
.tc-form .inv-form label, .tc-form .inv-form__choices legend { font-weight: 600; font-size: .85rem; }
.tc-form .inv-form input:not([type=radio]):not([type=checkbox]), .tc-form .inv-form select, .tc-form .inv-form textarea {
    border: 1px solid color-mix(in srgb, var(--inv-primary) 25%, transparent); border-radius: 10px;
    background: color-mix(in srgb, var(--inv-background) 60%, #fff); color: var(--inv-text); padding: .7rem .85rem;
}
.tc-form .inv-form input:focus, .tc-form .inv-form select:focus, .tc-form .inv-form textarea:focus {
    outline: none; border-color: var(--inv-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--inv-primary) 18%, transparent);
}
.tc-form .inv-form button[type=submit] { width: 100%; padding: .9rem 1.5rem; }
.inv-rsvp__deadline { margin: 0 0 .8rem; font: italic 1rem var(--tc-serif); text-align: center; color: var(--tc-soft); }
.inv-form__notice { background: color-mix(in srgb, var(--inv-leaf) 16%, #fff); }

.tc-wishes__flora { width: 26%; max-width: 120px; top: .8rem; left: -7%; }
.inv-wishes { --inv-wishes-height: 20rem; }
.inv-wishes:not(.inv-wishes--paged) .inv-wishes__list { padding: .5rem; border-radius: 12px; background: var(--tc-washed); }
.inv-wish { padding: .7rem .85rem; border-radius: 14px 14px 14px 4px; background: #fff; box-shadow: 0 4px 10px -6px var(--tc-shadow); }
.inv-wish__name { font: 600 .98rem/1.3 var(--tc-serif); color: var(--inv-primary); }
.inv-wish__message { font-size: .88rem; line-height: 1.5; }
.inv-wish__time { font-size: .7rem; }
.inv-wish__reply { border-left-color: var(--inv-leaf); background: color-mix(in srgb, var(--inv-leaf) 12%, transparent); }

/* ---------- closing: on the wash, the photo framed by painted flowers ---------- */
.tc-closing { padding: 4.6rem 1.6rem 3.4rem; }
.tc-closing__blob { width: min(56%, 215px); margin: 0 auto 3rem; }
.tc-frame { width: 78%; z-index: 3; }
.tc-frame--tl { top: -20%; left: -34%; scale: -1 1; }
.tc-frame--br { bottom: -20%; right: -34%; scale: 1 -1; }
.tc-closing__message { max-width: 22rem; margin: 0 auto; font-size: .95rem; line-height: 1.8; color: var(--tc-soft); }
.tc-closing__sign { margin-top: 1.4rem; font: italic 400 1.05rem var(--tc-serif); color: var(--inv-primary); }
.tc-closing__names { margin-top: .3rem; font: 400 clamp(2.8rem, 12vw, 3.3rem)/1.15 var(--tc-script); color: var(--inv-primary); }

/* ---------- platform bits ---------- */
.tc-branding { color: var(--inv-text); }
.inv-checkin { position: relative; color: var(--inv-text); }
/* the footer continues the closing wash */
.tc-closing ~ .tc-branding, .tc-closing ~ .inv-checkin { background: var(--tc-washed); }

.inv-music__button {
    background: var(--inv-primary); color: #fff;
    box-shadow: 0 0 0 3px color-mix(in srgb, #fff 80%, transparent), 0 6px 16px color-mix(in srgb, var(--inv-text) 25%, transparent);
}
/* keep the music button, menu and back-to-top inside the phone column on wide screens */
.tc-body .inv-music { right: max(1rem, calc(50vw - 230px + 1rem)); }
.inv-nav {
    --inv-nav-bg: color-mix(in srgb, #fff 92%, transparent);
    --inv-nav-text: color-mix(in srgb, var(--inv-text) 75%, transparent);
    --inv-nav-active: var(--inv-primary);
    border-color: var(--tc-line);
}
.inv-to-top { left: max(1rem, calc(50vw - 230px + 1rem)); background: #fff; color: var(--inv-primary); box-shadow: 0 0 0 1px var(--tc-line), 0 6px 14px -6px color-mix(in srgb, var(--inv-text) 40%, transparent); }

@media (prefers-reduced-motion: reduce) {
    .tc-drift { display: none !important; }
    .tc-bloom, .tc-flora, .tc-blob__photo img { animation: none !important; }
    .tc-cover--leave { transition: opacity .3s ease; }
}


/* shorter screens: the cover flowers shrink into the corners, clear of the text */
@media (max-height: 760px) {
    .tc-cover__tl { width: 60%; }
    .tc-cover__br { width: 40%; right: -12%; bottom: -8%; }
}
@media (max-height: 660px) {
    .tc-cover__tl { width: 52%; top: -3%; }
    .tc-cover__br { width: 30%; right: -10%; bottom: -10%; }
    .tc-crown-rose { width: 30%; bottom: -4%; }
}
