* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

:root {
  /* Primary */
  --Very-Dark-Magenta: hsl(300, 43%, 22%);
  --Soft-Pink: hsl(333, 80%, 67%);

  /* Neutral */
  --Dark-Grayish-Magenta: hsl(303, 10%, 53%);
  --Light-Grayish-Magenta: hsl(300, 24%, 96%);
  --White: hsl(0, 0%, 100%);
}

body {
  background-image: url(./images/bg-pattern-top-mobile.svg),
    url(./images/bg-pattern-bottom-mobile.svg);
  background-repeat: no-repeat;
  background-position: top center, bottom center;
  font-family: "League Spartan", sans-serif;
  position: relative;
  min-height: 100vh;
  font-size: 1.2rem;
  line-height: 1.2;
}

.top-background img {
  position: absolute;
  width: 100%;
  top: 0;
  left: 0;
}

.bottom-background img {
  position: absolute;
  width: 100%;
  left: 0;
  bottom: 0;
}

main {
  padding: 3.5rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

header h1 {
  margin: 0 2rem;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--Very-Dark-Magenta);
  margin-bottom: 1.5rem;
  line-height: normal;
}

header p {
  color: var(--Dark-Grayish-Magenta);
  margin-bottom: 0.8rem;
}

.ratings section {
  background-color: var(--Light-Grayish-Magenta);
  border-radius: 0.5rem;
  padding: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--Very-Dark-Magenta);
}

.ratings section:not(:last-child) {
  margin-bottom: 1rem;
}

.stars {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.persons {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.persons .card {
  background-color: var(--Very-Dark-Magenta);
  padding: 2rem;
  color: var(--Light-Grayish-Magenta);
  border-radius: 0.5rem;
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  text-align: start;
  gap: 1.5rem;
}

.details {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.details img {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 1.5rem;
}

.details p:first-child {
  font-weight: 700;
}

.details p:last-child {
  color: var(--Dark-Grayish-Magenta);
}

@media (min-width: 750px) and (max-width: 999px) {
  body {
    background-image: url(./images/bg-pattern-top-desktop.svg),
      url(./images/bg-pattern-bottom-desktop.svg);
    background-position: top left, bottom right;
    background-size: 450px, 900px;
  }

  .ratings {
    padding: 0 10rem;
  }
}

@media (min-width: 1000px) and (max-width: 1350px) {
  body {
    background-image: url(./images/bg-pattern-top-desktop.svg),
      url(./images/bg-pattern-bottom-desktop.svg);
    background-position: top left, bottom right;
    background-size: 450px, 900px;
  }

  main {
    padding: 3rem 3rem;
    justify-content: center;
    min-height: 100vh;
    gap: 2.5rem;
  }

  .hero {
    display: flex;
    text-align: start;
    justify-content: space-between;
  }

  header {
    width: 45%;
  }

  .hero header h1 {
    width: 80%;
    font-size: 3rem;
    margin: 0 0 1.5rem;
  }

  .ratings {
    padding: 2rem 0;
    display: grid;
    grid-template-columns: repeat(15, 1fr);
    grid-template-rows: repeat(3, auto);
    width: 45rem;
  }

  .ratings section:nth-child(1) {
    grid-column: 4/14;
    grid-row: 1/2;
  }

  .ratings section:nth-child(2) {
    grid-column: 5/15;
    grid-row: 2/3;
  }

  .ratings section:nth-child(3) {
    grid-column: 6/16;
    grid-row: 3/4;
  }

  .ratings section {
    flex-direction: row;
    align-items: center;
    gap: 2.5rem;
    font-size: 0.93rem;
    padding-left: 2rem;
  }

  .stars img {
    height: 1rem;
  }

  .persons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(14, auto);
  }

  .persons .card:nth-child(1) {
    grid-column: 1/2;
    grid-row: 1/13;
  }

  .persons .card:nth-child(2) {
    grid-column: 2/3;
    grid-row: 2/14;
  }

  .persons .card:nth-child(3) {
    grid-column: 3/4;
    grid-row: 3/15;
  }
}

@media (min-width: 1351px) {
  body {
    background-image: url(./images/bg-pattern-top-desktop.svg),
      url(./images/bg-pattern-bottom-desktop.svg);
    background-position: top left, bottom right;
    background-size: 450px, 900px;
  }

  main {
    padding: 2rem 8rem;
    justify-content: center;
    min-height: 100vh;
    gap: 2.5rem;
  }

  .hero {
    display: flex;
    text-align: start;
    justify-content: space-between;
  }

  header {
    width: 40%;
  }

  .hero header h1 {
    width: 80%;
    font-size: 3rem;
    margin: 0 0 1.5rem;
  }

  .ratings {
    padding: 2rem 0;
    display: grid;
    grid-template-columns: repeat(15, 1fr);
    grid-template-rows: repeat(3, auto);
    width: 40rem;
  }

  .ratings section:nth-child(1) {
    grid-column: 4/14;
    grid-row: 1/2;
  }

  .ratings section:nth-child(2) {
    grid-column: 5/15;
    grid-row: 2/3;
  }

  .ratings section:nth-child(3) {
    grid-column: 6/16;
    grid-row: 3/4;
  }

  .ratings section {
    flex-direction: row;
    align-items: center;
    gap: 2.5rem;
    font-size: 0.93rem;
    padding-left: 2rem;
  }

  .stars img {
    height: 1rem;
  }

  .persons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(14, auto);
  }

  .persons .card:nth-child(1) {
    grid-column: 1/2;
    grid-row: 1/13;
  }

  .persons .card:nth-child(2) {
    grid-column: 2/3;
    grid-row: 2/14;
  }

  .persons .card:nth-child(3) {
    grid-column: 3/4;
    grid-row: 3/15;
  }
}
