* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #fffaee;
    color: #2f2823;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1rem;
    line-height: 1.7;
}

img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
}

a {
    color: #7b4f32;
    text-underline-offset: 0.15em;
}

a:hover,
a:focus {
    color: #54311f;
}

p,
ul,
ol,
li,
dd {
    margin-top: 0;
}

ul,
ol {
    margin-bottom: 0;
    padding-left: 1.25rem;
}

li + li {
    margin-top: 0.55rem;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
    z-index: 1000;
    padding: 0.75rem 1rem;
    background: #ffffff;
    color: #000000;
    border: 2px solid #000000;
    text-decoration: none;
}

main,
.site-footer {
    width: min(88rem, calc(100% - 2rem));
    margin: 0 auto;
}

h1,
h2,
h3,
dt {
    margin-top: 0;
    color: #1f1a17;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    line-height: 1.12;
    letter-spacing: -0.02em;
}

h1 {
    margin-bottom: 0.9rem;
    font-size: clamp(2.7rem, 6vw, 5.4rem);
    font-weight: 600;
}

h1 span {
    display: block;
    margin-top: 0.45rem;
    font-size: clamp(1rem, 2vw, 1.35rem);
    font-weight: 500;
    letter-spacing: 0.01em;
    color: #6d5a4d;
}

h2 {
    margin-bottom: 1rem;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 600;
}

h3 {
    margin-bottom: 0.65rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.eyebrow {
    margin-bottom: 0.9rem;
    color: #9a6e4c;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.intro {
    max-width: 50rem;
    margin-bottom: 1.8rem;
    font-size: 1.15rem;
    line-height: 1.75;
    color: #4b4037;
}

.site-header {
    width: 100%;
    margin: 0;

    padding: 3.5rem 0 3.75rem;

    border-bottom: 1px solid #e5d8cc;
    background-image: url(../images/header-background.webp);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.header-inner {
    padding-top: 2rem;
    width: min(82rem, calc(100% - 2rem));
    margin: 0 auto;
}

.hero-image {
    margin-bottom: 1rem;
}

.hero-image img {
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 1.4rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.hero-content {
    padding-bottom: 0.25rem;
    padding-top: 0.5rem;
}

.before-you-begin h2 {
    margin-bottom: 0rem;
}

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

.checklist li + li {
    margin-top: 0.7rem;
}

.checklist label {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    cursor: pointer;
    line-height: 1.6;
}

.checklist input[type="checkbox"] {
    margin-top: 0.25rem;
    accent-color: #7b4f32;
    width: 1rem;
    height: 1rem;
}

.checklist input[type="checkbox"]:checked + span {
    text-decoration: none;
    opacity: 0.5;
}

.recipe-meta dt {
    font-size: 0.68rem;
    letter-spacing: 0.08em;
}

.recipe-meta dd {
    font-size: 1.02rem;
}

.recipe-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 0;
}

.recipe-meta div {
    padding: 1rem 1rem 1rem 1.35rem;
    border: 1px solid #dfd1c3;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
    backdrop-filter: blur(2px);
}

.recipe-meta dt {
    margin-bottom: 0.18rem;
    color: #8a7362;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.recipe-meta dd {
    margin: 0;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 0.98rem;
    font-weight: 600;
    color: #2a221c;
}

main {
    padding-bottom: 3rem;
}

.before-grid {
    display: grid;
    gap: 1rem;
}

.ingredients,
.equipment,
.recipe-notes,
.nutrition {
    background: rgba(255, 254, 252, 0.78);
    border: 1px solid #e6dbcf;
    border-radius: 1.25rem;
    padding: 1.4rem;
}

.ingredients h3,
.equipment h3 {
    margin-bottom: 0.85rem;
}

.ingredients ul,
.equipment ul,
.recipe-notes ul {
    padding-left: 1.15rem;
}

.ingredients li,
.equipment li,
.recipe-notes li {
    color: #3e352f;
}

.allergens {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e0d4c8;
    max-width: 55rem;
}

.allergens h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.allergens p {
    font-size: 0.95rem;
    color: #5f5147;
    line-height: 1.6;
}

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

.steps > li {
    padding: 1.5rem 0 2rem;
    border-top: 1px solid #dfd2c6;
}

.steps > li:last-child {
    border-bottom: 1px solid #dfd2c6;
}

.step-content {
    max-width: 50rem;
    margin-bottom: 1.1rem;
}

.step-content h3 {
    margin-bottom: 0.55rem;
    font-size: 1.2rem;
}

.step-content p {
    margin-bottom: 0;
    color: #463b34;
}

.step-gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.9rem;
}

.step-gallery figure {
    margin: 0;
}

.step-gallery img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 1rem;
}

.step-gallery figcaption {
    margin-top: 0.5rem;
    padding-left: 0.15rem;
    font-size: 0.92rem;
    line-height: 1.45;
    color: #6a5950;
}

.amount {
    font-style: italic;
    font-weight: 525;
    color: #2a221c;
}

.site-footer {
    padding-bottom: 3rem;
    color: #64564b;
    font-size: 0.95rem;
}

.serving-control {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.serving-control label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #6d5a4d;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.serving-control select {
    padding: 0.5rem 0.95rem;
    border: 1px solid #dfd1c3;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.5);
    color: #2f2823;
    font: inherit;
}

@media (min-width: 42rem) {
    main,
    .site-footer {
        width: min(76rem, calc(100% - 3rem));
    }

    .recipe-meta {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .before-grid {
        grid-template-columns: 1fr 1fr;
    }

    .step-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 64rem) {
    .site-header {
        padding-top: 2rem;
    }

    .header-inner {
        display: grid;
        grid-template-columns: 0.85fr 1.15fr;
        gap: 3.5rem;
        align-items: center;
    }

    .hero-image {
        margin-bottom: 0;
    }

    .hero-image img {
        height: 100%;
        min-height: 32.5rem;
    }

    .step-gallery {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1rem;
    }

    section {
        margin-top: 2.5rem;
    }
}

@media (min-width: 80rem) {
    body {
        font-size: 1.05rem;
    }

    section {
        margin-top: 3rem;
    }

    .ingredients,
    .equipment,
    .recipe-notes,
    .nutrition {
        padding: 1.6rem;
    }

    .steps > li {
        padding: 1.75rem 0 2.25rem;
    }
}