@import url("https://fonts.googleapis.com/css2?family=Barlow+Semi+Condensed:wght@500;600&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  background-color: hsl(214, 17%, 92%);
}
h1,
h2,
h3,
h4 {
  font-weight: 700;
}

.container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 20px;
}
.cards {
  position: relative;
  padding: 20px;
  border-radius: 10px;
  color: hsl(260, 100%, 95%);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
}

.cards.violet {
  background-color: hsl(263, 55%, 52%);
}
.cards.grayish-blue {
  background-color: hsl(217, 19%, 35%);
  margin-left: 15px;
  margin-right: 15px;
}
.cards.dark-blue {
  background-color: hsl(219, 29%, 14%);
  margin-left: 15px;
  margin-right: 15px;
}
.cards.white {
  background-color: white;
  color: hsl(217, 19%, 35%);
}

.cards .quotes {
  position: absolute;
  right: 20px;
  top: 0;
  width: 90px;
}
.cards .image {
  display: flex;
  align-items: center;
}
.cards .image img {
  border-radius: 50%;
  margin-right: 10px;
}
.cards h4 {
  margin: 20px 0;
  font-size: 20px;
}

.cards p {
  font-size: 17px;
}

@media (min-width: 640px) {
  .container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1280px) {
  .container {
    grid-template-columns: repeat(4, 1fr);
    max-width: 1200px;
    margin: 50px auto;
  }
  .cards.violet {
    grid-column: 1/3;
  }
  .cards.dark-blue {
    grid-column: 2/4;
  }
  .cards.last {
    grid-column: 4/5;
    grid-row: 1/3;
  }
}
