:root{
    --nutmeg: hsl(14, 45%, 36%);
    --dark-raspberry: hsl(332, 51%, 32%);
    --white: hsl(0, 0%, 100%);
    --rose-white: hsl(330, 100%, 98%);
    --eggshell: hsl(30, 54%, 90%);
    --light-grey: hsl(30, 18%, 87%);
    --wenge-brown: hsl(30, 10%, 34%);
    --dark-charcoal: hsl(24, 5%, 18%);
}

@font-face {
    font-family: "Outfit";
    src: url("./assets/fonts/outfit/Outfit-VariableFont_wght.ttf");
    font-display: swap;
}
@font-face {
    font-family: "Young Serif";
    src: url("./assets/fonts/young-serif/YoungSerif-Regular.ttf");
    font-display: swap;
}

*{
    box-sizing: border-box;
}

html,
body{
    margin: 0;
}

body{
    background-color: var(--eggshell);
    font-size: 1rem;
    display: grid;
    place-items: center;
    height: 100vh;
    font-family: "Outfit", sans-serif;
}
.title{
    font-family: "Young Serif", sans-serif;
    font-weight: normal;
    color: var(--nutmeg);
}
.color-nutmeg{
    color: var(--nutmeg);
}

.main-title{
    color: black;
    font-size: 2rem;
    font-weight: 600;
}

p{
    color: var(--wenge-brown);
    line-height: 1.5;
}

ul,
ol{
    padding: 0 1rem;
    margin: 0;
    & li::marker{
        color: var(--nutmeg);
    }
    & li{
        padding-left: 1rem;
    }
}

table{
    width: 100%;
    border-collapse: collapse;
    & th,
    & td{
        padding: .7rem;
        color: var(--wenge-brown);
    }
    & tr:not(:last-child){
        border-bottom: 1px solid var(--light-grey);
    }
}

.wrapper{
    width: 100%;
    display: grid;
    place-items: center;
    padding: 5rem;
    @media (max-width: 375px) {
        padding: 0rem;
    }
}
.card{
    padding: 2rem;
    border-radius: 1rem;
    gap: 1rem;
    background-color: var(--white);
    width: 40rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    @media (max-width: 375px){
        width: 100%;
        border-radius: 0rem;
    }
    & section:not(:last-child, :first-child){
        border-bottom: 1px solid var(--light-grey);
    }
    .image-section{
        & img{
            width: 100%;
            border-radius: 1rem;
        }
    }
    .recipe-section{
        .preparation-time{
            background-color: var(--rose-white);
            margin: 0;
            padding: .5rem 2rem;
            border-radius: .5rem;
            .sub-title{
                font-size: 1.1rem;
                color: var(--dark-raspberry);
                font-weight: 700;
            }
        }
    }
}