@import url('https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    height: 100vh;
    font-family: "Figtree", serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--yellow);
}

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

.card-container {
    width: 327px;
    background-color: var(--white);
    border: 1px solid var(--gray950);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 8px 8px 0px rgba(0, 0, 0, 1);
}

.illustration-article img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 24px;
}

.content p {
    margin-bottom: 12px;
}

.btn {
    max-width: min-content;
    padding: 6px 12px;
    border-radius: 4px;
    background-color: var(--yellow);
    font: 800 12px "Figtree", serif;
    text-align: center;
}

.heading {
    font: 800 1.2rem "Figtree", serif;
}

.heading:hover {
    cursor: pointer;
    color: var(--yellow);
}

.sub-title {
    font: 500 12px "Figtree", serif;
    color: var(--gray950);
}

.paragraph {
    font: 14px/1.5 "Figtree", serif;
    color: var(--gray500);
}

.author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.author p {
    font: 800 14px "Figtree", serif;
}


@media (min-width: 768px) {
    .btn {
        border: 2px solid var(--gray950);
    }
}

/* Footer Section */
.footer {
    width: 100%;
    background-color: hsl(212, 33%, 89%);
    padding: 1rem 1rem;
    text-align: center;
    font-family: "Poppins", sans-serif;
}

.footer-content {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.attribution {
    color: hsl(229, 6%, 66%);
    font-size: 0.9rem;
}

.footer-link {
    color: hsl(228, 45%, 44%);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: hsl(180, 62%, 55%);
}

/* Footer Section ends */

/* For tablets and larger screens (768px) */
@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
    }

    .attribution {
        font-size: 1rem;
    }
}