/* ============================
    FONTS SETUP
============================ */
@font-face {
    font-family: 'Figtree';
    src: url('./assets/fonts/static/Figtree-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    line-height: 150%;
    letter-spacing: 0px;
}

@font-face {
    font-family: 'Figtree';
    src: url('./assets/fonts/static/Figtree-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    line-height: 150%;
    letter-spacing: 0px;
}

/* ============================
   COLOR SYSTEM
============================ */
:root {
    --White: hsl(0, 0%, 100%);
    --Yellow: hsl(47, 88%, 63%);
    --Gray-950: hsl(0, 0%, 7%);
    --Gray-500: hsl(0, 0%, 42%);
}

body {
    font-family: 'Figtree', sans-serif;
    background-color: var(--Yellow);
    margin: 0;
    padding: 0;
}

/* ============================
   BLOG PREVIEW CARD COMPONENT
============================ */

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

p, h1, h2, h3, h4, h5, h6 {
    margin: 0;
}

h1 {
    font-weight: 800;
    font-size: 24px;
    line-height: 150%;
}

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

h1:focus {
    color: var(--Yellow);
}

.card {
    background-color: var(--White);
    max-width: 336px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 24px;
    border-radius: 20px;
    box-shadow: 8px 8px 0px #000000;
    border: 1px solid var(--Gray-950);
}

.card__image {
    max-width: 336px;
    height: auto;
}

.card__image img {
    border-radius: 10px;
    max-width: 100%;
    height: auto;
}

.card__content {
    gap: 12px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

.category {
    background-color: var(--Yellow);
    padding: 4px 12px 4px 12px;
    border-radius: 4px;
    font-weight: 800;
    font-size: 14px;
    line-height: 150%;

}

.published-date {
    font-size: 14px;
    line-height: 150%;

}

.description {
    font-weight: 500;
    font-size: 16px;
    color: var(--Gray-500);
    white-space: inherit;
    line-height: 150%;
}

.card__author {
    display: flex;
    gap: 12px;
    align-items: center;
}

.card__author_img {
    width: 32px;
    height: 32px;
}

.card__author_name {
    font-size: 14px;
    font-weight: 800;
}