
@font-face {
    font-family: 'outfit';
    src: url(./assets/fonts/outfit/Outfit-VariableFont_wght.ttf);
}

@font-face {
    font-family: 'young';
    src: url(./assets/fonts/young-serif/YoungSerif-Regular.ttf);
}

body {
    font-size: 16px;
    line-height: 1.6;
    background-color: hsl(30, 54%, 90%);
    color: #4A4A4A;
    margin: 0;
    padding: 0;
    font-family: 'outfit';

}

main {
    max-width: 800px;
    margin: 2rem auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 4rem;
    overflow: hidden;
}

.recipe__image {
    width: 100%;
    border-radius: 7px;

}

.recipe__title {
    font-family: 'young';
    font-size: 2.7rem;
    color: hsl(24, 5%, 18%);
    font-weight: 400;
    margin-top: 1rem;
}

.recipe__description {
    font-size: 1.2rem;
    color: hsl(30, 10%, 34%);
    margin: 1rem 0;
}

/* Preparation time styles */
.recipe__preparation-time {
    background-color: #FAF1F1;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.preparation-time__title {
    font-size: 1.2rem;
    font-weight: 700;
    color: hsl(332, 51%, 32%);
    margin: 0.8rem;
}

.preparation-time__item {
    font-size: 1rem;
    margin: 0.3rem 0;
}

/* Ingredients styles */
.recipe__ingredients,
.recipe__instructions,
.recipe__nutrition {
    margin-bottom: 2rem;
}

.ingredients__title,
.instructions__title,
.nutrition__title {
    font-family: 'young';
    font-size: 2rem;
    color: hsl(14, 45%, 36%);
    margin-bottom: 0.5rem;
    display: inline-block;
    padding-bottom: 0.2rem;
    font-weight: 400;
}

.ingredients__list,
.instructions__list {
    margin: 0;
    padding: 0;
    list-style-position: inside;
}

.ingredients__item {
    margin: 0.5rem 0;
    color: #4A4A4A;
}

.ingredients__item::marker {
    color: hsl(14, 45%, 36%);
}
/* Instructions styles */
.instructions__list {
    list-style:decimal;
    padding: 0px 20px;
}

.instructions__item {
    margin: 1rem 0;
    position: relative;
    color: #4A4A4A;
}
.instructions__item::marker {
     color: hsl(14, 45%, 36%);
     font-weight: bold;
}

/* Nutrition table styles */
.nutrition__table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.nutrition__header,
.nutrition__data {
    text-align: left;
    padding: 0.8rem 2rem;
    border-bottom: 1px solid #E0E0E0;
}

.nutrition__data {
    color: hsl(14, 45%, 36%);
    font-weight: 600;
}
.nutrition__header{
    font-weight: 500;
}
.nutrition__description {
    margin-top: 1rem;
    font-size: 1rem;
    color: #6B6B6B;
}
.divider {
    border-top: 2px solid hsl(30, 18%, 87%); 
    margin: 2rem 0; 
}