
:root {
    --cream: #fff4d8;
    --warm-yellow: #f7d987;
    --beige: #e8cfa3;
    --wood: #8b5a2b;
    --deep-chestnut: #4a2412;
    --light-card: #fff8e8;
    --border-brown: #b98245;
}

body {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    background:
        linear-gradient(rgba(255, 244, 216, 0.92), rgba(255, 244, 216, 0.92)),
        repeating-linear-gradient(
            90deg,
            #8b5a2b 0,
            #8b5a2b 20px,
            #9b6633 20px,
            #9b6633 40px
        );
    color: var(--deep-chestnut);
}

main {
    width: min(920px, calc(100% - 32px));
    margin: 0 auto;
    padding: 32px 0;
}

h1,
h2,
h3 {
    color: var(--deep-chestnut);
    line-height: 1.2;
}

h1 {
    margin: 0 0 24px;
    padding: 24px;
    border: 3px solid var(--border-brown);
    border-radius: 18px;
    background: var(--warm-yellow);
    box-shadow: 0 6px 0 rgba(74, 36, 18, 0.18);
    text-align: center;
    font-size: clamp(2rem, 6vw, 3.5rem);
}

section {
    margin: 20px 0;
    padding: 22px;
    border: 2px solid var(--border-brown);
    border-radius: 16px;
    background: var(--light-card);
    box-shadow: 0 4px 14px rgba(74, 36, 18, 0.12);
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

select,
input[type="number"] {
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
    border: 2px solid var(--border-brown);
    border-radius: 10px;
    background: #fffdf6;
    color: var(--deep-chestnut);
    font: inherit;
}

input[type="range"] {
    width: 100%;
    margin: 8px 0 18px;
    accent-color: var(--wood);
}

ul,
ol {
    padding-left: 24px;
}

li {
    margin-bottom: 10px;
}

#ingredients-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-left: 0;
    list-style: none;
}

#ingredients-list li {
    margin: 0;
    padding: 8px 12px;
    border: 1px solid var(--border-brown);
    border-radius: 999px;
    background: var(--cream);
}

#steps-list {
    padding-left: 0;
    list-style: none;
}

#steps-list li {
    margin-bottom: 16px;
    padding: 16px;
    border-left: 6px solid var(--wood);
    border-radius: 12px;
    background: var(--cream);
}

.step-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    align-items: center;
}

.step-content {
    min-width: 0;
}

.step-icon {
    justify-self: end;
}

.oven-icon {
    position: relative;
    width: 82px;
    height: 74px;
    box-sizing: border-box;
    border: 4px solid var(--deep-chestnut);
    border-radius: 12px;
    background: linear-gradient(#6d3a1d, #4a2412);
    box-shadow: inset 0 0 0 4px rgba(255, 244, 216, 0.18);
}

.oven-icon::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 14px;
    right: 14px;
    height: 8px;
    border-radius: 999px;
    background: var(--warm-yellow);
}

.oven-icon::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 10px;
    height: 34px;
    border: 3px solid var(--warm-yellow);
    border-radius: 8px;
    background: rgba(255, 244, 216, 0.12);
}

.oven-temperature {
    position: absolute;
    z-index: 1;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    color: var(--warm-yellow);
    font-size: 1rem;
    font-weight: 900;
    line-height: 1;
    text-shadow: 1px 1px 0 var(--deep-chestnut);
    white-space: nowrap;
}

#steps-list h3 {
    margin-top: 0;
}

.step-time {
    display: inline-block;
    margin: 8px 0 0;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--warm-yellow);
    color: var(--deep-chestnut);
    font-size: 1.25rem;
    font-weight: bold;
}

#total-time {
    display: inline-block;
    margin: 0;
    padding: 14px 20px;
    border-radius: 999px;
    background: var(--warm-yellow);
    font-size: 1.4rem;
    font-weight: bold;
}

.mass-control {
    display: grid;
    gap: 8px;
}


.recipe-image-section {
    text-align: center;
}

.recipe-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    align-items: start;
}



.recipe-image {
    display: block;
    width: 100%;
    max-width: 680px;
    max-height: 460px;
    margin: 0 auto;
    border: 4px solid var(--border-brown);
    border-radius: 18px;
    object-fit: cover;
    box-shadow: 0 8px 18px rgba(74, 36, 18, 0.22);
}



.safety-message {
    margin: 28px 0 0;
    padding: 16px 20px;
    border: 2px dashed var(--border-brown);
    border-radius: 16px;
    background: rgba(255, 248, 232, 0.86);
    color: var(--deep-chestnut);
    text-align: center;
    font-size: 1.05rem;
    font-style: italic;
}


.safety-message strong {
    font-size: 1.35em;
    font-style: normal;
    font-weight: 900;
    color: var(--wood);
}

@media (max-width: 600px) {
    main {
        width: min(100% - 20px, 920px);
        padding: 16px 0;
    }

    section {
        padding: 16px;
    }

    .step-card {
        grid-template-columns: 1fr;
    }

    .step-icon {
        justify-self: start;
    }
}
