/* 
- Mobile: 375px
- Desktop: 1440px
*/

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

:root {
  --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-800: hsl(332, 51%, 32%);
  --rose-50: hsl(330, 100%, 98%);
  --text-paragraph: 16px;
}

@font-face {
  font-family: Young Serif;
  src: url(https://fonts.google.com/specimen/Young+Serif);
}

@font-face {
  font-family: Outfit;
  src: url(https://fonts.google.com/specimen/Outfit);
}

body {
  background: var(--stone-100);
  line-height: 1.5;
}

h1,
h2,
h3 {
  font-family: Young Serif;
}
h1 {
  font-size: 48px;

  color: var(--stone-900);
  margin: 10px 0;
}
h2 {
  color: var(--brown-800);
  margin: 10px 0px 20px;
}
h3 {
  color: var(--rose-800);
  margin-bottom: 18px;
}

a {
  text-decoration: none;
  font-weight: bold;
}

.container {
  background-color: var(--white);
  max-width: 740px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: center;
  gap: 20px;
  margin: 120px auto 0;
  padding: 44px;
  border-radius: 20px;
  color: var(--stone-600);
}

.main-img {
  width: 100%;
  border-radius: 10px;
}

.description {
  font-family: Outfit;
  font-size: 16px;
  letter-spacing: 0.5px;
}

.preparation {
  background: var(--rose-50);
  width: 100%;

  padding: 32px;
  border-radius: 10px;
}
.preparation li {
  margin-top: 14px;
}

ul,
ol {
  list-style-position: outside;
  margin-left: 20px;
}
li {
  padding-left: 10px;
  margin-bottom: 10px;
}

.ingredients,
.instructions,
.nutrition {
  width: 100%;
  border-bottom: 2px solid rgb(242, 240, 240);
  padding-bottom: 20px;
  font-family: Outfit;
  font-size: 16px;
}

span {
  font-weight: 600;
}

li::marker {
  color: brown;
}
.ingredients {
  font-family: Outfit;
}

.instructions {
  list-style: var(--rose-800);
}

.nutrition {
  border: none;
}

table {
  width: 100%;
}

td {
  font-weight: bold;
  border-bottom: 2px solid var(--stone-150);
  padding: 10px;
}

td:last-child {
  color: var(--rose-800);
}

tr:last-child td {
  border: none;
}

/* ******************** FOOTER ******************* */

.attribution {
  font-size: 16px;
  text-align: center;

  padding: 30px;
}
.attribution a {
  color: hsl(228, 45%, 44%);
}

@media (max-width: 375px) {
  .container {
    max-width: 375px;
    padding: 0px;
    margin: 0 auto;
  }

  h1 {
    font-size: 32px;
  }
  .ingredients,
  .instructions,
  .nutrition,
  .preparation,
  .description {
    width: 80%;
    margin: 0 32px;
    padding: 0;
  }

  p.description {
    margin: 0;
    width: 100%;
  }
}
