@import url('https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Outfit:wght@100..900&family=Young+Serif&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Outfit:wght@100..900&family=Young+Serif&display=swap');
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color:  hsl(30, 54%, 90%);
    font-family: 'Outfit'; 
    font-weight: 400;
    display: flex;
    justify-content: center;
}

.recipe-container {
    border-radius: 30px; 
    width: 650px;
    margin: 90px 0 20px 0;
}

.recipe-card {
    background-color: hsl(0, 0%, 100%); 
    padding: 40px 40px;
    border-radius: 20px;
}

img {
    width: 100%; 
    height: auto;
    border-radius: 17px;
}

.top-text {
    margin: 30px 0;
}

.bold {
    font-weight: 700;
    color: hsl(30, 10%, 34%);
}


h1 {
    color:  hsl(24, 5%, 18%);
    font-family: 'Young serif';
    font-size: clamp(37px, 1vw + 1rem, 100px);
    font-weight: 400;
}

p {
    font-size: clamp(16px, 2vw + 1rem, 16px);
}

/*Preparation Section Start*/
.preparation {
    background-color: hsl(330, 100%, 98%);
    padding: 45px 45px 20px 45px;
    border-radius: 13px;
}

.preparation h3 {
    font-weight: 600;
    color:  hsl(332, 51%, 32%);
    position: relative;
    bottom: 20px;
    right: 25px;
}

.preparation ul {
    list-style-position: outside;
}

.preparation li {
    margin-bottom: 15px;
    padding-left: 15px;
}

li, p {
    color: hsl(30, 10%, 34%);
}
/*Preparation Section End*/

/*Ingredient Section Start*/
section > h2 {
    color: hsl(14, 45%, 36%);
    font-family: 'Young serif';
}

.ingredients {
    padding: 20px 0;
    border-bottom: 1px solid hsl(30, 18%, 87%);
}

.ingredients ul {
    list-style-position: outside;
    position: relative;
    left: 20px;
}

.ingredients li {
    margin: 15px 0;
    padding-left: 14px;
}
/*Ingredient Section End*/
 

/*Instructions Section Start*/
.instructions {
    margin-top: 15px;
    font-size: 15px;
    border-bottom: 1px solid hsl(30, 54%, 90%);
    padding-bottom: 15px;
}

.instructions-list-container {
    margin-top: 15px;
    position: relative;
    left: 28px;
}

ol {
    counter-reset: custom-counter;
    list-style: none;
}

ol li {
    counter-increment: custom-counter;
    position: relative;
    margin-bottom: 10px;
}

ol li::before {
    content: counter(custom-counter) ". ";
    font-family: 'Outfit';
    font-weight: 600;
    color: hsl(14, 45%, 36%);
    position: absolute;
    left: -25px;
}
/*Instructions Section End*/

/*Nutrition Section Start*/
.nutrition {
    margin-top: 20px;
}

table {
    width: 100%;
    margin: 15px 0 5px 0;
}

.nutrition .header {
    color:  hsl(30, 4%, 48%);
    font-weight: 400;
}

.nutrition p {
    color:  hsl(30, 4%, 48%);
}

td {
    color: hsl(14, 45%, 36%);
    font-weight: 600;
    border-bottom: 1px solid hsl(30, 54%, 90%);
    padding: 15px;
}


.last-two-td {
    border: none;
}
/*Nutrition Section End*/

footer {
    margin-top: 60px;
}



.attribution {
    font-size: 13px;
    display: flex;
    justify-content: center;
    padding: 20px;
}

.attribution img {
    width: 12px;
    margin-right: 2px;
}

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

.second-footer {
    margin-left: 5px;
}

@media (max-width: 660px) {

    .recipe-container {
        border-radius: 30px; 
        width: 650px;
        margin: 0 0 10px 0;
    }

    .recipe-card {
        background-color: hsl(0, 0%, 100%); 
        padding: 0 0px;
    }

    main {
     padding: 50px;
    }

    .recipe-card img {
        border-radius: 0;
    }

    .instructions-list-container {
        margin-right: 10px;
    }

    .attribution {
        font-size: 13px;
        display: flex;
        flex-direction: column;
        align-items: center;
        position: relative;
        bottom: 40px;
    }
}