:root {
  /* Colors */

  /* Primary */

  --Very-dark-blue: hsl(233, 47%, 7%); /* (main background) */
  --Dark-desaturated-blue: hsl(244, 38%, 16%); /* (card background) */
  --Soft-violet: hsl(277, 64%, 61%); /* (accent) */

  /* Neutral */

  --White: hsl(0, 0%, 100%); /*(main heading, stats)*/
  --Slightly-transparent-white: hsla(0, 0%, 100%, 0.75); /*(main paragraph)*/
  --Slightly-transparent-white: hsla(0, 0%, 100%, 0.6); /*(stat headings)*/

  /* Typography */

  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-md: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.25rem;
  --fs-2xl: 1.5rem;
  --fs-3xl: 1.875rem;
  --fs-4xl: 2.5rem;
  --fs-5xl: 3rem;
  --fs-6xl: 4rem;

  /* font weights */

  --fw-400: 400;
  --fw-700: 700;
}

/* Utility class */

.text-purple {
  color: var(--Soft-violet);
}

*,
*::after,
*::before {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--Very-dark-blue);
  color: var(--White);
  font-size: var(--fs-400);
  font-weight: var(--fw-400);
}

img {
  display: block;
  max-width: 100%;
  object-fit: cover;
}

main {
  display: grid;
  place-items: center;
  height: 100vh;
}

section {
  display: flex;
  @media screen and (max-width: 768px) {
    flex-direction: column-reverse;
    border-radius: 10px;
    max-width: 300px;
    overflow: hidden;
  }
}

.box-info {
  background-color: var(--Dark-desaturated-blue);
  padding: 3rem;
  max-width: 25rem;
  display: inline-flex;
  flex-direction: column;
  justify-content: space-around;
  h1 {
    font-family: Lexend Deca, sans-serif;
    font-size: var(--fs-2xl);
    margin-bottom: 1rem;
  }
  p {
    font-family: inter, sans-serif;
    color: var(--Slightly-transparent-white);
    font-size: var(--fs-xs);
    line-height: 1.6;
    text-wrap: pretty;
  }

  @media screen and (max-width: 768px) {
    max-width: 100%;
    justify-content: space-between;
    gap: 2rem;
    text-align: center;
    padding: 2rem;
    p {
      text-wrap: balance;
    }
  }
}

.stats {
  display: inline-flex;
  justify-content: space-between;
  font-family: Inter, sans-serif;
  font-size: var(--fs-xs);
  text-transform: uppercase;

  @media screen and (max-width: 768px) {
    flex-direction: column;
    gap: 1rem;
    line-height: 1.5;
    letter-spacing: 1px;
  }
}

.img-box {
  max-width: 25rem;
  background-color: var(--Soft-violet);
  img {
    mix-blend-mode: multiply;
    opacity: 0.75;
    object-fit: contain;
  }
  @media screen and (max-width: 768px) {
    max-width: 100%;
  }
}

footer {
  text-align: center;
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}
