/* Homepage-specific styling */

/*-------------------------------------------------------------------------------------------------*/
/* Latest articles heading */
/*-------------------------------------------------------------------------------------------------*/
.articles-overview-heading {
    position: relative;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto 48px auto;
    padding: 0 24px 16px 24px;
    color: var(--site-text-color);
    background:
        var(--site-heading-gradient);
    background-size: 220% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: 0.04em;
    text-align: center;
    filter:
        var(--site-heading-glow);
    animation:
        articles-heading-gradient 6s
        ease-in-out infinite alternate;
}

.articles-overview-heading::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 170px;
    max-width: 70%;
    height: 3px;
    border-radius: 999px;
    background:
        var(--site-heading-line-gradient);
    box-shadow:
        var(--site-heading-line-shadow);
    transform:
        translateX(-50%);
}

/*-------------------------------------------------------------------------------------------------*/
/* Homepage article button */
/*-------------------------------------------------------------------------------------------------*/
.news-article .text > a.start-page-read-more-link {
    display: none;
}

/*-------------------------------------------------------------------------------------------------*/
/* Animations */
/*-------------------------------------------------------------------------------------------------*/
@keyframes articles-heading-gradient {

    from {
        background-position: 0% 50%;
    }

    to {
        background-position: 100% 50%;
    }
}

/*-------------------------------------------------------------------------------------------------*/
/* Small screens */
/*-------------------------------------------------------------------------------------------------*/
@media screen and (max-width: 600px) {

    .articles-overview-heading {
        margin-bottom: 34px;
        padding: 0 16px 13px 16px;
        font-size:
            clamp(1.75rem, 8vw, 2.35rem);
    }

    .articles-overview-heading::after {
        width: 120px;
    }
}

/*-------------------------------------------------------------------------------------------------*/
/* Reduced motion */
/*-------------------------------------------------------------------------------------------------*/
@media (prefers-reduced-motion: reduce) {

    .articles-overview-heading {
        animation: none;
        background-position: 50% 50%;
    }
}