:root {
  --clr--purple-100: hsl(254, 88%, 90%);
  --clr--purple-500: hsl(256, 67%, 59%);
  --clr--yellow-100: hsl(31, 66%, 93%);
  --clr--yellow-500: hsl(39, 100%, 71%);
  --clr--gray: hsl(0, 0%, 95%);
  --clr--white: hsl(0, 0%, 100%);
  --clr--black: hsl(0, 0%, 7%);

  --font-base: 18px;
}

body {
  font-family: 'DM Sans';
  background-color: var(--clr--gray);
  padding: 1rem;
}

/* Bento Grid Styles */
.bento {
  display: grid;
  gap: 1.5rem;
}

.bento-box {
  background-color: var(--clr--white);
  padding: 0.75rem;
  border-radius: 0.5rem;
  color: var(--clr--black);
  display: grid;
  gap: 1rem;
}

.bento-box__content {
  display: inherit;
  gap: 0.3rem;
}

.bento-box img {
  max-width: 70%;
}

/* Individual Bento Box Adjustments */
#social-ai {
  padding: 2rem;

  img {
    max-width: 75%;
  }
}

#multiple-accounts {
  img {
    max-width: 100%;
  }
}

#maintain-schedule {
  padding-block-end: 0;
}

#post-social {
  padding-block: 1.5rem;
  img {
    max-width: 100%;
  }

  p {
    font-weight: 500;
  }
}

#grow-followers {
  padding: 2rem;
  img {
    max-width: 80%;
  }
  .title {
    max-width: 80%;
  }
}

#growth {
  padding: 1.25rem;

  img {
    max-width: 65%;
  }
}

#create-content {
  img {
    max-width: 55%;
  }
}

/** General classes **/
.centered {
  justify-items: center;
  text-align: center;
}

.bg-purple {
  background-color: var(--clr--purple-500);
  color: var(--clr--white);
}
.bg-light-purple {
  background-color: var(--clr--purple-100);
}
.bg-yellow {
  background-color: var(--clr--yellow-500);
}
.bg-light-yellow {
  background-color: var(--clr--yellow-100);
}
.yellow {
  color: var(--clr--yellow-500);
}
.purple {
  color: var(--clr--purple-500);
}
.italic {
  font-style: italic;
}

/** General Fonts **/
p {
  line-height: 1.2;
}

.title {
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.8px;
  font-size: 1.3rem;
}

.title.large {
  font-size: 1.5rem;
}
.title.v-large {
  font-size: 2.5rem;
}
.title.thin {
  font-weight: 400;
}

@media (min-width: 500px) {
  .bento {
    grid-template-areas:
      'social-ai social-ai'
      'accounts maintain'
      'post-social growth'
      'post-social create'
      'followers ai-content';
    grid-template-columns: repeat(2, 1fr);
  }

  #social-ai {
    grid-area: social-ai;
  }
  #multiple-accounts {
    grid-area: accounts;
  }
  #maintain-schedule {
    grid-area: maintain;
  }
  #post-social {
    grid-area: post-social;
  }
  #grow-followers {
    grid-area: followers;

    .title {
      max-width: initial;
    }
  }
  #growth {
    grid-area: growth;
  }
  #create-content {
    grid-area: create;
  }
  #ai-content {
    grid-area: ai-content;

    img {
      max-width: 100%;
    }
  }
  #grow-followers {
    img {
      max-width: 100%;
    }
  }

  .bento-box {
    align-content: center;
    padding: 1.5rem;
  }

  .title {
    font-size: 1.6rem;
  }

  .title.large {
    font-size: 2rem;
  }
  .title.v-large {
    font-size: 3rem;
  }
}

@media (min-width: 800px) {
  .bento-box {
    padding: 2rem;
  }
  .title {
    font-size: 1.8rem;
  }

  .title.large {
    font-size: 2.2rem;
  }
  .title.v-large {
    font-size: 2.8rem;
  }
}

@media (min-width: 1000px) {
  .bento {
    max-width: 1440px;
    margin-inline: auto;
    grid-template-areas:
      'create social-ai social-ai post-social'
      'create accounts maintain post-social'
      'ai-content accounts maintain post-social'
      'ai-content growth followers followers'
      'ai-content growth followers followers';
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto auto 250px auto auto;
  }

  .bento-box {
    padding: 2rem 1.5rem;
    gap: 1.5rem;
    img {
      max-width: 100%;
    }
  }

  #social-ai {
    padding-block: 4rem;
  }

  #multiple-accounts {
    padding-right: 0;

    img {
      width: 100%;
      height: 70px;
      object-fit: cover;
      object-position: left center;
    }
  }

  #maintain-schedule {
    img {
      width: 100%;
      height: 100px;
      object-fit: cover;
      object-position: top center;
    }
  }

  #post-social {
    align-content: initial;
    grid-template-rows: auto 1fr auto;
    padding-right: 0;
    padding-block: 3rem;

    img {
      height: 100%;
      max-width: 100%;
      object-fit: cover;
      object-position: left center;
    }

    .title,
    p {
      padding-right: 1.5rem;
      text-align: left;
    }
  }

  #grow-followers {
    grid-template-columns: auto 1fr;
    align-items: center;
    text-align: left;

    img {
      width: 200px;
    }

    .title {
      font-size: 2rem;
    }
  }

  #create-content {
    img {
      max-width: 80%;
    }
  }

  #maintain-schedule,
  #ai-content {
    align-content: space-between;
  }

  #growth {
    img {
      max-width: 80%;
    }
  }

  .title {
    font-size: 2rem;
  }
  .title.large {
    font-size: 2.5rem;
  }
  .title.v-large {
    font-size: 3.5rem;
  }

  p {
    font-size: 1.25rem;
  }
}

@media (min-width: 1250px) {
  #multiple-accounts {
    img {
      height: 80px;
    }
  }

  #grow-followers {
    img {
      width: 250px;
    }

    .title {
      font-size: 2.5rem;
    }
  }

  .title {
    font-size: 2.5rem;
  }
  .title.large {
    font-size: 3rem;
  }
  .title.v-large {
    font-size: 4rem;
  }
}

@media (min-width: 1350px) {
  .bento-box {
    padding: 2.5rem;
  }

  #grow-followers {
    img {
      width: 300px;
    }

    .title {
      font-size: 2.75rem;
    }
  }

  .title {
    font-size: 2.75rem;
  }
  .title.large {
    font-size: 3.25rem;
  }
  .title.v-large {
    font-size: 4.5rem;
  }

  p {
    font-size: 1.4rem;
  }
}
