:root {
  --black: #121212;
  --dark-blue: #19202d;
  --grey-100: #e7eaee;
  --grey-200: #cfcfcf;
  --grey-300: #a3aab4;
  --grey-400: #676d7e;
  --grey-500: #48556a;
  --purple-50: #ede4ff;
  --purple-300: #a775f1;
  --purple-500: #733fc8;
  --font-regular: 500;
  --font-bold: 600;
  --text-sm: 0.688rem;
  --text-md: 0.813rem;
  --text-lg: 1.25rem;
}

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

body {
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: "Barlow Semi Condensed", sans-serif;
  font-size: var(--text-md);
  font-weight: var(--font-regular);
  color: var(--grey-400);
  background: #f6f5f6;
  min-height: 100vh;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "one"
    "two"
    "three"
    "four"
    "five";
  gap: 2rem;
  margin: 4.5rem 2rem;
}

.testimonial {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem;
  border-radius: 0.5rem;
  background: #fff;
  box-shadow: 40px 60px 50px rgba(72, 85, 106, 0.25);
}

.testimonial--one {
  grid-area: one;
  background: var(--purple-500);
  color: var(--purple-50);
}

.testimonial--one .testimonial__author-image {
  border: 2px solid var(--purple-300);
}

.testimonial--one .testimonial__author-name,
.testimonial--one .testimonial__heading {
  color: #fff;
}

.testimonial--two {
  grid-area: two;
  color: var(--grey-100);
  background: var(--grey-500);
}

.testimonial--two .testimonial__author-profession {
  color: var(--grey-300);
}

.testimonial--two .testimonial__author-name,
.testimonial--two .testimonial__heading {
  color: #fff;
}

.testimonial--three {
  grid-area: three;
}

.testimonial--four {
  grid-area: four;
  background: var(--black);
}

.testimonial--four .testimonial__author-image {
  border: 2px solid var(--purple-500);
}

.testimonial--four .testimonial__author-name,
.testimonial--four .testimonial__author-profession {
  color: #fff;
}

.testimonial--four .testimonial__heading {
  color: var(--grey-200);
}

.testimonial--four .testimonial__paragraph {
  color: var(--grey-100);
}

.testimonial--five {
  grid-area: five;
}

.testimonial--five .testimonial__author-profession {
  color: var(--grey-300);
}

.testimonial__author-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial__author-image {
  border-radius: 50%;
  width: 1.75rem;
  height: 1.75rem;
}

.testimonial__author-text-container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial__author-name,
.testimonial__heading {
  color: var(--grey-500);
}

.testimonial__author-profession {
  font-size: 0.688rem;
}

.testimonial__heading {
  font-size: var(--text-lg);
  line-height: 1.2;
  font-weight: var(--font-bold);
}

.testimonial__paragraph {
  line-height: 1.4;
}

@media only screen and (min-width: 48em) {
  .testimonial-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "one one"
      "two three"
      "four four"
      "five five";
    margin: 4.5rem auto;
    max-width: 40.5rem;
  }

  .testimonial--one {
    background: var(--purple-500) url(./images/bg-pattern-quotation.svg)
      no-repeat right 3.75rem top 0;
  }
}

@media only screen and (min-width: 65em) {
  .testimonial-grid {
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-template-areas:
      "one one two five"
      "three four four five";
    margin: 0 2rem;
    max-width: 70rem;
  }
}
