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

:root {
  --Blue: hsl(228, 45%, 44%);
  --White: hsl(0, 0%, 100%);
  --Stone-100: hsl(30, 54%, 90%);
  --Stone-150: hsl(30, 18%, 87%);
  --Stone-600: hsl(30, 10%, 34%);
  --Stone-900: hsl(24, 5%, 18%);
  --Brown-800: hsl(14, 45%, 36%);
  --Rose-50: hsl(330, 100%, 98%);
  --Rose-800: hsl(332, 51%, 32%);
  --border: 1px solid var(--Stone-150);
}

@font-face {
  font-family: "Young serif";
  src: url(./assets/fonts/young-serif/YoungSerif-Regular.ttf) format("truetype");
  font-weight: 400;
}
@font-face {
  font-family: "Outfit";
  src: url(./assets/fonts/outfit/Outfit-VariableFont_wght.ttf)
    format("truetype");
  font-weight: 100 900;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  scroll-behavior: smooth;
  font-family: "Outfit", sans-serif;
}
main {
  flex: 1;
}
h1,
h2 {
  font-weight: 400;
  font-family: "Young serif", serif;
}
p,
li,
th,
td {
  font-weight: 400;
  font-size: clamp(0.875rem, 2vw + 0.5rem, 1rem);
  color: var(--Stone-600);
}

ul {
  line-height: 2rem;
  margin-left: 0.7rem;
  li::marker {
    content: "•";
  }
}
ol,
ul {
  li {
    padding-left: 1.2rem;
  }
}
ol {
  margin-left: 1.2rem;
  li {
    margin-bottom: 1rem;
    &::marker {
      font-weight: 700;
    }
  }
}

.wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-inline: 2.3rem;
}
.text-box {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-bottom: 2rem;
}

article {
  margin: 0 auto;
  width: min(44rem, 100%);
  background-color: var(--White);
  img {
    width: 100%;
    margin-bottom: 2rem;
    object-fit: cover;
  }
  h1 {
    font-size: 2.25rem;
    color: var(--Stone-900);
  }
  h2 {
    font-size: 1.7rem;
    color: var(--Brown-800);
  }
}
.prep-time {
  padding: 1rem;
  border-radius: 16px;
  background-color: var(--Rose-50);
  h2 {
    font-size: 1.17rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--Rose-800);
    font-family: "Outift", sans-serif;
  }
  ul {
    max-width: clamp(14.625rem, 57vw + 1.25rem, 16.313rem);
    li::marker {
      color: var(--Rose-800);
    }
  }
}
.instructions,
.ingredients {
  border-bottom: var(--border);
}
.nutritions {
  p {
    text-wrap: balance;
  }
  table {
    width: 100%;
    height: fit-content;
    border-collapse: collapse;
    tr:not(:last-child) {
      border-bottom: var(--border);
    }
    th,
    td {
      padding: 1.1rem 0;
    }
    th {
      text-align: start;
      text-indent: 1.5rem;
    }
    td {
      font-weight: 700;
      color: var(--Brown-800);
    }
  }
}
.attribution {
  font-size: 11px;
  text-align: center;
  a {
    color: var(--blue);
  }
}

@media (min-width: 44rem) {
  body {
    gap: 8rem;
    background-color: var(--Stone-100);
  }
  article {
    padding: 2rem;
    border-radius: 16px;
    img {
      border-radius: 14px;
    }
  }
  .wrapper {
    margin: 0;
  }
  .nutritions {
    padding-bottom: 0;
  }
}
