@import url('https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&display=swap');
*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

:root{
    --yellow:hsl(47, 88%, 63%);
    --white: hsl(0, 0%, 100%);
    --gray-500: hsl(0, 0%, 42%);
    --gray-950: hsl(0, 0%, 7%);
}
img{
    width: 100%;
}
body{
    font-family: "Figtree", serif;
}
.container{
    height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--yellow);
}
.article{
    background-color: var(--white);
    width: 340px;
    padding: 1rem;
    border-radius: 15px;
    box-shadow: 8px 8px 1px var(--gray-950);
    border: solid 1px #000;
    cursor: pointer;
}
.article:hover .title{
    color: var(--yellow) !important;
}
.article .info{
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}
.article .info .tags{
    display: flex;
    gap: .7rem;
}
.article .info .tags .tag{
    background-color:var(--yellow);
    padding: .3rem .5rem;
    border-radius: 5px;
    font-size: 13px;
    font-weight: bold;
}
.article img{
    border-radius: 15px;
}
.article .info .date{
    font-size: 14px;
}

.article .info .title{
    color: var(--gray-950);
}

.article .info .desc{
    color: var(--gray-500);
}
.article .info .author{
    display: flex;
    align-items: center;
    gap: .7rem;
}
.article .info .author .author-name{
    font-weight: bold;
    font-size: 14px;
}

.article .info .author img{
    width: 30px;
}

@media (max-width: 370px){
    .article{
        width: 90%;
    }
}