/* Mobile: 375px - Desktop: 1440px */
/* Font size (paragraph): 16px */
/* Family: [Young Serif](https://fonts.google.com/specimen/Young+Serif) - Weights: 400 */
/* Family: [Outfit](https://fonts.google.com/specimen/Outfit) - Weights: 400, 600, 700 */

:root {
    --white: hsl(0, 0%, 100%);
    --stone: 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%);
}

@font-face {
    font-family: 'Young Serif';
    font-style: normal;
    font-weight: 400;
    src: url('../assets/fonts/young-serif/YoungSerif-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 400 600 700;
    src: url('../assets/fonts/outfit/Outfit-VariableFont_wght.ttf') format('truetype');
}

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

body {
    min-height: 100vh;
    background-color: var(--stone-150);
    font-family: 'Outfit', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 32px 20px;
}

.recipe-page {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.recipe-card {
    background-color: var(--white);
    max-width: 736px;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
}

.recipe-image {
    border-radius: 12px;
    overflow: hidden;
    margin: 3cqmax 40px 0px 40px;
}

.recipe-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.recipe-content {
    padding: 40px;
}

h1 {
    font-family: 'Young Serif', serif;
    font-size: 36px;
    font-weight: 400;
    color: var(--stone-900);
    margin-bottom: 24px;
    line-height: 1.1;
}

h2 {
    font-family: 'Young Serif', serif;
    font-size: 28px;
    font-weight: 400;
    color: var(--brown-800);
    margin-bottom: 24px;
}

.recipe-title {
    display: block;
}

.recipe-desc {
    font-size: 16px;
    font-weight: 400;
    color: var(--stone-600);
    line-height: 1.6;
    margin-bottom: 32px;
}

.preparation-time {
    background-color: var(--rose-50);
    border-radius: 12px;
    padding: 28px;
    margin-bottom: 32px;
}

.preparation-time h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--rose-800);
    margin-bottom: 16px;
}

.preparation-time ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.preparation-time li {
    font-size: 16px;
    color: var(--stone-600);
    margin-bottom: 8px;
    padding-left: 30px;
    position: relative;
}

.preparation-time li:before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 4px;
    height: 4px;
    background-color: var(--rose-800);
    border-radius: 50%;
}

/* Ingredients Section */
.ingredients-section {
    border-bottom: 1px solid var(--stone-150);
    padding-bottom: 32px;
    margin-bottom: 32px;
}

.ingredients {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ingredients li {
    font-size: 16px;
    color: var(--stone-600);
    margin-bottom: 12px;
    padding-left: 30px;
    position: relative;
    line-height: 1.6;
}

.ingredients li:before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 4px;
    height: 4px;
    background-color: var(--brown-800);
    border-radius: 50%;
}

.instructions-section {
    border-bottom: 1px solid var(--stone-150);
    padding-bottom: 32px;
    margin-bottom: 32px;
}

.instructions {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: item;
}

.instructions li {
    font-size: 16px;
    color: var(--stone-600);
    margin-bottom: 16px;
    padding-left: 30px;
    position: relative;
    line-height: 1.6;
}

.instructions li:before {
    content: counter(item) ".";
    counter-increment: item;
    position: absolute;
    left: 0;
    font-weight: 700;
    color: var(--rose-800);
}

.nutrition-section p {
    font-size: 16px;
    color: var(--stone-600);
    margin-bottom: 24px;
    line-height: 1.6;
}

.nutrition {
    width: 100%;
    border-collapse: collapse;
}

.nutrition tr {
    border-bottom: 1px solid var(--stone-150);
}

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

.nutrition td {
    padding: 16px 0;
    font-size: 16px;
    color: var(--stone-600);
}

.nutrition td:first-child {
    padding-right: 20px;
}

.nutrition td:last-child {
    text-align: right;
    color: var(--brown-800);
    font-weight: 700;
}
