@layer reset {
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }

  html {
    -mo2-text-size-adjust: none;
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
  }

  body,
  h1,
  h2,
  h3,
  h4,
  p,
  figure,
  blockqoute,
  dl,
  dd {
    margin: 0;
  }

  body {
    min-block-size: 100vh;
    line-height: 1.6;
  }

  h1,
  h2,
  h3,
  button,
  input,
  label {
    line-height: 1.1;
  }

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

  p,
  li {
    text-wrap: pretty;
    list-style: none;
  }

  img,
  picture {
    max-inline-size: 100%;
    display: block;
  }

  input,
  button,
  textarea,
  select {
    font: inherit;
  }
}

@layer base {
  body {
    font-family: 'Arial', sans-serif;
    background-color: #ecf2f7;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: white;
  }

  p {
    color: #b0b0b0;
  }
}
@layer components {
  .testimonials {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    background-color: #1a1a1a;
    border-radius: 8px;
  }

  .testimonials__header {
    text-align: center;
    margin-bottom: 2rem;
  }

  .testimonials__header h2 {
    font-size: 2.5rem;
    color: #e0e0e0;
  }

  .testimonials__header p {
    font-size: 1.2rem;
    color: #c0c0c0;
  }
}
@layer layout {
  .testimonials__container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }

  @media (min-width: 768px) {
    .testimonials__container {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      grid-template-areas:
        'card-one card-one card-two card-five'
        'card-three card-four card-four card-five';
    }
  }
  .testimonials__card {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
    padding: 1.5rem;
    background-color: teal;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  .testimonials__card-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-bottom: 1rem;
    gap: 0.5rem;
  }
  .testimonials__card-header--intro {
    font-size: 1.2rem;
  }
  .testimonials__card-header img {
    width: 3rem;
    height: 3rem;
    border: 1px solid white;
    border-radius: 50%;
  }
  .testimonials__card:nth-child(1) {
    grid-area: card-one;
    background-color: #733fc7;
  }

  .testimonials__card:nth-child(2) {
    grid-area: card-two;
    background-color: #48556a;
  }

  .testimonials__card:nth-child(3) {
    grid-area: card-three;
    background-color: #ffffff;
    color: black;

    h4 {
      color: black;
    }
  }

  .testimonials__card:nth-child(4) {
    grid-area: card-four;
    background-color: #19202d;
  }

  .testimonials__card:nth-child(5) {
    grid-area: card-five;
    background-color: #ffffff;
    color: black;
  }

  .attribution {
    margin-block: 2rem;
  }
}
