/* ==========================================================================
   Toscana - olive and lemon branches, a collage of taped prints, maiolica tiles
   Signature: SVG olive and lemon branches framing a hero collage of printed
   photos held with tape; story as an album page; events under hand-painted tile bands.
   Palette: --inv-primary (olive / terracotta / Amalfi blue), --inv-accent, --inv-bg, --inv-text
   ========================================================================== */

.toscana {
    --tc-soft: color-mix(in srgb, var(--inv-primary) 7%, var(--inv-bg));
    --tc-muted: color-mix(in srgb, var(--inv-text) 68%, var(--inv-bg));
    --tc-tape: rgba(236, 222, 186, .82);
    --tc-leaf: #6B7C45;
    --tc-leaf-light: #9AAB72;
    --kit-radius: 4px;
    font-family: var(--inv-font-body);
    font-size: 1.03rem;
    line-height: 1.75;
    color: var(--inv-text);
    background:
        radial-gradient(ellipse 60% 40% at 100% 0, color-mix(in srgb, #F3D36B 16%, transparent), transparent 70%),
        var(--inv-bg);
    overflow-x: clip;
}
.toscana h1, .toscana h2, .toscana h3 { font-family: var(--inv-font-heading); font-weight: 400; line-height: 1.1; }
/* zero specificity, so the template's own heading classes can set their spacing */
:where(.toscana) :is(h1, h2, h3) { margin: 0; }
.tc-kicker { font-size: .8rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--inv-primary); margin: 0 0 10px; }

/* ---------- Branches ---------- */
.tc-branch { display: block; overflow: visible; }
.tc-stem { fill: none; stroke: #6A5A3C; stroke-width: 2.4; stroke-linecap: round; }
.tc-branch--olive .tc-leaf { fill: var(--tc-leaf); stroke: var(--tc-leaf-light); stroke-width: .8; }
.tc-branch--olive .tc-leaf:nth-of-type(3n) { fill: color-mix(in srgb, var(--tc-leaf) 70%, #B9C49C); }
.tc-olive { fill: #4A4A2A; }
.tc-branch--olive g:nth-of-type(2n) .tc-olive { fill: #7A7F3A; }
.tc-branch--lemon .tc-leaf { fill: #4E7A38; stroke: #3B5F2A; stroke-width: .8; }
.tc-branch--lemon .tc-leaf:nth-of-type(2n) { fill: #5F8C44; }
.tc-lemon { fill: #F0CB3C; stroke: #C9A22A; stroke-width: 1; }
.tc-shine { fill: rgba(255, 255, 255, .55); }
.tc-branch { transform-origin: 0 80%; animation: tc-breeze 7s ease-in-out infinite alternate; }
@keyframes tc-breeze { from { rotate: -1.2deg; } to { rotate: 1.2deg; } }

/* ---------- Navigation ---------- */
.tc-nav { position: absolute; top: 0; left: 0; right: 0; z-index: 6; padding: 16px clamp(16px, 4vw, 44px); display: flex; justify-content: flex-end; }
.tc-nav .kit-nav-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 2px 18px; }
.tc-nav a { text-decoration: none; font-size: .9rem; color: var(--inv-text); padding: 6px 0; border-bottom: 1px solid transparent; }
.tc-nav a:hover, .tc-nav a.is-current { color: var(--inv-primary); border-color: var(--inv-primary); }
.tc-nav .kit-nav-brand { font-family: var(--inv-font-heading); font-style: italic; font-size: 1.5rem; color: var(--inv-primary); margin-right: auto; border: 0; }
.tc-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) 18%, transparent); }
.toscana .kit-to-top { background: var(--inv-primary); color: #fff; }
@media (max-width: 899px) {
    .tc-nav { padding: 10px 12px; }
    .tc-nav .kit-nav-toggle { color: var(--inv-primary); font-size: 1.5rem; margin-left: auto; }
    .tc-nav .kit-nav-links { display: none; }
    .tc-nav.is-open .kit-nav-links { display: flex; flex-direction: column; gap: 10px; position: absolute; top: 58px; left: 12px; right: 12px; padding: 20px; background: var(--inv-bg); border: 1px solid color-mix(in srgb, var(--inv-primary) 25%, transparent); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .3); }
}

/* ---------- Prints with tape ---------- */
.tc-print { position: relative; margin: 0; padding: 10px 10px 34px; background: #FFFDF8; box-shadow: 0 18px 30px -18px rgba(60, 40, 20, .5), 0 1px 3px rgba(0, 0, 0, .08); }
.tc-print img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; }
.tc-print::before { content: ""; position: absolute; top: -12px; left: 50%; width: 96px; height: 28px; translate: -50% 0; rotate: -3deg; background: var(--tc-tape); box-shadow: 0 1px 2px rgba(0, 0, 0, .1); clip-path: polygon(3% 0, 97% 4%, 100% 50%, 96% 100%, 2% 96%, 0 45%); z-index: 1; }

/* ---------- Hero with collage ---------- */
.tc-hero { position: relative; min-height: 100svh; display: grid; align-items: center; padding: 100px clamp(20px, 5vw, 64px) 70px; overflow: hidden; }
.tc-branch--hero-left { position: absolute; left: -90px; bottom: -80px; width: clamp(220px, 26vw, 380px); rotate: -8deg; opacity: .95; pointer-events: none; }
.tc-hero-grid { position: relative; z-index: 1; width: min(1140px, 100%); margin: 0 auto; display: grid; gap: 60px; align-items: center; }
@media (min-width: 900px) { .tc-hero-grid { grid-template-columns: 1fr 1fr; } }
.tc-hero-text { text-align: center; }
@media (min-width: 900px) { .tc-hero-text { text-align: left; } }
.tc-names { font-size: clamp(3.2rem, 8.5vw, 6.2rem); color: var(--inv-primary); letter-spacing: -.01em; }
.tc-names span { display: inline-block; }
.tc-and { font-style: italic; color: var(--inv-accent); font-size: .8em; }
@media (min-width: 900px) { .tc-names span:not(.tc-and) { display: block; } .tc-and { display: block !important; line-height: .8; margin-left: 1.2em; } }
.tc-subtitle { max-width: 470px; margin: 22px auto 0; font-family: var(--inv-font-heading); font-style: italic; font-size: 1.3rem; line-height: 1.5; color: var(--tc-muted); }
@media (min-width: 900px) { .tc-subtitle { margin-left: 0; } }
.tc-hero-date { display: inline-flex; flex-direction: column; gap: 2px; margin: 28px 0 0; padding-top: 14px; border-top: 1px solid color-mix(in srgb, var(--inv-primary) 40%, transparent); }
.tc-hero-date strong { font-family: var(--inv-font-heading); font-weight: 400; font-size: 1.45rem; color: var(--inv-primary); }

.tc-collage { position: relative; width: min(500px, 92vw); margin: 0 auto; aspect-ratio: 1 / 1.05; }
.tc-collage .tc-print { position: absolute; width: 58%; }
.tc-collage .tc-print:nth-of-type(1) { left: 20%; top: 4%; rotate: -3deg; z-index: 2; }
.tc-collage .tc-print:nth-of-type(2) { left: 0; top: 34%; width: 48%; rotate: -9deg; z-index: 1; }
.tc-collage .tc-print:nth-of-type(3) { right: 0; top: 40%; width: 46%; rotate: 7deg; z-index: 3; }
.tc-collage .tc-print:nth-of-type(2) img, .tc-collage .tc-print:nth-of-type(3) img { aspect-ratio: 1; }
.tc-collage--1 .tc-print:nth-of-type(1) { left: 12%; width: 76%; }
.tc-collage--2 .tc-print:nth-of-type(1) { left: 4%; }
.tc-collage--2 .tc-print:nth-of-type(2) { left: auto; right: 0; top: 40%; rotate: 6deg; z-index: 3; }
.tc-branch--collage { position: absolute; right: -16%; top: -12%; width: 64%; z-index: 4; rotate: 18deg; filter: drop-shadow(0 8px 10px rgba(60, 40, 20, .25)); }

/* ---------- Sections ---------- */
.tc-section { max-width: 1060px; margin: 0 auto; padding: clamp(60px, 9vw, 100px) 22px; }
.tc-welcome, .tc-family, .tc-countdown { text-align: center; }
.tc-title { display: grid; justify-items: center; gap: 4px; margin-bottom: 34px; text-align: center; }
.tc-branch--title { width: 170px; animation: none; }
.tc-title h2 { font-size: clamp(2.2rem, 5.5vw, 3.3rem); color: var(--inv-primary); }
.tc-prose { max-width: 660px; margin: 0 auto; font-size: 1.12rem; }
.tc-prose p { margin: 0 0 1em; }
.tc-quote-author { font-family: var(--inv-font-heading); font-style: italic; }
.tc-lead { font-family: var(--inv-font-heading); font-style: italic; font-size: 1.3rem; color: var(--tc-muted); margin: 0 0 22px; }

/* Couple */
.tc-couple-grid { display: grid; gap: 50px; }
@media (min-width: 760px) { .tc-couple-grid { grid-template-columns: 1fr 1fr; gap: 70px; } }
.tc-person { text-align: center; }
.tc-portrait { position: relative; width: min(300px, 72vw); margin: 0 auto 22px; padding: 10px 10px 34px; background: #FFFDF8; box-shadow: 0 18px 30px -18px rgba(60, 40, 20, .5); rotate: -2deg; }
.tc-person:nth-child(2) .tc-portrait { rotate: 2deg; }
.tc-portrait::before { content: ""; position: absolute; top: -12px; left: 50%; width: 90px; height: 26px; translate: -50% 0; rotate: 4deg; background: var(--tc-tape); z-index: 1; }
.tc-portrait img, .tc-initial { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.tc-initial { display: grid; place-items: center; background: var(--tc-soft); font-family: var(--inv-font-heading); font-size: 6rem; color: var(--inv-primary); }
.tc-person h3 { font-size: 2rem; color: var(--inv-primary); margin-bottom: 8px; }
.tc-person p { color: var(--tc-muted); max-width: 400px; margin: 0 auto; }

/* Family */
.tc-family-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin: 0; }
.tc-family-list div { min-width: 230px; padding: 20px 26px; background: var(--tc-soft); border-radius: 4px; }
.tc-family-list dt { font-size: .75rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--inv-primary); }
.tc-family-list dd { margin: 6px 0 0; font-family: var(--inv-font-heading); font-size: 1.4rem; }

/* Story as an album page */
.tc-story-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 70px; }
.tc-story-item { display: grid; gap: 34px; align-items: center; }
@media (min-width: 760px) {
    .tc-story-item { grid-template-columns: 1fr 1.1fr; gap: 60px; }
    .tc-story-item:nth-child(even) .tc-story-photo { order: 2; }
}
.tc-story-photo { width: min(380px, 84vw); margin: 0 auto; rotate: -3deg; }
.tc-story-item:nth-child(even) .tc-story-photo { rotate: 3deg; }
.tc-story-photo img { aspect-ratio: 5 / 4; }
.tc-story-text h3 { font-size: 1.9rem; font-style: italic; color: var(--inv-primary); margin-bottom: 10px; }
.tc-story-text p { margin: 0 0 .6em; }

/* Events under maiolica tiles */
.tc-event-list { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); }
.tc-event { position: relative; overflow: hidden; padding: 0 24px 28px; background: #FFFDF8; text-align: center; box-shadow: 0 16px 30px -22px rgba(60, 40, 20, .5); border: 1px solid color-mix(in srgb, var(--inv-primary) 14%, transparent); }
.tc-tiles { display: block; height: 44px; margin: 0 -24px 22px; border-bottom: 3px solid var(--inv-primary);
    background:
        radial-gradient(circle, var(--inv-accent) 0 4px, transparent 4.5px) 0 0 / 44px 44px,
        radial-gradient(circle, transparent 0 9px, var(--inv-primary) 9.5px 11.5px, transparent 12px) 0 0 / 44px 44px,
        radial-gradient(circle, var(--inv-primary) 0 6px, transparent 6.5px) 22px 22px / 44px 44px,
        conic-gradient(from 45deg, transparent 0 25%, color-mix(in srgb, var(--inv-primary) 18%, transparent) 0 50%, transparent 0 75%, color-mix(in srgb, var(--inv-primary) 18%, transparent) 0) 0 0 / 22px 22px,
        #FFFDF4; }
.tc-event-time { font-family: var(--inv-font-heading); font-size: 2.5rem; color: var(--inv-primary); margin: 0; line-height: 1; }
.tc-event h3 { font-size: 1.5rem; margin: 10px 0 6px; font-style: italic; }
.tc-event-place { font-weight: 600; margin: 10px 0 0; }
.tc-event-address, .tc-event-notes { color: var(--tc-muted); margin: 4px 0 0; font-size: .95rem; }
.toscana .kit-event-actions { justify-content: center; margin-top: 16px; }
.toscana .kit-button { border-radius: 999px; border: 1px solid var(--inv-primary); color: var(--inv-primary); background: transparent; font-weight: 600; }
.toscana .kit-button:hover { background: var(--inv-primary); color: #fff; }

/* Countdown */
.tc-countdown .kit-countdown { gap: clamp(8px, 2.5vw, 20px); margin-top: 12px; }
.tc-countdown .kit-countdown-unit { width: clamp(74px, 18vw, 118px); aspect-ratio: 1; min-width: 0; align-content: center; background: #FFFDF8; border: 3px double var(--inv-primary); }
.tc-countdown .kit-countdown-value { color: var(--inv-primary); font-size: clamp(1.8rem, 5.5vw, 2.8rem); }
.tc-countdown .kit-countdown-label { font-size: clamp(.58rem, 1.7vw, .72rem); }

/* Gallery as a scattered collage */
.tc-gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 26px 18px; padding: 16px 6px 0; }
@media (min-width: 760px) { .tc-gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 40px 30px; } }
.tc-gallery-grid a { position: relative; overflow: visible; aspect-ratio: auto; border-radius: 0; padding: 8px 8px 26px; background: #FFFDF8; box-shadow: 0 16px 26px -16px rgba(60, 40, 20, .5); rotate: -2deg; transition: rotate .4s ease, scale .4s ease; }
.tc-gallery-grid a:nth-child(3n+2) { rotate: 2.5deg; translate: 0 14px; }
.tc-gallery-grid a:nth-child(3n) { rotate: -1deg; }
.tc-gallery-grid a::before { content: ""; position: absolute; top: -10px; left: 50%; width: 70px; height: 22px; translate: -50% 0; rotate: -4deg; background: var(--tc-tape); z-index: 1; }
.tc-gallery-grid img { aspect-ratio: 1; }
.tc-gallery-grid a:hover { rotate: 0deg; scale: 1.03; z-index: 2; }
.tc-gallery-grid a:hover img { transform: none; }

/* RSVP */
.tc-rsvp-card { max-width: 680px; margin: 0 auto; padding: clamp(28px, 5vw, 50px); background: #FFFDF8; box-shadow: 0 30px 60px -40px rgba(60, 40, 20, .5); text-align: center; border-top: 44px solid transparent; border-image: none; position: relative; }
.tc-rsvp-card::before { content: ""; position: absolute; left: 0; right: 0; top: -44px; height: 44px; border-bottom: 3px solid var(--inv-primary);
    background:
        radial-gradient(circle, var(--inv-accent) 0 4px, transparent 4.5px) 0 0 / 44px 44px,
        radial-gradient(circle, transparent 0 9px, var(--inv-primary) 9.5px 11.5px, transparent 12px) 0 0 / 44px 44px,
        radial-gradient(circle, var(--inv-primary) 0 6px, transparent 6.5px) 22px 22px / 44px 44px,
        #FFFDF4; }
.toscana .inv-rsvp__submit { border-radius: 999px; font-weight: 600; }

/* Info */
.tc-info-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.tc-info-item { padding: 26px; background: var(--tc-soft); }
.tc-info-item h3 { font-size: 1.45rem; font-style: italic; color: var(--inv-primary); margin-bottom: 8px; }
.tc-info-item p { margin: 0 0 .5em; }
.tc-faq { max-width: 720px; margin: 44px auto 0; text-align: center; }
.tc-faq details { text-align: left; border-bottom: 1px solid color-mix(in srgb, var(--inv-primary) 20%, transparent); padding: 14px 4px; }
.tc-faq summary { cursor: pointer; font-weight: 600; list-style: none; }
.tc-faq summary::-webkit-details-marker { display: none; }
.tc-faq summary::before { content: "❧"; color: var(--inv-primary); margin-right: 10px; }
.tc-faq details p { margin: 8px 0 0 26px; color: var(--tc-muted); }

/* Contact */
.tc-contact-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.tc-contact-person { min-width: 220px; padding: 22px 28px; background: var(--tc-soft); text-align: center; }
.tc-contact-name { font-family: var(--inv-font-heading); font-size: 1.6rem; margin: 0 0 4px; }
.tc-contact-person a { color: var(--inv-primary); font-weight: 600; text-decoration: none; }

/* Footer */
.tc-footer { position: relative; padding: 40px 22px 70px; text-align: center; background: var(--tc-soft); overflow: hidden; }
.tc-branch--footer { width: 260px; margin: 0 auto 10px; }
.tc-footer-message { font-family: var(--inv-font-heading); font-style: italic; font-size: 1.35rem; margin: 0 0 6px; }
.tc-footer-names { font-family: var(--inv-font-heading); font-size: clamp(2.2rem, 6vw, 3.2rem); color: var(--inv-primary); margin: 0 0 6px; }
.tc-hashtag { font-weight: 600; color: var(--inv-primary); margin: 0 0 10px; }

@media (prefers-reduced-motion: reduce) { .tc-branch { animation: none; } }
