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

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: "Figtree", sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background-color: var(--yellow);
    font-size: 1rem;
    padding: 1.5rem;
}

main {
    max-width: min(90%,384px);
    height: 522px;
    padding: 1.5rem;
    background-color: var(--white);
    border: 1px solid var(--grey950);
    border-radius: 16px;
    box-shadow: 8px 8px var(--grey950);
}

.article-img {
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.btn {
    padding: 4px 12px;
    border-radius: 6px;
    background-color: var(--yellow);
    border: none;
    font-size: 0.875rem;
    font-weight: 800;
    cursor: pointer;
}

.btn:hover {
    background-color: transparent;
    border: 2px solid var(--yellow);
}

.date {
    font-size: 1rem;
    font-weight: 500;
    margin: 0.75rem 0;
    color: var(--grey950);
}

.title {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    cursor: pointer;
}

.title:hover {
    color: var(--yellow);
}

.description {
    font-size: 1rem;
    font-weight: 500;
    color: var(--grey500);
    line-height: 1.5;
}

.author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 1.75rem;
}

.author img {
    height: 32px;
}

.author .name {
    font-weight: bold;
    font-size: 0.875rem;
    font-weight: 800;
}

footer {
    margin-top: 30px;
}

.attribution { 
    font-size: 0.75rem; 
    text-align: center;
    color: var(--grey950);
}
.attribution a { 
    color: hsl(228, 45%, 44%); 
}
