/*
* Prefixed by https://autoprefixer.github.io
* PostCSS: v8.4.14,
* Autoprefixer: v10.4.7
* Browsers: last 2 versions,> 1%,not dead
*/

* {
    box-sizing: border-box;
}

@font-face {
    font-family: "Figtree";
    src: url(fonts/Figtree-VariableFont_wght.ttf) format("truetype");
}

body {
    position: relative;
    background-color: hsl(47, 88%, 63%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 98vh;
    font-family: "Figtree", Arial, Helvetica, sans-serif;
    font-size: 16px;
    color: hsl(0, 0%, 7%);
    font-weight: 500;
}

a, a:hover {
    color: inherit;
    text-decoration: none;
}

.card {
    background-color: #FFF;
    width: 384px;
    height: 522px;
    border-radius: 20px;
    border: 1.5px solid #000;
    padding: 20px;
    box-shadow: 10px 10px #000;
    transition: box-shadow 0.3s;
}

.card:hover {
    box-shadow: 6px 6px #000;
    transition: box-shadow 0.3s;
}

.illustration-article {
    display: block;
    margin: auto;
    border-radius: 10px;
    max-width: 100%;
}

.category {
    display: inline-block;
    background-color: hsl(47, 88%, 63%);
    padding: 5px 10px;
    border-radius: 5px;
    overflow: hidden;
    font-weight: 700;
    margin: 20px 0 10px;
    transition: transform 0.3s;
}

.category:hover {
    transform: scale(1.1);
    transition: transform 0.3s
}

time {
    display: block;
    font-size: 0.8em;
}

h1 {
    display: inline-block;
    font-weight: 800;
    transition: color 0.3s;
    margin-bottom: 0;
}

h1:hover {
    color: hsl(47, 88%, 63%);
    transition: 0.2s;
}

.description {
    line-height: 1.5em;
    color: hsl(0, 0%, 42%);
    margin-top: 15px
}

.writer {
    margin-top: 20px;
    display: flex;
    height: 32px;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 0.8em;
}

.writer img {
    width: 32px;
    height: 32px;
}

.writer a:hover {
    color: hsl(0, 0%, 42%);
    transition: color 0.2s;
}

footer {
    position: absolute;
    bottom: 2px
}

footer p {
    margin: 3px 0;
}

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

@media only screen and (max-width: 500px) {
    .card {
        width: 327px
    }
    .illustration-article {
        height: 210px;
        -o-object-fit: cover;
           object-fit: cover;
    }
}

@media only screen and (max-height: 650px) {
    footer {
        right: 20px
    }
}