* {
    margin: 0;
    padding: 0;
}

/* fonts */
@font-face {
    font-family: 'figextrabold';
    src: url(./assets/fonts/static/Figtree-ExtraBold.ttf);
}

@font-face {
    font-family: 'figmedium';
    src: url(./assets/fonts/static/Figtree-Medium.ttf);
}

/* general */

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

.card {
    background-color: white;
    width: 100%;
    max-width: 21.875rem;
    padding: 1.25rem;
    margin: auto;
    border-radius: 20px;
    border: 1px solid black;
    box-shadow: 8px 8px black;
}

/* text */

h1 {
    font-family: 'figextrabold';
    font-size: 24px;
    margin: 1rem 0;
}

p {
    font-family: 'figmedium';
    font-size: 14px;
    line-height: 150%;
    margin: 0.5rem 0;
}

.tag {
    font-family: 'figextrabold';
    background-color: hsl(47, 88%, 63%);
    padding: 4px 12px 4px 12px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 0.5rem;
    margin-top: 0.3rem;
}

.description {
    font-size: 16px;
    color: hsl(0, 0%, 42%);
}

.author {
    display: inline;
    font-family: 'figextrabold';
    padding-left: 12px;
}

.author-align {
    display: flex;
    align-items: center;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem
}

/* link */

a {
    text-decoration: none;
}

a:link {
    color: hsl(0, 0%, 7%);
}

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

/* images */

.top-img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 10px;
}

.author-img {
    width: 10%;
}

/* media queries */

@media (max-width: 768px) {
    main {
        max-width: 80%;
    }
}