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

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

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

body{
    font-size: 16px;
    font-family: "Figtree", sans-serif;
    background-color: var(--Yellow);
    min-height: 100vh;
    display: grid;
    place-content: center;
}

img{
    width: 100%;
    display: block;
    border-radius: 1rem;
}

.me img{
    width: 30px;
    margin: .5rem;
}

.card{
    background-color: var(--White);
    max-width: 400px;
    padding: 1.5rem;
    margin: 1rem;
    position: relative;
    border-radius: 1rem;
    outline: 1px solid var(--Gray-950);
}

.card::before{
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    background-color: var(--Gray-950);
    position: absolute;
    top: 15px;
    right: -15px;
    border-radius: 1rem;
    z-index: -1;
}

.card .learning{
    background-color: var(--Yellow);
    width: min-content;
    margin: .5rem;
    padding: .5rem;
    margin-top: 1.5rem;
    font-weight: 800;
    border-radius: .5rem;
}

.card .date{
    margin-top: 1rem;
    margin: .5rem;
}

.card h1{
    margin: .5rem;
}

.card h1 a{
    color: var(--Gray-950);
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
}

.card h1 a:hover{
    color: var(--Yellow);
}


.card .description{
    color: var(--Gray-500);
    margin: .5rem;
    line-height: 1.5;
}

.card .me{
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.name{
    font-weight: 800;
    font-size: .9rem;
}

@media (max-width: 375px) {
    .card h1 a {
        font-size: 1.25rem;
    }
}

.attribution {
    font-size: 11px;
    text-align: center;
}
.attribution a {
    
    color: hsl(228, 45%, 44%);
    text-decoration: none;
}