
* {
    box-sizing: border-box;
}
body {
    margin: 0;
    background-color: #eee3d4;
    color: #38291f;
    font-family: Georgia, serif;
}
main {
    width: 85%;
    max-width: 1000px;
    margin: 50px auto;
    padding: 50px;
    background-color: #faf5ed;
    border-radius: 10px;
}
h1 {
    font-size: 46px;
    margin-top: 0;
    margin-bottom: 40px;
    line-height: 1.2;
}
h2 {
    font-size: 28px;
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #a8876b;
}
h3 {
    font-size: 20px;
}
p {
    font-size: 17px;
    line-height: 1.7;
}
.intro {
    display: flex;
    gap: 40px;
    margin-bottom: 60px;
}
.main-photo {
    width: 35%;
    object-fit: cover;
    border-radius: 8px;
}
.intro-text {
    width: 65%;
}
.about {
    margin-bottom: 35px;
}
.about p {
    max-width: 550px;
    margin-top: 0;
}
.recipe-details {
    display: flex;
    gap: 35px;
}
.timeline {
    width: 55%;
}
.servings {
    width: 45%;
}
.timeline-list {
    border-left: 2px solid #a8876b;
    margin-left: 8px;
    padding-left: 25px;
}
.timeline-step {
    position: relative;
    padding-bottom: 22px;
}
.timeline-step:last-child {
    padding-bottom: 0;
}
.timeline-step::before {
    content: "";
    position: absolute;
    left: -33px;
    top: 5px;
    width: 12px;
    height: 12px;
    background-color: #a8876b;
    border-radius: 50%;
}
.timeline-step h3 {
    font-size: 17px;
    margin: 0 0 4px;
}
.timeline-step p {
    font-size: 15px;
    margin: 0;
    color: #786455;
}
.serving-buttons {
    display: flex;
    gap: 10px;
}
button {
    padding: 12px 18px;
    background-color: #faf5ed;
    border: 1px solid #a8876b;
    border-radius: 5px;
    color: #38291f;
    font-size: 16px;
    cursor: pointer;
}
button:hover {
    background-color: #e7d6c3;
}
button.active {
    background-color: #a8876b;
    color: white;
}
.recipe-content {
    display: flex;
    gap: 50px;
}
.ingredients {
    width: 35%;
}
.instructions {
    width: 65%;
}
.instructions p {
    max-width: 600px;
}
.ingredients label {
    display: block;
    margin-bottom: 20px;
    font-size: 17px;
    line-height: 1.6;
    cursor: pointer;
}
.ingredients input {
    margin-right: 12px;
    accent-color: #a8876b;
}

.ingredients label:has(input:checked) {
    text-decoration: line-through;
    color: #999;
}
.step {
    margin-bottom: 40px;
}
.step h3 {
    margin-bottom: 10px;
}
.step p {
    margin-top: 0;
    margin-bottom: 20px;
}
.step img {
    width: 220px;
    height: 220px;
    object-fit: cover;
    border-radius: 5px;
    display: block;
    margin-top: 15px;
}
@media (max-width: 900px) {
    main {
        width: 90%;
        margin: 25px auto;
        padding: 35px;
    }
    .intro {
        gap: 25px;
    }
    .recipe-content {
        gap: 35px;
    }
}
@media (max-width: 700px) {
    body {
        background-color: #faf5ed;
    }
    main {
        width: 100%;
        margin: 0;
        padding: 35px 25px;
        border-radius: 0;
    }
    h1 {
      font-size: 32px;
        margin-bottom: 30px;
    }
    h2 {
        font-size: 25px;
    }
    .intro {
        display: block;
        margin-bottom: 45px;
    }
    .main-photo {
        width: 100%;
        height: auto;
        margin-bottom: 25px;
    }
    .intro-text {
             width: 100%;
    }
    .recipe-details {
        display: flex;
        flex-direction: column-reverse;
        gap: 30px;
    }
    .timeline {
        width: 100%;
    }
    .servings {
        width: 100%;
    }
    .timeline-list {
        margin-top: 25px;
    }
    .recipe-content {
        display: block;
    }
    .ingredients {
        width: 100%;
        margin-bottom: 50px;
    }
    .instructions {
        width: 100%;
    }
    .step img {
        width: 180px;
        height: 180px;
    }

}
