@import url("https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Outfit:wght@100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Young+Serif&display=swap");

:root {
  /* font-size */
  --header-xlg: 2.5rem;
  --header-lg: 1.75rem;
  --text-md: 1.25rem;
  --text-sm: 1rem;

  /* Line heights */
  --lh-100: 100%;
  --lh-150: 150%;

  /* Font weights */
  --header-weight: 500;

  /* Font Family */
  --header-font: "Young Serif", "sans serif";
  --reg-font: "Outfit", "Arial";

  /* Spacing */
  --sp-1600: 8rem;
  --sp-600: clamp(0rem, 5vw, 3rem);
  --sp-500: 2.5rem;
  --sp-400: 2rem;
  --sp-300: 1.5rem;
  --sp-200: 1rem;
  --sp-150: 0.75rem;
  --sp-100: 0.5rem;

  /* Colors */
  --rose800: #7a284e;
  --rose50: #fff7fb;
  --stone900: #312e2c;
  --stone600: #5f564d;
  --stone150: #e3ddd7;
  --stone100: #f3e5d7;
  --brown800: #854632;

  /* Recipe card vars */
  --card-width: 46rem;
}

/* Reset styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--reg-font);
}

/* Setting fonts */
.sub-heading {
  font-family: var(--header-font);
  font-size: 1.75rem;
  font-weight: var(--header-weight);
  color: var(--brown800);
}

.preperation-heading {
  font-size: 1.25rem;
  color: var(--rose800);
}

.page-header {
  font-family: var(--header-font);
  font-weight: var(--header-weight);
  font-size: var(--header-xlg);
}

li,
p {
  font-size: var(--text-sm);
}

strong,
li,
p {
  color: var(--stone600);
  line-height: 150%;
}

body {
  padding: var(--sp-1600) var(--sp-600);
  display: flex;
  justify-content: center;
  background-color: var(--stone100);
}

.recipe-card {
  width: var(--card-width);
  border-radius: var(--sp-300);
  background-color: #fff;
  padding: var(--sp-500);
}

.food-image {
  width: 100%;
  height: auto;
  margin-bottom: var(--sp-500);
  border-radius: var(--sp-150);
}

.header-container {
  display: flex;
  flex-direction: column;
  gap: var(--sp-300);
  margin-bottom: var(--sp-400);
}

.main-content {
  display: flex;
  flex-direction: column;
  gap: var(--sp-400);
}

.preparation,
.ingredients,
.instructions,
.nutrition {
  display: flex;
  flex-direction: column;
}

.preparation {
  padding: var(--sp-300);
  background-color: var(--rose50);
  gap: var(--sp-200);
  border-radius: var(--sp-150);
}

.ingredients,
.instructions,
.nutrition {
  gap: var(--sp-300);
}

ul,
ol {
  display: flex;
  flex-direction: column;
  gap: var(--sp-100);
  margin-left: var(--sp-200);
}

ol {
  margin-left: var(--sp-300);
}

ul li::marker {
  color: var(--brown800);
  content: "•\a0\a0";
  font-weight: 900;
}

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

/* Adding space between bullet point and text */
li p {
  padding-left: var(--sp-200);
}

/* TABLE SECTION */
table {
  margin-left: var(--sp-200);
}

/* Adding borders between each row */
td {
  color: var(--stone600);
  border-bottom: 1px solid var(--stone150);
  padding: var(--sp-200) 0;
}

/* Removing border on the last row */
tr:last-child td {
  border-bottom: none;
}

tr:first-child td {
  padding-top: 0;
}

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

hr {
  border: 0;
  border-top: 1px solid var(--stone150);
  height: 0;
}

@media (max-width: 600px) {
  body {
    padding: 0;
  }

  .recipe-card {
    border-radius: 0;
  }
}
