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

:root {
  --primary-red: hsl(0, 78%, 62%);
  --primary-cyan: hsl(180, 62%, 55%);
  --primary-orange: hsl(34, 97%, 64%);
  --primary-blue: hsl(212, 86%, 64%);
  --neutral-grey-500: hsl(234, 12%, 34%);
  --neutral-grey-400: hsl(212, 6%, 44%);
  --neutral-white: hsl(0, 0%, 100%);
  --paragraph: 15px;
}

@font-face {
  font-family: "Poppins";
  src: url(https://fonts.google.com/specimen/Poppins);
}
body {
  background: var(--neutral-white);
  font-family: Poppins;
  font-size: var(--paragraph);
  color: var(--neutral-grey-400);
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 4rem;
}
.title {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}
span {
  font-size: 1.95rem;
  margin-bottom: 0.5rem;
}

.description {
  font-size: 0.9rem;
  font-weight: 400;
  text-align: center;
  max-width: 55ch;
}

.article {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 75rem;
  margin: auto;
  align-items: center;
  justify-content: center;
  margin: 3rem 1rem 0 1rem;
}

section {
  position: relative;
  max-width: 19rem;
  height: 13rem;
  padding: 1.5rem;
  border-radius: 0.4rem;
  box-shadow: 0px 5px 15px 0px var(--neutral-grey-500);
}
.card-1 {
  border-top: 5px solid var(--primary-cyan);
  grid-column: 1/2;
  grid-row: 1/3;
}
.card-2 {
  border-top: 5px solid var(--primary-red);
  grid-column: 2/3;
  grid-row: 1/2;
}
.card-3 {
  border-top: 5px solid var(--primary-orange);
  grid-column: 2/3;
  grid-row: 2/3;
}
.card-4 {
  border-top: 5px solid var(--primary-blue);
  grid-column: 3/4;
  grid-row: 1/3;
}
img {
  position: absolute;
  align-items: center;
  justify-content: center;
  right: 1.5rem;
  bottom: 1.5rem;
}

/* ============== FOOTER  ================================= */

.attribution {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  font-size: 1rem;
  color: var(--text-color);
  margin-top: 3.3rem;
}
.attribution p {
  font-weight: 700;
}
.attribution a {
  font-style: italic;
  text-decoration: none;
  color: hsl(228, 45%, 44%);
}

@media only screen and (min-width: 320px) and (max-width: 768px) {
  h1 {
    font-size: 1.5rem;
    color: var(--neutral-grey-500);
  }
  h2 {
    font-size: 0.9rem;
    color: var(--neutral-grey-500);
  }

  .container {
    display: flex;
    flex-direction: column;
    gap: 1.3rem;
  }
  span {
    font-size: 1.4rem;
  }

  .description {
    max-width: 40ch;
  }

  .article {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  section {
    width: 100%;
  }

  img {
    width: 15%;
    height: auto;
  }
}

/* @media only screen and (min-width: 481px) and (max-width: 768px) {
}

@media only screen and (min-width: 769px) and (max-width: 1024px) {
}

@media only screen and (min-width: 1025px) and (max-width: 1280px) {
}

@media only screen and (min-width: 1281px) and (max-width: 1440px) {
} */
