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

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

body {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    background-color: var(--stone-100);
    color: var(--stone-600);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

.recipe-card {
    max-width: 736px;
    background-color: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.image-container img {
    width: 100%;
    height: auto;
    display: block;
}

.content {
    padding: 40px;
}

h1,
h2 {
    font-family: 'Young Serif', serif;
    color: var(--stone-900);
}

h1 {
    font-size: 28px;
    margin-bottom: 24px;
}

h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

h3 {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    color: var(--brown-800);
    display: inline;
}

p {
    margin-bottom: 20px;
}

.intro {
    margin-bottom: 32px;
}

section {
    margin-bottom: 32px;
}

hr {
    border: none;
    height: 1px;
    background-color: var(--stone-150);
    margin: 32px 0;
}

/* Preparation time section */
.preparation-time {
    background-color: var(--rose-50);
    border-radius: 8px;
    padding: 24px;
}

.preparation-time h2 {
    color: var(--rose-800);
}

.preparation-time ul {
    list-style-type: none;
}

.preparation-time li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 16px;
}

.preparation-time li::before {
    content: "•";
    color: var(--rose-800);
    position: absolute;
    left: 0;
}

.label {
    font-weight: 700;
}

/* Ingredients section */
.ingredients h2 {
    color: var(--brown-800);
}

.ingredients ul {
    list-style-type: none;
    padding-left: 16px;
}

.ingredients li {
    position: relative;
    padding-left: 16px;
    margin-bottom: 8px;
}

.ingredients li::before {
    content: "•";
    color: var(--brown-800);
    position: absolute;
    left: 0;
}

/* Instructions section */
.instructions h2 {
    color: var(--brown-800);
}

.instructions ol {
    list-style-position: inside;
    counter-reset: item;
    padding-left: 0;
}

.instructions li {
    counter-increment: item;
    margin-bottom: 24px;
}

.instructions h3 {
    margin-bottom: 8px;
}

.instructions p {
    padding-left: 0;
}

/* Nutrition section */
.nutrition h2 {
    color: var(--brown-800);
}

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

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

}

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

.nutrition td {
    padding: 12px 15px;
    font-weight: 400;
}

.nutrition .value {
    color: var(--brown-800);
    font-weight: 600;
    text-align: left;
}

/* Footer */
.attribution {
    font-size: 11px;
    text-align: center;
    margin-top: auto;
    padding: 20px 0;
}

.attribution a {
    color: hsl(228, 45%, 44%);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .content {
        padding: 32px 24px;
    }

    h1 {
        font-size: 24px;
    }

    h2 {
        font-size: 20px;
    }
}

@media (max-width: 375px) {
    .content {
        padding: 24px 16px;
    }

    .preparation-time,
    .ingredients,
    .instructions,
    .nutrition {
        padding: 16px;
    }
}