:root {
    --white: hsl(0, 0%, 100%);
    --stone100: hsl(30, 54%, 90%);
    --stone150: hsl(30, 18%, 87%);
    --stone600: hsl(30, 10%, 34%);
    --stone900: hsl(24, 5%, 18%);
    --brown800: hsl(14, 45%, 36%);
    --rose800: hsl(332, 51%, 32%);
    --rose50: hsl(330, 100%, 98%);
    --base-font-size: 16px;
    --base-offset: 16px;
}

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

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

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

body {
    height: 100vh;
    font-family: 'Outfit', sans-serif;
    font-size: var(--base-font-size);
    font-weight: 400;
    color: var(--stone600);
    background-color: var(--stone100);
}

h1, h2, h3 {
    margin-block: 0 var(--base-offset);
}

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

h1 {
    color: var(--stone900);
}

h2 {
    color: var(--brown800);
}

h3 {
    color: var(--rose800);
}

p {
    margin-block: 0 var(--base-offset);
}

li {
    margin-left: var(--base-offset);
    margin-bottom: calc(var(--base-offset) / 2);
    padding-left: var(--base-offset);
}

li::marker {
    font-weight: 600;
}

.recipe {
    width: 100%;
    max-width: 700px;
    margin-inline: auto;
    margin-block: 64px 32px;
    background-color: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);

    .recipe-image {
        padding: 0 0 calc(var(--base-offset) * 2);

        img {
            display: block;
            width: 100%;
            max-width: 100%;
            height: auto;
            border-radius: 0;
        }
    }

    .recipe-hint {
        padding: calc(var(--base-offset) * 2);
        background-color: var(--rose50);

    }

    .recipe-body {
        padding-inline: calc(var(--base-offset) * 2);
        padding-block: 0 calc(var(--base-offset) * 2);

        .recipe-block:not(:last-child) {
            padding-block: var(--base-offset);
            border-bottom: 1px solid var(--stone150);
        }

        .recipe-block:last-child {
            padding-block: var(--base-offset) 0;
        }

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

                tr:not(:last-child) {
                    border-bottom: 1px solid var(--stone150);
                }

                td {
                    height: 40px;
                    padding-inline: calc(var(--base-offset) * 2);
                }

                .nutrition-value {
                    padding-inline: calc(var(--base-offset));
                    font-weight: 600;
                    color: var(--brown800);
                }
            }
        }
    }
}

@media screen and (min-width:376px) {
    .recipe {
        .recipe-image {
            padding: calc(var(--base-offset) * 2);
    
            img {
                max-width: 636px;
                border-radius: 16px;
            }
        }
    }
}