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

html { scroll-behavior: smooth; font-size: 25px; }

body {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1rem;
    line-height: 1.5;
    color: #000;
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

/* ── Shell ── */

.page {
    display: flex;
    align-items: flex-start;
    min-height: 100vh;
}

.content {
    flex: 1;
    min-width: 0;
    padding: 64px 12vw 100px 3vw;
}

/* ── ToC ── */

.toc {
    width: 18vw;
    flex-shrink: 0;
    padding: 64px 0 64px 3vw;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    scrollbar-width: none;
}

.toc::-webkit-scrollbar { display: none; }

.toc-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #999;
    display: block;
    margin-bottom: 14px;
}

.toc-chapter { margin-bottom: 10px; }

.toc-chapter-link {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    color: #000;
    text-decoration: none;
    display: block;
    margin-bottom: 3px;
}

.toc-chapter-link:hover { color: #555; }

.toc-section {
    margin-bottom: 4px;
    padding-left: 0.6em;
}

.toc-section-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.62rem;
    font-weight: 400;
    color: #aaa;
    display: block;
    margin-bottom: 1px;
}

.toc ol, .toc ul { list-style: none; }

.toc-recipe-list { padding-left: 0.8em; }
.toc-recipe-list li { margin-bottom: 0; }

.toc-recipe-list a {
    font-family: 'Inter', sans-serif;
    font-size: 0.62rem;
    font-weight: 400;
    color: #bbb;
    text-decoration: none;
    display: block;
    line-height: 1.6;
}

.toc-recipe-list a:hover,
.toc-recipe-list a.active { color: #000; }

/* ── Frontispiece ── */

.frontispiece {
    margin-bottom: 56px;
    padding-bottom: 24px;
    border-bottom: 1px solid #000;
}

.fp-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.fp-sub {
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    font-weight: 400;
    color: #888;
    margin-top: 4px;
}

/* ── Chapter heading ── */

.chapter { margin-bottom: 64px; }

.chapter-title {
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-bottom: 1px solid #000;
    padding-bottom: 6px;
    margin-bottom: 40px;
}

.subsection { margin-bottom: 48px; }

.subsection-title {
    font-family: 'Inter', sans-serif;
    font-size: 0.58rem;
    font-weight: 500;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 20px;
    padding-bottom: 4px;
}

/* ── Recipe (summary card) ── */

.recipe {
    margin-bottom: 48px;
    padding-bottom: 48px;
    border-bottom: 0.5px solid #e0e0e0;
}

.recipe:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.recipe-header { margin-bottom: 14px; }

.recipe-title-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 2px;
}

.recipe-detail-btn {
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    font-weight: 500;
    color: #000;
    text-decoration: none;
    border: 0.5px solid #000;
    padding: 10px 24px;
    white-space: nowrap;
    flex-shrink: 0;
}

.recipe-detail-btn:hover { background: #000; color: #fff; }

.recipe-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.recipe-title a {
    color: inherit;
    text-decoration: none;
}

.recipe-title a:hover { text-decoration: underline; }

.recipe-meta {
    font-family: 'Inter', sans-serif;
    font-size: 0.55rem;
    font-weight: 400;
    color: #888;
    margin-top: 2px;
}

/* Two-column body */
.recipe-body {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 0 40px;
    margin-top: 14px;
}

/* Ingredients */
.col-ingredients { font-size: 0.78rem; line-height: 1.55; }

.ingredient-group { margin-bottom: 10px; }

.ingredient-group-title {
    font-family: 'Inter', sans-serif;
    font-size: 0.52rem;
    font-weight: 500;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
}

.ingredient-list { list-style: none; }

.ingredient-list li {
    display: flex;
    align-items: baseline;
    gap: 8px;
    border-bottom: 0.5px solid #ebebeb;
    padding: 3px 0;
}

.ingredient-list li:last-child { border-bottom: none; }

.qty {
    font-family: 'Inter', sans-serif;
    font-size: 0.6rem;
    font-weight: 400;
    color: #999;
    white-space: nowrap;
    min-width: 44px;
    flex-shrink: 0;
}

/* Method */
.col-method { font-size: 0.9rem; line-height: 1.65; }

.recipe-intro { margin-bottom: 12px; }
.recipe-intro p { margin-bottom: 0.5em; text-align: justify; hyphens: auto; }
.recipe-intro p:last-child { margin-bottom: 0; }

.method-step { margin-bottom: 24px; }
.method-step:last-child { margin-bottom: 0; }

.step-title {
    font-family: 'Inter', sans-serif;
    font-size: 0.6rem;
    font-weight: 600;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
}

.method-list { margin-left: 1.2em; line-height: 1.65; }
.method-list li { margin-bottom: 3px; text-align: justify; hyphens: auto; }

/* Notes */
.recipe-notes {
    grid-column: 1 / -1;
    margin-top: 14px;
    font-size: 0.78rem;
    line-height: 1.55;
    color: #333;
}

.notes-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.52rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #999;
    margin-bottom: 6px;
    display: block;
}

.notes-list { list-style: none; }
.notes-list li { margin-bottom: 3px; }
.notes-list li::before { content: '— '; }
.notes-list strong { color: #000; font-style: normal; }

.storage-text { margin-top: 6px; font-style: italic; }

.recipe-detail-link {
    display: inline-block;
    margin-top: 20px;
    font-family: 'Inter', sans-serif;
    font-size: 0.55rem;
    font-weight: 500;
    color: #000;
    text-decoration: none;
    border-bottom: 0.5px solid #000;
    padding-bottom: 1px;
    letter-spacing: 0.03em;
}

.recipe-detail-link:hover { color: #555; border-color: #555; }

.base-ref {
    font-family: 'Inter', sans-serif;
    font-size: 0.52rem;
    color: #aaa;
    text-decoration: none;
    border-bottom: 0.5px solid #ddd;
}

.base-ref:hover { color: #000; border-color: #000; }

.coming-soon {
    font-family: 'Inter', sans-serif;
    font-size: 0.6rem;
    color: #ccc;
}

/* ── Footer ── */

.site-footer {
    margin-top: 48px;
    padding-top: 16px;
    border-top: 1px solid #000;
    font-family: 'Inter', sans-serif;
    font-size: 0.55rem;
    color: #aaa;
    text-align: center;
}

/* ── Burger / mobile ToC ── */

.burger {
    display: none;
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 200;
    width: 40px;
    height: 40px;
    background: #000;
    border: none;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.burger span {
    display: block;
    width: 18px;
    height: 1.5px;
    background: #fff;
    transition: opacity 0.15s;
}

/* ── Responsive ── */

@media (max-width: 700px) {
    .burger { display: flex; }

    .page { flex-direction: column; }

    .toc {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: #fff;
        z-index: 100;
        padding: 64px 8vw 40px;
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
    }

    .toc.is-open { transform: translateX(0); }

    .content { padding: 36px 6vw 64px; }
    .recipe-body { grid-template-columns: 1fr; }
    .recipe-notes { grid-column: 1; }
}
