@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@500;800&display=swap');

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

:root{
    --FIGTREE: 'Figtree';
    --White: hsl(0, 0%, 100%);
    --Yellow: hsl(47, 88%, 63%);
    --Gray500: hsl(0, 0%, 42%);
    --Gray950: hsl(0, 0%, 7%);
}

body{
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    font-family: var(--FIGTREE);
    background-color: var(--Yellow);
}

.card {
    width: 384px;
    height: 522px;
    background-color: var(--White);
    border-radius: 20px;
    box-shadow: 10px 10px;
    border: 1px solid var(--Gray950);
    display: flex;
    flex-direction: column;
    padding: 24px;
}

.card-content {
    width: 100%;
    margin-top: 7%;
    margin-bottom: 7%;    
}

.card-content h1 {
    font-size: 24px;
    font-weight: 800;
    color: var(--Gray950);
    margin-bottom: 16px;
}

.card-image img {
    border-radius: 10px;
}

.card-tag {
    margin-bottom: 15px;
    display: inline-block;
    background-color: var(--Yellow);
    color: var(--Gray950);
    text-align: center;
    border-radius: 4px;
    padding: 4px 12px 4px 12px;
    font-size: 16px;
    font-weight: bold;
}

.title { 
    color: var(--Gray950)
}

.title:hover { 
    color: var(--Yellow);
    cursor: pointer;
}

.published { 
    margin-bottom: 15px; 
}

p.content { 
    color: var(--Gray500);
}

.author-image { 
    width: 32px;
    height: 32px;
}

.card-author { 
    display: flex;
    align-items: center;
    margin-top: auto;
    gap: 16px;
}

.card-author .author-name { 
    color: var(--Gray950);
    font-weight: bold;
}
