@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');

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--white);
    color: var(--grey-400);
    margin: 0;
    padding: 0;

    width: 100%;

    font-size: 15px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
p, h1, h2, h3{
    margin: 0;
}
main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    width: 100%;
    min-height: 110vh;
}

header{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-width: 340px;
    max-width: 500px;
}
h1{
    font-size: 1.7rem;
    font-weight: 200;

    height: 38px;
}

h2{
    font-size: 1.7rem;
    font-weight: 600;
}

header > p{
    font-size: 0.9rem;
    font-weight: 300;
    text-align: center;
}
.card-container {
  display: grid;
  grid-template-columns: repeat(3, auto);
  grid-template-rows: repeat(2, auto);
  gap: 2rem;
  justify-content: center;
  padding-top: 2rem;
}
.card{
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.5rem;
    max-width: 285px;
    max-height: 200px;

    padding: 2rem;

    background-color: var(--white);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.2);

    border-radius: 14px;
}
.card.cyan {
    border-top: 5px solid var(--cyan);
  grid-column: 1 / 2;
  grid-row: 1 / 3;
  align-self: center;
}
.card.red {
    border-top: 5px solid var(--red);
  grid-column: 2 / 3;
  grid-row: 1 / 2;
}
.card.orange {
    border-top: 5px solid var(--orange);
  grid-column: 2 / 3;
  grid-row: 2 / 3;
}
.card.blue {border-top: 5px solid var(--blue);
  grid-column: 3 / 4;
  grid-row: 1 / 3;
  align-self: center;
}
h3{
    font-size: 1.5rem;
    font-weight: 600;
}
.card > img{
    width: 63px;
    height: 63px;
    align-self: flex-end;
    order: 3;

    margin-top: auto;
}

@media (max-width: 900px) {
  .card-container {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}
.attribution { font-size: 11px; text-align: center; }
.attribution a { color: hsl(228, 45%, 44%); }