html{
    scroll-behavior: smooth;
    scroll-padding-top: 200px;
}


/* --- Blog --- */
.blog{
    padding-top: 100px;
    padding-bottom: 150px;
}

.blog h1{
    color: var(--placeholder);
}

.article-shelf-wrapper h2{
    margin-bottom: 15px;
    color: var(--text);
    font-size: 1.75rem;
    margin: 0;
}

.article-shelf{
    padding: 20px 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 50px;
}

.article-item{
    background: var(--comp-theme);
    box-shadow: var(--comp-shadow);
    border-radius: 13px;
    transition: var(--trans);
}

.article-item > a{
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
}

.article-item:hover{
    box-shadow: var(--comp-shadow);
    scale: 1.02;
}

.article-item img{
    display: block;
    aspect-ratio: 16/9;
    width: 100%;
    border-radius: 13px;
    object-fit: cover;
    margin-bottom: 10px;
}

.article-item-info{
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: justify;
    color: var(--placeholder);
    transition: var(--trans);
}

.article-item h3{
    font-size: 1.5rem;
    color: var(--text);
}

.article-item-date{
    color: var(--placeholder);
    font-size: 0.95rem;
    line-height: 1;
    transition: var(--trans);
}




/* --- Article --- */
.article-page{
    margin-bottom: 150px;
}

.article-page > article{
    --text-color: #394459;
    width: 100%;
    max-width: 1200px;
    margin: 80px auto;
    display: flex;
    flex-direction: column;
    gap: 25px;
    padding: 35px;
    background: var(--comp-theme);
    box-shadow: var(--comp-shadow);
    border-radius: 13px;
    color: var(--text);
    transition: var(--trans);
}

html:has(#theme-mode.dark-mode) .article-page article{
    --text-color: #9EA3BD;
}

#main-image{
    width: 100%;
    height: auto;
    border-radius: 13px;
    object-fit: cover;
    aspect-ratio: 16/9;
    /* box-shadow: var(--comp-shadow); */
}

h1{
    margin-top: 10px;
    line-height: 1.3;
}

time{
    display: block;
    margin-top: 5px;
    color: var(--placeholder);
}

#main-section{
    color: var(--text-color);
    line-height: 1.5;
    text-align: justify;
}

.article-image{
    display: block;
    margin: 15px auto 30px auto;
    border-radius: 13px;
    width: 100%;
    max-width: 600px;
    transition: var(--trans);
    box-shadow: 0px 5px 15px 0px rgba(0,0,0,0.1);
}

.article-image:hover{
    box-shadow: var(--comp-shadow);
    scale: 1.02;
}

ol{
    gap: 3px;
    font-weight: 600;
}

a{
    color: var(--warn);
}

a:has(img){
    display: block;
    margin: 0 auto;
    width: fit-content;
}



@media (max-width: 640px) {

    .article-shelf{
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }

    .article-page{
        margin-bottom: 150px;
    }

    .article-page > article{
        margin: 80px auto;
        padding: 20px;
    }

    h1{
        margin-top: 0;
    }

    #main-section li {
        text-align: start;
    }
    
}
