@import url('https://fonts.googleapis.com/css2?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&display=swap');
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html{
    font-size: 62.5%;
    min-height: 100%;
}
:root{
    --RED: hsl(0, 78%, 62%);
    --CYAN: hsl(180, 62%, 55%);
    --ORANGE: hsl(34, 97%, 64%);
    --BLUE: hsl(212, 86%, 64%);
    --VERY-DARK-BLUE: hsl(234, 12%, 34%);
    --GRAYISH-BLUE: hsl(229, 6%, 66%);
    --LIGHT-GRAYISH-BLUE: hsla(229, 6%, 66%, 0.500);
    --VERY-LIGHT-GRAY: hsl(0, 0%, 98%);
}
.attribution a { 
    color: rgb(155, 85, 155);
    text-decoration: none;
}
body{
    font-family: "Poppins", sans-serif;
    display: grid;
    place-content: center;
    background-color: var(--VERY-LIGHT-GRAY);
    min-height: 100%;
    color: var(--GRAYISH-BLUE);
}
h1{
    font-size: 2.5rem;
    margin: 0 0 1.4rem 0;
    width: fit-content;
    font-weight: normal;
}
h2,h3{
    color: var(--VERY-DARK-BLUE);
}
h2{
    margin: -1.5rem 0 1.5rem 0;
    font-size: 2.4rem;
    width: fit-content;
}
.section-one{
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 6rem;
    margin-top: 8rem;
}
.section-one p{
    width: 30rem;
    font-size: 1.5rem;
    line-height: 1.5em;
    text-align: center;
}
.card{
    background-color: white;
    height: 24rem;
    margin-bottom: 2rem;
    padding: 3rem;
    width: 34rem;
    max-width: 35rem;
    position: relative;
    border-radius: 1rem;
    box-shadow: 0 1rem 1rem var(--LIGHT-GRAYISH-BLUE);
}
.card h3{
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}
.card p{
    font-size: 1.5rem;
    font-weight: normal;
}
.card img{
    width: 5rem;
    position: absolute;
    bottom: 0;
    right: 0;
    margin-bottom: 3rem;
    margin-right: 3rem;
}
#card-one{
    border-top: 4px solid var(--CYAN);
}
#card-two{
    border-top: 4px solid var(--RED);
}
#card-three{
    border-top: 4px solid var(--ORANGE);
}
#card-four{
    border-top: 4px solid var(--BLUE);
}
.section-two{
    margin-bottom: 6rem;
}
.attribution{
    margin: 0 auto 2rem auto;
    width: fit-content;
    font-size: 1.4rem;
}
@media (min-width: 1440px) {
    h1{
        font-size: 4rem;
    }
    h2{
        font-size: 3.8rem;
    }
    .section-one p{
        width: 60rem;
        font-size: 1.8rem;
    }
    .section-two{
        display: flex;
    }
    #card-one{
        align-self: center;
        margin-right: 2rem;
    }
    #card-four{
        align-self: center;
        margin-left: 2rem;
    }
}