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

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

:root {
    --yellow: hsl(47 88%, 63%);
    --gray-950: hsl(0, 0%, 7%);
    --gray-500: hsl(0, 0%, 42%);
    --white: hsl(0, 0%, 100%);
    --figtree: 'Figtree', sans-serif;
}

body {
    font-family: var(--figtree);
    font-optical-sizing: auto;
    font-style: normal;
    font-display: swap;
    background-color: var(--yellow);
}

main {
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.card {
    max-width: 384px;
    min-width: 327px;

    background-color: var(--white);
    padding: 24px;
    border-radius: 20px;
    border: 1px solid var(--gray-950);
    box-shadow: 8px 8px 0px 0px var(--gray-950);
}

.card__blog-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin: 0 0 24px 0;
    display: block;
}

.card__category {
    font-size: 14px;
    font-weight: 800;

    padding: 4px 12px;
    background-color: var(--yellow);
    border-radius: 4px;
    display: inline-block;
}

.card__publish-date {
    font-size: 14px;
    font-weight: 500;
    margin: 12px 0;
}

.card-title {
    font-size: 24px;
    font-weight: 800;
    margin: 12px 0;
}

.card__title-a {
    text-decoration: none;
    color: var(--gray-950);
    transition: color 0.2s ease;
}

.card__title-a:hover {
    color: var(--yellow);
}

.card__descriptoin {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    color: var(--gray-500);
    margin: 12px 0;
}

.card__author {
    display: inline-flex;
    align-items: center;
}

.card__author-img {
    width: 32px;
}

.card__author-name {
    font-size: 14px;
    font-weight: 800;
    line-height: 1.5;
    margin: 0 0 0 12px;
}

footer {
    padding: 24px;
}

.attribution {
    font-size: 11px; 
    text-align: center; 
}

.attribution a { 
    color: hsl(228, 45%, 44%); 
}