/* Postvella 0.4 — original illustrated collection and coordinated envelopes. */
.lt-template-card__stage {
    aspect-ratio: 1.08 / 1;
    isolation: isolate;
    position: relative;
}

.lt-template-card__main {
    color: inherit;
    display: block;
}

.lt-template-card__stage .lt-template-card__preview {
    aspect-ratio: auto;
    background: var(--card-bg) !important;
    bottom: 0;
    color: var(--card-fg);
    height: 88%;
    left: 0;
    min-height: 0;
    padding: 22px 18px;
    position: absolute;
    width: 68%;
    z-index: 3;
}

.lt-template-card__stage .lt-template-card__preview::before {
    inset: 10px;
}

.lt-template-card__preview strong {
    font-size: clamp(1.5rem, 2.4vw, 2.8rem);
    text-wrap: balance;
}

.lt-template-card__preview > small {
    font-size: .58rem;
}

.lt-template-envelope {
    background: color-mix(in srgb, var(--card-accent) 58%, var(--card-bg));
    box-shadow: 0 14px 30px rgba(28, 43, 37, .12);
    clip-path: polygon(50% 0, 100% 27%, 100% 100%, 0 100%, 0 27%);
    height: 91%;
    overflow: hidden;
    position: absolute;
    right: 0;
    top: 0;
    width: 73%;
    z-index: 1;
}

.lt-template-envelope::before {
    background: color-mix(in srgb, var(--card-bg) 83%, white);
    clip-path: polygon(50% 0, 100% 47%, 50% 83%, 0 47%);
    content: "";
    inset: 5px 5px 30%;
    position: absolute;
    z-index: 1;
}

.lt-template-envelope::after {
    background: color-mix(in srgb, var(--card-accent) 68%, var(--card-bg));
    bottom: 0;
    clip-path: polygon(0 0, 50% 42%, 100% 0, 100% 100%, 0 100%);
    content: "";
    height: 70%;
    left: 0;
    position: absolute;
    right: 0;
    z-index: 3;
}

.lt-template-envelope > i {
    border-left: 1px solid color-mix(in srgb, var(--card-fg) 13%, transparent);
    border-top: 1px solid color-mix(in srgb, var(--card-fg) 13%, transparent);
    bottom: -37%;
    height: 70%;
    left: 15%;
    position: absolute;
    transform: rotate(45deg);
    width: 70%;
    z-index: 4;
}

.lt-template-envelope__liner {
    inset: 4px 5px 31%;
    overflow: hidden;
    position: absolute;
    z-index: 2;
}

.lt-template-envelope__liner .lt-artwork {
    height: 190%;
    left: -24%;
    opacity: .74;
    position: absolute;
    top: -42%;
    transform: rotate(-7deg);
    width: 148%;
}

.lt-template-card--wedding-nocturne .lt-template-envelope,
.lt-template-card--birthday-night .lt-template-envelope {
    background: #171a1e;
}

.lt-template-card--wedding-nocturne .lt-template-envelope::after,
.lt-template-card--birthday-night .lt-template-envelope::after {
    background: color-mix(in srgb, var(--card-bg) 82%, black);
}

.lt-template-card--birthday-confetti .lt-template-envelope,
.lt-template-card--birthday-milestone .lt-template-envelope {
    background: color-mix(in srgb, #ef8c71 66%, var(--card-bg));
}

.lt-template-card--baby-cloud .lt-template-envelope,
.lt-template-card--baptism-watercolor .lt-template-envelope {
    background: color-mix(in srgb, #8fc9cb 64%, var(--card-bg));
}

.lt-template-art,
.lt-invitation__art {
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    position: absolute;
}

.lt-artwork {
    display: block;
    height: 100%;
    width: 100%;
}

.lt-art-line {
    fill: none;
    stroke: var(--art-ink, currentColor);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.5;
}

.lt-art-fine {
    opacity: .52;
    stroke-width: 1.35;
}

.lt-art-stem {
    stroke: color-mix(in srgb, var(--art-ink) 72%, #66856c);
}

.lt-art-gold {
    stroke: color-mix(in srgb, var(--art-accent) 82%, #f3d99c);
}

.lt-art-paper { fill: color-mix(in srgb, var(--art-paper) 82%, white); }
.lt-art-white { fill: color-mix(in srgb, var(--art-paper) 28%, white); }
.lt-art-accent { fill: var(--art-accent); }
.lt-art-soft { fill: color-mix(in srgb, var(--art-accent) 25%, var(--art-paper)); }
.lt-art-secondary { fill: color-mix(in srgb, var(--art-ink) 58%, #8eb1ad); }
.lt-art-green { fill: color-mix(in srgb, var(--art-accent) 44%, #6c9a72); }
.lt-art-rose { fill: color-mix(in srgb, var(--art-accent) 42%, #ee8f9b); }
.lt-art-pink { fill: #ef9cac; }
.lt-art-blue { fill: #7ca9cf; }
.lt-art-yellow { fill: #eac866; }
.lt-art-wash { fill: color-mix(in srgb, var(--art-accent) 25%, transparent); }
.lt-art-wash--two { fill: color-mix(in srgb, #73a7b2 24%, transparent); }
.lt-art-wash--sky { fill: color-mix(in srgb, #8dbbc7 28%, var(--art-paper)); }

.lt-template-art .lt-artwork {
    inset: 0;
    position: absolute;
    z-index: 1;
}

.lt-template-card__preview > span,
.lt-template-card__preview > strong,
.lt-template-card__preview > i,
.lt-template-card__preview > small {
    position: relative;
    z-index: 4;
}

.lt-template-card--birthday-confetti .lt-template-card__preview > span,
.lt-template-card--birthday-confetti .lt-template-card__preview > strong,
.lt-template-card--birthday-confetti .lt-template-card__preview > i,
.lt-template-card--birthday-confetti .lt-template-card__preview > small,
.lt-template-card--baby-modern .lt-template-card__preview > span,
.lt-template-card--baby-modern .lt-template-card__preview > strong,
.lt-template-card--baby-modern .lt-template-card__preview > i,
.lt-template-card--baby-modern .lt-template-card__preview > small {
    background: color-mix(in srgb, var(--card-bg) 89%, transparent);
    box-decoration-break: clone;
    padding-inline: 5px;
}

.lt-template-card--birthday-milestone .lt-template-card__preview {
    justify-content: center;
}

.lt-template-card--birthday-milestone .lt-template-card__preview strong {
    background: color-mix(in srgb, var(--card-bg) 91%, transparent);
    color: var(--card-fg);
    font-family: var(--lt-sans);
    font-size: clamp(2.35rem, 4vw, 4rem);
    font-weight: 900;
    letter-spacing: .01em;
    padding: 3px 8px;
}

.lt-template-card--wedding-nocturne .lt-template-card__preview,
.lt-template-card--birthday-night .lt-template-card__preview {
    color: var(--card-fg);
}

.lt-colorways {
    align-items: center;
    display: flex;
    gap: 7px;
    margin-top: -18px;
    padding: 0 2px 22px;
}

.lt-colorways > span {
    color: var(--lt-muted);
    font-size: .58rem;
    font-weight: 800;
    letter-spacing: .1em;
    margin-right: 2px;
    text-transform: uppercase;
}

.lt-colorways > a {
    background: conic-gradient(var(--swatch-bg) 0 34%, var(--swatch-accent) 34% 68%, var(--swatch-fg) 68%);
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(24, 61, 53, .2);
    height: 20px;
    transition: transform .2s ease;
    width: 20px;
}

.lt-colorways > a:hover,
.lt-colorways > a:focus-visible { transform: scale(1.2); }
.lt-colorways > a > * { display: none; }

.lt-invitation__art {
    z-index: 1;
}

.lt-invitation__art .lt-artwork {
    height: 100%;
    width: 100%;
}

.lt-invitation.has-photo .lt-invitation__art { opacity: .18; }

.lt-invitation--party-confetti .lt-invitation__inner,
.lt-invitation--little-heart .lt-invitation__inner {
    text-shadow: 0 1px color-mix(in srgb, var(--invite-bg) 85%, transparent);
}

.lt-invitation--milestone-forty h2 {
    background: color-mix(in srgb, var(--invite-bg) 88%, transparent);
    padding: 2px 12px;
}

.lt-invitation--black-tie .lt-invitation__inner,
.lt-invitation--constellation .lt-invitation__inner {
    text-shadow: 0 1px 8px color-mix(in srgb, var(--invite-bg) 85%, transparent);
}

.lt-template-choice span {
    isolation: isolate;
}

.lt-template-choice span > .lt-artwork {
    inset: 0;
    opacity: .88;
    position: absolute;
    z-index: 0;
}

.lt-template-choice span > i,
.lt-template-choice span > b {
    position: relative;
    z-index: 2;
}

.lt-template-choice span > b {
    background: color-mix(in srgb, var(--choice-bg) 82%, transparent);
    padding: 2px 5px;
}

@media (max-width: 780px) {
    .lt-template-card__stage { aspect-ratio: 1.02 / 1; }
    .lt-template-card__stage .lt-template-card__preview { width: 72%; }
    .lt-template-envelope { width: 75%; }
}
