@font-face {
    font-family: 'Outfit';
    src: url(../fonts/outfit/static/Outfit-Regular.ttf) format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Outfit';
    src: url(../fonts/outfit/static/Outfit-SemiBold.ttf) format('truetype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Outfit';
    src: url(../fonts/outfit/static/Outfit-Bold.ttf) format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face { 
    font-family: 'Young Serif'; 
    src: url(../fonts/young-serif/YoungSerif-Regular.ttf) format('truetype'); 
    font-weight: 400; 
    font-style: normal; 
}

body{
    background-color: hsl(30, 54%, 90%);
    min-height: 100vh;
    margin: 0;
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    font-size: clamp(14px, 1.5vw, 16px);
}

h1, h2{
    font-family:'Young Serif', serif;
    font-weight: 400;
}

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

#container{
    padding: 20px;
    width: 720px;
    margin: 0 auto;
    background-color:  hsl(0, 0%, 100%);
    border-radius: 12px;
}

header, main, section, footer {
    padding: 20px;
    margin: 10px;
}

.preparation-time{
    background-color: hsl(330, 100%, 98%);
    border-radius: 10px;
}

.preparation-time h2{
    color: hsl(332, 51%, 32%);
    font-size: 18px;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;

}

.preparation-time ul{
    margin-inline-start: -20px;
    line-height: 2rem;
    color: hsl(24, 5%, 18%);
}

.preparation-time li{
    padding-left: 20px;
    color: hsl(332, 51%, 32%);
}

.preparation-time a{
    text-decoration: none;
    color: hsl(24, 5%, 18%);
}

.preparation-time a:hover{
    text-decoration: none;
    cursor: default;
}

.ingredients{
    border-bottom: solid 1px hsl(24, 5%, 18%);
}

.ingredients h2{
    color: hsl(14, 45%, 36%);
    margin-inline-start: -20px;
}

.ingredients ul{
    margin-inline-start: -35px;
    line-height: 2rem;
    color: hsl(14, 45%, 36%);
}

.ingredients li{
    padding-left: 15px;
} 

.ingredients a{
    text-decoration: none;
    color: hsl(24, 5%, 18%);
}

.ingredients a:hover{
    text-decoration: none;
    cursor: default;
}

.instructions{
    border-bottom: solid 1px;
}

.instructions h2{
    color: hsl(14, 45%, 36%);
    margin-inline-start: -20px;
}

.instructions ol{
    margin-inline-start: -43px;
    line-height: 2rem;
    color: hsl(14, 45%, 36%);
}

.instructions li{
    padding-left: 15px;
}

.instructions a{
    text-decoration: none;
    color: hsl(24, 5%, 18%);
}

.instructions a:hover{
    text-decoration: none;
    cursor: default;
}

.nutrition h2{
    color: hsl(14, 45%, 36%);
}

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

.nutrition th, .nutrition td{
    border: 1px solid hsl(24, 5%, 18%);
    border-top: none;
    border-left: none;
    border-right: none;
    border-bottom: none;
    padding: 20px;
    text-align: left;
}

.nutrition tr:nth-child(1), .nutrition tr:nth-child(2), .nutrition tr:nth-child(3){
    border-bottom: 1px solid;
}

.nutrition th{
    font-weight: 400;
}

.nutrition td{
    color: hsl(14, 45%, 36%);
    font-weight: 700;
}

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

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


@media screen and (min-width: 320px) and  (max-width: 767px) { 
    body {
        padding: 0;
        margin: 0;
        font-size: 14px;
    }

    #container {
        width: 90%;
        padding: 0;
    }

    header, main, section, footer {
        padding: 10px;
        margin: 10px; 
    }

    h1 {
        word-spacing: nowrap;
         font-size: 24px;
    }

    h2 {
        font-size: 18px;
    }

    header p {
        font-size: 12.7px;
    }

    .preparation-time a {
        font-size: 11px;
    }

    .preparation-time li:nth-of-type(1) {
        width: 140px; 
    }

    .ingredients a {
        font-size: 12px;
    }

    .instructions a {
        font-size: 10.5px;
    }

    .nutrition p{
        font-size: 10px;
    }
     
}
