/* =========================================
   MAIN.CSS
   Global Elements & Typography
   ========================================= */

@import url('/css/buttons.css');
@import url('/css/open-lightbox.css');

/* Typography defaults */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-sans);
    font-weight: 400;
    color: var(--text);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

h1 {
    font-size: clamp(3.5rem, 7vw, 6rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(3rem, 5vw, 3.5rem);
    letter-spacing: -0.02em;
}

h3 {
    font-size: clamp(2rem, 3vw, 3rem);
}

p {
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--text);
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

ul,
ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.3s;
}

a:hover {
    opacity: 0.7;
}

/* --- COMMON COMPONENTS --- */

/* Label (Subtitle/Category) */
.label {
    font-size: 1.6rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--gray-1);
    display: block;
    margin-bottom: 2rem;
    font-weight: 500;
}

/* Smoke Letter Effect for .label */
.label .smoke-letter {
    display: inline-block;
    opacity: 0;
    transform-origin: center bottom;
    transform: translateY(-40px) scale(1.5) rotate(5deg);
    filter: blur(12px);
    will-change: opacity, transform, filter;
    transition:
        opacity .8s ease-out,
        transform .8s cubic-bezier(0.215, 0.61, 0.355, 1),
        filter .8s ease-out;
}

.label .smoke-letter.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0deg);
    filter: blur(0);
}

/* --- RESPONSIVE ADJUSTMENTS --- */

@media (min-width: 1920px) {
    .label {
        font-size: 1.9rem;
        margin-bottom: 2.5rem;
    }
}

@media (max-width: 768px) {

    h1,
    h2,
    h3 {
        text-wrap: balance;
        word-wrap: break-word;
        /* fallback */
    }

    .label {
        font-size: 0.85rem;
        margin-bottom: 1.5rem;
    }

}
