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

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f9f5f0;
    color: #3d2817;
    line-height: 1.6;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #3d2817;
    margin-bottom: 0px;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #3d2817;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.125rem;
    font-weight: 500;
    color: #5c4a3a;
    margin-bottom: 0.75rem;
}

.recipe-info {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.info-text ul {
    list-style: none;
    margin-bottom: 1.5rem;
}

.info-text ul li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
    color: #5c4a3a;
}

.info-text ul li::before {
    position: absolute;
    left: 0;
    color: #c77a58;
    font-weight: bold;
}

.recipe-info img {
    width: 100%;
    height: auto;           
    object-fit: contain;    
    max-height: 500px;

}

.ingredients {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.ingredients img {
    width: 100%;
    padding-top: 50px;
    object-fit: cover;

}

.ingredients-text {
    padding: 2rem;
}

.equipment {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.equipment img {
    width: 100%;
    object-fit: cover;
}

.equipment-text {
    padding: 2rem;
}

.check {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: 0.5rem;
}

.check input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    accent-color: #c77a58;
    cursor: pointer;
    flex-shrink: 0;
}

.check label {
    cursor: pointer;
    color: #3d2817;
    font-size: 0.95rem;
}

.instructions {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.instructions > h2 {
    grid-column: 1 / -1;
    text-align: center;
    margin-bottom: 2rem;
}

.box {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s ease;
}

.box:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.box img {
    width: 100%;
    height: auto;
    object-fit: cover;
    height: 300px;
}

.box ul {
    padding: 1.5rem;
    list-style: none;
}

.box ul li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 1rem;
    color: #5c4a3a;
}

.box ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #c77a58;
    font-weight: bold;
    font-size: 1.2rem;
}
footer {
    background-color: #3d2817;
    color: #f9f5f0;
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
}

footer h2 {
    font-size: 1rem;
    font-weight: 400;
    color: #f9f5f0;
    margin: 0;
}

footer a {
    color: #c77a58;
    text-decoration: none;
    transition: color 0.2s ease;
}

footer a:hover {
    color: #d89876;
    text-decoration: underline;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .recipe-info,
    .ingredients,
    .equipment {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0.5rem 1rem;
        gap: 1rem;
        margin: 0 auto;
    }

    .recipe-info img,
    .ingredients img,
    .equipment img {
        width: 100%;
        height: auto;
        max-width: none;
        order: -1;
        margin-bottom: 0.5rem;
    }

    .instructions {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1rem;
    }

    .box {
        flex-direction: column;
    }

    .box img {
        min-height: 200px;
    }

    .box ul {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.75rem;
    }

    .recipe-info,
    .ingredients,
    .equipment,
    .instructions {
        margin: 1rem auto;
        gap: 0.75rem;
    }

    .ingredients-text,
    .equipment-text {
        padding: 1rem;
    }

    .recipe-info img,
    .ingredients img,
    .equipment img,
    .box img {
        width: 100%;
        height: auto;
        margin-bottom: 0.5rem;
    }
}
