@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;700&family=Lexend+Deca&display=swap");
/* font-family: 'Inter', sans-serif; */
/* font-family: 'Lexend Deca', sans-serif; */

/* The designs were created to the following widths: */
/* Mobile: 375px */
/* Desktop: 1440px */

*,
::before,
::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
:root {
  /* __________Primary */
  /* (main background) */
  --Very-dark-blue: hsl(233, 47%, 7%);
  /* (card background) */
  --Dark-desaturated-blue: hsl(244, 38%, 16%);
  /* (accent) */
  --Soft-violet: hsl(277, 64%, 61%);
  --Soft-violet-alfa: hsla(277, 64%, 61%, 0.5);
  /* __________Neutral */
  /* (main heading, stats) */
  --White: hsl(0, 0%, 100%);
  /* (main paragraph) */
  --Slightly-transparent-white: hsla(0, 0%, 100%, 0.75);
  /* (stat headings) */
  --Slightly-transparent-white: hsla(0, 0%, 100%, 0.6);
}
.attribution {
  text-align: center;
}
html,
body {
  width: 100%;
}
body {
  display: grid;
  place-items: center;
  height: 100vh;
  font-size: 15px;
  background: var(--Very-dark-blue);
}
.main {
  /* outline: 1px solid red; */

  aspect-ratio: 1108/446;
  display: flex;
  width: 1108px;
  max-width: 1108px;
  width: 77%;
  /* height: 446px; */
  background: var(--Dark-desaturated-blue);
  margin-bottom: 1.5em;
  border-radius: 1.2vw;
  overflow: hidden;
}
.hero-img {
  /* aspect-ratio: 540/446; */
  flex-basis: 50%;
  margin-left: auto;
  position: relative;
  background: url(images/image-header-desktop.jpg);
  background-size: contain;
  background-size: 100%;
}
.hero-img::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: var(--Soft-violet);
  background: var(--Soft-violet-alfa);
}

.section {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 5vw;
  flex-basis: 50%;
  max-width: 50%;
}

h1 {
  /* outline: 1px solid red; */
  /* max-width: 19ch; */
  width: 17ch;
  font-size: clamp(0.7rem, 2.5vw, 2.5rem);
  color: var(--White);
  font-family: "Inter", sans-serif;
  /* font-size: 2.3rem; */
}
h1 span {
  color: var(--Soft-violet);
}
p {
  color: var(--Slightly-transparent-white);
  font-family: "Lexend Deca", sans-serif;
}
.section > p:nth-child(2) {
  /* margin-block-start: -10%; */
  width: 85%;
  font-size: clamp(0.28rem, 1vw, 1rem);
  flex-basis: 28%;
}

.stat {
  display: flex;
  justify-content: space-between;
  width: 80%;
  padding: 0.8em;
}
.stat div {
  display: flex;
  flex-direction: column;
}
.stat p {
  color: var(--White);
  font-size: x-large;
  font-size: clamp(0.47rem, 1.8vw, 1.8rem);
  margin-bottom: 0;
}
.stat span {
  color: var(--Slightly-transparent-white);
  text-transform: uppercase;
  font-size: clamp(0.28rem, 1vw, 1rem);
  letter-spacing: 0.16em;
}

@media (max-width: 375px) {
  body {
    /* place-content: center; */
    padding-top: 4em;
  }
  .main {
    width: 87%;
    aspect-ratio: 326/779;
    overflow: visible;
    flex-direction: column;
  }
  .hero-img {
    margin: 0;
    order: 0;
    flex-basis: 34%;
  }
  .section {
    order: 1;
    /* outline: 1px solid red; */
    flex-basis: 66%;
    min-width: 100%;
    padding: 0;
    justify-content: space-around;
  }
  .section-h1 {
    text-align: center;
    margin: 0 auto;
    /* margin-top: 0; */
    font-size: clamp(0.7rem, 8.2vw, 2.5rem);
    width: 15ch;
    /* outline: 1px solid red; */
  }
  .section > p:nth-child(2) {
    /* margin-block-start: -10%; */
    /* outline: 1px solid red; */
    /* width: 85%; */
    font-size: clamp(0.7rem, 4.1vw, 2.5rem);
    margin: -2em auto 0;
    width: 30ch;
    text-align: center;
  }
  .stat {
    margin: -3em auto 0;
    /* outline: 1px solid red; */
    flex-direction: column;
    flex-basis: 44%;
    justify-content: space-evenly;
    border-radius: 0.5em;
    border: 1px solid var(--Dark-desaturated-blue);
    /* box-shadow: -5px -5px 5px -5px hsl(244, 38%, 16%) inset; */
    /* box-shadow: 5px 5px 12px rgb(17, 15, 46), -5px -5px 12px rgb(37, 35, 66); */
    box-shadow: 5px 5px 3px rgb(17 15 46), -3px -4px 3px rgb(52 50 81);
  }
  .stat p {
    font-size: clamp(0.7rem, 7vw, 2.5rem);
    text-align: center;
  }
  .stat span {
    font-size: clamp(0.28rem, 3.5vw, 2.5rem);
    text-align: center;
  }
}
