@font-face {
    font-family: Headings;
    src: url(assets/fonts/young-serif/YoungSerif-Regular.ttf);
}

@font-face {
    font-family: Pars;
    src: url(assets/fonts/outfit/Outfit-VariableFont_wght.ttf);
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: hsl(30, 54%, 90%);
    height: 100%;
}

main {
    margin: 100px 0 100px 0;
    display: flex;
    justify-content: center;
    flex-direction: column;
    border-radius: 15px;
    width: 55%;
    background-color: #fff;
    padding: 35px;
}

p {
    font-size: clamp(1rem, 10vw, 1rem);
}

b {
    font-weight: 600;
}

main img {
    border-radius: 15px;
}

h1 {
    font-weight: 500;
}

p, li, .preparation h2, th, td {
    font-family: Pars;
}

.preparation h2 {
    font-size: 1.4em;
}

h2 {
    font-size: 1.7em;
}

h1, h2 {
    font-family: Headings;
}

h2, h3, td {
    color: hsl(14, 45%, 36%);
}

li, th, p {
    color: hsl(24, 5%, 18%);
}

b {
    color: #000;
}

header {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 25px;
}

.preparation {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 25px;
    background-color: hsl(330, 100%, 98%);
    padding: 25px;
    border-radius: 15px;
}

.preparation ul {
    line-height: 30px;
}

ul li {
    list-style-type: "•";
}

ul li {
    padding-left: 20px;
    margin-left: 15px;
}

ol li {
    padding-left: 20px;
    margin-left: 25px;
}

.ingredients {
    display: flex;
    flex-direction: column;
    margin-top: 25px;
    gap: 10px;
    margin-bottom: 25px;
}

.ingredients ul {
    line-height: 30px;
}

.instructions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 25px;
    margin-bottom: 25px;
}

.instructions ol {
    display: flex;
    flex-direction: column;
    line-height: 20px;
    gap: 10px;
}

.nutrition {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 25px;
}

table {
    border-collapse: collapse;
}

th {
    display: flex;
    padding-left: 30px;
    font-weight: 500;
}

td {
    font-weight: 700;
}

tr {
    line-height: 40px;
}

tr:nth-child(2) {
    border-top: 1px solid hsl(30, 18%, 87%);
}

tr:nth-child(3) {
    border-top: 1px solid hsl(30, 18%, 87%);
}

tr:nth-child(4) {
    border-top: 1px solid hsl(30, 18%, 87%);
}

hr {
    color: hsl(30, 18%, 87%)
}

@media only screen and (max-width: 1200px) {
    main {
        width: 65%;
    }
}

@media only screen and (max-width: 800px) {
    main {
        width: 75%;
    }
}

@media only screen and (max-width: 590px) {
    main {
        width: 80%;
    }
}

@media only screen and (max-width: 470px) {
    main {
        width: 100%;
        margin: 0;
    }
    main img {
        margin: -35px -35px 0 -35px;
        border-radius: 0;
    }
}

@media only screen and (max-width: 334px) {
    h1 {
        font-size: 1.8em;
    }
}