@font-face {
    font-family: "Figtree";
    src: url("./assets/fonts/Figtree-VariableFont_wght.ttf") format("truetype");
}

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

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

body {
    font-family: "Figtree", sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background-color: var(--yellow);
    padding: 1.5rem;
}

.blog-prev-card {
    width: 100%;
    max-width: 380px;
    padding: 1.2rem;
    background-color: white;
    border: 1px solid var(--gray-950);
    border-radius: 15px;
    box-shadow: 9px 9px var(--gray-950);
}

.blog-prev-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
}

.blog-prev-card-tag {
    display: inline-block;
    color: var(--gray-950);
    background-color: var(--yellow);
    font-size: clamp(0.7rem, 0.609rem + 0.388vw, 0.9rem);
    padding: .4rem .8rem;
    font-weight: bold;
    border-radius: 5px;
    margin: 1.3rem 0 .8rem 0;
}

.blog-prev-card-date {
    font-size: clamp(0.7rem, 0.609rem + 0.388vw, 0.9rem);
    margin-bottom: 1.1rem;
    color: var(--gray-950);
}

.blog-prev-card-title {
    font-size: clamp(1.25rem, 1.136rem + 0.485vw, 1.5rem);
    margin-bottom: 1rem;
    
}

.blog-prev-card-title > a {
    color: var(--gray-950);
    text-decoration: none;
    transition: .2s ease;
}

.blog-prev-card-title > a:hover {
    color: var(--yellow); 
}

.blog-prev-card-text {
    font-size: clamp(0.9rem, 0.855rem + 0.194vw, 1rem);
    line-height: 1.4rem;
    color: var(--gray-500);
    margin-bottom: 1.3rem;
}

.blog-prev-card-author {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.blog-prev-card-author-img {
    width: 32px;
    height: auto;
}

.blog-prev-card-author-name {
    font-size: .9rem;
    color: var(--gray-950);
    text-decoration: none;
    font-weight: bold;
    transition: .2s ease;
}

.blog-prev-card-author-name:hover {
    color: var(--yellow);
}
