/* 1. Use a more-intuitive box-sizing model */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* 2. Remove default margin */
* {
  margin: 0;
}

body {
  /* 3. Add accessible line-height */
  line-height: 1.5;
  /* 4. Improve text rendering */
  -webkit-font-smoothing: antialiased;
}

/* 5. Improve media defaults */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

/* 6. Inherit fonts for form controls */
input,
button,
textarea,
select {
  font: inherit;
}

/* 7. Avoid text overflows */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

/* 8. Improve line wrapping */
p {
  text-wrap: pretty;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  text-wrap: balance;
}

/*
  9. Create a root stacking context
*/
#root,
#__next {
  isolation: isolate;
}

body {
  font-family: "Barlow Semi Condensed", sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  color: white;
}

.clr-dark-blue {
  color: hsl(217, 19%, 35%);
}

.clr-dark-blue-70 {
  color: hsla(217, 19%, 35%, 0.7);
}

.main-container {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 4.5rem 1.5rem;
  background-color: hsl(210, 46%, 95%);
  width: 100%;
}

.grid {
  display: grid;
  width: 100%;
  gap: 1.5rem;
}

.card {
  padding: 1.625rem 2rem;
  border-radius: 0.5rem;
  box-shadow: 40px 60px 50px -47px hsla(217, 19%, 35%, 0.2474);
}
.card__avatar-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.card__avatar-img {
  border-radius: 50%;
  width: 1.75rem;
  height: 1.75rem;
}
.card__person-info {
  line-height: 1;
}
.card__person-name {
  font-size: 0.8125rem;
}
.card__person-profession {
  padding-top: 0.25rem;
  color: hsla(0, 0%, 100%, 0.5);
  font-size: 0.6875rem;
}
.card__title {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: normal;
  margin-top: 1.125rem;
  text-wrap: wrap;
}
.card__description {
  margin-top: 1rem;
  line-height: 1.125rem;
  color: hsla(0, 0%, 100%, 0.7);
}
.card:nth-child(1) {
  position: relative;
  background-image: url(../images/bg-pattern-quotation.svg);
  background-repeat: no-repeat;
  background-position: top 0 right 1.75rem;
  background-color: hsl(263, 55%, 52%);
}
.card:nth-child(1) .card__avatar-img {
  border: 2px solid hsl(264, 82%, 70%);
}
.card:nth-child(1) .card__description {
  margin-top: 2.5rem;
  padding-right: 1rem;
}
.card:nth-child(2) {
  background-color: hsl(217, 19%, 35%);
}
.card:nth-child(3), .card:nth-child(5) {
  color: hsl(217, 19%, 35%);
  background-color: white;
}
.card:nth-child(3) .card__description,
.card:nth-child(3) .card__person-profession, .card:nth-child(5) .card__description,
.card:nth-child(5) .card__person-profession {
  color: hsla(217, 19%, 35%, 0.7);
}
.card:nth-child(4) {
  background-color: hsl(219, 29%, 14%);
}
.card:nth-child(5) {
  background-color: white;
}

@media only screen and (min-width: 37.5rem) {
  .grid {
    gap: 1.5rem 1.875rem;
    grid-template-columns: repeat(2, 1fr);
  }
  .card__title {
    margin-top: 1.125rem;
  }
  .card:nth-child(1) .card__description {
    margin-top: 1rem;
    padding-right: 0;
  }
  .card:nth-child(2) {
    box-shadow: 40px 60px 50px 0 hsla(217, 19%, 35%, 0.2474);
  }
}
@media only screen and (min-width: 69.375rem) {
  .grid {
    max-width: 69.375rem;
    grid-template-columns: repeat(4, 1fr);
    grid-template-areas: "c1 c1 c2 c5" "c3 c4 c4 c5";
  }
  .card__title {
    margin-top: 1.125rem;
  }
  .card:nth-child(1) {
    grid-area: c1;
    background-position: top 0 right 5rem;
  }
  .card:nth-child(2) {
    grid-area: c2;
  }
  .card:nth-child(3) {
    grid-area: c3;
  }
  .card:nth-child(4) {
    grid-area: c4;
  }
  .card:nth-child(5) {
    grid-area: c5;
  }
}
