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

:root {
    --BG-COLOR: hsl(47, 89%, 64%);
    --PARAGRAPH-TEXT-COLOR: hsl(0, 0%, 42%);
    --IMPORTANT-TEXT-COLOR: hsl(0, 0%, 7%);
    --LINK-ACTIVE-COLOR: hsl(47, 89%, 64%);
    --CARD-CONTAINER-COLOR: hsl(0, 0%, 100%);
    --PADDING: 1.5rem;
    --BORDER-RADIUS: 20px;
    --BORDER-COLOR: hsl(0, 0%, 7%);
    --BORDER: 1px solid var(--BORDER-COLOR);
    --BOX-SHADOW: 5px 5px var(--BORDER-COLOR);
}

*,
*::before
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* || GENERAL STYLES */
body {

    min-width: 320px;
    height: 100vh;
    background-color: var(--BG-COLOR);
    display: flex;
    flex-direction: column;
    font-family: "Figtree";
    font-weight: 500;
    color: var(--PARAGRAPH-TEXT-COLOR);
    font-size: 16px;
}

footer {
    text-align: center;
}

main {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

img {
    vertical-align: middle;
}

a:any-link {
    color: var(--IMPORTANT-TEXT-COLOR);
    text-decoration: none;
}

.cardTitleLink:hover,
.cardTitleLink:focus,
.cardTitleLink:active {
    color: var(--BG-COLOR);
}

p {
    margin: 0;
}
h1 {
    margin: 0;
}
/* || CLASS STYLES */

.cardContainer {
    width: 70%;
    height: fit-content;
    display: flex;
    flex-direction: column;
    padding: var(--PADDING);
    background-color: var(--CARD-CONTAINER-COLOR);
    border-radius: var(--BORDER-RADIUS);
    border: var(--BORDER);
    margin: 1rem 5px 1rem 0;
    box-shadow: var(--BOX-SHADOW);
}

.illustration {
    align-self: center;
    width: 100%;
    height: auto;
    border-radius: calc(var(--BORDER-RADIUS) - 0.5rem);
    margin-bottom: 2rem;
}

.field {
    width: fit-content;
    background-color: var(--BG-COLOR);
    padding: 0.5rem 0.75rem;
    border-radius: 5px;
    font-weight: 800;
    margin-bottom: 1rem;
}

.publishingDate {
    font-size: 10px;
}

.cardTitle {
    margin: 1rem 0;
    font-size: 23px;
}

.cardText {
    margin-bottom: 2rem;
}

.avatar {
    width: 30px;
    height: auto;
    margin-right: 0.5rem;
}

.avatarName {
    display: inline;
    font-weight: 800;
}

.important {
    color: var(--IMPORTANT-TEXT-COLOR);
}

/* || UTILITY CLASSES */
.nowrap {
    text-wrap: nowrap;
}