:root {
    --red: hsl(0, 78%, 62%);
    --cyan: hsl(180, 62%, 55%);
    --orange: hsl(34, 97%, 64%);
    --blue: hsl(212, 86%, 64%);

    --grey-500: hsl(234, 12%, 34%);
    --grey-400: hsl(212, 6%, 44%);
    --white: hsl(0, 0%, 100%);
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--white);
}

.card {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 0;
    overflow: hidden;
    text-align: center;
}

.card_title {
    font-size: 1.7rem;
    font-weight: 200;
    line-height: 1.5;
    color: var(--grey-500);
}

.card_title--bold {
    font-weight: 600;
}

.card_paragraph {
    line-height: 1.5;
    color: var(--grey-400);
    margin: 0 auto;
    margin-top: 1.5em;
    max-width: 550px;
}

.card_container {
    padding-top: 80px;
    text-align: left;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, 1fr);
    grid-template-areas: 
        "card-1"
        "card-2"
        "card-3"
        "card-4";
    justify-items: center;
    gap: 2.5em;
}

.card_item {
    width: 90%;
    max-width: 350px;
    padding: 1.5em 1.7em;
    box-shadow: 0 4px 20px -6px var(--blue);
    border-radius: 6px;
    border-top: 4px solid var(--cyan);
    grid-area: card-1;
}

.card_item:nth-child(2) {
    grid-area: card-2;
    border-top: 4px solid var(--red);
}

.card_item:nth-child(3) {
    grid-area: card-3;
    border-top: 4px solid var(--orange);
}

.card_item:nth-child(4) {
    grid-area: card-4;
    border-top: 4px solid var(--blue);
}

.card_name {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.card_copy {
    color: var(--grey-500);
    font-weight: 200;
    padding-bottom: 40px;
}

.card_picture {
    width: max-content;
    margin-left: auto;
}

.card_img {
    display: block;
}

footer {
    margin-top: 100px;
    text-align: center;
}

.attribution {
    font-size: 11px;
    text-align: center;
    text-decoration: none;
    color: var(--grey-500);
}

.attribution a {
    text-decoration: none;
    color: var(--blue);
}

@media (min-width: 768px) {
    .card_container {
        grid-template-columns: repeat(3, 1fr);
        grid-template-areas: 
        ".     card-1       ."
        "card-2 card-1 card-3"
        "card-2 card-4 card-3"
        ".      card-4      .";
        gap: 2em;
    }
}