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

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

* {
  box-sizing: border-box;
}
:root {
  --White: hsl(0, 0%, 100%);

  --Stone-100: hsl(30, 54%, 90%);
  --Stone-150: hsl(28, 16%, 24%);
  --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%);
}

body {
  font-family: "Young Serif", sans-serif;
  background-color: var(--Rose-50);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}
main {
  background-color: var(--White);
  max-width: 500px;
  align-items: center;
  justify-content: center;
  padding: 2.18em;
  border-radius: 20px;
  box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
}

.main-container img {
  width: 100%;
  border-radius: 15px;
  object-fit: cover;
}
.main-container h1 {
  color: var(--Stone-900);
  font-size: 2em;
  font-weight: 400;
}
p,
li {
  font-family: Outfit;
  font-weight: 500;
}

.main-container p {
  color: var(--Stone-600);
  word-wrap: break-word;
  font-size: 16px;
}

.line {
  border-bottom: 1px solid var(--Stone-150);
}
h3 {
  color: var(--Brown-800);
  font-size: 1.5em;
  font-weight: 800;
  margin-top: 1.875em;
  margin-bottom: 0.625em;
}
h4 {
  color: var(--Rose-800);
  margin: 0;
  margin-bottom: 0.6em;
}

.prep-time {
  background-color: var(--Rose-50);
  color: var(--Stone-600);
  padding: 1.25em;
  border-radius: 20px;
}

ul,
ol {
  color: var(--Stone-600);
  padding-left: 0;
  margin-inline-start: 10px;
}

li:last-of-type {
  padding-bottom: 0.625em;
}
li {
  margin-bottom: 0.6em;
  margin-left: 1.25em;
  word-wrap: break-word;
}

.nutrition {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-left: 1.8rem;
}
.colored {
  color: var(--Brown-800);
  font-weight: 800;
  padding: 0;
}

.attribution {
  font-size: 13px;
  text-align: center;
  word-wrap: break-word;
}
.attribution a {
  color: hsl(228, 45%, 44%);
}

@media (max-width: 768px) {
  body {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 1px;
  }

  main {
    background-color: none;
    width: 100%;
    padding: 0;
    border-radius: 0;
  }
  .main-container img {
    border-radius: 0;
    width: 100%;
  }
  .text-container {
    padding: 0.2em 1.9em 0.8em;
  }
  .prep-time {
    padding: 1.8em;
  }
  li {
    margin-left: 1.25em;
  }
}
@media (max-width: 375px) {
  h1 {
    word-wrap: break-word;
  }
  .text-container {
    padding: 0.2em 1.9em 0.8em;
  }
  li {
    margin-left: 1.25em;
  }
  .prep-time {
    padding: 1.5em;
  }
}
