: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%);

    font-family: "Poppins", serif;
}

@font-face {
    font-family: "Poppins";
    src: url(fonts/Poppins-ExtraLight.ttf);
    font-weight: 200;
    font-style: normal;
}

@font-face {
    font-family: "Poppins";
    src: url(fonts/Poppins-Regular.ttf);
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: "Poppins";
    src: url(fonts/Poppins-SemiBold.ttf);
    font-weight: 600;
    font-style: normal;
}

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

body {
    background-color: var(--White);
    padding: 3.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 8vh;
}

header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
    max-width: 43rem;
}

h1 {
    font-weight: 200;
    color: var(--Grey-400);
    font-size: clamp(1.5rem, 2vw + 1rem, 3rem);
    text-align: center;
}

h2 {
    font-weight: 600;
    color: var(--Grey-500);
    font-size: clamp(1.5rem, 2vw + 1rem, 3rem);
    text-align: center;
    margin-bottom: 1rem;
}

header p {
    font-weight: 400;
    color: var(--Grey-500);
    font-size: clamp(0.8rem, 2vw + 0.5rem, 1.2rem);
    text-align: center;
}

.container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

section {
    box-shadow: 0 3px 20px -5px var(--Grey-500);
    border-radius: 6px;
    border-top: 6px solid transparent;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    width: clamp(19.4375rem, 10vw + 15rem, 27rem);
}

section img {
    width: 4rem;
    aspect-ratio: 1 / 1;
    align-self: flex-end;
    margin-bottom: 2rem;
}

section h3 {
    font-weight: 600;
    color: var(--Grey-500);
    font-size: clamp(1.39rem, 0.5vw + 1rem , 2rem);
    margin-bottom: 0.6rem;
}

section p {
    font-weight: 400;
    color: var(--Grey-400);
    font-size: clamp(0.9rem, 0.5vw + 0.5rem , 1.5rem);
    margin-bottom: 2rem;
    padding-right: 1.5rem;
}

.sup {
    border-color: var(--Cyan);
}

.team {
    border-color: var(--Red);
}

.karma {
    border-color: var(--Orange);
}

.calc {
    border-color: var(--Blue);
}


@media(min-width: 1150px) {
    .container {
        display: grid;
        grid-template-columns: repeat(3, 3fr);
        grid-template-rows: repeat(4, 3fr);
    }

    .sup {
        grid-area: 2 / 1 / 4 / 2;
    }

    .team {
        grid-area: 1 / 2 / 3 / 3;
    }

    .karma {
        grid-area: 3 / 2 / 5 / 3;
    }

    .calc {
        grid-area: 2 / 3 / 4 / 4;
    }
}