@import url('https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body{
    font-family: "Figtree", serif;
}
body{
    background-color: #F4D04E;
}
main{
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    min-width: 100vw;
}

#preview-container {
    width: 384px;
    height: 522px;
    background-color: #ffff;
    border: #111111 1.5px solid;
    border-radius: 10px;
    box-shadow: 4px 3px 0  3px #111111 ;
}

figure{
    margin: 24.5px;
}

figure #hero-img{
    border-radius: 10px;
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.catergory p {
    background-color: #F4D04E;
    color: #111111;
    border-radius: 5px;
    padding: 0.45rem 0.85rem;
    width: fit-content;
    margin: 0.7rem 0;
    font-size: 14px;
    font-weight: bold;
}

.publish-date p{
    font-size: 14px;
    color: #111111;
    margin-bottom: 0.85rem;
}

article #art-theme{
    font-size: 24px;
    color: #111111;
}

article p{
    font-size: 16px;
    color: #6B6B6B;
    margin-top: 0.9rem;
}

.creator{
    display: flex;
    margin-top: 1rem;
}

.creator img {
    width: 32px;
    height: 32px;
}

.creator p{
    font-weight: bold;
    font-size: 14px;
    align-self: center;
    margin-left: 0.85rem;
}


@media  (max-width: 480px) {
    
    #preview-container {  
        width: 327px;
        height: 501px;
    }

    
    figure #hero-img {
        width: 100%;
    }

    .catergory p {
        font-size: 12px;
    }
    .publish-date p {
        font-size: 14px;
        margin-bottom: 0.7rem;
    }
    
    article .art-theme {
        font-size: 20px;        
    }
    
    article p {
        font-size: 14px;
        margin-top: 0.7rem;
    }
}