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

p,
h1,
h2,
h3,
h4,
h5,
h6,
ul,
ol,
figure {
    margin: 0;
}

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

:root {
    --background-color: hsl(29, 53%, 90%);
    --container: hsl(0, 0%, 100%);
    --preparation-background: hsl(322, 100%, 98%);
    --border-ingredients: hsl(0, 0%, 96%);
    --border-nutrition: hsl(0, 0%, 91%);

    --h1: hsl(40, 4%, 15%);
    --h2: hsl(16, 25%, 46%);
    --h3: hsl(335, 42%, 26%);
    --p: hsl(26, 4%, 34%);
    --p-bold: hsl(17, 4%, 34%);

    --fs: 16px;
    --fs-h1: 2.5rem;

    /* Base legible moderno (≈18px) – opcional pero muy recomendado en 2025-2026 */
    --fs-base: 1.125rem;
    /* body text, párrafos principales */

    /* Tu escala solicitada – valores típicos y equilibrados */
    --fs-rg: 1rem;
    /* regular/smaller body o captions → ≈16px */
    --fs-md: 1.25rem;
    /* medium – subtítulos, cards titles → ≈20px */
    --fs-lg: 1.5rem;
    /* large – secciones, h3/h4 → ≈24px */
    --fs-xl: 2rem;
    /* extra large – h2 o destacados → ≈32px */

    --young-serif: "Young Serif", serif;
    --outfit: "Outfit", sans-serif;
}

body {
    font-size: var(--fs);
    font-family: var(--outfit);
    color: var(--p);
    min-height: 100dvh;
    background-color: var(--background-color);


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

    h1,
    h2 {
        font-family: var(--young-serif);
        font-weight: 500;
    }

    h1 {
        color: var(--h1);
        font-size: var(--fs-h1);
    }

    h2 {
        font-size: var(--fs-lg);
        color: var(--h2);
    }

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

.omelette-container {
    flex-grow: 1;
    margin: 3rem 0;
    width: 100%;

    background-color: var(--container);
    padding: 2.5rem;
    border-radius: 20px;
    line-height: 1.5;

    &>section {
        margin-block: 2rem;
    }

    & section:nth-child(2) {
        margin-top: 1rem;
    }

    & section:last-child {
        margin-bottom: 1rem;
    }

    @media (width>=768px) {
        width: 750px;
    }
}

.omelette__img {
    border-radius: 10px;
}

.omelette-container section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

ul,
ol {
    margin: 0;
    padding-left: 1.5rem;

    display: flex;
    flex-direction: column;
    gap: 0.7rem;

    span {
        color: var(--p-bold);
        font-weight: bold;
    }

    li {
        padding-left: 1rem;
    }

    li::marker {
        color: var(--h2);
        font-weight: bold;
    }
}

.omelette-container .omelette__preparation {
    padding: 1.5rem;
    background-color: var(--preparation-background);
    border-radius: 10px;
}

.omelette__ingredient {
    border-bottom: solid 3px var(--border-ingredients);
    padding-bottom: 2rem;
}

.omelette__nutrition .values {
    margin: 0;
    padding: 0;

    .values__serving {
        list-style: none;
        margin: 0;
        padding: 0;

        display: flex;
        justify-content: space-between;
        border-bottom: 1px solid var(--border-nutrition);
        padding-bottom: 0.5rem;


        span {
            color: var(--h2);
            font-weight: bold;
            margin-right: 30vw;
        }
    }
}

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

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