*{
    padding: 0;
    margin: 0;
    overflow-x: hidden;
}

html{
    font-size: 16px;
}

.attribution { 
    font-size: 11px; text-align: center; 
}

.attribution a { 
    color: hsl(228, 45%, 44%); 
}

body{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: "Outfit", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    background-color: hsl(330, 100%, 98%);
}

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


ul{
    list-style-position: inside;
    padding-left: 1.2rem;    
}

li{
    margin-bottom: 0.8rem;
    color: hsl(30, 10%, 34%);
    line-height: 1.5rem;
}

p{
    color: hsl(30, 10%, 34%);
    line-height: 1.5rem;
}

span{
    font-weight: 700;
}

main{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    background-color: hsl(0, 0%, 100%);
}


.instructions ol {
  counter-reset: step-counter;
}

.instructions ol li {
  counter-increment: step-counter;
  margin-bottom: 12px;
  position: relative;
  padding-left: 1.5rem; 
}

.instructions ol li::before {
  content: counter(step-counter) ".";
  position: absolute;
  left: 0;
  font-weight: bold;
  color: hsl(30, 10%, 34%);
}


.recipe-image{

}

.recipe-image img{
    width: 100%;
}

.intro, .preparation, .ingredients, .instructions, .nutrition{
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 83%;
}

.ingredients > h2, .instructions > h2, .nutrition > h2{
    font-size: 2rem;
    font-weight: 400;
    color: hsl(14, 45%, 36%);
}

.intro h1{
    font-size: 2.3rem;
    font-weight: 400;
}

.preparation{
    padding: 1rem;
    display: flex;
    background-color: hsl(330, 100%, 98%);
    border-radius: 0.5rem;
}

.preparation div{
    align-self: center;
    width: 85%;
}

.preparation h3{
    font-size: 1.5rem;
    font-weight: 600;
    color: hsl(332, 51%, 32%);
}

.nutrition table{
    border-collapse: separate;
    border-spacing: 0 10px;
}

.nutrition table tr{
    margin-bottom: 20rem;
}

.nutrition table tr td{
    text-align: center;
    vertical-align: bottom;
    padding: 0.5rem 0;
    border-bottom: 1px solid hsl(30, 10%, 34%);
}

tr .td-left{
    font-weight: 400;
    color: hsl(30, 10%, 34%);
}

tr .td-right{
    font-weight: 600;
    color: hsl(14, 45%, 36%);
}

@media screen and (min-width: 768px) {
    body{
        padding: 4rem 0;
    }
    
    main{
        width: 50%;
        height: 50%;
        border-radius: 1rem;
    }

    .recipe-image, .intro, .preparation, .ingredients, .instructions, .nutrition{
        width: 95%;
    }

    .recipe-image{
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .recipe-image img{
        border-radius: 1rem;
    }

}
