.article-overlay {
    position: absolute;
    inset: 0;
    background-color: var(--color-overlay);
}

.article-content {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    padding: 3rem 1rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    background-image: url("/assets/images/3.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


.article-content .right,
.article-content .left {
    width: 100%;
    display: flex;
    justify-content: center;
}

.article-popup {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 1rem;
    transition: all ease-in-out .4s;
}

.article-popup h2 {
    margin: 0;
    font-size: 3rem;
    z-index: 10;
    font-weight: 100;
    color: white;
    line-height: 1.1;
}

.article-popup b {
    font-weight: 500;
}


/* Articles List */

.articles {
    list-style: none;
    margin: 0;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--color-black);
    box-shadow: 0px 0px 30px var(--color-black);
    gap: 1rem;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.11);
    backdrop-filter: blur(10px);
    max-width: 900px;
}

.article {
    margin-top: 1rem;
}

.article article {
    width: 100%;
}

.article-link {
    display: block;
    text-decoration: none;
    color: inherit;
}


/* Main article title */

.article-link h3 {
    margin: 0;
    font-size: 1.7rem;
    font-weight: 300;
    color: var(--color-white);
    border-left: transparent 2px solid;
    padding: 1rem;
    overflow: hidden;
    /* background: linear-gradient(to right, rgba(0, 0, 0, 0.507) 1%, transparent 50%, black 100%); */
    opacity: 1;
    filter: blur(0px);
    animation: articleSlideIn 1s ease forwards;
    animation-timeline: view();
    animation-range: entry 10% cover 35%;
}



.article-link .desc {
    font-size: 1.4rem;
    font-weight: 100;
    color: white;
    line-height: 1.35;
    opacity: 0;
    animation: articleDescSlide 1s ease forwards;
    animation-timeline: view();
    animation-range: entry 12% cover 38%;
}


.article-link h3,
.article-link .desc,
.article-popup {
    transition: all 0.5s ease;
}

.article-link:hover h3,
.article-link:focus-visible h3 {
    transform: translateX(6px);
    border-left: 2px solid black;
}

.article-link:hover .desc,
.article-link:focus-visible .desc {
    transform: translateX(4px);
}

.article-link:focus-visible {
    outline: none;
}

.article-link:focus-visible h3 {
    text-decoration: underline;
    text-underline-offset: 0.2em;
}


@keyframes articleSlideIn {
    from {
        filter: blur(10px);
        clip-path: inset(0 100% 0 0);
    }
    to {
        filter: blur(0px);
        clip-path: inset(0 0 0 0);
    }
}

@keyframes articleDescSlide {
    from {
        filter: blur(10px);
        clip-path: inset(0 0 0 0);
    }
    to {
        filter: blur(0px);
        clip-path: inset(0 100% 0 0);
    }
}


/* 
   Tablet
 */

@media screen and (min-width: 800px) {
    .article-popup h2 {
        font-size: 3.3rem;
    }
    .article-link h3 {
        font-size: 3.3rem;
    }
    .article-link .desc {
        font-size: 1.8rem;
    }
}


/* 
   Desktop
 */

@media screen and (min-width: 1200px) {
    .article-content {
        flex-direction: row-reverse;
    }
    .article-content .right,
    .article-content .left {
        width: 50%;
    }
    .article-content h2,
    .article-link h3 {
        font-size: 2.5rem;
    }
    .article-link .desc {
        font-size: 1.6rem;
    }
    .article-popup h2 {
        font-size: 4rem;
    }
    .articles {
        max-width: 1000px;
        padding-right: 2rem;
    }
}