:root {
  --white: hsl(0, 0%, 100%);
  --Stone100: hsl(30, 54%, 90%);
  --Stone150: hsl(30, 18%, 87%);
  --Stone600: hsl(30, 10%, 34%);
  --Stone900: hsl(24, 5%, 18%);
  --Brown800: hsl(14, 45%, 36%);
  --Rose800: hsl(332, 51%, 32%);
  --Rose50: hsl(330, 100%, 98%);
}

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

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

body {
  font-family: "Outfit", sans-serif;
  background-color: var(--Stone100);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1rem;
}

.main-wrapper {
  width: 100%;
  max-width: 740px;
}

.container {
  background-color: var(--white);
  border-radius: 1rem;
  padding: 2rem;
  width: 100%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.image {
  width: 100%;
  aspect-ratio: 16/9;
  background-image: url(assets/images/image-omelette.jpeg);
  background-size: cover;
  background-position: center;
  border-radius: 0.5rem;
}

.content {
  margin-top: 1.5rem;
}

#omlette {
  font-family: "Young-Serif";
  font-size: 2rem;
  font-weight: 500;
  color: var(--Stone900);
}

.content p {
  margin-top: 1rem;
  color: var(--Stone600);
  line-height: 1.6;
  font-size: 1rem;
}

.preparation {
  margin-top: 2rem;
  background-color: var(--Rose50);
  border-radius: 0.5rem;
  padding: 1.5rem;
}

.preparation h2 {
  font-size: 1.2rem;
  color: var(--Rose800);
  font-weight: 600;
}

.preparation ul {
  margin-top: 1rem;
  margin-left: 1.8rem;
  line-height: 2rem;
  color: var(--Stone600);
  font-size: 1rem;
}

.preparation li {
  padding-inline-start: 1.5rem;
}

.ingredients,
.instructions,
.nutrition {
  margin-top: 2rem;
}

.ingredients h2,
.instructions h2,
.nutrition h2 {
  font-family: "Young-Serif";
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--Brown800);
}

.ingredients ul,
.instructions ol {
  margin-top: 1rem;
  margin-left: 1.8rem;
  font-size: 1rem;
  line-height: 1.8;
}

.ingredients li,
.instructions li {
  color: var(--Stone600);
  padding-inline-start: 1.5rem;
}

.ingredients li::marker,
.instructions li::marker {
  color: var(--Brown800);
  font-weight: bold;
}

.instructions ol {
  list-style-type: decimal;
}

.instructions li {
  margin-bottom: 1rem;
}

/* ===== HR / DIVIDER ===== */
.divider {
  border: none;
  height: 1px;
  background-color: var(--Stone150);
  margin: 2rem 0;
}

/* ===== NUTRITION TABLE ===== */
.nutrition p {
  margin-top: 1rem;
  color: var(--Stone600);
}

table {
  width: 100%;
  margin-top: 1.5rem;
  border-collapse: collapse;
}

table tr {
  border-bottom: 1px solid var(--Stone150);
}

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

table td {
  padding: 1rem;
  font-size: 1rem;
  color: var(--Stone600);
}

table td:last-child {
  color: var(--Brown800);
  font-weight: 700;
}

footer.attribution {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--Stone600);
  padding: 1rem;
}

.attribution p {
  color: var(--Rose800);
  font-size: 0.9rem;
}

.attribution a {
  color: hsl(228, 45%, 44%);
  text-decoration: none;
}

@media (max-width: 768px) {
  body {
    padding: 2rem 1.2rem;
  }

  .container {
    padding: 1.5rem;
  }

  #omlette {
    font-size: 1.5rem;
  }

  .ingredients h2,
  .instructions h2,
  .nutrition h2 {
    font-size: 1.5rem;
  }

  .preparation {
    padding: 1.2rem;
  }
}

@media (max-width: 480px) {
  .container {
    border-radius: 0;
    padding: 1rem;
  }

  .image {
    border-radius: 0;
    aspect-ratio: 1 / 1;
  }

  #omlette {
    font-size: 1.3rem;
  }

  .ingredients ul,
  .instructions ol {
    font-size: 0.95rem;
  }

  .preparation h2 {
    font-size: 1.1rem;
  }

  .preparation ul {
    font-size: 0.95rem;
  }

  .attribution {
    font-size: 0.7rem;
    padding-bottom: 2rem;
  }

  table td {
    font-size: 0.9rem;
  }
}
