/* Reset and base styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-size: 13px;
  line-height: 1.5;
  background-color: hsl(214, 17%, 92%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
}

/* Testimonials grid */
.testimonials {
  display: grid;
  gap: 1.5rem;
  max-width: 375px;
  margin: 0 auto;
}

@media (min-width: 1440px) {
  .testimonials {
    max-width: 1110px;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, auto);
  }

  .testimonial--primary {
    grid-column: span 2;
  }

  .testimonial--wide {
    grid-column: 4;
    grid-row: 1 / span 2;
  }

  .testimonial--dark {
    grid-column: span 2;
  }
}

/* Testimonial card */
.testimonial {
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.testimonial--primary {
  background-color: hsl(263, 55%, 52%);
  color: hsl(0, 0%, 100%);
  position: relative;
  overflow: hidden;
}

.testimonial--primary::before {
  content: '';
  position: absolute;
  top: 0;
  right: 1.5rem;
  width: 104px;
  height: 102px;
  background-image: url('./images/bg-pattern-quotation.svg');
  background-repeat: no-repeat;
  opacity: 0.5;
}

.testimonial--secondary {
  background-color: hsl(217, 19%, 35%);
  color: hsl(0, 0%, 100%);
}

.testimonial--light {
  background-color: hsl(0, 0%, 100%);
  color: hsl(217, 19%, 35%);
}

.testimonial--dark {
  background-color: hsl(219, 29%, 14%);
  color: hsl(0, 0%, 100%);
}

/* Testimonial header */
.testimonial__header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.testimonial__image {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin-right: 1rem;
  border: 2px solid hsl(264, 82%, 80%);
}

.testimonial--light .testimonial__image {
  border-color: hsl(0, 0%, 100%);
}

.testimonial__name {
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.testimonial__status {
  font-size: 0.6875rem;
  opacity: 0.5;
}

/* Testimonial content */
.testimonial__quote {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.testimonial__text {
  opacity: 0.7;
}

/* Attribution */
.attribution {
  font-size: 11px;
  text-align: center;
  margin-top: 2rem;
}

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