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

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.6;
    color: #2f2a26;
    background-color: #f7f2eb;
    padding: 0;
}


/* General Layout */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(247, 242, 235, 0.96);
    border-bottom: 1px solid #d8cfc3;
}

.site-nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.nav-brand {
    text-decoration: none;
    color: #5c4632;
    font-size: 1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 1.5rem;
    margin-left: auto;
}

.nav-links p {
    margin: 0;
}

.nav-links a {
    text-decoration: none;
    color: #5c4632;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: #9b6b43;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    padding: 0.25rem;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #5c4632;
    border-radius: 999px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.25rem 4rem;
}

section {
    margin-top: 3rem;
}

h1, h2, h3, h4 {
    font-weight: 500;
    line-height: 1.2;
    color: #2b2118;
}

h1 {
    font-size: clamp(2.7rem, 6vw, 5rem);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #cdbfae;
    padding-bottom: 0.5rem;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

h4 {
    font-size: 1rem;
    margin-bottom: 0.35rem;
}

p {
    margin-bottom: 1rem;
    max-width: 75ch;
}

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

li {
    margin-bottom: 0.65rem;
}

a {
    color: #7a5230;
}

a:hover {
    color: #a46c3d;
}


/* Intro */
.hero {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 2rem;
    align-items: stretch;
    margin-top: 1rem;
    min-height: 65vh;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(60, 40, 20, 0.12);
}

.hero-text {
    background-color: #efe4d7;
    border-radius: 18px;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: end;
    box-shadow: 0 10px 30px rgba(60, 40, 20, 0.08);
}

.hero-text > p:first-child {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #8b6c50;
    margin-bottom: 0.75rem;
}

.hero-text h1 {
    margin-bottom: 1rem;
}

.hero-text p:last-child {
    font-size: 1.05rem;
    color: #4e4035;
}


/* Overview */
.description, .general-info, #equipment, #ingredients, .step-feature, #additional article {
    background: #fbf7f2;
    border: 1px solid #dfd3c6;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 6px 20px rgba(80, 60, 40, 0.05);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(140px, 1fr));
    gap: 1rem;
    margin: 1rem 0 1.25rem;
}

.info-grid article {
    background: #f3e8db;
    border: 1px solid #dccab8;
    border-radius: 12px;
    padding: 1rem;
    min-height: 95px;
}

.info-grid p {
    margin-bottom: 0;
}


/* Equipment + Ingredients */
#details-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

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

.checklist li {
    margin-bottom: 0.8rem;
}

.checklist label {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    cursor: pointer;
}

.checklist input[type="checkbox"] {
    margin-top: 0.25rem;
    transform: scale(1.08);
    accent-color: #a06d45;
    flex-shrink: 0;
}

.checklist span {
    transition: all 0.2s ease;
}

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

/* Instructions */
.view-toggle {
    margin-bottom: 1rem;
    display: flex;
    justify-content: flex-end;
}

.view-toggle button {
    background: transparent;
    border: 1px solid #cdbfae;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.view-toggle button:hover {
    background: #efe4d7;
}

.hidden {
    display: none;
}

.instruction-list {
    margin-top: 1.5rem;
    background: #fffaf4;
    border: 1px solid #dfd3c6;
    border-radius: 16px;
    padding: 1.5rem 1.75rem 1.5rem 2rem;
}

.step-feature {
    display: grid;
    grid-template-columns: 56px 1fr 56px;
    gap: 1rem;
    align-items: center;
    background: #efe4d7;
    border: 1px solid #dfd3c6;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 6px 20px rgba(80, 60, 40, 0.05);
    min-height: 420px;
}

.step-content {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 1.5rem;
    align-items: center;
    height: 100%;
}

.step-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    padding: 0 0.25rem;
}

.step-text h3 {
    font-size: 1.9rem;
    margin-bottom: 0.9rem;
}

.step-text p {
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 0;
    max-width: 26ch;
}

.step-image {
    height: 320px;
    width: 100%;
}

.step-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    display: block;
}

.step-arrow {
    border: none;
    background: transparent;
    font-size: 2.5rem;
    color: #8a684c;
    cursor: pointer;
    transition: transform 0.2s ease, color 0.2s ease, opacity 0.2s ease;
    line-height: 1;
}

.step-arrow:hover {
    transform: scale(1.08);
    color: #a06d45;
}

.step-arrow:disabled {
    opacity: 0.35;
    cursor: default;
}


/* Additional */
#additional {
    display: grid;
    gap: 1.25rem;
}

#additional article ul {
    margin-top: 0.75rem;
}


/* Footer */
footer {
    background: #fbf7f2;
    border: 1px solid #dfd3c6;
    padding: 1.25rem 1rem;
    box-shadow: 0 6px 20px rgba(80, 60, 40, 0.05);
    margin-top: 3rem;
    text-align: center;
}

footer p {
    max-width: none;
    margin: 0.4rem auto;
}


/* Media */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hero-image img {
        max-height: 520px;
    }

    .info-grid {
        grid-template-columns: repeat(2, minmax(140px, 1fr));
    }

    #details-section {
        grid-template-columns: 1fr;
    }

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

    .step-text p {
        max-width: none;
    }

    .step-image {
        height: 280px;
    }
}

@media (max-width: 768px) {
    main {
        padding: 1.5rem 1rem 3rem;
    }

    .site-nav {
        position: relative;
        padding: 0.85rem 1rem;
    }

    .nav-toggle {
        display: flex;
        margin-left: auto;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: calc(100% + 1px);
        left: 0;
        right: 0;
        background: #f7f2eb;
        border-bottom: 1px solid #d8cfc3;
        padding: 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.9rem;
        margin-left: 0;
        box-shadow: 0 8px 20px rgba(80, 60, 40, 0.08);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        font-size: 1rem;
    }

    .hero-text {
        padding: 1.75rem 1.25rem;
    }

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

    .step-feature {
        grid-template-columns: 48px 1fr 48px;
        padding: 1.25rem;
        min-height: auto;
    }

    .step-image {
        height: 240px;
    }

    .step-arrow {
        font-size: 2rem;
    }
}

@media (max-width: 540px) {
    body {
        font-size: 0.98rem;
    }

    h1 {
        font-size: clamp(2.2rem, 10vw, 3.6rem);
    }

    h2 {
        font-size: 1.5rem;
    }

    main {
        padding: 1.25rem 0.9rem 2.5rem;
    }

    .hero-text {
        padding: 1.5rem 1rem;
    }

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

    .view-toggle {
        justify-content: flex-start;
    }

    .step-feature {
        grid-template-columns: 40px 1fr 40px;
        gap: 0.5rem;
        padding: 1rem;
    }

    .step-arrow {
        display: block;
        font-size: 1.6rem;
    }

    .step-text h3 {
        font-size: 1.5rem;
    }

    .step-text p {
        font-size: 1rem;
    }

    .step-image {
        height: 220px;
    }

    footer {
        padding: 1rem 0.75rem;
    }
}

@media (max-width: 380px) {
    header nav {
        gap: 0.5rem 0.75rem;
    }

    header nav a {
        font-size: 0.88rem;
    }

    .step-image {
        height: 190px;
    }

    .view-toggle button {
        width: 100%;
        text-align: center;
    }
}