/* Outfit Font - Local */
@font-face {
  font-family: "Outfit";
  src: url("./assets/fonts/outfit/static/Outfit-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Outfit";
  src: url("./assets/fonts/outfit/static/Outfit-SemiBold.ttf")
    format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Outfit";
  src: url("./assets/fonts/outfit/static/Outfit-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Young Serif Font - Local */
@font-face {
  font-family: "Young Serif";
  src: url("./assets/fonts/young-serif/YoungSerif-Regular.ttf")
    format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

*,
::after,
::before {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  background-color: hsl(30, 54%, 90%);
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
}
@media screen and (max-width: 800px) {
  .container {
    width: 100%;
  }
}

@media screen and (min-width: 800px) {
  .container {
    width: 800px;
  }
}
.container {
  min-height: 1200px;
  border-radius: 1em;
  background-color: hsl(0, 0%, 100%);
  padding: 2em;
}

.recipe-image-div {
  width: 100%;
  border-radius: 8px;
}

.recipe-image {
  width: 100%;
  border-radius: 8px;
}

.title {
  font-family: "Young Serif";
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2em;
  margin-top: 1em;
  margin-bottom: 1em;
}

.abstract {
  font-family: "Outfit";
  color: hsl(30, 10%, 34%);
}

.time-section {
  background-color: hsl(330, 100%, 98%);
  margin-top: 1em;
  padding: 1em;
  font-family: "Outfit";
}

.time-title {
  font-size: 1.2em;
  font-weight: 600;
  color: hsl(332, 51%, 32%);
}

.time-section ul {
  padding-inline-start: 0;
  list-style: none;
}

/* 粉色区域的列表原点 */
.time-section li {
  font-size: 1em;
  position: relative;
  padding-left: 2.5em;
  padding-top: 0.6em;
}

.time-section li::before {
  content: "•"; /* 自定义标记 */
  position: absolute;
  font-size: 1em;
  left: 1em;
  color: hsl(332, 51%, 32%);
  /* 调整标记位置 */
}

.sub-title {
  font-size: 1.2em;
  font-weight: 400;
  font-family: "Young Serif";
  color: hsl(332, 51%, 32%);
}

.ingredients-section {
  margin-top: 1em;
  font-family: "Outfit";
}

.ingredients-section ul {
  padding-inline-start: 0;
  list-style: none;
}

/* 粉色区域的列表原点 */
.ingredients-section li {
  font-size: 1em;
  position: relative;
  padding-left: 2em;
  padding-top: 0.6em;
}

.ingredients-section li::before {
  content: "•"; /* 自定义标记 */
  position: absolute;
  font-size: 1em;
  left: 0;
  color: hsl(332, 51%, 32%);
  /* 调整标记位置 */
}

hr {
  color: hsl(30, 18%, 87%);
  border: 1px solid;
  margin-bottom: 2em;
  position: relative;
  top: 1em;
}

.instructions-section ol {
  padding-inline-start: 1em;
}

.instructions-section li {
  font-size: 1em;
  position: relative;
  padding-left: 2em;
  padding-top: 0.6em;
}

.instructions-section li::marker {
  font-size: 1em;
  color: hsl(332, 51%, 32%);
  font-family: "Outfit";
  font-weight: 600;
}

.nutrition-section {
  margin-top: 1em;
}

.nutrition-section .content {
  margin-top: 1em;
  font-size: 0.9em;
  margin-bottom: 1em;
}

.nutrition-section table {
  width: 90%; /* 减小宽度 */
  margin-left: auto; /* 自动左边距 */
  margin-right: auto; /* 自动右边距 */
  border-collapse: collapse;
}
.nutrition-section table td {
  width: 50%;
  padding: 0.75em 0;
  font-size: 0.9em;
}

.nutrition-section table tr:not(:last-child) {
  border-bottom: 1px solid hsl(30, 18%, 87%);
  padding-bottom: 0.5em;
}

.nutrition-section table .table-value {
  color: hsl(332, 51%, 32%);
  font-weight: 600;
}
