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

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-size: 16px;
}

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

body {
    background-color: var(--yellow);
    font-family: "Figtree", sans-serif;
    font-weight: 500;

    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    flex-direction: column;
}

article {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card {
    background-color: var(--white);
    width: 385px;
    height: 525px;
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid var(--gray-950);
    box-shadow: 10px 10px 0px 0px var(--gray-950);
}

.img-container { margin-bottom: 1.5rem;}

img {
    display: block;
    border-radius: 1rem;
    object-fit: cover;
}

.content-container {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tag {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--gray-950);
    background-color: var(--yellow);
    padding: 0.5rem;
    border-radius: 5px;
    width: fit-content;
}

.date {
    font-size: 0.8rem;
    color: var(--gray-950);
}

h1 {
    font-size: 1.75rem;
    color: var(--gray-950);
    margin-bottom: 15px;
    line-height: 1.2;
}

h1:hover {
    color: var(--yellow);
    cursor: pointer;
}

p {
    font-size: 1rem;
    color: var(--gray-500);
    line-height: 1.5;
}

.author-container img {
    display: inline;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    vertical-align: middle;
}

.author-container span {
    font-size: 1rem;
    color: var(--gray-900);
    vertical-align: middle;
    font-weight: 800;
}

footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    padding: 1rem;
}

footer a {
    color: var(--gray-500);
    text-decoration: none;
    font-weight: 700;
}
footer a:hover {
    text-decoration: underline;
    color: var(--gray-950);
}