:root{
    --background-primary: hsl(30, 54%, 90%);
    --background-secondary: hsl(330, 100%, 98%);
    --background-card: hsl(0, 0%, 100%);
    --color-primary: hsl(30, 10%, 34%);
    --title: hsl(24, 5%, 18%);
    --title-primary: hsl(14, 45%, 36%);
    --title-secondary: hsl(332, 51%, 32%);
    --separation: hsl(30, 18%, 87%);
}

*{
    box-sizing: border-box;
    padding: 0px;
    margin: 0px;
}
/* Class generic*/
.tp1{
    font-family: 'Young Serif';
    font-size: 40px;
    line-height: 100%;
    color: var(--title);
    font-weight: 400;
}
.tp2{
    font-family: 'Young Serif';
    font-size: 28px;
    line-height: 100%;
    font-weight: 400;
    color: var(--title-primary);
}
.tp3{
    font-family: 'Outfit';
    font-size: 20px;
    font-weight: 600;
    line-height: 100%;
    color: var(--title-secondary);
}
.tp4{
    font-family: 'Outfit';
    font-size: 16px;
    font-weight: 400;
    line-height: 150%;
    color: var(--color-primary);
}
.tp4b{
    font-weight: 700;
    color: var(--color-primary);
}
hr{
    margin-bottom: 32px;
    border: var(--separation) 1px solid;
}
body{
    display: flex;
    flex-flow: column nowrap;
    align-items: center;
    justify-content: center;
    background-color: var(--background-primary);
}

main{
    background-color: var(--background-card);
    padding: 40px;
    width: 736px;
    border-radius: 24px;
    margin-top: 128px;
    margin-bottom: 128px;
}

header img{
    display: block;
    width: 100%;
    height: 300px;
    border-radius: 12px;
    margin-bottom: 40px;
}
h1{
    margin-bottom: 24px;
}
header p{
    margin-bottom: 32px;
}
#preparation{
    background-color: var(--background-secondary);
    margin-bottom: 32px;
    border-radius: 12px;
    padding: 24px;
}
#preparation h2{
    padding-bottom: 16px;
}
#preparation ul{
    display: flex;
    flex-flow: column nowrap;
    justify-content: space-between;
    height: 88px;
}
#preparation li{
    position: relative;
    list-style: none;
    padding-left: 40px;
}
#preparation li::before{
    content: "";
    position: absolute;
    background-color: var(--title-secondary);
    height: 4px;
    width: 4px;
    z-index: 0;
    left: 8px;
    top:10px;
    border-radius: 50%;
}

#ingredients h2{
    padding-bottom: 24px;

}
#ingredients ul{
    display: flex;
    flex-flow: column nowrap;
    justify-content: space-between;
    height: 152px;
}
#ingredients li{
    list-style: none;
    position:relative;
    padding-left: 40px;
}
#ingredients li::before{
    content:"";
    position: absolute;
    background-color: var(--title-primary);
    height: 4px;
    width: 4px;
    z-index: 0;
    left: 8px;
    top:10px;
    border-radius: 50%;
}
#ingredients{
    margin-bottom: 32px;
}
#instructions{
    margin-bottom: 32px;
}
#instructions h2{
    margin-bottom: 24px;
}
#instructions ol{
    display: flex;
    flex-flow: column nowrap;
    justify-content: space-between;
    height: 280px;
    font-family: 'Outfit';
    list-style: none;
}
#instructions li{
    counter-increment: li;
    position:relative;
    padding-left: 40px;
}
#instructions li::before{
    position: absolute;
    left: 8px;
    content: counter(li)'. ';
    font-weight: bold;
    color: var(--title-primary);
}
#nutrition h2{
    margin-bottom: 24px;
}
#nutrition p{
    margin-bottom: 24px;
}
#nutrition table{
    height: 168px;
}
#nutrition table {
    border-collapse: collapse;
    width: 100%;
  }

  #nutrition tr {
    border-bottom: 1px solid var(--separation);
    padding-bottom: 12px;
    padding-top: 12px;
  }
  #nutrition .nobottom {
    border-bottom: none;
    padding-bottom: 0px;
  }
  #nutrition .notop {
    padding-top: 0px;
  }

  #nutrition th {
    padding-left: 32px;
    text-align: left;
    width: 336px;
  }

  #nutrition td strong{
    text-align: left;
    color: var(--title-primary);
  }

  .attribution {
    height: 30px;
    bottom: 20px; 
    font-size: 11px; 
    text-align: center; 
}

.attribution a { 
    color: var(--title-secondary); 
}