@font-face {
    font-family: FigTree;
    src: url(./assets/fonts/Figtree-VariableFont_wght.ttf);
}

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    font-family: FigTree;
    font-weight: 500;
}

:root {
    --yellow: hsl(47, 88%, 63%);
    --white: hsl(0, 0%, 100%);
    --gray-500: hsl(0, 0%, 42%);
    --gray-950: hsl(0, 0%, 7%);
}

body {
    background-color: var(--yellow);
}

.card-container {
    background-color: var(--white);
    border: 1px solid var(--gray-950);
    width: 500px;
    padding: 25px;
    border-radius: 25px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: 10px 10px 0 0 var(--gray-950);
}

#illus {
    width: 100%;
    border-radius: 10px;
}

.tag {
    background-color: var(--yellow);
    min-width: 25%;
    width: 25%;
    padding: 10px;
    font-weight: 800;
    border-radius: 5px;
    font-size: 20px;
    text-align: center;
}

.date-pub {
    transform: translateY(-10px);
}

.card-title {
    font-weight: 800;
}

.card-desc {
    color: var(--gray-500);
    font-size: 20px;
    line-height: 30px;
}

.profile {
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile > img {
    width: 10%;
}

.profile > h3 {
    font-weight: 800;
}

@media screen and (max-width: 530px) {
    .card-container {
        width: 350px;
    }
    .tag {
        width: 30%;
        font-size: 15px;
    }
    .date-pub {
        transform: translateY(-5px);
        font-size: 13px;
    }
    .card-title {
        font-size: 22px;
    }
    .card-desc {
        font-size: 15px;
        line-height: 25px;
    }
}