@font-face {
  font-family: 'Outfit';
  src: url('../../assets/fonts/outfit/Outfit-VariableFont_wght.ttf');
  font-weight: 300 400 600 700;
}

@font-face {
  font-family: 'YoungSerif';
  src: url('../../assets/fonts/young-serif/YoungSerif-Regular.ttf') format('truetype');
  font-weight: 400;
}

:root {
  --color-rose-800: #7A284E;
  --color-rose-50: #FFF7FB;
  --color-stone-900: #312E2C;
  --color-stone-600: #5F564D;
  --color-stone-150: #E3DDD7;
  --color-stone-100: #F3E5D7;
  --color-brown-800: #854632;
  --color-white: #FFFFFF;

  --text-preset-1-font-size: 40px;
  --text-preset-1-line-height: 100%;
  --text-preset-1-font-weight: 400;
  --text-preset-1-font-family: 'YoungSerif', serif;
  --text-preset-1-mobile-font-size: 36px;
  --text-preset-1-mobile-line-height: 100%;
  --text-preset-1-mobile-font-weight: 400;
  --text-preset-1-mobile-font-family: 'YoungSerif', serif;
  --text-preset-2-font-size: 28px;
  --text-preset-2-line-height: 100%;
  --text-preset-2-font-weight: 400;
  --text-preset-2-font-family: 'YoungSerif', sans-serif;
  --text-preset-3-font-size: 20px;
  --text-preset-3-line-height: 100%;
  --text-preset-3-font-weight: 600;
  --text-preset-3-font-family: 'Outfit', sans-serif;
  --text-preset-4-font-size: 16px;
  --text-preset-4-line-height: 150%;
  --text-preset-4-font-weight: 300;
  --text-preset-4-font-family: 'Outfit', sans-serif;
  --text-preset-4-bold-font-size: 16px;
  --text-preset-4-bold-line-height: 150%;
  --text-preset-4-bold-font-weight: 700;
  --text-preset-4-bold-font-family: 'Outfit', sans-serif;

  --spacing-100: 8px;
  --spacing-150: 12px;
  --spacing-200: 16px;
  --spacing-300: 24px;
  --spacing-400: 32px;
  --spacing-500: 40px;
  --spacing-600: 48px;
  --spacing-1600: 128px;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--color-stone-100);
  font-size: 16px;
}

.line {
  border: none;
  border-bottom: 1px solid var(--color-stone-150);
  margin: var(--spacing-400) 0;
}

.container {
  max-width: 736px;
  border-radius: var(--spacing-300);
  padding: var(--spacing-500);
  margin: var(--spacing-1600) auto;
  background-color: var(--color-white);
}

.cover__photo {
  width: 656px;
  height: 300px;
  background-image: url(../../assets/images/image-omelette.jpeg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  border-radius: var(--spacing-150);
  margin-bottom: var(--spacing-500);
}

.content__wrapper {
  .title {
    font-size: var(--text-preset-1-font-size);
    line-height: var(--text-preset-1-line-height);
    font-weight: var(--text-preset-1-font-weight);
    font-family: var(--text-preset-1-font-family);
    color: var(--color-stone-900);
    margin-bottom: var(--spacing-300);
  }

  .description {
    font-size: var(--text-preset-4-font-size);
    line-height: var(--text-preset-4-line-height);
    font-weight: var(--text-preset-4-font-weight);
    font-family: var(--text-preset-4-font-family);
    color: var(--color-stone-600);
    margin-bottom: var(--spacing-400);
  }
}

.preparation-time {
  background-color: var(--color-rose-50);
  border-radius: var(--spacing-150);
  padding: var(--spacing-300);
  margin-bottom: var(--spacing-400);

  .preparation-time__title {
    font-size: var(--text-preset-3-font-size);
    line-height: var(--text-preset-3-line-height);
    font-weight: var(--text-preset-3-font-weight);
    font-family: var(--text-preset-3-font-family);
    color: var(--color-rose-800);
    margin-bottom: var(--spacing-200);
  }

  .preparation-time__list {
    font-size: var(--text-preset-4-font-size);
    line-height: var(--text-preset-4-line-height);
    font-weight: var(--text-preset-4-font-weight);
    font-family: var(--text-preset-4-font-family);
    color: var(--color-stone-600);
    padding-left: 20px;

    li {
      display: flex;
      align-items: center;
      margin: 0.5rem 0;
      margin-left: -12px;
      position: relative;
      padding-left: var(--spacing-400);

      &::before {
        content: "";
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 4px;
        height: 4px;
        background: var(--color-rose-800);
        border-radius: 50%;
      }

      &:first-child {
        margin-top: 0px;
      }

      &:last-child {
        margin-bottom: 0px;
      }

      b {
        font-weight: bold;
      }
    }
  }
}

.ingredients {
  .ingredients__title {
    font-size: var(--text-preset-2-font-size);
    line-height: var(--text-preset-2-line-height);
    font-weight: var(--text-preset-2-font-weight);
    font-family: var(--text-preset-2-font-family);
    color: var(--color-brown-800);
    margin-bottom: var(--spacing-300);
  }

  .ingredients__list {
    font-size: var(--text-preset-4-font-size);
    line-height: var(--text-preset-4-line-height);
    font-weight: var(--text-preset-4-font-weight);
    font-family: var(--text-preset-4-font-family);
    color: var(--color-stone-600);
    padding-left: 20px;

    li {
      display: flex;
      align-items: center;
      margin: 0.5rem 0;
      margin-left: -12px;
      position: relative;
      padding-left: var(--spacing-400);

      &::before {
        content: "";
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 4px;
        height: 4px;
        background: var(--color-rose-800);
        border-radius: 50%;
      }

      &:first-child {
        margin-top: 0px;
      }

      &:last-child {
        margin-bottom: 0px;
      }
    }
  }
}

.instructions {
  .instructions__title {
    font-size: var(--text-preset-2-font-size);
    line-height: var(--text-preset-2-line-height);
    font-weight: var(--text-preset-2-font-weight);
    font-family: var(--text-preset-2-font-family);
    color: var(--color-brown-800);
    margin-bottom: var(--spacing-300);
  }

  .instructions__list {
    font-size: var(--text-preset-4-font-size);
    line-height: var(--text-preset-4-line-height);
    font-weight: var(--text-preset-4-font-weight);
    font-family: var(--text-preset-4-font-family);
    color: var(--color-stone-600);
    padding-left: 20px;

    li {
      list-style-type: decimal;
      padding-left: var(--spacing-200);
      margin: 0.5rem 0;

      &::marker {
        font: normal 700 1rem/1.5 "Outfit", sans-serif;
      }

      &:first-child {
        margin-top: 0px;
      }

      &:last-child {
        margin-bottom: 0px;
      }

      b {
        font-size: var(--text-preset-4-bold-font-size);
        line-height: var(--text-preset-4-bold-line-height);
        font-weight: var(--text-preset-4-bold-font-weight);
        font-family: var(--text-preset-4-bold-font-family);
      }
    }
  }
}

.nutrition {
  .nutrition__title {
    font-size: var(--text-preset-2-font-size);
    line-height: var(--text-preset-2-line-height);
    font-weight: var(--text-preset-2-font-weight);
    font-family: var(--text-preset-2-font-family);
    color: var(--color-brown-800);
    margin-bottom: var(--spacing-300);
  }

  .nutrition__description {
    font-size: var(--text-preset-4-font-size);
    line-height: var(--text-preset-4-line-height);
    font-weight: var(--text-preset-4-font-weight);
    font-family: var(--text-preset-4-font-family);
    color: var(--color-stone-600);
    margin-bottom: var(--spacing-300);
  }

  .nutrition__list {
    li {
      display: flex;
      flex-direction: row;
      gap: var(--spacing-200);
      padding: var(--spacing-150) var(--spacing-400);
      border-bottom: 1px solid var(--color-stone-150);

      &:first-child {
        padding-top: 0px;
      }

      &:last-child {
        padding-bottom: 0px;
        border: none;
      }

      > * {
        width: 100%;
      }

      .item {
        font-size: var(--text-preset-4-font-size);
        line-height: var(--text-preset-4-line-height);
        font-weight: var(--text-preset-4-font-weight);
        font-family: var(--text-preset-4-font-family);
        color: var(--color-stone-600);
      }

      .value {
        font-size: var(--text-preset-4-bold-font-size);
        line-height: var(--text-preset-4-bold-line-height);
        font-weight: var(--text-preset-4-bold-font-weight);
        font-family: var(--text-preset-4-bold-font-family);
        color: var(--color-brown-800);
      }
    }
  }
}

@media screen and (max-width: 768px) {
  .container {
    max-width: 616px;
  }

  .cover__photo {
    width: 536px;
  }
}

@media screen and (max-width: 576px) {
  .container {
    max-width: 100%;
    border-radius: 0;
    padding: 0;
    margin: 0;
  }

  .cover__photo {
    width: 100%;
    height: initial;
    padding-top: 50%;
    border-radius: 0;
    margin-bottom: 0;
  }

  .content__wrapper {
    padding: var(--spacing-500) var(--spacing-400);
  }
}

@media screen and (max-width: 375px) {
  .cover__photo {
    height: initial;
    padding-top: 45%;
  }

  .content__wrapper {
    .title {
      font-size: var(--text-preset-1-mobile-font-size);
      line-height: var(--text-preset-1-mobile-line-height);
      font-weight: var(--text-preset-1-mobile-font-weight);
      font-family: var(--text-preset-1-mobile-font-family);
      margin-bottom: var(--spacing-300);
    }
  }

  .preparation-time {
    .preparation-time__list {
      li {
        &:first-child {
          display: block;
        }
      }
    }
  }
}
