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


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

body{
    background-color: hsl(47, 88%, 63%);
    font-family: 'Figtree', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 1rem;
}

.card{
    background-color: white;
    border: 1px solid black;
    border-radius: 1.25rem;
    box-shadow: 6px 6px 1px rgba(0, 0, 0, 1);
    max-width: 350px;
    padding: 1.25rem;
}

.card-image{
    display: block;
    width: 100%;
    border-radius: 1rem;
    margin-bottom: 1.125rem;
}

.card-body{
    color: hsl(0, 0%, 42%);
    line-height: 1.35;

    
    .badge{
        display: inline;
        color: hsl(0, 0%, 7%);
        font-size: 13px;
        font-weight: 800;
        background: hsl(47, 88%, 63%);
        padding: 0.35rem 0.75rem;
        border-radius: 0.25rem;
        margin-bottom: 0.5rem;
    }

    time{
        font-size: 12px;
        font-weight: 700;
        display: block;
        margin: 0.75rem 0;
    }

    h2{
        a{
            text-decoration: none;
            color: hsl(0, 0%, 7%);
            font-weight: 800;

            &:hover, &:focus{
                color: hsl(47, 88%, 63%);
            }
        }

        font-size: clamp(1.33rem, 2vw + 0.5rem, 1.4rem);
        margin-bottom: 0.5rem;
    }

    p{
        font-size: 15px;
        margin-bottom: 1.25rem;
    }

    footer{
        display: flex;
        align-items: center;
        gap: 0.75rem;
        margin-top: 1.25rem;

        .author-avatar{
            width: 32px;
            height: 32px;
            border-radius: 50%;
        }

        .author-name{
            color: hsl(0, 0%, 7%);
            font-weight: 800;
            margin-top: 1.25rem;
        }
    }


}