@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&family=Young+Serif&display=swap");

:root {
  --white: hsl(0, 0%, 100%);
  --lighter-stone: hsl(30, 54%, 90%);
  --light-stone: hsl(30, 18%, 87%);
  --stone: hsl(30, 10%, 34%);
  --dark-stone: hsl(24, 5%, 18%);
  --brown: hsl(14, 45%, 36%);
  --rose: hsl(332, 51%, 32%);
  --light-rose: hsl(330, 100%, 98%);
}

body {
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--stone);
  background-color: var(--lighter-stone);
}

main {
  font-family: "Outfit", sans-serif;
  line-height: 1.5;
}

article {
  background-color: var(--white);
}

.header-body {
  margin: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.title {
  font-family: "Young Serif", serif;
  font-size: 2rem;
  color: var(--dark-stone);
  line-height: 1.2;
}

img {
  width: 100%;
}

.preparation-time {
  background-color: var(--light-rose);
  margin: 0 2rem;
  padding: 2rem;
  border-radius: 10px;
}

.preparation-time h3 {
  color: var(--rose);
  font-weight: 600;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

strong {
  font-weight: 700 !important;
}

ul,
ol {
  list-style-position: outside;
  padding-left: 1.5rem !important;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.preparation-time li::marker {
  color: var(--rose);
}

li::marker {
  color: var(--brown);
  font-weight: 700;
}

li {
  padding-left: 1rem !important;
}

.ingredients-section {
  margin: 2rem;
}

h2 {
  font-family: "Young Serif", serif !important;
  color: var(--brown);
  font-size: 1.75rem !important;
  margin-bottom: 1rem !important;
}

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

hr {
  margin: 0 2rem;
  border-top: 1px solid var(--light-stone);
}

table {
  width: 100%;
}

th {
  text-align: left;
  border-bottom: 1px solid var(--light-stone) !important;
}

.th-title {
  padding: 1rem 0 1rem 1.5rem !important;
  width: 9rem;
}

.th-value {
  font-weight: 700;
  color: var(--brown);
}

/* Tablet */
@media (min-width: 768px) {
  main {
    width: 100vw;
    display: flex;
    justify-content: center;
    padding: 3rem;
  }
  article {
    width: 45rem;
    border-radius: 15px;
    padding: 2rem;
  }

  .header-body {
    align-items: start;
  }

  figure {
    padding: 2rem 2rem 0 2rem !important;
  }

  img {
    border-radius: 10px;
  }

  .title {
    font-size: 2.5rem;
  }

  th {
    width: 50%;
  }
}
