/* Variables */
:root {
    --color-white: hsl(0, 0%, 100%);
    --color-grey: hsl(0, 0%, 50%);
    --color-black: hsl(0, 0%, 7%);
    --color-yellow: hsl(47, 88%, 63%);
}

/* Global Styles */
* {
    box-sizing: border-box;
    margin: 0px;
}

body {
    height: 100vh;
    background-color: var(--color-yellow);
    display: flex;
    flex-direction: column; 
    flex: 1 auto;
    gap: 15px;
    align-items: center;
    justify-content: center;
    font-family: 'Figtree', sans-serif;
}

.blog-card {
    background-color: var(--color-white);
    width: calc(0.25*1440px);
    border: 1px solid var(--color-black);
    border-radius: 15px;
    box-shadow: 5px 5px var(--color-black);
    padding: 20px;
    transition: box-shadow 0.2s ease-in-out;
}

/* Card Content Styles */

img.blog-illustration {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    border-radius: 15px;
}

.tag {
    background-color: var(--color-yellow);
    border-radius: 5px;
    padding: 5px 13px;
    margin: 13px 0px;
    font-size: 16px;
    display: inline-block;
}

/* Card Text Styles */

.blog-card h1 {
    font-weight: 800;
    font-size: 27px;
    margin: 15px 0px;
    transition: color 0.2s smooth;
}

.blog-text {
    color: var(--color-grey);
    font-weight: 600;
    margin: 20px 0px;
}

.blog-author {
    width: 100%;
    display: flex;
    flex: 1 auto;
    align-items: center;
    gap: 10px;
}

.blog-author img {
    width: 30px;
    object-fit: contain;
}

/* Footer Styles */

.attribution { 
    font-size: 11px; 
    text-align: center; 
}

.attribution a { 
    color: hsl(228, 45%, 44%); 
}

/* Active State Styles */

.blog-card:hover {
    box-shadow: 10px 10px var(--color-black);
}

.blog-card:hover>h1 {
    color:var(--color-yellow);
    transition: color 0.2s smooth;
}

/* Mobile Styles */

@media (max-width: 375px) {
    .blog-card {
        width: calc(0.85*375px);
    }

    .blog-card h1 {
        font-size: 23px;
    }

    .blog-text, .date, .tag {
        font-size: smaller;
    }
}
