.young-serif-regular {
  font-family: "Young Serif", serif;
  font-weight: 400;
  font-style: normal;
}
.outfit-Outfit {
  font-family: "Outfit", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

body{
    min-width: 100vw;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

html{
    --bg-color: hsl(30, 54%, 90%);
    --bg-prep-color: hsl(330, 100%, 98%);
    --bg-main-color: hsl(0, 0%, 100%);
    --title-color: hsl(14, 45%, 36%);
    --title-prep-color: hsl(332, 51%, 32%);
    --text-color: hsl(30, 10%, 34%);
    --prpl-title-color: hsl(24, 5%, 18%);
    --separator-color: hsl(30, 18%, 87%);
    --mx-width: 40rem;
    
    background: var(--bg-color);
    display: flex;
    justify-content: center;
    color: var(--text-color);
    font-size: 16px;
    line-height: 1.5em;
}

main{
    display: block;
    background: var(--bg-main-color);
    margin: 0;
    padding: 2.5rem;
    border-radius: 1.6em;
    width: var(--mx-width);
    font-family: 'Outfit';
}

.recipe_img{
    object-fit: cover;
    width: var(--mx-width);
    padding: 0;
    border-radius: 1em;
    margin-bottom: .5em;
}

.nombreReceta{
    font-family: "Young Serif", serif;
    font-weight: 400;
    font-size: 2.45em;
    color: var(--prpl-title-color);
    margin-bottom: .6em;
    line-height: 1em;
}

.prep{
    background: var(--bg-prep-color);
    padding: 1.4em 2em .3em;
    border-radius: 1em;
    margin-top: 2rem;
    line-height: 2em;
}

.prep__title{
    color: var(--title-prep-color);
    font-weight: 600;
    font-size: 20px;
    margin: 0;
}

.prep__list{
    padding: 0;
    line-height: 1.4em;
    list-style: none;
}

.prep__list li{
    display: flex;
    margin-block-start: .5em;

    &::before{
        content: "•";
        color: var(--title-prep-color);
        font-size: 1.2em;
        display: flex;
        align-items:center;
        justify-content: center;
        margin-right: 1.5em;
        margin-left: .3em;
    }

}


hr{
    margin-top: 2em;
    margin-bottom: 2.25em;
    border: none;
    border-top: 1px solid var(--separator-color);
    height: 0;
}

.steps{
    font-family: "Young Serif", serif;
    color: var(--title-color);
    font-size: 1.75em;
    font-weight: 400;
    margin-top: 1.3em;
}

.ingredients {
    list-style: none;
    line-height: 1.4em;
    padding: 0;
}

.ingredients li{
    display: flex;
    margin-block-end: .65em;
    &::before{
        content: "▪";
        color: var(--title-color);
        display: flex;
        align-items: center;
        justify-content: center;
        margin-left: .5em;
        margin-right: 1.5em;
    }
}

.instructions{
    padding-left: 1.5em;
}

.instructions li{
    margin-block-start: .5em;
    padding-left: .9em;
    &::marker{
        font-weight: 600;
        color: var(--title-color);
    }
}

.nutrition{
    width: var(--mx-width);
    border-collapse: collapse;
}

.nutrition td{
    padding: .5em;
    padding-left: 2em;
    border-bottom: 1px solid var(--separator-color);
}

.nutrition td:last-child {
    color: var(--title-color);
    font-weight: 600;
}

.nutrition tr:last-child td{
    border-bottom: none;
}

@media (max-width: 40rem) {
    .recipe_img{
        border-radius: 0;
        width: calc(100% + 5rem);
        position: relative;
        margin: -2.5rem -2.5rem 0.5em;
    }

    main{
        width: 100%;
        border-radius: 0;
    }
    
    .nutrition{
        width: 100%;
    }
}