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

.young-serif-regular {
    font-family: "Young Serif", serif;
    font-weight: 400;
    font-style: normal;
  }

.outfit-regular {
    font-family: "Outfit", sans-serif;
    font-weight: 400;
    font-style: normal;
  }

.outfit-medium {
    font-family: "Outfit", sans-serif;
    font-weight: 600;
    font-style: normal;
  }

.outfit-bold {
    font-family: "Outfit", sans-serif;
    font-weight: 700;
    font-style: normal;
  }

/*Colors*/
: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%);
}

/*main css*/

body {
    background-color: var(--white);
    background-color: var(--stone-100);
    margin: 0;
    padding: 0;
}

/*card Section*/

header {
    background-color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    max-width: 800px;
    margin: 20px auto;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    height: auto;
}

header * {

    box-sizing: border-box;
    max-width: 100%;
}

/*intro section*/

.intro-section img {
    width: 100%;
    height: auto;
    border-radius: 8px;   
}

/*time section*/

.time-section {
  background-color: var(--rose-50);
  width: 100%;
  padding-left: 20px;
  border-radius: 8px;
}

.time-section ul {
  padding-inline-start: 20px;
}

.time-section ul li {
  padding-left: 20px;
}

.time-section ul li::marker {
  color: var(--brown-800);
  font-size: smaller;
}

/*ingredients section*/

.ingredients-section {
    width: 100%;
    padding-left: 20px;
    border-radius: 8px;
}

.ingredients-section ul {
    padding-inline-start: 20px;
}

.ingredients-section ul li {
    padding-left: 20px;
}

.ingredients-section ul li::marker {
    color: var(--brown-800);
    font-size: smaller;
}

/*instructions section*/

.instructions-section {
    width: 100%;
    padding-left: 20px;
    border-radius: 8px;
}

.instructions-section ol {
    padding-inline-start: 20px;
}

.instructions-section ol li {
    padding-left: 20px;
}

.instructions-section ol li::marker {
    color: var(--brown-800);
    font-weight: bold;
}

/*nutrition section*/

.nutrition-table {
  width: 100%;
  padding-left: 20px;
}

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

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

.nutrition-table th {
  width: 50%;
  text-align: left;
  padding: 12px 15px;
  font-weight: normal;
}

.nutrition-table td {
  padding: 12px 15px;
  text-align: left;
  color: var(--brown-800);
  font-weight: bold;
}


/* Responsive Design */

/* Mobile Styles */
@media (max-width: 375px) {
  body {
    padding: 10px;
  }

  header {
    padding: 15px;
    margin: 10px auto;
  }

  .intro-section img {
    border-radius: 5px;
  }

  .time-section,
  .ingredients-section,
  .instructions-section,
  .nutrition-table {
    padding-left: 10px;
  }

  .nutrition-table th,
  .nutrition-table td {
    padding: 8px 10px;
  }
}

/* Desktop Styles */
@media (min-width: 1440px) {
  header {
    max-width: 1200px;
    padding: 40px;
    margin: 30px auto;
  }

  .intro-section img {
    border-radius: 12px;
  }

  .time-section,
  .ingredients-section,
  .instructions-section,
  .nutrition-table {
    padding-left: 30px;
  }

  .nutrition-table th,
  .nutrition-table td {
    padding: 15px 20px;
  }
}