@import url("https://fonts.googleapis.com/css2?family=Barlow+Semi+Condensed:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700&display=swap");
*,
::before,
::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 14px;
  font-family: "Barlow Semi Condensed", sans-serif;
  color: white;
  background-color: hsl(214, 17%, 92%);
  min-height: 100vh;
}

main {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-inline: 1rem;
  grid-auto-flow: dense;
}
main article {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 1.4rem;
  border-radius: 10px;
  box-shadow: 5px 5px 10px hsl(0, 0%, 81%);
}
main article h1 {
  font-weight: 500;
}
main .first {
  background-color: hsl(263, 55%, 52%);
}
main .second {
  background-color: hsl(217, 19%, 35%);
}
main .forth {
  background-color: hsl(219, 29%, 14%);
}
main .third,
main .fifth {
  color: hsl(217, 19%, 35%);
  background-color: white;
}
main .third img,
main .fifth img {
  border: 0;
}

.user {
  display: flex;
  gap: 1rem;
}
.user img {
  border: 3px solid hsl(264, 82%, 80%);
  border-radius: 50%;
}
.user .userInfo {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
}
.user .userInfo span:first-of-type {
  font-weight: 500;
}

@media (min-width: 500px) {
  .first,
  .forth,
  .fifth {
    grid-column: span 2;
  }
  .first {
    background-image: url("../images/bg-pattern-quotation.svg");
    background-repeat: no-repeat;
    background-position: 75% 0%;
  }
}
@media (min-width: 1080px) {
  main {
    max-width: 1200px;
  }
  .fifth {
    grid-row: 1/span 2;
    grid-column: 4;
  }
}