@font-face {
  font-family: "young-serif";
  src: url("../assets/fonts/young-serif/YoungSerif-Regular.ttf")
    format("truetype");
  font-weight: 200;
  font-style: normal;
}

@font-face {
  font-family: "outfit";
  src: url("../assets/fonts/outfit/Outfit-VariableFont_wght.ttf")
    format("truetype");
  font-weight: 400;
  font-style: normal;
}

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

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

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

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

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

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

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

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

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

:root {
  --white: hsl(0, 0%, 100%);
  --stone-100: hsl(30, 54%, 90%);
  --stone-150: hsl(30, 18%, 87%);
  --stone-600: hsl(30, 10%, 34%);
  --stone-900: hsl(24, 5%, 18%);
  --brown-800: hsl(14, 45%, 36%);
  --rose-800: hsl(332, 51%, 32%);
  --rose-50: hsl(330, 100%, 98%);

  --bullet-size: 5px;
}

body {
  font-family: "outfit", sans-serif;
  background-color: var(--stone-100);
}

article {
  width: 100%;
  max-width: 380px;
  box-sizing: border-box;
  display: grid;
  padding-bottom: 16px;
  margin: 0 auto;
  border-radius: 16px;
  background-color: var(--white);
}

article p,
article li {
  color: var(--stone-600);
}

header {
  display: grid;
  gap: 24px;
}

header figure {
  margin: 0;
}

header img {
  width: 100%;
}

header h1 {
  font-family: "young-serif", sans-serif;
  font-weight: 200;
  font-size: 34px;
  line-height: 40px;
}

header p {
  font-weight: 200;
}

header h1,
header p,
section {
  margin: 0 24px;
}

h2 {
  font-family: "young-serif";
  color: var(--brown-800);
  font-size: 26px;
  margin-top: 0;
}

.preparation-time {
  background-color: var(--rose-50);
  padding: 24px;
  margin-top: 24px;
  border-radius: 16px;
  border-bottom: none !important;
}

#prep-title {
  color: var(--rose-800);
  font-weight: 500;
  margin-top: 0;
  font-size: 20px;
}

.preparation-time ul,
.ingredients ul {
  position: relative;
  list-style: none;
  padding-left: 0;
  display: grid;
  gap: 12px;
}

.preparation-time li,
.ingredients li {
  font-weight: 300;
  color: var(--stone-600);
  letter-spacing: 1px;
  line-height: 22px;
  display: grid;
  grid-template-columns: var(--bullet-size) auto;
  column-gap: 22px;
  align-items: center;
}

.preparation-time li::before,
.ingredients li::before {
  content: "";
  width: var(--bullet-size);
  height: var(--bullet-size);
  border-radius: 50%;
  background-color: var(--stone-900);
}

.preparation-time strong {
  color: var(--stone-600);
  font-weight: 600;
}

section {
  padding-top: 24px;
  padding-bottom: 24px;
}

section:not(:last-child) {
  border-bottom: 1px solid var(--stone-150);
}

.instructions ol {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step;
}

.instructions li {
  counter-increment: step;
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  line-height: 24px;
  font-weight: 300;
}

.instructions li::before {
  content: counter(step) ".";
  color: var(--brown-800);
  font-weight: 700;
}

.instructions strong {
  font-weight: 600;
}

.nutrition p {
  font-weight: 300;
}

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

.nutrition tr:not(:last-child) {
  border-bottom: 1px solid var(--stone-150);
}

.nutrition td {
  padding: 16px;
}

.nutrition tr td:first-child {
  font-weight: 300;
  color: var(--stone-600);
}

.nutrition tr td:last-child {
  color: var(--brown-800);
  font-weight: 600;
}

@media (min-width: 375px) {
  article {
    max-width: 700px;
  }

  figure {
    padding: 32px;
    padding-bottom: 0;
  }

  figure img {
    border-radius: 16px;
  }

  header h1,
  header p,
  section {
    margin: 0 32px;
  }
}
