:root {
  /* Colors */
  --color-white: #fff;
  --color-dark-magenta: hsl(300, 43%, 22%);
  --color-gray-magenta: hsl(301, 10%, 53%);
  --color-light-magenta: hsl(300, 24%, 96%);
  --color-soft-pink: hsl(333, 80%, 67%);

  /* Font Weights */
  --weight-regular: 400;
  --weight-mid: 500;
  --weight-bold: 700;

  /* Design Elements */
  --transition: 300ms ease-in-out;
  --border-radius-default: .8rem;
}

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

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

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-size: 1.6rem;
  font-family: 'Spartan', sans-serif;
  background-color: var(--color-white);
}

h1,
h2,
h3,
p {
  margin: 0;
}

/* Type Specs */
.t-heading {
  font-size: 3.2rem;
  line-height: 3.2rem;
  letter-spacing: -1.14px;
  font-weight: var(--weight-bold);
  color: var(--color-dark-magenta);
}
@media (min-width: 768px) {
  .t-heading {
    font-size: 4.8rem;
    line-height: 4.8rem;
    letter-spacing: -1.71px;
  }
}

.t-sub-heading {
  font-size: 1.5rem;
  line-height: 2.5rem;
  letter-spacing: -.5px;
  font-weight: var(--weight-mid);
  color: var(--color-gray-magenta);
}

.t-name,
.t-rating,
.t-subinfo {
  font-size: 1.3rem;
  letter-spacing: 0;
  line-height: 1.4rem;
}

.t-body {
  font-size: 1.3rem;
  line-height: 2.2rem;
  letter-spacing: -.23px;
  font-weight: var(--weight-mid);
}

.t-white {
  color: var(--color-white);
}

.t-soft-pink {
  color: var(--color-soft-pink);
}

.t-dark-magenta {
  color: var(--color-dark-magenta);
}

.t-bold {
  font-weight: var(--weight-bold);
}

.t-regular {
  font-weight: var(--weight-regular);
}

.main {
  background-repeat: no-repeat;
  background-position: left top, right bottom;
  background-image: url(./images/bg-pattern-top-mobile.svg), url(./images/bg-pattern-bottom-mobile.svg);
}
@media (min-width: 768px) {
  .main {
    height: 100%;
    background-image: url(./images/bg-pattern-top-desktop.svg), url(./images/bg-pattern-bottom-desktop.svg);
  }
}

/* Section layout */
.proof {
  padding: 8.8rem 2.4rem 9.9rem;
}
@media (min-width: 768px) {
  .proof {
    padding: 13.1rem 4rem 10rem;
  }
}

@media (min-width: 1080px) {
  .container {
    display: grid;
    margin: 0 auto;
    max-width: 111rem;
    grid-template-columns: 44.5rem 1fr;
  }
}

/* Headings */
.headings {
  text-align: center;
  margin-bottom: 4rem;
}
@media (min-width: 1080px) {
  .headings {
    text-align: left;
    max-width: 44.5rem;
    margin-bottom: 0;
  }
}

.heading {
  margin-bottom: 1.8rem;
}
@media (min-width: 1080px) {
  .heading {
    margin-bottom: 1.3rem;
  }
}

/* Ratings */
.ratings {
  margin-bottom: 4.9rem;
}
@media (min-width: 500px) {
  .ratings {
    text-align: center;
  }
}
@media (min-width: 600px) {
  .ratings {
    text-align: left;
    max-width: 54rem;
    margin: 0 auto 4.9rem;
  }
}
@media (min-width: 1080px) {
  .ratings {
    margin: 0;
    margin-left: auto;
    align-self: center;
    margin-top: -.5rem;
  }
}

.rating {
  width: 100%;
  padding: 1.6rem 0;
  text-align: center;
  border-radius: var(--border-radius-default);
  background-color: var(--color-light-magenta);
}
@media (min-width: 500px) {
  .rating {
    height: 5.6rem;
    width: 100%;
    max-width: 44.5rem;
    align-items: center;
    display: inline-flex;
    padding: 0 0 0 3.2rem;
    flex-flow: row nowrap;
  }
}
@media (min-width: 600px) {
  .rating:nth-child(2) {
    margin-left: 4.8rem;
  }
  .rating:nth-child(3) {
    margin-left: 9.5rem;
  }
}

.rating:not(:last-of-type) {
  margin-bottom: 1.6rem;
}

.starts {
  width: 11.7rem;
  display: inline-flex;
  margin-bottom: 1.6rem;
  justify-content: space-between;
}
@media (min-width: 500px) {
  .starts {
    margin-bottom: 0;
    margin-right: 3.2rem;
  }
}

/* Testimonials */

.testimonials {
  display: flex;
  flex-flow: column nowrap;
}
@media (min-width: 1080px) {
  .testimonials {
    grid-row: 2/3;
    grid-column: 1/3;
    margin-top: 7.2rem;
    flex-flow: row nowrap;
  }
}

.testimonial {
  padding: 4rem 3.2rem 3.2rem;
  border-radius: var(--border-radius-default);
  background-color: var(--color-dark-magenta);
}
@media (min-width: 768px) {
  .testimonial {
    max-width: 35rem;
    padding: 4rem 3.2rem;
  }
  
  .testimonial:nth-child(2) {
    align-self: center;
  }

  .testimonial:nth-child(3) {
    align-self: flex-end;
  }
}

.testimonial:not(:last-of-type) {
  margin-bottom: 1.6rem;
}
@media (min-width: 1080px) {
  .testimonial:not(:last-of-type) {
    margin-bottom: 0;
    margin-right: 3rem;
  }
  .testimonial:nth-child(1) {
    margin-bottom: 3.2rem;
  } 
  .testimonial:nth-child(3) {
    margin-top: 3.2rem;
  } 
}

.testimonial__heading {
  display: flex;
  margin-bottom: 2.6rem;
  flex-flow: row nowrap;
  align-items: flex-start;
}

.testimonial__heading__avatar {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
}

.testimonial__heading__info {
  margin-top: .4rem;
  margin-left: 2.3rem;
}

.testimonial__heading__info > .name {
  margin-bottom: .6rem;
}