:root {
    --yellow: hsl(47, 88%, 63%);
    --white: hsl(0, 0%, 100%);
    --gray-500: hsl(0, 0%, 42%);
    --gray-950: hsl(0, 0%, 7%);
}
body {
    font-family: 'Figtree', sans-serif;
    background-color: var(--yellow);
    
    display: flex;
    margin: 0 auto;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}
h1, p {
    color: var(--gray-950);
    margin: 0;
    line-height: 150%;
}

.card {
    background-color: var(--white);
    border: 1px solid var(--gray-950);
    box-shadow: 8px 8px var(--gray-950);

    margin: 0 auto;
    border-radius: 20px;
    max-width: 384px;
}
.cardcontent {
    padding: 24px;
}

.mainimg {
    border-radius: 10px;
    max-width: 100%;
    height: 200px; /* because height stays the same in desktop and mobile */
    object-fit: cover;
}

.cardtext {
    padding-top: 24px;
    padding-bottom: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.textitem {
    margin-bottom: 12px;
    max-width: fit-content;
}
.textitem:last-child {
    margin-bottom: 0;
}

.tag {
    background-color: var(--yellow);
    max-width: fit-content;
    border-radius: 4px;
}
.tag p {
    font-weight: 800 !important;
    font-size: min(14px, 3.6vw);
    padding: 4px 12px 4px 12px;
}
.cardtext p {
    font-weight: 500;
    font-size: min(14px, 3.6vw);
}

h1 {
    font-weight: 800;
    font-size: min(24px, 6vw);
}
h1:hover {
    color: var(--yellow);
    cursor: pointer;
}
.mainbody {
    font-size: min(16px, 4.2vw) !important;
    color: var(--gray-500);
}

.person {
    display: flex;
    height: 32px;
    align-items: center;
}
.person img {
    max-height: 100%;
    width: auto;
    padding-right: 12px;
}
.person p {
    font-weight: 800;
    font-size: 14px;
}

.attribution { padding: 40px; font-size: 11px; text-align: center; }
.attribution a { color: hsl(228, 45%, 44%); }