@font-face {
    font-family: 'Figtree';
    src: url('fonts/static/Figtree-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Figtree';
    src: url('fonts/static/Figtree-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Figtree';
}

body {
    background-color: hsl(47, 88%, 63%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

main {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.blog-box {
    background-color: hsl(0, 0%, 100%);
    max-width: 372px;
    width: 90%;
    border: 2px solid hsl(0, 0%, 0%);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 10px 10px 0px 0px black;
}

.blog-box h1,
.blog-box p {
    margin: 15px 0;
}

h1 {
    font-weight: 800;
    font-size: 1.4rem;
}

.learning {
    display: inline;
    font-weight: 800;
    background-color: hsl(47, 88%, 63%);
    border-radius: 4px;
    padding: 4px 12px;
}

.date {
    font-size: 0.8rem;
    font-weight: 500;
    color: hsl(0, 0%, 0%);
}

.description {
    font-size: 0.9rem;
    font-weight: 500;
    color: hsl(0, 0%, 50%);
    line-height: 1.3rem;
}


.bg-img {
    border-radius: 20px;
    max-width: 100%;
    margin-bottom: 20px;
}

.avatar-box {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
}

.avatar-img {
    height: 40px;
    width: 40px;
}

.avatar-box p {
    font-weight: 800;
}

footer {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

footer p {
    margin-top: 22px;
    font-size: 0.75rem;
    text-align: center;
}

footer a {
    font-weight: 500;
    text-decoration: none;
    color: hsl(240, 100%, 50%);
}

footer a:visited {
    color: hsl(0, 0%, 50%);
}

@media (min-width: 1440px) {
    .blog-box {
        width: 350px;
    }

    h1 {
        font-size: 1.4rem;
    }

    .description {
        font-size: 1rem;
    }

    footer a:hover {
        text-decoration: underline;
    }   
}