@import url('https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&family=Fraunces:ital,opsz,wght@0,9..144,100..900;1,9..144,100..900&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Outfit:wght@100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Young+Serif&display=swap');

.attribution { 
    font-size: 14px; 
    text-align: center; 
    padding-bottom: 2rem;
}
.attribution a { 
    color: hsl(228, 45%, 44%); 
}
:root {
    --Red: hsl(0, 78%, 62%);
    --Cyan: hsl(180, 62%, 55%);
    --Orange: hsl(34, 97%, 64%);
    --Blue: hsl(212, 86%, 64%);
    --darkGrey: hsl(234, 12%, 34%);
    --lightGrey: hsl(212, 6%, 44%);
    --White: hsl(0, 0%, 100%);
}

body {
    font-family: "Poppins", sans-serif;
    background-color: var(--White);
}

h1 span {
    font-weight: 200;
    color: var(--lightGrey);
    margin-bottom: 0;
}

h1 {
    font-weight: 700;
    font-size: xx-large;
    margin-top: 0;

}

h1, h2 {
    color: var(--darkGrey);
}

p {
    line-height: 1.8;
    color: var(--lightGrey);
    margin-bottom: 5rem;
}

main {
    padding: 5rem 1rem;
}

main > article:first-child {
    text-align: center;
    margin-bottom: 2rem;
}

main > article:first-child h1 {
    margin-bottom: 1rem;
}

main .cards {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    grid-gap: 1rem;
}

main .cards article {
    background-color: var(--White);
    box-shadow: 0 0 16px hsl(234, 12%, 34%, 0.15);
    padding: 1.5rem;
    border-radius: 0.5rem;
}

main .cards article:first-child {
    border-top: 0.25rem solid var(--Cyan);
    border-radius: 0.25rem;
}
main .cards article:nth-child(2) {
    border-top: 0.25rem solid var(--Red);
    border-radius: 0.25rem;
}
main .cards article:nth-child(3) {
    border-top: 0.25rem solid var(--Orange);
    border-radius: 0.25rem;
}
main .cards article:last-child {
    border-top: 0.25rem solid var(--Blue);
    border-radius: 0.25rem;
}


main .cards article h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

main .cards article p {
    margin-bottom: 1rem;
}

main .cards article img {
    display: block;
    margin-left: auto;
    padding-bottom: 2rem;
}

@media (min-width: 768px) {
    main > article {
        max-width: 500px;
        margin: auto;
    }
    main > article:first-child h1 {
        font-size: 2rem;
    }
    main .cards {
        max-width: 1400px;
        margin: auto;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
    }
    main .cards article {
        width: 350px;
        margin: 1rem;
    }
    main .cards article:nth-child(3) {
        order: 4;
    }
    main .cards article:nth-child(4) {
        order: 3;
    }
    main .cards article:nth-child(1) {
        transform: translateY(50%);
    }
    main .cards article:nth-child(4) {
        transform: translateY(50%);
    }    
    }







