:root
{
    --paper: #fbf9f7;
    --ink: #161616;
    --rule: #161616;
    --folio: #5c564c;
    --ink-red: #9a1f1a;
}

*
{
    box-sizing: border-box;
}

html,
body
{
    margin: 0;
    padding: 0;
    background: var(--paper);
    color: var(--ink);
}

body
{
    font-family: "Source Sans 3", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.45;
}

.sheet
{
    max-width: 1240px;
    margin: 0 auto;
    padding: 44px 32px 64px;
}

.masthead
{
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 18px;
}

.masthead-title
{
    display: block;
    font-family: "Newsreader", "Times New Roman", Times, serif;
    font-optical-sizing: auto;
    font-size: 68px;
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.02em;
    color: var(--ink);
    text-decoration: none;
}

.masthead-tagline
{
    margin: 10px 0 0;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--folio);
}

.masthead-folio
{
    text-align: right;
    flex-shrink: 0;
}

.language-switch
{
    margin-bottom: 8px;
    font-size: 13px;
    letter-spacing: 0.08em;
}

.language-switch-link
{
    color: #b0a898;
    font-weight: 400;
    text-decoration: none;
}

.language-switch-link.is-active
{
    color: var(--ink);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.language-switch-rule
{
    margin: 0 6px;
    color: var(--folio);
}

.masthead-date
{
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.masthead-update
{
    margin: 4px 0 0;
    font-size: 12px;
    color: var(--folio);
}

.sheet-rule
{
    display: block;
    height: 0;
    margin: 0;
    border: 0;
    border-top: 1px solid var(--rule);
}

.page-body
{
    display: grid;
    grid-template-columns: minmax(0, 2.8fr) minmax(230px, 1fr);
    min-height: 70vh;
}

.page-main
{
    padding: 22px 28px 40px 0;
    border-right: 1px solid var(--rule);
}

.kicker
{
    margin: 0;
    font-family: "Source Sans 3", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1.2;
    text-transform: uppercase;
    color: var(--ink-red);
}

.menu-list
{
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.menu-empty
{
    margin: 28px 0 0;
    color: var(--folio);
}

.recipe-card-link
{
    display: flex;
    align-items: stretch;
    gap: 22px;
    color: inherit;
    text-decoration: none;
}

.recipe-card-image
{
    display: block;
    width: 240px;
    height: 240px;
    flex-shrink: 0;
    object-fit: cover;
    background: #e4ddd0;
    border: 1px solid var(--ink);
    transition: filter 0.2s ease;
}

.recipe-card-link:hover .recipe-card-image
{
    filter: brightness(1.18);
}

.recipe-card-body
{
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.recipe-card-name
{
    margin: 0;
    font-family: "Newsreader", "Times New Roman", Times, serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}

.recipe-card-link:hover .recipe-card-name
{
    text-decoration: underline;
    text-underline-offset: 4px;
}

.recipe-card-excerpt
{
    margin: 8px 0 0;
    font-size: 22px;
    line-height: 1.4;
}

.recipe-card-foot
{
    margin-top: auto;
    padding-top: 10px;
}

.recipe-card-source
{
    margin: 8px 0 0;
    font-size: 18px;
    line-height: 1.35;
    color: #7a5340;
}

.recipe-card-meta
{
    margin: 0;
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--folio);
}

.recipe-card-meta-rule
{
    margin: 0 8px;
    color: #b0a898;
}

.page-side
{
    min-height: 100%;
    padding: 22px 0 40px 22px;
}

.search-form .kicker
{
    margin-bottom: 8px;
}

.search-field
{
    margin-top: 18px;
}

.search-field label
{
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--folio);
}

.search-field input,
.search-field select
{
    display: block;
    width: 100%;
    margin-top: 6px;
    padding: 8px 10px;
    border: 1px solid #d2c6b8;
    border-radius: 6px;
    background-color: var(--paper);
    color: var(--ink);
    font: inherit;
    font-size: 16px;
    line-height: 1.4;
    appearance: none;
    -webkit-appearance: none;
}

.search-field select
{
    padding-right: 32px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23b0a898' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' d='M1.5 1.5 L6 6 L10.5 1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.search-field input::placeholder
{
    color: #b0a898;
}

.search-field input:focus,
.search-field select:focus
{
    outline: none;
    border-color: #b08978;
}

.side-rule
{
    display: block;
    height: 0;
    margin: 28px 0 22px;
    border: 0;
    border-top: 1px solid var(--rule);
}

.viewed-list
{
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.viewed-link
{
    display: grid;
    grid-template-columns: 0.75em 56px minmax(0, 1fr);
    align-items: start;
    column-gap: 8px;
    color: inherit;
    text-decoration: none;
}

.viewed-rank
{
    font-family: "Newsreader", "Times New Roman", Times, serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 56px;
    color: var(--folio);
    text-align: left;
}

.viewed-image
{
    display: block;
    width: 56px;
    height: 56px;
    object-fit: cover;
    background: #e4ddd0;
    border: 1px solid var(--ink);
}

.viewed-link:hover .viewed-image
{
    filter: brightness(1.18);
}

.viewed-body
{
    min-width: 0;
    height: 56px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.viewed-name
{
    font-family: "Newsreader", "Times New Roman", Times, serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}

.viewed-link:hover .viewed-name
{
    text-decoration: underline;
    text-underline-offset: 3px;
}

.viewed-type
{
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--folio);
}

.archive-block
{
    margin-top: 48px;
}

.archive-block .archive-list
{
    margin-top: 28px;
}

.archive-more
{
    margin: 24px 0 0;
}

.archive-more-button
{
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.archive-more-button:hover
{
    color: var(--ink-red);
}

.archive-link-list
{
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.archive-link-list li + li
{
    margin-top: 10px;
}

.archive-name-link
{
    font-family: "Newsreader", "Times New Roman", Times, serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--ink);
    text-decoration: none;
}

.archive-name-link:hover
{
    text-decoration: underline;
    text-underline-offset: 4px;
}

.archive-list
{
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.recipe-card-compact .recipe-card-link
{
    gap: 12px;
}

.recipe-card-compact .recipe-card-image
{
    width: 88px;
    height: 88px;
}

.recipe-card-compact .recipe-card-name
{
    font-size: 20px;
    -webkit-line-clamp: 1;
    line-clamp: 1;
}

.recipe-card-compact .recipe-card-excerpt
{
    margin-top: 2px;
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recipe-card-compact .recipe-card-source
{
    margin-top: 4px;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recipe-card-compact .recipe-card-foot
{
    padding-top: 4px;
}

.recipe-back
{
    display: inline-block;
    margin-bottom: 18px;
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.recipe-back::before
{
    content: "← ";
}

.recipe-back:hover
{
    color: var(--ink-red);
}

.recipe-hero-button
{
    display: block;
    width: 100%;
    margin: 22px 0 20px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

.recipe-hero
{
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--ink);
    transition: filter 0.2s ease;
}

.recipe-hero-button:hover .recipe-hero
{
    filter: brightness(1.18);
}

.recipe-article
{
    padding-bottom: 16px;
}

.info-article
{
    padding-bottom: 16px;
}

.info-article p
{
    margin: 18px 0 0;
    font-size: 18px;
    line-height: 1.55;
}

.notfound-return
{
    margin-top: 28px;
}

.notfound-return .recipe-back
{
    margin-bottom: 0;
}

.info-mail
{
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.info-mail:hover
{
    color: var(--ink-red);
}

.recipe-title
{
    margin: 8px 0 0;
    font-family: "Newsreader", "Times New Roman", Times, serif;
    font-size: 40px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.recipe-news-lead
{
    margin: 10px 0 0;
    font-size: 18px;
    line-height: 1.4;
    color: #7a5340;
}

.recipe-news-lead .recipe-news-open
{
    display: inline;
    white-space: normal;
    color: #7a5340;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.recipe-news-quote
{
    margin: 10px 0 0;
    font-size: 16px;
    line-height: 1.5;
    color: var(--folio);
}

.recipe-facts
{
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
}

.recipe-fact
{
    display: grid;
    grid-template-columns: 8em minmax(0, 1fr);
    align-items: baseline;
    column-gap: 10px;
    margin: 0;
    font-size: 16px;
    line-height: 1.4;
    color: var(--folio);
}

.recipe-fact-label
{
    color: var(--ink);
}

.recipe-news-open
{
    min-width: 0;
    padding: 0;
    border: 0;
    background: none;
    overflow: hidden;
    font: inherit;
    color: inherit;
    text-align: left;
    white-space: nowrap;
    text-overflow: ellipsis;
    cursor: pointer;
}

.recipe-news-open:hover
{
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.recipe-excerpt
{
    margin: 22px 0 0;
    font-size: 24px;
    line-height: 1.45;
}

.recipe-description
{
    margin: 18px 0 0;
    font-size: 18px;
    line-height: 1.55;
}

.recipe-section
{
    min-width: 0;
    margin-top: 36px;
}

.recipe-section-title
{
    margin: 0 0 14px;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-red);
}

.recipe-list
{
    margin: 0;
    padding-left: 1.2em;
    font-size: 18px;
    line-height: 1.5;
}

.recipe-list li + li
{
    margin-top: 8px;
}

.recipe-news-title
{
    margin: 0;
    font-family: "Newsreader", "Times New Roman", Times, serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
}

.recipe-news-text
{
    margin: 10px 0 0;
    font-size: 16px;
    line-height: 1.5;
    color: var(--folio);
}

.recipe-news-link
{
    margin: 12px 0 0;
    font-size: 14px;
}

.recipe-news-link a
{
    color: var(--ink);
}

.news-overlay
{
    position: fixed;
    z-index: 1001;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    cursor: pointer;
}

.news-overlay-content
{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 32px;
}

.news-overlay-panel
{
    position: relative;
    width: min(720px, 100%);
    max-height: 90vh;
    overflow: auto;
    padding: 40px 44px 32px;
    background: var(--paper);
    border: 1px solid var(--ink);
    cursor: default;
}

.news-overlay-panel .recipe-news-title
{
    padding-right: 48px;
}

.news-overlay-panel .recipe-news-text
{
    font-size: 17px;
    color: var(--ink);
}

.recipe-news-text p
{
    margin: 0 0 1em;
}

.recipe-news-text p:last-child
{
    margin-bottom: 0;
}

.recipe-news-text .recipe-news-heading
{
    margin: 1.35em 0 0.45em;
    font-weight: 700;
    color: var(--ink);
}

.recipe-news-text .recipe-news-heading:first-child
{
    margin-top: 0;
}

.image-overlay
{
    position: fixed;
    z-index: 1001;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    cursor: pointer;
}

.image-overlay-content
{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 32px;
}

.overlay-image-frame
{
    position: relative;
    max-width: 90%;
    max-height: 90%;
    padding: 10px;
    background: var(--paper);
    border: 1px solid var(--ink);
}

.overlay-image
{
    display: block;
    max-width: 100%;
    max-height: calc(90vh - 20px);
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-overlay-close
{
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--ink);
    background: var(--paper);
    color: var(--ink);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.image-overlay-close:hover
{
    background: var(--ink);
    color: var(--paper);
}

.site-footer
{
    padding: 18px 0 8px;
}

.footer-nav
{
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-link
{
    color: var(--folio);
    font-weight: 400;
    text-decoration: none;
}

.footer-link:hover
{
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-rule
{
    margin: 0 10px;
    color: #b0a898;
}

@media (max-width: 960px)
{
    .sheet
    {
        padding: 36px 24px 56px;
    }

    .masthead-title
    {
        font-size: 56px;
    }

    .recipe-card-image
    {
        width: 180px;
        height: 180px;
    }

    .recipe-card-name
    {
        font-size: 26px;
    }

    .recipe-card-source
    {
        font-size: 17px;
    }

    .recipe-card-excerpt
    {
        font-size: 20px;
    }
}

@media (max-width: 800px)
{
    .sheet
    {
        padding: 28px 16px 48px;
    }

    .masthead
    {
        flex-direction: column;
        align-items: flex-start;
    }

    .masthead-folio
    {
        text-align: left;
    }

    .masthead-title
    {
        font-size: 42px;
    }

    .page-body
    {
        grid-template-columns: 1fr;
        min-height: 50vh;
    }

    .page-main
    {
        border-right: 0;
        border-bottom: 1px solid var(--rule);
        min-height: 40vh;
        padding-right: 0;
    }

    .page-side
    {
        padding: 22px 0 0;
    }

    .recipe-card-link
    {
        flex-direction: column;
        gap: 14px;
    }

    .recipe-card-image
    {
        width: 100%;
        height: auto;
        aspect-ratio: 3 / 2;
    }

    .recipe-card-compact .recipe-card-link
    {
        flex-direction: row;
        gap: 12px;
    }

    .recipe-card-compact .recipe-card-image
    {
        width: 80px;
        height: 80px;
        aspect-ratio: auto;
    }

    .recipe-card-name
    {
        font-size: 26px;
    }

    .recipe-card-compact .recipe-card-name
    {
        font-size: 18px;
    }

    .recipe-card-source
    {
        font-size: 17px;
    }

    .recipe-card-excerpt
    {
        font-size: 20px;
    }

    .recipe-title
    {
        font-size: 28px;
    }

    .recipe-excerpt
    {
        font-size: 18px;
    }

    .recipe-section-title
    {
        font-size: 20px;
    }

    .recipe-fact
    {
        grid-template-columns: 6.5em minmax(0, 1fr);
    }
}
