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

/* Style for horizontal rule */
hr {
  border: 0;
  border-top: 1px solid #d3d3d3;
  height: 1px;
}

/*color and font variables */
:root {
  --color-white: hsl(0, 0%, 100%);

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

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

  --color-rose-800: hsl(332, 51%, 32%);
  --color-rose-50: hsl(330, 100%, 98%);
  --font-young-serif: "Young Serif", serif;
  --font-outfit: "Outfit", sans-serif;
}

/* Style for the body */
body {
  background-color: var(--color-stone-100);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

/* Style for the recipe article */
article.recipe-article {
  width: 100%;
  max-width: 800px;
  background-color: var(--color-white);
  font-family: var(--font-outfit);
  color: var(--color-stone-600);
}

/* Style for the image inside the article */
.recipe-article img {
  width: 100%;
}

/* Wrapper for content inside the article */
.content-wrapper {
  margin-top: 30px;
  padding: 0 40px 40px 40px;
}

/* Media query for larger screens (min-width: 800px) */
@media (min-width: 800px) {
  body {
    padding: 40px;
  }

  .recipe-article {
    border-radius: 20px;
  }

  /* Style for the image wrapper */
  .image-wrapper {
    padding: 40px 40px 0 40px;
    border-radius: 10px;
  }

  .image-wrapper img {
    border-radius: inherit;
  }

  .attribution {
    font-size: 1.1rem;
  }
}

/* Style for the description section */
.description {
  margin-bottom: 40px;
}

.description h1 {
  width: 100%;
  font-family: var(--font-young-serif);
  font-weight: 500;
  font-size: clamp(2rem, 2vw + 1rem, 2.25rem);
  line-height: 1;
  color: var(--color-stone-900);
  margin-bottom: 30px;
}

.description p {
  line-height: 1.5;
}

/* Style for the preparation section */
.preparation-section {
  background-color: var(--color-rose-50);
  padding: 20px;
  margin-bottom: 30px;
  border-radius: 10px;
}

.preparation-section h2 {
  font-size: 1.2rem;
  color: var(--color-rose-800);
  margin-bottom: 10px;
}

.preparation-section ul {
  padding: 0 25px 0 25px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.preparation-section ul li::marker {
  color: var(--color-rose-800);
  font-size: 12px;
}

.preparation-section ul li {
  padding-left: 10px;
  line-height: 1.5;
}

/* Style for the ingredients section */
.ingredients-section {
  margin-bottom: 30px;
}

.ingredients-section h2 {
  color: var(--color-brown-800);
  font-family: var(--font-young-serif);
  font-weight: 500;
  font-size: 1.6rem;
  margin-bottom: 20px;
}

.ingredients-section ul {
  padding: 0 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  line-height: 1.5;
}

.ingredients-section ul li {
  padding-left: 15px;
}

.ingredients-section ul li::marker {
  padding: 0 20px 0 20px;
  color: var(--color-brown-800);
  font-size: 12px;
}

/* Style for the instructions section */
.instructions-section {
  margin-bottom: 30px;
}

.instructions-section h2 {
  font-size: 1.6rem;
  font-family: var(--font-young-serif);
  color: var(--color-brown-800);
  font-weight: 500;
  margin: 20px 0;
}

.instructions-section ol {
  display: flex;
  flex-direction: column;
  gap: 10px;
  line-height: 1.5;
  padding: 0 0 0 20px;
}

.instructions-section ol li {
  padding-left: 15px;
}

.instructions-section ol li::marker {
  font-size: 0.9rem;
  font-family: "Arial", sans-serif;
  font-weight: bold;
  color: var(--color-brown-800);
}

/* Style for the nutrition section */
.nutrition-section {
  margin-top: 30px;
}

.nutrition-section h2 {
  margin-bottom: 30px;
  font-weight: 500;
  font-family: var(--font-young-serif);
  color: var(--color-brown-800);
  font-size: 1.6rem;
}

.nutrition-section p {
  line-height: 1.5;
  margin-bottom: 20px;
}

/* Style for the table */
table {
  width: 100%;
  border-collapse: collapse;
  font-family: "Outfit", sans-serif;
}

td {
  padding: 15px 0 15px 30px;
  border-bottom: 1px solid #e0e0e0;
  font-weight: 500;
}

td strong {
  color: var(--color-brown-800);
}

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

.attribution {
  text-align: center;
  font-size: 1rem;
  color: var(--color-stone-600);
  margin-top: 50px;
  padding: 20px 0;
}
