@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&family=Young+Serif&display=swap');

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

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

    --title-font: "Young Serif", sans-serif;
    --text-font: "Outfit", sans-serif;
}

body {
    background-color: var(--stone-100);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    flex-direction: column;

    font-family: var(--text-font), sans-serif;
}

main {
    background-color: var(--white);
    width: 48em;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3rem;
    margin: 4rem auto;
    border-radius: 1.5rem;
    color: var(--stone-600);
    font-weight: 400;
}

.image__container {
    border-radius: 0.8rem;
}

.image__container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.description__container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 7rem;
    margin: 1.5rem 0;
}

.recipe__title {
    font-family: var(--title-font), sans-serif;
    font-weight: 400;
    font-size: 38px;
    color: black;
}

.recipe__description {
    font-weight: 400;
    font-size: 1rem;
    color: var(--stone-900);
    text-align: justify;
}

.preparation__container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.5rem 2rem;

    background-color: var(--rose-50);
    border-radius: 0.8rem;
}

.preparation__subtitle {
    color: var(--rose-800);
    padding: 0 0 1rem 0;
}

.list {
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 5rem;
    font-size: 1rem;
}

.subtitle {
    font-family: var(--title-font), sans-serif;
    color: var(--brown-800);
    font-weight: 400;
}

.ingredients__container {
    padding: 2rem 0;
}

.ingredients__container .list {
    margin: 1rem 0;
    height: 9rem;
}

.instructions__container {
    padding: 1.5rem 0 ;
}

.instructions__container .list {
    padding: 1.5rem;
    text-align: justify;
    height: 20rem;
}

.nutrition__container {
    padding: 1.5rem 0 0 0;
}

.nutrition__text {
    margin: 1rem 0;
}

.nutritional__table {
    display: flex;
    flex-direction: column;
}

.table__line {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid var(--stone-150);
    padding: 1rem 2rem;
}

.table__line:last-child {
    border-bottom: none;
}

.nutritional__table .value {
    color: var(--brown-800);
    font-weight: bold;

}

hr {
    border: none;
    height: 2px;
    background-color: var(--stone-150);
}

