:root {
  --clr-primary-violet: hsl(263, 55%, 52%);
  --clr-secondary-grayish-blue: hsl(217, 19%, 35%);
  --clr-secondary-blackish-blue: hsl(219, 29%, 14%);

  --clr-neutral-white: hsl(0, 0%, 100%);
  --clr-neutral-light-gray: hsl(0, 0%, 81%);
  --clr-neutral-light-grayish: hsl(210, 46%, 95%);

  --font-family-default: "Barlow Semi Condensed", serif;

  --fw-regular: 500;
  --fw-bold: 600;

  --fs-400: 0.813rem;
  --fs-500: 1.25rem;
  --fs-600: 1.5rem;
  --fs-700: 1.75rem;
  --fs-800: 2rem;
  --fs-900: 5rem;
}

/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
}

/* Make images easier to work with */
img,
picture {
  max-width: 100%;
  display: block;
}

body {
  background-color: var(--clr-neutral-light-grayish);
  display: flex;
  min-height: 100vh;
  justify-content: center;
  align-items: center;
  font-family: var(--font-family-default);
  font-weight: var(--fw-regular);
}

.bg-violet {
  background-color: var(--clr-primary-violet);
}
.bg-grayish-blue {
  background-color: var(--clr-secondary-grayish-blue);
}
.bg-blackish-blue {
  background-color: var(--clr-secondary-blackish-blue);
}
.bg-white {
  background-color: var(--clr-neutral-white);
}

.text-neutral {
  color: var(--clr-neutral-white);
}

.text-secondary {
  color: var(--clr-secondary-grayish-blue);
}

.stroke {
  border: 2px solid hsl(263, 100%, 67%);
}

@media (min-width: 50rem) {
  .grid-container {
    grid-template-columns: repeat(4, 1fr);
  }

  .testimonial:last-child {
    grid-column-start: 4;
    grid-row: 1 / 3;
  }

  .col-span-2 {
    grid-column: span 2;
  }
}

.grid-container {
  display: grid;
  gap: 1.8rem;
  max-width: 1110px;
  margin: 2rem;
}

.margin-top > *:where(:not(:first-child)) {
  margin-top: 1.2rem;
}

.testimonial {
  font-size: var(--fs-400);
  padding: 1.3rem 2rem;
  border-radius: 0.5rem;
  box-shadow: 2.5rem 3.75rem 3.125rem -3rem hsl(217, 19%, 35%, 0.25);
  transition: all 0.3s;
}

.testimonial:hover {
  transform: scale(1.1, 1.1);
  cursor: pointer;
}

.testimonial-info {
  display: flex;
  gap: 1rem;
}

.testimonial > p:first-of-type {
  line-height: auto;
  font-size: var(--fs-500);
}

.testimonial > p:last-of-type {
  opacity: 0.7;
  line-height: 1.3;
}

.testimonial img {
  width: 1.75rem;
  aspect-ratio: 1;
  border-radius: 50%;
}

.testimonial .name {
  font-size: 0.813rem;
  line-height: 1;
  font-weight: var(--fw-regular);
}

.testimonial .status {
  opacity: 0.5;
  font-size: 0.688rem;
}

.testimonial.quote {
  background-image: url(./images/bg-pattern-quotation.svg);
  background-repeat: no-repeat;
  background-position: top right 20%;
}
