/* Start FontFace */
@font-face {
  src: url("../assets/fonts/Lexend_Deca/LexendDeca-Regular.ttf");
  font-family: "Lexend Deca";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  src: url("../assets/fonts/Inter/Inter_18pt-Bold.ttf");
  font-family: "Inter";
  font-weight: 700;
  font-size: 18pt;
  font-style: normal;
  font-display: swap;
}
@font-face {
  src: url("../assets/fonts/Inter/Inter_18pt-Regular.ttf");
  font-family: "Inter";
  font-weight: 400;
  font-size: 18pt;
  font-style: normal;
  font-display: swap;
}
@font-face {
  src: url("../assets/fonts/Inter/Inter_24pt-Bold.ttf");
  font-family: "Inter";
  font-weight: 700;
  font-size: 24pt;
  font-style: normal;
  font-display: swap;
}
@font-face {
  src: url("../assets/fonts/Inter/Inter_24pt-Regular.ttf");
  font-family: "Inter";
  font-weight: 400;
  font-size: 24pt;
  font-style: normal;
  font-display: swap;
}
@font-face {
  src: url("../assets/fonts/Inter/Inter_28pt-Bold.ttf");
  font-family: "Inter";
  font-weight: 700;
  font-size: 28pt;
  font-style: normal;
  font-display: swap;
}
@font-face {
  src: url("../assets/fonts/Inter/Inter_28pt-Regular.ttf");
  font-family: "Inter";
  font-weight: 400;
  font-size: 28pt;
  font-style: normal;
  font-display: swap;
}
/* End FontFace */

/* Start Variables */
:root {
  /* Colors */
  /** Primary **/
  --Navy-950: hsl(233, 47%, 7%); /* (main background) */
  --Blue-950: hsl(244, 37%, 16%); /* (card background) */
  --Purple-500: hsl(277, 64%, 61%); /* (accent) */

  /** Neutral **/
  --White-V1: hsl(0, 0%, 100%); /* (main heading, stats) */
  --White-V2: hsla(0, 0%, 100%, 0.75); /* (main paragraph) */
  --White-V3: hsla(0, 0%, 100%, 0.6); /* (stat headings) */

  /* Typography */
  /** Body Copy **/
  font-size: 15px;
}
/* End Variables */

* {
  margin: 0;
  padding: 0;
}
body {
  background-color: var(--Navy-950);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}
.card {
  background-color: var(--Blue-950);
  max-width: 325px;
  width: calc(100% - 4rem);
  border-radius: 0.5rem;
  overflow: hidden;
  display: grid;
  flex-direction: column;
}
.card .header {
  position: relative;
}
.card .header::after {
  content: "";
  position: absolute;
  background-color: var(--Purple-500);
  width: 100%;
  height: calc(100% - 4px);
  top: 0;
  left: 0;
  opacity: 0.6;
}
.card .header .mobileImage,
.card .header .desktopImage {
  width: 100%;
}
.card .header .desktopImage {
  display: none;
}
.card .main {
  padding: 1rem;
  text-align: center;
}
.card .main > h1 {
  color: var(--White-V1);
  font-family: "Inter", sans-serif;
  font-size: 1.8rem;
}
.card .main > h1 span {
  color: var(--Purple-500);
}
.card .main > p {
  color: var(--White-V2);
  font-family: "Inter", sans-serif;
  padding-block: 1rem;
}
.card .main > ul {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  flex-direction: column;
}
.card .main > ul li h2 {
  color: var(--White-V1);
  font-family: "Inter", sans-serif;
}
.card .main > ul li:last-of-type h2 {
  text-transform: uppercase;
}
.card .main > ul li p {
  color: var(--White-V3);
  font-family: "Lexend Deca", sans-serif;
  text-transform: uppercase;
}

@media (min-width: 1000px) {
  .card {
    grid-template-columns: repeat(2, 1fr);
    direction: rtl;
    max-width: 850px;
    width: calc(100% - 4rem);
  }
  .card * {
    direction: ltr;
  }
  .card .header::after {
    height: 100%;
  }
  .card .header .mobileImage {
    display: none;
  }
  .card .header .desktopImage {
    display: block;
  }
  .card .main {
    padding: 3rem;
    text-align: left;
    display: grid;
  }
  .card .main > ul {
    flex-direction: row;
    gap: 2rem;
  }
}
