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

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

body {
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  background-color: var(--rose-50);
}

main {
  max-width: 700px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-radius: 16px;
  background-color: var(--white);
  padding: 24px 24px;
}

h1,
h2 {
  font-family: "Young Serif", serif;
  font-weight: 400;
  line-height: 150%;
}

body,
p {
  font-family: "Outfit", sans-serif;
  font-weight: 400;
  line-height: 150%;
}

img {
  width: 100%;
  border-radius: 16px;
}

.recipe-introduction {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.recipe-name {
  color: var(--stone-900);
  font-size: 38px;
}

.recipe-description {
  color: var(--stone-600);
  font-size: 16px;
}

.recipe-preparation-time {
  background-color: var(--rose-50);
  padding: 20px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.recipe-preparation-time > h2 {
  font-size: 22px;
  font-weight: 600;
  color: var(--rose-800);
  font-family: "Outfit", sans-serif;
}

.recipe-preparation-time ul li strong {
  color: var(--stone-900);
}

.recipe-preparation-time ul li {
  color: var(--stone-600);
  font-weight: 600;
  padding-left: 16px;
}

.recipe-preparation-time ul {
  padding-left: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.recipe-ingredients > h2 {
  font-size: 30px;
  color: var(--brown-800);
}

.recipe-ingredients {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.recipe-ingredients > ul {
  padding-left: 16px;
  font-size: 16px;
  color: var(--stone-600);
  font-weight: 400;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.recipe-ingredients > ul > li {
  padding-left: 16px;
}

.recipe-instructions {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.recipe-instructions > h2 {
  font-size: 30px;
  color: var(--brown-800);
}

.recipe-instructions > ol {
  padding-left: 16px;
  display: flex;
  flex-direction: column;
  color: var(--stone-900);
}

.recipe-instructions > ol > li::marker {
  color: var(--brown-800);
  font-weight: 700;
}

.recipe-instructions > ol > li {
  padding-left: 16px;
}

.nutrition-table {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.nutrition-table > h2 {
  font-size: 30px;
  color: var(--brown-800);
}

.nutrition-table > p {
  font-size: 16px;
  font-weight: 400;
  color: var(--stone-900);
}

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

.nutrition-table table tbody tr:nth-child(2),
.nutrition-table table tbody tr:nth-child(3),
.nutrition-table table tbody tr:nth-child(4) {
  border-top: 1px solid var(--stone-150);
}

.nutrition-table table tbody tr td {
  padding: 24px;
}

.nutrition-table table tbody tr td:nth-child(even) {
  font-weight: 700;
  color: var(--brown-800);
}


section:nth-child(3), section:nth-child(4) {
    border-bottom: 1px solid var(--stone-150);
    padding: 16px;
}

@media (max-width: 375px){
    main{
        padding: 0px;
    }
    main section:not(:nth-child(1)){
        padding: 20px 20px;
    }

    img{
        border-radius: 0px;
    }
    
}