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

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

body {
  font-family: "Young Serif", serif;
  background-color: hsl(30, 54%, 90%);
  font-size: 16px;
}

main {
  width: 100%;
  display: flex;
  justify-content: center;
}

.recipe-card {
  width: 100%;
  max-width: 550px;
  background: hsl(0, 0%, 100%);
}

.recipe-card .bold {
  color: hsl(30, 10%, 34%);
  font-weight: bold;
}

.recipe-card figure {
  width: 100%;
}

.recipe-card figure img {
  width: 100%;
}

.recipe-card > section {
  padding: 0 2em 2em;
}

.recipe-card .header {
  padding-top: 2em;
  display: flex;
  flex-direction: column;
  gap: 0.8em;
}

.recipe-card .header .title {
  color: hsl(24, 5%, 18%);
  font-weight: 500;
  font-size: 2em;
}

.recipe-card .header .description,
.recipe-card p,
.recipe-card ul li,
.recipe-card ol li,
.recipe-card table {
  font-family: "Outfit", sans-serif;
  color: hsl(30, 10%, 34%);
  font-size: 1em;
  line-height: 1.5em;
}

.recipe-card .preparation-time {
  display: flex;
  flex-direction: column;
  gap: 0.8em;
  background-color: hsl(330, 100%, 98%);
  width: 85%;
  margin: auto;
  padding: 1em;
  border-radius: 5%;
  font-family: "Outfit", sans-serif;
}

.recipe-card .preparation-time h3 {
  color: hsl(332, 51%, 32%);
}

.recipe-card .preparation-time ul {
  padding-left: 1em;
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}

.recipe-card ul li::marker {
  color: hsl(332, 51%, 32%);
}

.recipe-card .preparation-time ul li {
  list-style-position: outside;
  margin-left: 10px;
  padding-left: 1em;
}

.recipe-card .section-spacing {
  padding: 2em 2em;
}

.recipe-card section h2 {
  color: hsl(14, 45%, 36%);
  font-weight: normal;
  padding-bottom: 1em;
}

.recipe-card .ingredients ul,
.recipe-card .instructions ol {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  padding-left: 2em;
}

.recipe-card .instructions ol {
  padding-left: 1.5em;
  gap: 1em;
}

.recipe-card .instructions ol li {
  padding-left: 1em;
}

.recipe-card .separator {
  width: 85%;
  margin: auto;
  color: hsl(30, 10%, 34%);
}

.recipe-card .nutrition p {
  padding-bottom: 1em;
}

.recipe-card .nutrition table {
  width: 100%;
  border-collapse: collapse;
}

.recipe-card .nutrition table .border-bottom {
  border-bottom: 1px solid;
  border-collapse: collapse;
}

.recipe-card .nutrition table td {
  padding: 0.8em;
}

.recipe-card .brown,
.recipe-card .instructions ol li::marker {
  color: hsl(14, 45%, 36%);
  font-weight: bold;
}

@media (min-width: 600px) {
  main {
    padding: 4em 0;
  }

  .recipe-card {
    padding: 2em;
    border-radius: 1.3em;
  }

  .recipe-card figure img {
    border-radius: 0.7em;
  }

  .recipe-card .header {
    padding: 1em 0 1em;
  }

  .recipe-card .header .title {
    font-size: 1.7em;
  }

  .recipe-card .header .description {
    font-size: 0.9em;
  }

  .recipe-card > section {
    padding: 0;
  }
}
