:root {
  --color-purple-50: hsl(260, 100%, 95%);
  --color-purple-300: rgb(196, 162, 246);
  --color-purple-500: hsl(263, 55%, 52%);

  --color-white: hsl(0, 0%, 100%);
  --color-grey-100: hsl(214, 17%, 92%);
  --color-grey-200: hsl(0, 0%, 81%);
  --color-grey-400: rgb(103, 109, 126);
  --color-grey-500: hsl(217, 19%, 35%);
  --color-dark-blue: hsl(219, 29%, 14%);
  --color-black: hsl(0, 0%, 7%);

  --default-font: "Barlow Semi Condensed", sans-serif;
}

* {
  margin: 0;
  padding: 0;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

html {
  font-size: 62.5%;
  box-sizing: border-box;
}

body {
  font-family: var(--default-font);
  background-color: var(--color-grey-100);
  font-size: 1.3rem;
  line-height: 1.5;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.testimonials {
  max-width: 110rem;
  margin: 18rem auto;

  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 1fr);
  column-gap: 3rem;
  row-gap: 2.5rem;
}

.testimonial {
  box-shadow: 3rem 5rem 4rem rgba(103, 109, 126, 0.25);
  /* overflow: hidden; */
  border-radius: 9px;
  padding: 3rem;
}

.testimonial-1 {
  grid-column: 1 / span 2;
  background-color: var(--color-purple-500);
  color: var(--color-purple-50);

  position: relative;
}

.quotation-icon {
  position: absolute;
  top: 0;
  right: 5.6rem;

  z-index: 1;
}

.testimonial-1 .user-comment {
  position: relative;
  z-index: 100;
}

.testimonial-2 {
  grid-column: 3;
  background-color: var(--color-grey-500);
  color: var(--color-grey-100);
}

.testimonial-3 {
  background-color: var(--color-white);
  color: var(--color-grey-500);
}

.testimonial-4 {
  grid-column: 2 / span 2;
  background-color: var(--color-dark-blue);
  color: var(--color-grey-200);
}

.testimonial-5 {
  grid-column: 4;
  grid-row: 1 / -1;
  background-color: var(--color-white);
  color: var(--color-grey-500);
}

.user {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 1.6rem;
}

.user img {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
}

.user-photo {
  border: 2px solid var(--color-purple-300);
}

.user-name {
  font-size: 1.2rem;
  font-weight: 500;
}

.user-state {
  font-size: 1rem;
}

.user-comment {
  font-size: 1.9rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.4px;
  margin-bottom: 1.6rem;
}

.user-review {
  font-weight: 400;
}

.footer {
  margin-top: auto;
  padding: 1.1rem 0;
}

.attribution {
  font-size: 11px;
  text-align: center;
}

.attribution a {
  color: hsl(228, 45%, 44%);
}

@media (max-width: 62.5em) {
  .testimonials {
    max-width: 30.5rem;
    margin: 8rem auto;

    display: flex;
    flex-direction: column;
    gap: 3rem;
  }

  .user-review {
    letter-spacing: 0.5px;
    line-height: 1.4;
  }

  .quotation-icon {
    display: none;
  }
}
