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

:root {
    --white:     hsl(0, 0%, 100%);

    --stone-100: hsl(30, 54%, 90%);
    --stone-150: hsl(30, 18%, 87%);
    --stone-600: hsl(30, 10%, 34%);
    --stone-900: hsl(24, 5%, 18%);

    --brown-800: hsl(14, 45%, 36%);

    --rose-800:  hsl(332, 51%, 32%);
    --rose-50:   hsl(330, 100%, 98%);
}

body {
    background: var(--stone-100);

    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;

    min-height: 100vh;
    padding: 1.5rem;
}

.recipe-page__main {
        max-width: 40rem; /* Smaller width (40rem ≈ 640px) */
        margin-top: 2rem; /* Moves it down */
        margin-bottom: 2rem; /* Adds spacing below */
        background: var(--white);
        border-radius: 15px;
        box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.recipe-page__image {
    margin: 2rem 2rem 0 2rem;
}

.recipe-page__image img {
    width: 100%;
    max-width: 100%;
    border-radius: 10px;
    display: block;
}

h1 {
    font-family: "Young Serif", sans-serif;
    font-weight: 400;
    font-size: 2rem;

    color: var(--stone-900);

    margin: 2rem 2rem 0 2rem;
}

.recipe-page__main-header p {
    font-family: "Outfit", sans-serif;
    font-weight: 400;
    font-size: .9rem;

    color: var(--stone-600);
    
    margin: 1.5rem 2rem 0 2rem;
    padding-right: 1rem;
} 

.recipe-page__preparation-time {
    margin: 1.5rem 2rem 0 2rem;
    padding: 0.8rem 0 0.8rem 1rem;
    
    background: var(--rose-50);
    border-radius: 10px;

    font-family: "Outfit", sans-serif;
}

.recipe-page__preparation-time h3 {
    font-weight: 600;
    
    color: var(--rose-800);
}

.recipe-page__preparation-time ul {
    padding: 0.6rem 0 0 1.5rem;
    
    font-size: .9rem;
    line-height: 1.6rem;

    color: var(--stone-600);
}

.recipe-page__preparation-time ul li span {
    font-weight: 700;
    
    color: var(--stone-600)
}

.recipe-page__ingredients {
    margin: 2rem 2rem 0 2rem;

    border-bottom: 1px solid var(--stone-150);
    padding-bottom: 2rem;
}

.recipe-page__ingredients h2 {
    font-family: "Young Serif", sans-serif;
    font-weight: 400;
    font-size: 1.5rem;

    color: var(--brown-800);
}

.recipe-page__ingredients ul {
    padding: 0.6rem 0 0 1.5rem;
    
    font-family: "Outfit", sans-serif;
    font-size: 1rem;
    line-height: 1.6rem;

    color: var(--stone-600);
}

.recipe-page__ingredients ul li::marker {
    color: var(--brown-800);
}

.recipe-page__ingredients ul li {
    text-indent: .5rem;
}

.recipe-page__instructions {
    margin: 2rem 2rem 0 2rem;

    border-bottom: 1px solid var(--stone-150);
    padding-bottom: 2rem;
}

.recipe-page__instructions h2 {
    font-family: "Young Serif", sans-serif;
    font-weight: 400;
    font-size: 1.5rem;

    color: var(--brown-800);
}

.recipe-page__instructions ol {
    padding: 0.6rem 0 0 1.5rem;

    font-family: "Outfit", sans-serif;
    font-size: .9rem;
}

.recipe-page__instructions ol li::marker {
    color: var(--brown-800);

    font-weight: 700;
}

.recipe-page__instructions ol li {
    padding-left: 0.5rem;
    line-height: 1.5rem;

    color: var(--stone-600);
}

.recipe-page__instructions ol li span {
    font-weight: 700;
}

.recipe-page__nutrition {
    margin: 2rem 2rem 2rem 2rem ;
}

.recipe-page__nutrition h2 {
    font-family: "Young Serif", sans-serif;
    font-weight: 400;
    font-size: 1.5rem;

    color: var(--brown-800);
}

.recipe-page__nutrition p {
    font-family: "Outfit", sans-serif;
    font-size: 0.9rem;
    font-weight: 400;

    color: var(--stone-600);

    margin-top: 1rem;
}

.recipe-page__nutrition-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;

    font-family: "Outfit", sans-serif;

    margin-top: 1rem;
}

.recipe-page__nutrition-table td {
    width: 50%;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--stone-150);
}

.recipe-page__nutrition-table td:first-child {
    text-align: left;
    padding-left: 2rem;
    color: var(--stone-600)
}

.recipe-page__nutrition-table td:last-child {
    text-align: left;
    font-weight: 700;
    color: var(--brown-800);
}

@media (max-width: 375px) {
    body {
        padding: 0;
        margin: 0;
    }

    .recipe-page__main {
        width: 100vw;
        min-height: 100vh;
        margin: 0;
        padding: 1.5rem;
        position: relative;
        overflow: hidden;
        border-radius: 0;
    }

    .recipe-page__image {
       width: calc(100% + 3rem);
       margin: -1.5rem -1.5rem 0 -1.5rem;
        
    }

    .recipe-page__image img {
        width: 100%;
        height: auto;
        display: block;

        border-radius: 0;
    }

    h1 {
        font-size: 1.75rem;
        text-align: left;
        margin: 1rem 0;
    }

    .recipe-page__main-header p {
        font-size: 1rem;
        text-align: left;
        line-height: 1.3rem;
        margin: 0;

        font-weight: 600;
    }

    .recipe-page__preparation-time {
        margin: 1rem 0;
        padding: 1rem;
    }

    .recipe-page__ingredients,
    .recipe-page__instructions,
    .recipe-page__nutrition {
        margin: 1rem 0;
        padding-bottom: 1rem;
    }

    .recipe-page__ingredients h2,
    .recipe-page__instructions h2,
    .recipe-page__nutrition h2 {
        font-size: 1.25rem;
    }

    .recipe-page__ingredients ul,
    .recipe-page__instructions ol {
        padding-left: 1rem;

        font-size: 0.85rem;
    }

    .recipe-page__nutrition p {
        font-size: 0.85rem;
    }

    .recipe-page__nutrition-table {
        font-size: 0.9rem;

        width: 100%;
        table-layout: fixed;
        border-collapse: collapse;
        margin-top: 1rem;
    }

    .recipe-page__nutrition-table td {
        width: 50%;
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--stone-150);
    }

    .recipe-page__nutrition-table td:first-child {
        text-align: left;
        padding-left: 1.5rem;
    }

    .recipe-page__nutrition-table td:last-child {
        text-align: left;
    }
}