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

body{
    font-family: 'Figtree', sans-serif;
    background-color: var(--Yellow);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: 100vh;
}

.card{
    background-color: var(--White);
    border-radius: 10px;
    width: 20rem;
    height: 28rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--Gray-950);
    box-shadow: 4px 4px 0 0 var(--Gray-950);
    overflow: hidden;
}

.card .image{
    align-self: center;
}
.card .image img{
    width: 100%;
    border-radius: 10px;
}

.learning{
    font-weight: 800;;
    background-color: var(--Yellow);
    padding: .25rem .5rem;
    border-radius: 5px;
    margin: 5px 0px;
    width: fit-content;
}

.details p{
    font-weight: 500;
    color: var(--Gray-500);
    font-size: 1rem;
    margin-bottom: 5px;
}

.text h1{
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--Gray-950);
}

.text p{
    font-weight: 500;
    color: var(--Gray-500);
    font-size: 1rem;
}

.author{
    display: flex;
    flex-direction: row;
    align-items: center;
}
.author img{
    width: 2rem;
    height: 2rem;
    margin-right: 10px;
}
.author p{
    font-weight: 800;
    color: var(--Gray-950);
    font-size: .75rem;
}

.attribution{
    font-weight: 500;
    color: var(--Gray-500);
    font-size: .75rem;
    margin-top: 10px;
}