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

html,
body {
    height: 100%;
}

body {
    font-family: "Outfit", sans-serif;
    line-height: 1.5rem;
    font-size: 16px;
    background-color: hsl(30, 54%, 90%);
    color: hsl(14, 45%, 36%);
    font-weight: 400;
}

h2,
h3 {
    font-family: "Young Serif", serif;
    font-weight: 600;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    font-weight: 400;
}

h4 {
    margin-top: 0.75rem;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.recipe-container h2 {
    font-weight: 600;
    color: hsl(24, 5%, 18%);
    line-height: 1;
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    min-height: 100vh;
}

.recipe-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex: 1;
    width: 100%;
    padding: 1rem;
}

.recipe {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 700px;
    min-width: 390px;
    width: 100%;
    padding: 1.75rem;
    background-color: hsl(0, 0%, 100%);
    border-radius: 14px;
}

#recipe-image {
    aspect-ratio: 4/2;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 1.25rem
}

#recipe-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ingredients-container {
    margin-top: 0.75rem;
}

.recipe>.nutrition-container,
.instructions-container {
    border-top: 1px solid hsl(30, 18%, 87%);
    padding-top: 2rem;
}

ul>li,
ol>li {
    margin-bottom: 0.5rem;
    padding: 0rem 1rem;
}

ol li::marker,
ul li::marker {
    font-weight: bold;
    color: hsl(14, 45%, 36%);
}

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

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

.preparation-container h4 {
    color: hsl(332, 51%, 32%)
}

.section-content {
    padding-left: 1.25rem;
}


table {
    width: 100%;
}

td {
    padding: 0.5rem 1.5rem;
    border-bottom: 1px solid hsl(30, 18%, 87%);
}

table tr:last-child td {
    border-bottom: none;
}

td.nutrition-value {
    font-weight: 600;
}

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

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

@media screen and (min-width: 768px) {
    .recipe-container {
        padding: 2rem;
    }

    .recipe {
        padding: 2rem;
        border-radius: 20px;
    }

    h2 {
        font-size: 2.25rem;
    }

    h3 {
        font-size: 1.75rem;
    }
}