.menu-book {
    width: 100%;
    max-width: 1100px;
    margin-inline: auto;
    color: var(--navy);
}

.menu-book [hidden] {
    display: none !important;
}

.menu-book__cover {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.menu-book__cover > img {
    display: block;
    width: min(100%, 360px);
    height: auto;
    border-radius: 3px;
    box-shadow: 8px 12px 28px rgb(15 27 61 / 20%);
}

.menu-book__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 48px;
    padding: .65rem 1rem;
    border: 1px solid var(--navy);
    border-radius: 4px;
    background: var(--navy);
    color: var(--yellow);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    cursor: pointer;
}

.menu-book__button:hover:not(:disabled) {
    background: var(--yellow);
    color: var(--navy);
}

.menu-book__button:disabled {
    opacity: .4;
    cursor: default;
}

.menu-book__button:focus-visible,
.menu-book__page:focus-visible,
.menu-text > summary:focus-visible {
    outline: 3px solid var(--navy);
    outline-offset: 5px;
}

.menu-book__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.menu-book__toolbar p {
    margin: 0;
    font-size: 1rem;
}

.menu-book__spread {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    max-width: 960px;
    margin-inline: auto;
    gap: 2px;
}

.menu-book__spread--single {
    grid-template-columns: minmax(0, 1fr);
    max-width: 480px;
}

.menu-book__page {
    position: relative;
    display: block;
    min-width: 0;
    background: white;
    box-shadow: 0 8px 22px rgb(15 27 61 / 15%);
    cursor: zoom-in;
    width: 100%;
    padding: 0;
    border: 0;
    font: inherit;
}

/* Subtle shading along the book's center fold. */
.menu-book__spread:not(.menu-book__spread--single)
.menu-book__page::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
        to left,
        rgb(0 0 0 / 12%),
        transparent 5%
    );
}

.menu-book__spread:not(.menu-book__spread--single)
.menu-book__page:nth-child(2)::after {
    background: linear-gradient(
        to right,
        rgb(0 0 0 / 12%),
        transparent 5%
    );
}

.menu-book__page img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 3;
    object-fit: contain;
}

.menu-book__navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.menu-book__navigation p {
    margin: 0;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.menu-text {
    max-width: 800px;
    margin: 2rem auto 0;
}

.menu-text > summary {
    width: fit-content;
    margin-inline: auto;
    padding: .75rem 1rem;
    color: var(--navy);
    font-family: var(--font-body);
    font-size: 1rem;
    cursor: pointer;
}

.menu-text[open] > summary {
    margin-bottom: 1.5rem;
}

@media (max-width: 900px) {
    .menu-book__spread {
        grid-template-columns: minmax(0, 1fr);
        max-width: 540px;
    }

    .menu-book__toolbar {
        flex-direction: column;
        text-align: center;
    }

    .menu-book__navigation {
        gap: .75rem;
    }
}

.menu-book__cover > img {
    box-shadow: 8px 12px 28px rgb(26 107 62 / 20%);
}

.menu-book__page {
    box-shadow: 0 8px 22px rgb(26 107 62 / 15%);
}