:root {
    --yellow: hsl(47, 88%, 63%);

    --white: hsl(0, 0%, 100%);

    --gray-500: hsl(0, 0%, 42%);
    --gray-950: hsl(0, 0%, 7%);
}

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

body {
    font-family: 'Figtree', sans-serif;
    background-color: var(--yellow);
    color: var(--gray-950);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.6;
    min-height: 100vh;
    font-size: 1rem;
}

.container {
    background-color: var(--white);
    border-radius: 1.5rem;
    max-width: 24rem;
    border: 1px solid var(--gray-950);
    padding: 1.5rem;
    box-shadow: 0.5rem 0.5rem 0 var(--gray-950);
}

.card-img {
    border-radius: 0.7rem;
    width: 100%;
    margin-bottom: 0.9375rem;
}

button {
    background-color: var(--yellow);
    border: none;
    font-weight: 700;
    border-radius: 5px;
    padding: 0.4rem 0.8rem;
}

button:hover,
button:focus-visible {
    outline: 2px solid var(--gray-950);
    outline-offset: 3px;
    cursor: pointer;
}


h1 {
    font-weight: 800;
    font-size: 1.5rem;
}

h1 a {
    text-decoration: none;
    color: var(--gray-950);
}

h1 a:hover,
h1 a:focus-visible {
    color: var(--yellow);
}

.card-content p{
    color: var(--gray-500);
    margin-top: 1rem;
}

.card-author {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-top: 1.5rem;
}

.card-author p {
    font-weight: 800;
    margin-left: 20px;
}

.author-img {
    width: 40px;
    height: 40px;
}

.attribution {
    margin-top: 2.5rem;
}

.attribution a:hover,
.attribution a:focus-visible {
    color: var(--gray-950);
    outline: 2px solid var(--gray-950);
    outline-offset: 2px;
}