:root {
  --color-white: hsl(0, 0%, 100%);
  --color-stone-100: hsl(30, 54%, 90%);
  --color-stone-150: hsl(30, 18%, 87%);
  --color-stone-600: hsl(30, 10%, 34%);
  --color-stone-900: hsl(24, 5%, 18%);
  --color-brown-800: hsl(14, 45%, 36%);
  --color-rose-800: hsl(332, 51%, 32%);
  --color-rose-50: hsl(330, 100%, 98%);
  --font-size-paragraph: 14px;
  --spacing-650: 52px;
  --spacing-600: 48px;
  --spacing-550: 44px;
  --spacing-500: 40px;
  --spacing-400: 32px;
  --spacing-350: 28px;
  --spacing-300: 24px;
  --spacing-200: 16px;
  --spacing-150: 12px;
  --spacing-100: 8px;
  --spacing-50: 4px;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
@font-face {
  font-family: "Young Serif";
  src: url(assets/fonts/young-serif/YoungSerif-Regular.ttf);
  font-weight: 400;
}
@font-face {
  font-family: "Outfit";
  src: url(assets/fonts/outfit/Outfit-VariableFont_wght.ttf);
  font-weight: 400;
}
@font-face {
  font-family: "Outfit";
  src: url(assets/fonts/outfit/Outfit-VariableFont_wght.ttf);
  font-weight: 600;
}
@font-face {
  font-family: "Outfit";
  src: url(assets/fonts/outfit/Outfit-VariableFont_wght.ttf);
  font-weight: 700;
}


.text-preset-1-title {
  font-family: "Young Serif";
  font-weight: 400;
  font-size: 36px;
  line-height: 100%;
  letter-spacing: 0px;
}
.text-preset-1-sub-title {
  font-family: "Young Serif";
  font-weight: 400;
  font-size: 28px;
  line-height: 150%;
  letter-spacing: 0px;
}
.text-preset-2 {
  font-family: "Outfit";
  font-weight: 700;
  font-size: 28px;
  line-height: 150%;
  letter-spacing: 0px;
}
.text-preset-3 {
  font-family: "Outfit";
  font-weight: 600;
  font-size: 20px;
  line-height: 140%;
  letter-spacing: 0px;
}
.text-preset-4 {
  font-family: "Outfit";
  font-weight: 400;
  font-size: 16px;
  line-height: 140%;
  letter-spacing: 0px;
}

main {
  display: flex;
  flex-direction: column;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
div.wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* gap: var(--spacing-300); */
  padding: 0 var(--spacing-400);
}
section:not(.prep-time){
  padding: var(--spacing-400) 0;
  gap: var(--spacing-200);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.title h1 {
  color: var(--color-stone-900);
}
.title p {
  color: var(--color-stone-600);
}

.prep-time{
  display: flex;
  flex-direction: column;
  background-color: var(--color-rose-50);
  padding: var(--spacing-200);
  border-radius: 12px;
}
.prep-time h2{
  color: var(--color-rose-800);
}
.prep-time ul{
  color: var(--color-stone-600);
  padding: var(--spacing-200) var(--spacing-150);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-100);
  list-style: none;
}
.prep-time ul li{
  display: flex;
  align-items: center;
  gap: var(--spacing-300);
  position: relative;
}
.prep-time ul li::before{
  content: '•'; 
  color: var(--color-rose-800);
  line-height: 1;
  display: inline-block;
  flex-shrink: 0;
  font-size: 20px;
}

.prep-time ul li span{
  color: var(--color-stone-600);
  font-weight: 600;
}

.ingredients{
  border-bottom: 1px solid var(--color-stone-600);
}
.ingredients h2{
  color: var(--color-brown-800);
}
.ingredients ul{
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--spacing-100);
  color: var(--color-stone-600);
  list-style: none;
}
.ingredients ul li{
  display: flex;
  align-items: center;
  gap: var(--spacing-300);
  position: relative;
}
.ingredients ul li::before{
  content: '•'; 
  color: var(--color-brown-800);
  line-height: 1;
  display: inline-block;
  flex-shrink: 0;
  font-size: 20px;
  padding:0 var(--spacing-50);
}
.instructions{
  border-bottom: 1px solid var(--color-stone-600);
}
.instructions h2{
  color: var(--color-brown-800);
}
.instructions ol{
  list-style: none;
  counter-reset: item;
  padding: 0;
  color: var(--color-stone-600);
  padding: 0 var(--spacing-50);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-150);
}
.instructions ol li {
  counter-increment: item;
  /* margin-bottom: var(--spacing-300); */
  position: relative;
  padding-left: 2em; /* jarak antara angka dan teks */
}
.instructions ol li::before{
  content: counter(item) ".";
  position: absolute;
  left: 0;
  color: var(--color-brown-800);
  font-weight: bold;
}
.instructions ol li span{
  font-weight: 600;
}

.nutrition{
  padding: var(--spacing-200);
}
.nutrition h2{
  color: var(--color-brown-800);
}
.nutrition p{
  color: var(--color-stone-600);
  font-size: 17px;
}
.nutrition table{
  border-collapse: collapse;
  width: 100%;
}
.nutrition table tbody{
  color: var(--color-stone-600);
}
.nutrition table tbody tr.notborder td{
  border-bottom: 0px solid var(--color-brown-800);
}
.nutrition table tbody tr td{
  padding: var(--spacing-200) var(--spacing-500);
  border-bottom: 1px solid var(--color-brown-800);
  
}
.nutrition table tbody tr td.brown{
  color: var(--color-brown-800);
  font-weight: 700;
  padding-left: 0;
}

footer{
  padding: var(--spacing-400);
  color: black;
}
.attribution {
  text-align: center;
}
.attribution a {
  color: var(--color-brown-800);
  text-decoration: none;
  transition: color 0.3s ease;
}
.attribution a:hover{
  color: var(--color-rose-800);  
}
@media (min-width: 765px) {
  body{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    background-color: var(--color-stone-150);
  }
  main{
    max-width: 736px;
    background-color: var(--color-white);
    padding: var(--spacing-500);
    margin: 4rem 0;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }
  img{
    border-radius: 12px;
  }
  div.wrapper{
    padding: 0 0;
  }
  .text-preset-4 {
    font-family: "Outfit";
    font-weight: 400;
    font-size: 16px;
    line-height: 140%;
    letter-spacing: 0px;
  }
}