
/* =========================================================
   WFC Single Post
   Premium editorial / restaurant journal
   ========================================================= */

.wfc-single-page {
    --wfc-single-paper: #f8f7f3;
    --wfc-single-ink: #292720;
    --wfc-single-muted: #77736c;
    --wfc-single-accent: #987247;
    --wfc-single-line: #e4dfd6;

    overflow-wrap: anywhere;
    background: var(--wfc-single-paper);
    color: var(--wfc-single-ink);
    padding-bottom: 100px;
}

.wfc-single-page *,
.wfc-single-page *::before,
.wfc-single-page *::after {
    box-sizing: border-box;
}

.wfc-single-page a {
    color: inherit;
    text-decoration: none;
}

/* Article header */

.wfc-single-header {
    max-width: 940px;
    margin: 0 auto;
    padding: 34px 24px 42px;
    text-align: center;
}

.wfc-single-breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 46px;
    color: var(--wfc-single-muted);
    font-size: 11px;
    line-height: 1.8;
}

.wfc-single-breadcrumb a:hover {
    color: var(--wfc-single-accent);
}

.wfc-single-breadcrumb-current {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wfc-single-category {
    display: inline-block;
    margin-bottom: 18px;
    color: var(--wfc-single-accent) !important;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.wfc-single-title {
    max-width: 850px;
    margin: 0 auto;
    font-family: "Noto Serif", Georgia, serif;
    font-size: clamp(34px, 4.8vw, 58px);
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: -.035em;
}

.wfc-single-intro {
    max-width: 700px;
    margin: 24px auto 0;
    color: var(--wfc-single-muted);
    font-size: 17px;
    line-height: 1.9;
}

.wfc-single-intro p {
    margin: 0;
}

.wfc-single-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 13px;
    margin-top: 30px;
    color: var(--wfc-single-muted);
    font-size: 11px;
    line-height: 1.8;
}

.wfc-single-meta a {
    color: var(--wfc-single-ink);
}

.wfc-single-meta a:hover {
    color: var(--wfc-single-accent);
}

.wfc-single-meta-separator {
    width: 22px;
    height: 1px;
    background: var(--wfc-single-accent);
}

/* Featured image */

.wfc-single-featured-image {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto 70px;
}

.wfc-single-featured-img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 720px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.wfc-single-featured-image figcaption {
    margin-top: 12px;
    color: var(--wfc-single-muted);
    font-size: 12px;
    line-height: 1.7;
    text-align: center;
}

/* Main content */

.wfc-single-layout {
    width: min(100% - 48px, 100%);
    margin: 0 auto;
}

.wfc-single-content {
    max-width: 760px;
    margin: 0 auto;
}

.wfc-single-entry-content {
    font-size: 16px;
    line-height: 1.95;
    overflow-wrap: anywhere;
}

.wfc-single-entry-content > :first-child {
    margin-top: 0;
}

.wfc-single-entry-content p {
    margin: 0 0 25px;
}

.wfc-single-entry-content h2,
.wfc-single-entry-content h3,
.wfc-single-entry-content h4 {
    color: var(--wfc-single-ink);
    font-family: "Noto Serif", Georgia, serif;
    font-weight: 400;
    line-height: 1.45;
    scroll-margin-top: 100px;
}

.wfc-single-entry-content h2 {
    margin: 52px 0 22px;
    font-size: clamp(27px, 3vw, 34px);
}

.wfc-single-entry-content h3 {
    margin: 38px 0 18px;
    font-size: 25px;
}

.wfc-single-entry-content h4 {
    margin: 30px 0 14px;
    font-size: 21px;
}

.wfc-single-entry-content ul,
.wfc-single-entry-content ol {
    margin: 0 0 28px;
    padding-left: 26px;
}

.wfc-single-entry-content li {
    margin-bottom: 9px;
    padding-left: 4px;
}

.wfc-single-entry-content a {
    color: var(--wfc-single-accent);
    text-decoration: underline;
    text-decoration-color: #c7b69e;
    text-underline-offset: 3px;
}

.wfc-single-entry-content a:hover {
    text-decoration-color: currentColor;
}

.wfc-single-entry-content blockquote {
    margin: 38px 0;
    padding: 8px 0 8px 25px;
    border-left: 2px solid var(--wfc-single-accent);
    color: var(--wfc-single-muted);
    font-family: "Noto Serif", Georgia, serif;
    font-size: 20px;
    line-height: 1.8;
}

.wfc-single-entry-content blockquote p:last-child {
    margin-bottom: 0;
}

/* Images and captions */

.wfc-single-entry-content figure {
    max-width: 100%;
    margin: 34px 0;
}

.wfc-single-entry-content figure img,
.wfc-single-entry-content > img,
.wfc-single-entry-content .wp-block-image img {
    display: block;
    max-width: 100%;
    height: auto;
}

.wfc-single-entry-content figure figcaption,
.wfc-single-entry-content .wp-element-caption {
    margin-top: 12px;
    color: var(--wfc-single-muted);
    font-size: 12px;
    line-height: 1.7;
    text-align: center;
}

/* Wide and full-width Gutenberg blocks */

.wfc-single-entry-content .alignwide {
    width: min(100% + 120px, 880px);
    max-width: none;
    margin-right: auto;
    margin-left: auto;
}

.wfc-single-entry-content .alignfull {
    width: 100%;
    max-width: 100%;
    margin-right: 0;
    margin-left: 0;
}

/* Tables */

.wfc-single-entry-content table {
    width: 100%;
    margin: 30px 0;
    border-collapse: collapse;
    font-size: 14px;
    line-height: 1.7;
}

.wfc-single-entry-content th,
.wfc-single-entry-content td {
    padding: 13px 15px;
    border: 1px solid var(--wfc-single-line);
    text-align: left;
    vertical-align: top;
}

.wfc-single-entry-content th {
    background: #efede6;
    font-weight: 600;
}

/* Video and embeds */

.wfc-single-entry-content iframe,
.wfc-single-entry-content video {
    max-width: 100%;
}

.wfc-single-entry-content .wp-block-embed {
    margin: 34px 0;
}

.wfc-single-entry-content .wp-block-embed__wrapper {
    position: relative;
    max-width: 100%;
}

/* Tags */

.wfc-single-footer {
    margin-top: 50px;
    padding-top: 26px;
    border-top: 1px solid var(--wfc-single-line);
}

.wfc-single-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
}

.wfc-single-tags-label {
    margin-right: 5px;
    color: var(--wfc-single-muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.wfc-single-tags a {
    display: inline-block;
    padding: 7px 12px;
    border: 1px solid var(--wfc-single-line);
    color: var(--wfc-single-muted);
    font-size: 12px;
    text-decoration: none;
    transition: all .2s ease;
}

.wfc-single-tags a:hover {
    border-color: var(--wfc-single-accent);
    color: var(--wfc-single-accent);
}

/* Previous / next */

.wfc-single-post-navigation {
    width: min(100% - 48px, 1000px);
    margin: 70px auto 90px;
    padding: 28px 0;
    border-top: 1px solid var(--wfc-single-line);
    border-bottom: 1px solid var(--wfc-single-line);
}

.wfc-single-post-navigation-inner {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
}

.wfc-single-nav-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.wfc-single-nav-next {
    text-align: right;
}

.wfc-single-nav-label {
    color: var(--wfc-single-accent);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.wfc-single-nav-item > a {
    font-family: "Noto Serif", Georgia, serif;
    font-size: 17px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.wfc-single-nav-item > a:hover {
    color: var(--wfc-single-accent);
}

/* Related posts */

.wfc-related-posts {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

.wfc-related-heading {
    margin-bottom: 34px;
    text-align: center;
}

.wfc-related-eyebrow {
    display: block;
    margin-bottom: 12px;
    color: var(--wfc-single-accent);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.wfc-related-heading h2 {
    margin: 0;
    font-family: "Noto Serif", Georgia, serif;
    font-size: clamp(28px, 3vw, 36px);
    font-weight: 400;
    line-height: 1.4;
}

.wfc-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.wfc-related-card {
    min-width: 0;
}

.wfc-related-image {
    display: block;
    overflow: hidden;
    aspect-ratio: 1.35 / 1;
    background: #e9e5dd;
}

.wfc-related-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.wfc-related-image:hover img {
    transform: scale(1.04);
}

.wfc-related-image-placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    color: var(--wfc-single-muted);
    font-family: Georgia, serif;
}

.wfc-related-card-content {
    padding-top: 19px;
}

.wfc-related-card-content > time {
    display: block;
    margin-bottom: 10px;
    color: var(--wfc-single-muted);
    font-size: 11px;
}

.wfc-related-card h3 {
    margin: 0 0 18px;
    font-family: "Noto Serif", Georgia, serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.55;
}

.wfc-related-card h3 a:hover {
    color: var(--wfc-single-accent);
}

.wfc-related-read-more {
    display: inline-flex;
    gap: 10px;
    color: var(--wfc-single-accent) !important;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}

/* Article pagination */

.wfc-single-page-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 30px 0;
}

/* Tablet */

@media (max-width: 900px) {
    .wfc-single-featured-image {
        margin-bottom: 50px;
    }

    .wfc-single-entry-content .alignwide {
        width: 100%;
    }

    .wfc-related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 20px;
    }
}

/* Mobile */

@media (max-width: 600px) {
    .wfc-single-page {
        padding-bottom: 60px;
    }

    .wfc-single-header {
        padding: 25px 20px 32px;
    }

    .wfc-single-breadcrumb {
        margin-bottom: 32px;
        gap: 7px;
    }

    .wfc-single-title {
        font-size: 32px;
        line-height: 1.35;
    }

    .wfc-single-intro {
        margin-top: 18px;
        font-size: 15px;
        line-height: 1.8;
    }

    .wfc-single-meta {
        gap: 9px;
        margin-top: 22px;
        font-size: 10px;
    }

    .wfc-single-featured-image {
        width: calc(100% - 32px);
        margin-bottom: 38px;
    }

    .wfc-single-featured-img {
        aspect-ratio: 4 / 3;
    }

    .wfc-single-layout {
        width: calc(100% - 36px);
    }

    .wfc-single-entry-content {
        font-size: 15px;
        line-height: 1.9;
    }

    .wfc-single-entry-content p {
        margin-bottom: 21px;
    }

    .wfc-single-entry-content h2 {
        margin-top: 40px;
        font-size: 27px;
    }

    .wfc-single-entry-content h3 {
        margin-top: 32px;
        font-size: 23px;
    }

    .wfc-single-entry-content blockquote {
        margin: 28px 0;
        padding-left: 18px;
        font-size: 18px;
    }

    .wfc-single-entry-content table {
        display: block;
        overflow-x: auto;
        white-space: normal;
    }

    .wfc-single-post-navigation {
        width: calc(100% - 36px);
        margin: 48px auto 58px;
    }

    .wfc-single-post-navigation-inner {
        gap: 18px;
    }

    .wfc-single-nav-item > a {
        font-size: 14px;
    }

    .wfc-related-posts {
        width: calc(100% - 36px);
    }

    .wfc-related-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .wfc-related-card h3 {
        font-size: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wfc-single-page *,
    .wfc-single-page *::before,
    .wfc-single-page *::after {
        transition: none !important;
    }
}
