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

body {
  background-color: hsl(30, 54%, 90%);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  height: 100vh;
  font-family: "" Outfit ", sans-serif";
  padding: 40px 20px;
  color: hsl(24, 5%, 18%);
}

.main {
  width: 100%;
  max-width: 740px;
  padding: 32px;
  border-radius: 18px;
  background-color: hsl(0, 0%, 100%);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.photo img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 20px;
}

.photo h1 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.intro {
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.time {
  background-color: hsl(330, 100%, 98%);
  padding: 18px 24px;
  border-radius: 12px;
  margin-bottom: 28px;
}

.heading1 {
  color: hsl(332, 51%, 32%);
  font-size: 1.25rem;
  margin-bottom: 12px;
  font-weight: 600;
}

.time ul {
    list-style-type: disc;
  padding: 24px;
}

.time ul li {
  margin-bottom: 8px;
  line-height: 1.5;
}

.ingredients, .instructions, .nutrition {
  margin-bottom: 32px;
}

.heading2, .heading3, .heading4{
  color: hsl(14, 45%, 36%);
  font-weight: 700;
  font-size: 1.75rem;
  margin-bottom: 16px;
}

.ingredients ul, .instructions ol {
  padding-left: 24px;
}

.ingredients ul li, .instructions ol li {
  margin-bottom: 10px;
  line-height: 1.6;
}

.nutrition .intro {
  margin-bottom: 16px;
  font-size: 1rem;
  line-height: 1.5;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}

table tr{
    border-bottom: 1px solid hsl(30, 18%, 87%);
}

table td {
    padding: 12px 0;
}

table td::first-child{
color: hsl(24, 5%, 35%);
  padding-left: 10px;
}

table td:last-child {
  font-weight: bold;
  color: hsl(14, 45%, 36%);
  padding-right: 10px;
}

@media (max-width: 768px) {
  .main {
    padding: 20px;
  }

  .photo h1 {
    font-size: 1.75rem;
  }

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