/* Project styles */

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

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

/* CSS reset */

*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
    font: inherit;
}

html {
    font-size: 16px;
    color-scheme: dark light;
}

body {
    min-height: 100vh;
}

img,
picture,
svg,
video {
    display: block;
    max-width: 100%;
}

/* Colors */

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

/* Typography */

html {
    font-family: 'Figtree', sans-serif;
    font-style: normal;
}

.heading {
    color: var(--gray-950);
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 150%;
    transition: color ease-in-out 300ms;

    @media screen and (min-width: 376px) {
        font-size: 1.5rem;
    }

    @media (hover: hover) {
        &:hover {
            cursor: pointer;
            color: var(--yellow);
        }
    }
}

.regular-paragraph {
    color: var(--gray-500);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 150%;

    @media screen and (min-width: 376px) {
        font-size: 1rem;
    }
}

.category-title {
    color: var(--color-gray-950);
    font-size: 0.75rem;
    font-weight: 800;
    line-height: 150%;

    @media screen and (min-width: 376px) {
        font-size: 0.875rem;
    }
}

.published-date {
    color: var(--gray-950);
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 150%;

    @media screen and (min-width: 376px) {
        font-size: var(0.875rem);
    }
}

.author {
    color: var(--gray-950);
    font-size: 0.875rem;
    font-weight: 800;
    line-height: 150%;
}

/* Background */

body {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--yellow);
}

main {
    display: flex;
    justify-content: center;    
}

/* Card */

.card {
    width: 87.2%;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    background-color: var(--white);
    border-radius: 20px;
    border: 1px solid var(--gray-950);
    overflow: clip;
    box-shadow: 8px 8px 0px 0px #000;

    @media screen and (min-width: 376px) {
        width: unset;
        max-width: 384px;
    }

    .illustration {
        width: 100%;
        height: 100%;
        border-radius: 10px;
    }

    .text-content {
        display: flex;
        flex-direction: column;
        gap: 12px;

        header {
            display: flex;
            flex-direction: column;
            gap: 12px;

            .category-title {
                max-width: fit-content;
                padding: 4px 12px;
                border-radius: 4px;
                background-color: var(--yellow);
            }
        }
    }
    
    .author-container {
        display: flex;
        gap: 12px;
        align-items: center;

        .avatar {
            width: 32px;
            height: 32px;
        }
    }
}