/* inter-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  src: url("../fonts/inter-v20-latin-regular.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* inter-500 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  src: url("../fonts/inter-v20-latin-500.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* inter-600 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  src: url("../fonts/inter-v20-latin-600.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* inter-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  src: url("../fonts/inter-v20-latin-700.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* lexend-deca-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Lexend Deca";
  font-style: normal;
  font-weight: 400;
  src: url("../fonts/lexend-deca-v25-latin-regular.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* lexend-deca-500 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Lexend Deca";
  font-style: normal;
  font-weight: 500;
  src: url("../fonts/lexend-deca-v25-latin-500.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* lexend-deca-600 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Lexend Deca";
  font-style: normal;
  font-weight: 600;
  src: url("../fonts/lexend-deca-v25-latin-600.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* lexend-deca-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Lexend Deca";
  font-style: normal;
  font-weight: 700;
  src: url("../fonts/lexend-deca-v25-latin-700.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

:root {
  --color-white: #ffffff;
  --color-navy-950: #0a0c1c;
  --color-blue-950: #1b1937;
  --color-purple-500: #ab5cdb;

  --font-general: "Inter", "sans-serif";
  --font-headings: "Lexend Deca", "sans-serif";

  --fs-xxs: 0.75rem; /* 12px */
  --fs-xs: 0.9375rem; /* 15px */
  --fs-sm: 1rem; /* 16px */
  --fs-md: 1.125rem; /* 18px */
  --fs-lg: 1.5rem; /* 24px */
  --fs-sub: 1.75rem; /* 28px */
  --fs-xl: 1.875rem; /* 30px */
  --fs-2xl: 2.25rem; /* 36px */
  --fs-3xl: 3rem; /* 48px */
  --fs-4xl: 3.5rem; /* 56px */
  --fs-5xl: 4.5rem; /* 72px */

  --space-1: 0.25rem; /* 4px */
  --space-2: 0.5rem; /* 8px */
  --space-3: 0.75rem; /* 12px */
  --space-4: 1rem; /* 16px */
  --space-5: 1.5rem; /* 24px */
  --space-6: 2rem; /* 32px */
  --space-7: 2.5rem; /* 40px */
  --space-8: 3rem; /* 48px */
  --space-9: 4rem; /* 64px */
  --space-10: 4.5rem; /* 72px */
  --space-11: 5rem; /* 80px */
}

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

body {
  font-family: var(--font-general);
}

.content {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--space-4);

  background-color: var(--color-navy-950);
}

.card {
  --width: 70.5rem;
  --height: 27.625rem;

  max-width: var(--width);
  max-height: var(--height);
  width: 100%;

  display: grid;
  grid-template-columns: repeat(2, 1fr);
  background-color: var(--color-blue-950);
  border-radius: 9px;
  overflow: hidden;
}

.card__content {
  padding: var(--space-9) var(--space-11);
}

.card__title {
  font-size: var(--fs-2xl);
  line-height: 125%;
  color: var(--color-white);
  margin-bottom: var(--space-5);
}

.card__special {
  color: var(--color-purple-500);
}

.card__description {
  max-width: 23.375rem;
  line-height: 165%;
  font-size: var(--fs-xs);
  color: var(--color-white);
  opacity: 75%;

  margin-bottom: var(--space-10);
}

.card__image-container {
  position: relative;
}

.card__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-purple-500);
  opacity: 50%;
}

.card__image {
  display: block;
  width: 100%;
  object-fit: cover;
}

.card__informations {
  list-style: none;
  display: flex;
  gap: var(--space-9);
}

.information__value {
  color: var(--color-white);
  font-size: var(--fs-lg);
  line-height: 120%;
  font-weight: 700;
}

.information__title {
  color: var(--color-white);
  opacity: 60%;
  line-height: 200%;
  font-size: var(--fs-xxs);
  text-transform: uppercase;
  font-family: var(--font-headings);
}

@media (max-width: 48rem) {
  .card {
    --width: 35.25rem;
    --height: 55.25rem;
    grid-template-columns: 1fr;
  }

  .card__image-container {
    order: -1;
  }
}

@media (max-width: 33.125rem) {
  .card {
    --width: 100%;
    --height: 48.75rem;
  }

  .card__content {
    padding: var(--space-5) var(--space-6);
    text-align: center;
  }

  .card__title {
    font-size: var(--fs-sub);
    margin-bottom: var(--space-2);
  }

  .card__description {
    max-width: 100%;

    margin-bottom: var(--space-7);
  }

  .card__image {
    height: 15rem;
  }

  .card__informations {
    flex-direction: column;
    gap: var(--space-6);
  }
}
