:root {
  /* COLORS */
  --white: hsl(0, 0%, 100%);

  --stone-100: hsl(30, 54%, 90%);
  --stone-150: hsl(30, 18%, 87%);
  --stone-200: hsl(30, 54%, 87%);
  --stone-600: hsl(30, 10%, 34%);
  --stone-900: hsl(24, 5%, 18%);

  --brown-800: hsl(14, 45%, 36%);

  --rose-800: hsl(332, 51%, 32%);
  --rose-50: hsl(330, 100%, 98%);

  /* FONTS */
  --font-title: "Young Serif", sans-serif;
  --font-text: "Outfit", sans-serif;
}

html {
  box-sizing: border-box;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

body {
  font-family: var(--font-text);
  background-color: var(--stone-100);
  background: linear-gradient(0deg, var(--stone-200), var(--stone-100));
  color: var(--stone-900);
  font-weight: 300;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-title);
  color: var(--brown-800);
  margin: 0;
}

h1 {
  color: #1f1f1f;
}

img {
  max-width: 100%;
}

strong {
  font-weight: 700;
}

.main-container {
  max-width: 70ch;
  margin: 0 auto;
  background-color: var(--white);
  margin: 2rem auto;
  border-radius: 2rem;
  padding: 2rem;
  box-shadow: 0 0 3rem color-mix(in hsl, var(--stone-600) 10%, transparent);
}

.header {
  img {
    border-radius: 1rem;
    margin-bottom: 2rem;
  }

  p {
    margin-bottom: 1rem;
  }
}

.section {
  padding-top: 2rem;
  &:not(:last-of-type) {
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  }
}

.ingredients,
.preparation-time,
.instructions {
  ul,
  ol {
    padding-left: 1rem;
    margin-bottom: 0;
  }

  li {
    padding-left: 1rem;
    margin-bottom: 0.5rem;

    &::marker {
      font-size: 0.75em;
      padding-left: 5rem;
    }

    &:last-of-type {
      margin-bottom: 0;
    }
  }
}

.preparation-time {
  background-color: var(--rose-50);
  padding: 1rem;
  border-radius: 0.5rem;

  h2 {
    color: var(--rose-800);
    font-size: 1rem;
    font-family: var(--font-text);
    font-weight: bold;
    margin: 0;
  }

  li::marker {
    color: var(--rose-800);
  }
}

.ingredients,
.instructions {
  li::marker {
    color: var(--brown-800);
    font-weight: 700;
  }
}

.instructions {
  li::marker {
    font-size: 1em;
  }
}

.nutrition__table {
  width: 100%;
  border-collapse: collapse;

  tr:not(:last-of-type) td {
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  }

  td {
    padding: 1rem 0;

    &:last-of-type {
      font-weight: 700;
      color: var(--brown-800);
    }
  }
}
