:root{
  --very-dark-magenta: hsl(300, 43%, 22%);
  --soft-pink: hsl(333, 80%, 67%);
  --dark-grayish-magenta: hsl(303, 10%, 53%);
  --light--grayish-magenta: hsl(300, 24%, 96%);
  --white: hsl(0, 0%, 100%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "League Spartan", sans-serif;
}

main{
  display: grid;
  grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1.1fr;
  grid-template-areas: 
  "sec-1 sec-2"
  "sec-3 sec-3"
  ;
  grid-row-gap: 4em;
  padding:  2rem;
}

.section-1{
  grid-area: sec-1;
}

.section-1 h1{
  text-align: left; 
  color: var(--very-dark-magenta);
  font-weight: 700;
  width: 70%;
  font-size: 30px;
  line-height: 1.5rem;
}

.section-1 p{
  margin-top: 2em;
  color: var(--dark-grayish-magenta);
  font-size: 0.85rem;
  width: 45ch;
  line-height: 1.25rem;
}

.section-2{
  grid-area: sec-2;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 100%;
  justify-content: end;
}

.review{
  display: flex;
  justify-content:center ;
  align-items: center;
  border-radius: 6px;
  background-color: var(--light--grayish-magenta);
  color: var(--very-dark-magenta);
  font-size: 0.75rem;
  font-weight: 600;
  gap: 1.5em;
  padding: 1em 1.5em;
}

.review:nth-of-type(1){
  justify-self: start;
}
.review:nth-of-type(2){
  justify-self: center;
}
.review:nth-of-type(3){
  justify-self: end;
}
.section-3{
  grid-area: sec-3;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75em;
}

.comment{
  background-color: var(--very-dark-magenta);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.7rem;
  border-radius: 7px;
}

.comment:nth-of-type(1){
  align-self: start;
}
.comment:nth-of-type(2){
  align-self: center;
}
.comment:nth-of-type(3){
  align-self: end;
}

.profile{
  display: flex;
  gap: 1rem;
  align-items: center;
}

.profile img{
  width: 30px;
  border-radius: 50%;
}
.name{
  line-height: 1rem;
}

.name p:nth-of-type(2){
  color: var(--soft-pink);
}

.text{
  padding: 0.5rem;
  font-size: 0.9em;
}

@media(max-width:700px){
  main{
    grid-template-columns: 1fr;
    /* grid-template-rows: repeat(3, 1fr); */
      grid-template-areas: 
  "sec-1"
  "sec-2"
  "sec-3"
  ;
  grid-row-gap: 2rem;
  }
  .section-1{
    align-self: center;
  }
  .section-1 h1, .section-1 p{
    width: 100%;
    text-align: center;
  }

  .review:nth-of-type(1),.review:nth-of-type(2), .review:nth-of-type(3){
    justify-self: stretch;
    flex-direction: column;
    gap: 0.2rem;
  }

  .section-3{
    grid-template-columns: 1fr;
  }

  .comment{
    padding: 1.5rem;
  }
  .text{
    padding: 0.8em;
  }
}