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


@font-face {
    font-family: 'Outfit';
    font-display: swap;
    font-weight: 400 700;
    src: url('./assets/fonts/outfit/Outfit-VariableFont_wght.ttf') format('truetype');
}


: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%);
}

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

* {
    margin: 0;
    font: inherit;
    line-height: 30px;
}

p {
    font-size: 1rem;
}

img,
svg {
    display: block;
    max-width: 100%;
}


body {
    display: flex;
    min-height: 100vh;
    justify-content: center;
    align-items: center;
    background-color: var(--Stone-100);
    font-family: 'Outfit', sans-serif;
    color: var(--Stone-600);
    font-weight: 400;
}

.container {
    max-width: 725px;
    background-color: var(--White);
    margin: 2rem;
    padding: 1.5rem;
    border-radius: 0.75rem;
}

.description {
    padding: 1.25rem;
    background-color: var(--Rose-50);
    margin: 1.5rem 0;
    border-radius: 0.5rem;
}

img {
    border-radius: 0.75rem;
    margin-bottom: 1rem;
}

h3 {
    color: var(--Rose-800);
    font-weight: 600;
}

h1,
h2 {
    font-family: 'Young Serif', 'Outfit', sans-serif;
    color: var(--Stone-900);
    font-size: 2rem;
    margin: 1rem 0;
}

h1 {
    padding-top: 1rem;

}

h2 {
    font-size: 1.5rem;
    color: var(--Brown-800);
}

li {
    padding-left: 1.5rem;
}

li::marker {
    color: var(--Brown-800);
    font-weight: 600;
}

li span {
    color: var(--Stone-600);
    font-weight: 600;
}

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

table td {
    padding: 1rem;
    /* Add some padding */
    border-bottom: 1px solid var(--Stone-600);
    /* Add horizontal line below each row */
}

td[data-cell="nutrient-value"] {
    color: var(--Brown-800);
    font-weight: 600;
}

table tr:last-child td {
    border-bottom: none;
    /* Remove bottom border for the last row */
}

.ingredients,
.instructions {
    border-bottom: 1px solid var(--Stone-600);
}

.instructions {
    margin: 1.5rem 0;
}


.ingredients ul,
.instructions ol {
    margin: 1.5rem 0;
}

@media (max-width:500px) {
    .container {
        margin: 0;
        border-radius: 0;
        padding: 0;
    }

    img {
        border-radius: 0;
        padding: 0;
        overflow: visible;
    }


    .image-description h1,
    .image-description p {
        padding: 0 1.5rem;
    }

    .description {
        margin: 1.5rem;
    }

    
    .nutrition {
        padding: 0 1.5rem;
    }

    .ingredients,
    .instructions {
        margin: 0 1.5rem;
        border-bottom: 1px solid var(--Stone-600);
    }
}