@import '../components/home/hero-article.css';
@import '../components/home/small-article.css';
@import '../components/home/newsletter.css';
@import '../components/home/specific-articles-tags.css';

.home-wrapper {
    position: relative;
}

.opium-rail {
    display: none;
}

.home {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
}

.hero-article__tags-and-date, .small-article__tags-and-date {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: clamp(15px, 1.3vw, 16px);

}

@media (min-width: 1024px) {
    .home-wrapper {
        overflow: clip;
    }

    .opium-rail {
        display: flex;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        flex-direction: column;
        justify-content: space-evenly;
        align-items: center;
        pointer-events: none;
        z-index: 0;
    }

    .opium-step {
        font-family: var(--font-family-esteban);
        font-size: 25vw;
        font-weight: 700;
        color: var(--main);
        opacity: 0.15;
        line-height: 1;
        pointer-events: none;
        user-select: none;
    }

    .opium-step:nth-child(odd) {
        align-self: flex-start;
        transform: translateX(-50%);
    }

    .opium-step:nth-child(even) {
        align-self: flex-end;
        transform: translateX(50%);
    }

    .home {
        width: 100%;
        padding-left: var(--padding-container);
        padding-right: var(--padding-container);
        box-sizing: border-box;
    }

    .home__section-hero {
        display: flex;
        gap: clamp(20px, 3vw, 45px);
        align-items: flex-start;
        justify-content: center;
        max-width: calc(1600px - 2 * var(--padding-container));
        margin-left: auto;
        margin-right: auto;
        min-width: 0;
        width: 100%;
        box-sizing: border-box;
    }

    .home__section-hero > *:nth-child(3) {
        order: 1;
        flex: 0 1 350px;
        min-width: 0;
        max-width: 350px;
    }

    .home__section-hero > *:nth-child(1) {
        order: 2;
        flex: 1 1 600px;
        min-width: 0;
        max-width: 700px;
    }

    .home__section-hero > *:nth-child(2) {
        order: 3;
        flex: 0 1 350px;
        min-width: 0;
        max-width: 350px;
    }
}
