/* ==========================================================================
   WKB Modern Theme — Artisan Editorial
   Weekend Bakery | weekendbakery.com
   ========================================================================== */

/* ==========================================================================
   1. Variables & Design Tokens
   ========================================================================== */
:root {
    /* Palette: Warm Grain, Sage & Espresso */
    --clr-bg: #F8F4EC;
    /* unbleached parchment */
    --clr-bg-warm: #EEE5D2;
    /* warm wheat */
    --clr-bg-dark: #1C1208;
    /* deep espresso */
    --clr-text: #1C1208;
    /* deep espresso */
    --clr-text-muted: #7A6650;
    /* warm taupe */
    --clr-text-on-dark: #F0E8D5;
    /* warm cream */
    --clr-primary: #9A6B2A;
    /* wheat gold */
    --clr-primary-hover: #7A5218;
    --clr-secondary: #4D7A5E;
    /* sage green */
    --clr-accent: #D08A3C;
    /* amber */
    --clr-border: #D8CEBC;
    --clr-card: #FFFCF5;
    --clr-white: #FFFCF5;

    /* Typography */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-serif: 'Lora', Georgia, serif;
    --font-sans: 'Inter', system-ui, sans-serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;

    /* Shape */
    --radius-sm: 3px;
    --radius-md: 7px;
    --radius-lg: 14px;
    --radius-pill: 100px;

    /* Elevation */
    --shadow-subtle: 0 2px 16px rgba(28, 18, 8, 0.05);
    --shadow-card: 0 1px 6px rgba(28, 18, 8, 0.07), 0 4px 18px rgba(28, 18, 8, 0.04);
    --shadow-hover: 0 14px 44px rgba(28, 18, 8, 0.14);

    /* Motion */
    --transition: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ==========================================================================
   2. Base & Reset
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--clr-bg);
    color: var(--clr-text);
    font-family: var(--font-serif);
    font-size: 1rem;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Subtle grain overlay — gives the page an artisanal, tactile depth */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.022;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='256'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.78' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='256' height='256' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 180px 180px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.025em;
    margin-bottom: var(--space-sm);
    color: var(--clr-text);
}

p {
    margin-bottom: var(--space-sm);
}

a {
    color: var(--clr-text);
    text-decoration: none;
    transition: color 0.25s ease;
}

a:hover {
    color: var(--clr-primary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   3. Typography
   ========================================================================== */
.font-sans {
    font-family: var(--font-sans);
}

.text-small {
    font-size: 0.875rem;
}

.text-meta {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--clr-text-muted);
}

.text-center {
    text-align: center;
}

.text-white {
    color: var(--clr-white) !important;
}

.text-primary {
    color: var(--clr-primary);
}

.text-light {
    color: var(--clr-text-muted);
}

.fw-bold {
    font-weight: 600;
}

.fs-hero {
    font-size: clamp(2.8rem, 5.5vw, 4.5rem);
    line-height: 1.08;
}

.fs-display {
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: 1.0;
}

.fs-h1 {
    font-size: clamp(2rem, 3.5vw, 3rem);
    line-height: 1.2;
}

.fs-h2 {
    font-size: clamp(1.6rem, 2.5vw, 2.25rem);
    line-height: 1.25;
}

.fs-h3 {
    font-size: 1.5rem;
    line-height: 1.35;
}

.fs-body-lg {
    font-size: 1.15rem;
    line-height: 1.6;
}

/* ==========================================================================
   4. Layout & Grid
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.container-narrow {
    max-width: 800px;
}

.d-inline-block {
    display: inline-block;
}

.d-flex {
    display: flex;
}

.flex-column {
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.align-center {
    align-items: center;
}

.flex-1 {
    flex: 1;
    min-width: 300px;
}

.w-100 {
    width: 100%;
}

.h-100 {
    height: 100%;
}

.max-w-400 {
    max-width: 400px;
}

.max-w-500 {
    max-width: 500px;
}

.max-w-600 {
    max-width: 600px;
}

.list-none {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   5. Spacing Utilities
   ========================================================================== */
.gap-sm {
    gap: 0.5rem;
}

.gap-md {
    gap: 1rem;
}

.gap-lg {
    gap: 2rem;
}

.gap-xl {
    gap: 4rem;
}

.mb-xs {
    margin-bottom: var(--space-xs);
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mb-sm {
    margin-bottom: var(--space-sm);
}

.mb-md {
    margin-bottom: var(--space-md);
}

.mb-lg {
    margin-bottom: var(--space-lg);
}

.mb-xl {
    margin-bottom: var(--space-xl);
}

.mt-sm {
    margin-top: var(--space-sm);
}

.mt-md {
    margin-top: var(--space-md);
}

.mt-lg {
    margin-top: var(--space-lg);
}

.mt-xl {
    margin-top: var(--space-xl);
}

.mr-sm {
    margin-right: var(--space-sm);
}

.pb-md {
    padding-bottom: var(--space-md);
}

.pb-lg {
    padding-bottom: var(--space-lg);
}

.pb-xl {
    padding-bottom: var(--space-xl);
}

.pt-lg {
    padding-top: var(--space-lg);
}

.section-padding {
    padding: var(--space-md) 0;
}

/* ==========================================================================
   6. General Utilities
   ========================================================================== */
.bg-primary {
    background-color: var(--clr-primary);
}

.bg-dark {
    background-color: var(--clr-bg-dark);
}

.bg-border {
    background-color: var(--clr-border);
}

/* ==========================================================================
   7. Components
   ========================================================================== */

/* — Buttons — */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    background: var(--clr-text);
    color: var(--clr-white);
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.72rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 1.5px solid var(--clr-text);
    transition: background 0.25s ease, color 0.25s ease,
        transform 0.25s ease, box-shadow 0.25s ease;
}

.btn:hover {
    background: transparent;
    color: var(--clr-text);
}

.btn-primary {
    background: var(--clr-primary);
    border-color: var(--clr-primary);
    color: var(--clr-white);
}

.btn-primary:hover {
    background: var(--clr-primary-hover);
    border-color: var(--clr-primary-hover);
    color: var(--clr-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(154, 107, 42, 0.35);
}

.btn-secondary-outline {
    background: transparent;
    color: var(--clr-white);
    border-color: rgba(255, 252, 245, 0.45);
}

.btn-secondary-outline:hover {
    background: var(--clr-white);
    color: var(--clr-bg-dark);
    border-color: var(--clr-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(255, 252, 245, 0.15);
}

/* — Print article / recipe (markup: .print-post-wrapper > .print-post-button) — */
.print-post-wrapper {
    margin: var(--space-md) 0;
}

.print-post-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    line-height: 1.2;
    color: var(--clr-white);
    background: var(--clr-primary);
    border: 1.5px solid var(--clr-primary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease,
        transform 0.25s ease, box-shadow 0.25s ease;
}

.print-post-button:hover {
    background: var(--clr-primary-hover);
    border-color: var(--clr-primary-hover);
    color: var(--clr-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(154, 107, 42, 0.35);
}

.print-post-button:focus-visible {
    outline: 2px solid var(--clr-primary);
    outline-offset: 3px;
}

.print-post-button .print-icon {
    font-size: 1rem;
    line-height: 1;
    letter-spacing: 0;
    text-transform: none;
}

.print-post-button .print-text {
    font-size: inherit;
    letter-spacing: inherit;
}

@media print {
    .print-post-wrapper {
        display: none !important;
    }
}

/* — Posts & comments pagination (the_posts_pagination, the_comments_pagination) — */
.pagination-wrap .navigation.pagination .screen-reader-text,
.pagination-wrap .navigation.comments-pagination .screen-reader-text {
    border: 0;
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.pagination-wrap .navigation.pagination,
.pagination-wrap .navigation.comments-pagination {
    width: 100%;
}

.pagination-wrap .nav-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

.pagination-wrap .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    min-height: 2.5rem;
    padding: 0.35rem 0.65rem;
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--clr-text);
    background: var(--clr-card);
    border: 1.5px solid var(--clr-border);
    border-radius: var(--radius-sm);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease,
        box-shadow 0.2s ease, transform 0.2s ease;
}

.pagination-wrap a.page-numbers:hover {
    color: var(--clr-primary);
    border-color: var(--clr-primary);
    background: var(--clr-white);
    box-shadow: var(--shadow-subtle);
    transform: translateY(-1px);
}

.pagination-wrap .page-numbers.current {
    background: var(--clr-text);
    color: var(--clr-white);
    border-color: var(--clr-text);
    cursor: default;
}

.pagination-wrap .page-numbers.dots {
    min-width: auto;
    padding: 0 0.25rem;
    border-color: transparent;
    background: transparent;
    color: var(--clr-text-muted);
    letter-spacing: 0.04em;
    text-transform: none;
    font-size: 0.85rem;
}

.pagination-wrap a.page-numbers:focus-visible {
    outline: 2px solid var(--clr-primary);
    outline-offset: 2px;
}

.pagination-wrap .prev.page-numbers,
.pagination-wrap .next.page-numbers {
    padding-left: 1rem;
    padding-right: 1rem;
    min-width: auto;
}

/* — Forms — */
.form-input {
    padding: 0.65rem 1rem;
    border: 1.5px solid var(--clr-border);
    border-radius: var(--radius-sm);
    background: var(--clr-card);
    font-family: var(--font-sans);
    font-size: 0.875rem;
    color: var(--clr-text);
    transition: border-color 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--clr-primary);
}

/* — Images — */
.img-featured {
    width: 100%;
    border-radius: var(--radius-lg);
    height: auto;
    max-height: 620px;
    object-fit: cover;
    box-shadow: var(--shadow-card);
}

.img-radius {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.webshop-highlight__link {
    display: block;
    line-height: 0;
}

.webshop-highlight__link img {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.2s ease;
}

.webshop-highlight__link:hover img {
    opacity: 0.92;
}

.webshop-highlight__link:focus-visible {
    outline: 2px solid var(--clr-white);
    outline-offset: 4px;
}

.img-placeholder {
    background: var(--clr-bg-warm);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clr-text-muted);
}

/* — Posts & Content — */
.page-links {
    margin-top: 2rem;
    font-family: var(--font-sans);
    font-weight: 600;
}

.archive-desc {
    font-size: 1.125rem;
    max-width: 600px;
    margin: var(--space-sm) auto 0;
}

.search-form-wrap {
    max-width: 500px;
    margin: var(--space-md) auto 0;
}

.no-results-box {
    grid-column: 1 / -1;
    text-align: center;
}

.error-404-box {
    min-height: 60vh;
    flex-direction: column;
    justify-content: center;
}

.comments-area {
    border-top: 1px solid var(--clr-border);
    padding-top: var(--space-lg);
    margin-top: var(--space-lg);
}

/* — Comment List — */
.comment-list {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.comment-list .comment,
.comment-list .pingback {
    list-style: none;
}

.comment-body {
    background: var(--clr-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--clr-border);
    padding: 1.75rem 1.75rem 1.25rem;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.comment-body::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg,
        var(--clr-primary) 0%,
        var(--clr-accent) 100%);
}

.comment-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.1rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid var(--clr-border);
    flex-wrap: wrap;
}

.comment-author.vcard {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.comment-author .avatar {
    border-radius: 50% !important;
    border: 2px solid var(--clr-primary) !important;
    width: 52px !important;
    height: 52px !important;
    object-fit: cover;
    flex-shrink: 0;
}

.comment-author .fn {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.05rem;
    font-style: normal;
}

.comment-author .fn a {
    color: var(--clr-text);
}

.comment-author .fn a:hover {
    color: var(--clr-primary);
}

.comment-metadata {
    font-family: var(--font-sans);
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--clr-text-muted);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.2rem;
}

.comment-metadata a {
    color: var(--clr-text-muted);
    transition: color 0.2s ease;
}

.comment-metadata a:hover {
    color: var(--clr-primary);
}

.comment-metadata .edit-link {
    font-size: 0.65rem;
    opacity: 0.7;
}

.comment-content {
    font-family: var(--font-serif);
    font-size: 1rem;
    line-height: 1.55;
    color: var(--clr-text);
}

.comment-content p:last-child {
    margin-bottom: 0;
}

.comment-list .reply {
    margin-top: 1rem;
    padding-top: 0.65rem;
    border-top: 1px solid var(--clr-border);
}

.comment-reply-link {
    font-family: var(--font-sans);
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--clr-text-muted);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: color 0.2s ease;
}

.comment-reply-link::before {
    content: '↩';
    font-size: 0.9em;
}

.comment-reply-link:hover {
    color: var(--clr-primary);
}

/* Nested replies */
.comment-list .children {
    list-style: none;
    padding-left: 2.5rem;
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    border: none;
}

.comment-list .children .comment-body {
    background: var(--clr-bg);
}

.comment-list .children .comment-body::before {
    background: linear-gradient(180deg,
        var(--clr-secondary) 0%,
        var(--clr-accent) 100%);
}

/* — Comment Form Card — */
#respond {
    background: var(--clr-bg-warm);
    border-radius: var(--radius-lg);
    padding: 2.75rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--clr-border);
    margin-top: var(--space-md);
}

#respond::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        var(--clr-primary) 0%,
        var(--clr-accent) 48%,
        var(--clr-secondary) 100%);
}

.comment-reply-title {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 2.5vw, 1.9rem);
    font-weight: 600;
    color: var(--clr-text);
    margin-bottom: 1.75rem;
    line-height: 1.2;
}

.comment-reply-title small {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    margin-top: 0.4rem;
    color: var(--clr-text-muted);
}

.comment-reply-title small a {
    color: var(--clr-text-muted);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.comment-notes {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    color: var(--clr-text-muted);
    margin-bottom: 1.5rem !important;
    font-style: italic;
}

.comment-notes.comment-policy {
    font-style: normal;
}

.comment-policy__lead {
    font-style: italic;
    margin-bottom: 0.75rem;
}

.comment-policy__list {
    margin: 0 0 1rem;
    padding-left: 1.25rem;
    list-style: disc;
}

.comment-policy__list li {
    margin-bottom: 0.35rem;
}

.comment-policy__list li:last-child {
    margin-bottom: 0;
}

.comment-policy__fields {
    margin-bottom: 0.75rem;
}

.comment-notes.comment-policy .comment-form-required {
    font-size: 0.75rem;
    font-style: italic;
    margin-bottom: 0 !important;
}

/* Form field grid */
.comment-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.comment-notes,
.comment-form-comment,
.comment-form-url,
.comment-form-cookies-consent,
.form-submit {
    grid-column: 1 / -1;
}

.comment-form p {
    margin: 0;
    display: flex;
    flex-direction: column;
}

.comment-form label {
    font-family: var(--font-sans);
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--clr-text-muted);
    margin-bottom: 0.45rem;
}

.comment-form .required {
    color: var(--clr-accent);
    margin-left: 0.1em;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--clr-border);
    border-radius: var(--radius-sm);
    background: var(--clr-card);
    font-family: var(--font-sans);
    font-size: 0.875rem;
    color: var(--clr-text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    -webkit-appearance: none;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus {
    outline: none;
    border-color: var(--clr-primary);
    box-shadow: 0 0 0 3px rgba(154, 107, 42, 0.12);
}

.comment-form textarea {
    width: 100%;
    padding: 1rem;
    border: 1.5px solid var(--clr-border);
    border-radius: var(--radius-sm);
    background: var(--clr-card);
    font-family: var(--font-serif);
    font-size: 0.95rem;
    color: var(--clr-text);
    line-height: 1.8;
    resize: vertical;
    min-height: 160px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.comment-form textarea:focus {
    outline: none;
    border-color: var(--clr-primary);
    box-shadow: 0 0 0 3px rgba(154, 107, 42, 0.12);
}

.comment-form input::placeholder,
.comment-form textarea::placeholder {
    color: var(--clr-text-muted);
    opacity: 0.55;
}

.form-submit {
    margin-top: 0.25rem;
}

.form-submit .btn {
    min-width: 180px;
}

@media (max-width: 600px) {
    .comment-form {
        grid-template-columns: 1fr;
    }

    #respond {
        padding: 1.75rem 1.25rem;
    }

    .comment-list .children {
        padding-left: 1rem;
    }

    .comment-metadata {
        align-items: flex-start;
    }
}

/* ==========================================================================
   8. Header & Navigation
   ========================================================================== */
.site-header {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--clr-border);
    position: sticky;
    top: 0;
    background: rgba(248, 244, 236, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 100;
    transition: box-shadow 0.3s ease;
}

/* Three-colour accent stripe at the very top */
.site-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
            var(--clr-primary) 0%,
            var(--clr-accent) 48%,
            var(--clr-secondary) 100%);
}

.site-header.is-scrolled {
    box-shadow: 0 2px 32px rgba(28, 18, 8, 0.08);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo / Site Title */
.site-title {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--clr-text);
    transition: color 0.25s ease;
    font-style: italic;
}

.site-title:hover {
    color: var(--clr-primary);
}

.custom-logo {
    max-height: 52px;
    width: auto;
}

/* Navigation */
.main-navigation ul {
    list-style: none;
    display: flex;
    gap: var(--space-md);
}

.main-navigation a {
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--clr-text-muted);
    transition: color 0.25s ease;
    position: relative;
    padding-bottom: 3px;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--clr-primary);
    transition: width 0.3s var(--transition);
}

.main-navigation a:hover {
    color: var(--clr-text);
}

.main-navigation a:hover::after {
    width: 100%;
}

/* ============================================================
   Sub-menus — Mega Menu
   ============================================================ */

/* Top-level li must be position:static so the panel escapes
   the nav flow and anchors to .site-header (position:sticky) */
.main-navigation > ul > li {
    position: static;
}

/* ── LEVEL 1: the mega panel ── */
.main-navigation > ul > li > ul {
    list-style: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 0;
    background: rgba(255, 252, 245, 0.98);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-top: 2px solid var(--clr-primary);
    border-bottom: 1px solid var(--clr-border);
    box-shadow: 0 16px 48px rgba(28, 18, 8, 0.11);
    padding: var(--space-sm) var(--space-md);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.22s var(--transition), visibility 0s ease 0.2s;
    z-index: 500;
}

.main-navigation > ul > li.is-hover-open > ul {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition: opacity 0.2s ease, transform 0.22s var(--transition), visibility 0s ease 0s;
}

/* Transparent bridge: keeps li:hover alive as the mouse
   travels from the nav link down into the dropdown panel */
.main-navigation > ul > li > ul::before {
    content: '';
    position: absolute;
    top: -24px;
    left: 0;
    right: 0;
    height: 24px;
}

/* ── LEVEL 1 items: columns inside the panel ── */
.main-navigation > ul > li > ul > li {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.6rem 1.4rem;
    position: relative;
}

/* Vertical divider between columns */
.main-navigation > ul > li > ul > li + li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12%;
    height: 76%;
    width: 1px;
    background: var(--clr-border);
}

/* Column-header link (level-1 sub-item that has children) */
.main-navigation > ul > li > ul > li:has(> ul) > a {
    font-family: var(--font-sans);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--clr-text);
    padding: 0 0 0.5rem 0;
    white-space: nowrap;
    border-bottom: 1px solid var(--clr-border);
    margin-bottom: 0.35rem;
    width: 100%;
    transition: color 0.18s ease;
}

/* Flat link (level-1 sub-item with no children — just a row item) */
.main-navigation > ul > li > ul > li:not(:has(> ul)) > a {
    font-family: var(--font-sans);
    font-size: 0.74rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--clr-text-muted);
    padding: 0.15rem 0;
    white-space: nowrap;
    transition: color 0.18s ease;
}

.main-navigation > ul > li > ul > li > a::after {
    display: none;
}

.main-navigation > ul > li > ul > li > a:hover {
    color: var(--clr-primary);
}

/* ── LEVEL 2: children inside a column — always visible ── */
.main-navigation > ul > li > ul > li > ul {
    list-style: none;
    position: static;
    display: flex;
    flex-direction: column;
    opacity: 1;
    visibility: inherit;
    pointer-events: inherit;
    transform: none;
    transition: none;
    background: none;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 0;
    gap: 0;
    width: 100%;
}

.main-navigation > ul > li > ul > li > ul > li {
    position: static;
}

.main-navigation > ul > li > ul > li > ul > li::before,
.main-navigation > ul > li > ul > li > ul > li + li::before {
    display: none;
}

/* Level-2 child links */
.main-navigation > ul > li > ul > li > ul > li > a {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0.01em;
    color: var(--clr-text-muted);
    padding: 0.22rem 0;
    white-space: nowrap;
    transition: color 0.18s ease;
}

.main-navigation > ul > li > ul > li > ul > li > a::after {
    display: none;
}

.main-navigation > ul > li > ul > li > ul > li > a:hover {
    color: var(--clr-primary);
}

/* ── Chevron on top-level parent items ── */
.main-navigation > ul > li:has(> ul) > a {
    padding-right: 1.2em;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5' viewBox='0 0 8 5'%3E%3Cpath d='M1 1l3 3 3-3' stroke='%237A6650' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.1em center;
    background-size: 8px 5px;
    transition: color 0.25s ease, background-image 0.15s ease;
}

.main-navigation > ul > li:has(> ul):hover > a,
.main-navigation > ul > li:has(> ul).is-hover-open > a {
    color: var(--clr-text);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5' viewBox='0 0 8 5'%3E%3Cpath d='M1 4l3-3 3 3' stroke='%231C1208' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Header actions (search + shop button) */
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.header-search-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: none;
    border: 1.5px solid var(--clr-border);
    border-radius: var(--radius-sm);
    color: var(--clr-text-muted);
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    flex-shrink: 0;
}

.header-search-toggle:hover,
.header-search-toggle.is-active {
    color: var(--clr-text);
    border-color: var(--clr-text);
    background: rgba(28, 18, 8, 0.05);
}

.header-search-toggle svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Slide-down search bar (lives inside sticky <header>) */
.search-bar-wrap {
    overflow: hidden;
    max-height: 0;
    visibility: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease, border-color 0.35s ease, visibility 0s ease 0.35s;
    border-top: 1px solid transparent;
    border-bottom: 1px solid transparent;
    background: var(--clr-bg);
}

.search-bar-wrap.is-open {
    max-height: 80px;
    visibility: visible;
    padding: 0.75rem 0;
    border-top-color: var(--clr-border);
    border-bottom-color: var(--clr-border);
    transition: max-height 0.35s ease, padding 0.35s ease, border-color 0.35s ease, visibility 0s ease 0s;
}

.search-bar-wrap .search-form {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    max-width: 640px;
    margin: 0 auto;
    background: var(--clr-card);
    border: 1.5px solid var(--clr-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    gap: 0;
    box-shadow: var(--shadow-subtle);
}

.search-bar-wrap .search-form label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.search-bar-wrap .search-form .search-field {
    flex: 1;
    min-width: 0;
    width: auto;
    border: none;
    border-radius: 0;
    padding: 0.75rem 1.25rem;
    background: transparent;
    color: var(--clr-text);
    font-size: 0.95rem;
    box-sizing: border-box;
}

.search-bar-wrap .search-form .search-field::placeholder {
    color: var(--clr-text-muted);
}

.search-bar-wrap .search-form .search-field:focus {
    outline: none;
    border-color: transparent;
}

.search-bar-wrap .search-form .search-submit {
    width: 48px;
    height: auto;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    border: none;
    border-left: 1.5px solid var(--clr-border);
    padding: 0;
    background: var(--clr-primary);
    color: var(--clr-white);
    font-size: 0;
    cursor: pointer;
    transition: background 0.2s ease;
}

.search-bar-wrap .search-form .search-submit:hover {
    background: var(--clr-primary-hover);
}

.search-bar-wrap .search-form .search-submit svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
}

/* Mobile toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.75rem;
    min-width: 44px;
    min-height: 44px;
    position: relative;
    z-index: 1000;
}

.hamburger-line {
    display: block;
    width: 22px;
    height: 1.5px;
    margin: 5px auto;
    background-color: var(--clr-text);
    transition: all 0.3s ease;
}

/* ==========================================================================
   9. Hero Section
   ========================================================================== */
.hero {
    position: relative;
    min-height: 88vh;
    display: flex;
    flex-direction: column;
    padding: var(--space-xl) 0 calc(var(--space-xl) + 50px);
    overflow: hidden;
}

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transition: transform 10s ease;
}

.hero:hover .hero-image {
    transform: scale(1.03);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(155deg,
            rgba(28, 18, 8, 0.65) 0%,
            rgba(28, 18, 8, 0.38) 50%,
            rgba(28, 18, 8, 0.10) 100%);
    z-index: 1;
}

/* Warm amber tint at the bottom of the overlay */
.hero-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(154, 107, 42, 0.22) 0%,
            transparent 55%);
}

/* Hero row: copy left, site name right */
.hero>.container.hero-layout {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: clamp(var(--space-md), 4vw, var(--space-xl));
}

/* Site name — right column beside .hero-content */
.hero-brand {
    position: relative;
    z-index: 3;
    flex: 1 1 260px;
    min-width: min(100%, 220px);
    max-width: min(100%, 560px);
    margin-left: auto;
    text-align: right;
    /* Italic overshoots the box on the right; keep it off the flex edge */
    padding: 0.12em 0.2rem 0.2em 0.1rem;
    align-self: center;
    overflow: visible;
    pointer-events: none;
    opacity: 0;
    animation: fadeUp 0.4s ease 0.05s forwards;
}

/* Shadow on wrapper — filter on the gradient text itself crops italic overshoot in WebKit */
.hero-brand__title-wrap {
    display: block;
    overflow: visible;
    filter: drop-shadow(0 10px 40px rgba(28, 18, 8, 0.22));
}

.hero-brand__title {
    display: block;
    text-align: right;
    font-family: var(--font-display);
    font-size: clamp(3.25rem, 7.5vw, 7.25rem);
    font-style: normal;
    font-weight: 600;
    line-height: 1.06;
    letter-spacing: -0.035em;
    text-wrap: balance;
    padding: 0 0.12em 0.08em 0.06em;
    overflow: visible;
    text-decoration: underline double;
    text-decoration-color: rgba(255, 252, 245, 0.55);
    text-underline-offset: 0.1em;
    text-decoration-thickness: from-font;
    color: white;
}

.hero-brand__tagline {
    margin: 0.85rem 0 0;
    padding: 0;
    max-width: 28ch;
    margin-left: auto;
    text-align: right;
    font-family: var(--font-sans);
    font-size: clamp(0.8rem, 1.35vw, 0.95rem);
    font-weight: 500;
    line-height: 1.55;
    letter-spacing: 0.01em;
    color: rgba(255, 252, 245, 0.82);
    text-shadow: 0 1px 10px rgba(28, 18, 8, 0.28);
}

.hero>.container {
    position: relative;
    z-index: 3;
    margin-top: auto;
    width: 100%;
}

.hero-content {
    flex: 1 1 400px;
    min-width: 0;
    max-width: 680px;
    padding: var(--space-lg) var(--space-xl);
    border: 1.5px solid rgba(255, 252, 245, 0.38);
    border-radius: var(--radius-md);
    background: rgba(28, 18, 8, 0.42);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    box-shadow: 0 12px 40px rgba(28, 18, 8, 0.35);
    opacity: 0;
    animation: fadeUp 0.4s ease 0.1s forwards;
}

/* Category badge */
.hero-content .text-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    background: var(--clr-primary);
    color: var(--clr-white);
    padding: 0.32em 1em;
    border-radius: var(--radius-pill);
    font-size: 0.67rem;
    letter-spacing: 0.14em;
    margin-bottom: var(--space-sm);
    font-family: var(--font-sans);
    font-weight: 600;
}

.hero-content .text-meta::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255, 252, 245, 0.65);
}

.hero h1 {
    font-size: clamp(2.8rem, 6vw, 5rem);
    font-style: italic;
    font-weight: 700;
    color: #FFFCF5;
    line-height: 1.06;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-md);
    text-shadow: 0 2px 40px rgba(28, 18, 8, 0.25);
    text-decoration: underline double;
    text-decoration-color: rgba(255, 252, 245, 0.55);
    text-underline-offset: 0.1em;
    text-decoration-thickness: from-font;
}

.hero p {
    color: rgba(255, 252, 245, 0.82);
    font-size: 1.1rem;
    line-height: 1.75;
    max-width: 500px;
    margin-bottom: var(--space-md);
    font-family: var(--font-serif);
}

/* Wave at the bottom of the hero — transitions to page background */
.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    line-height: 0;
    z-index: 2;
    pointer-events: none;
}

.hero-wave svg {
    display: block;
    width: 100%;
}

/* Hero search bar */
.hero-search {
    margin-top: var(--space-md);
    max-width: 480px;
}

.hero-search .search-form {
    flex-direction: row;
    align-items: center;
    background: rgba(28, 18, 8, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 252, 245, 0.2);
    border-radius: var(--radius-pill);
    padding: 5px 5px 5px 20px;
    gap: 0;
}

.hero-search .search-form label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.hero-search .search-field {
    flex: 1;
    width: 100%;
    background: transparent;
    border: none;
    border-radius: 0;
    color: #FFFCF5;
    font-size: 0.9rem;
    padding: 0.5rem 0;
    box-sizing: border-box;
}

.hero-search .search-field::placeholder {
    color: rgba(255, 252, 245, 0.5);
}

.hero-search .search-field:focus {
    outline: none;
    border-color: transparent;
}

.hero-search .search-submit {
    background: var(--clr-primary);
    color: var(--clr-white);
    border: none;
    border-radius: var(--radius-pill);
    padding: 0.65rem 1.4rem;
    font-size: 0.72rem;
    font-family: var(--font-sans);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: background 0.25s ease;
    width: auto;
    flex-shrink: 0;
}

.hero-search .search-submit:hover {
    background: var(--clr-accent);
}

.hero-search .search-submit svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ==========================================================================
   10. Section Titles & Recipe Cards
   ========================================================================== */

/* Section Title — italic serif with gold underline */
.section-title {
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 600;
    text-align: center;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-lg);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 36px;
    height: 2px;
    background: var(--clr-primary);
    margin: 0.6rem auto 0;
    border-radius: 2px;
}

/* Card Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    padding: var(--space-md);
}

/* Category layout — card-grid stacked above sidebar */
.category-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    align-items: start;
}

.category-layout .card-grid {
    padding: var(--space-md);
    grid-template-columns: repeat(3, 1fr);
}

/* Sidebars (category, page, single): two columns on tablet + desktop; --space-md gap */
.category-sidebar,
.page-sidebar,
.main-grid #secondary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-md);
    align-items: start;
    margin: 0;
    padding: 0;
    min-width: 0;
}

.category-sidebar .widget:last-child:nth-child(odd),
.page-sidebar .widget:last-child:nth-child(odd),
.main-grid #secondary .widget:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

.category-sidebar .widget,
.page-sidebar .widget,
.main-grid #secondary .widget {
    margin-bottom: 0;
}

/* Page layout — content stacked above sidebar */
.page-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    align-items: start;
    padding: 0;
}

/* Card */
.card {
    background: var(--clr-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--clr-border);
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
}

.card-image-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 2;
    display: block;
}

.card-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.card:hover .card-image-wrap img {
    transform: scale(1.06);
}

.card-content {
    padding: 1.4rem 1.5rem 1.8rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Category label: sage green */
.card-content .text-meta {
    color: var(--clr-secondary);
    font-family: var(--font-sans);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.card-title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-top: 0.45rem;
    margin-bottom: 0.45rem;
    line-height: 1.3;
}

.card-title a {
    color: var(--clr-text);
}

.card-title a:hover {
    color: var(--clr-primary);
}

.card-content p {
    font-size: 0.9rem;
    color: var(--clr-text-muted);
    line-height: 1.65;
    margin-bottom: 0;
    flex: 1;
}

/* ==========================================================================
   11. Wave Dividers & Dark Section
   ========================================================================== */

/* Wrapper that holds a wave SVG; sits on the light background */
.wave-to-dark {
    background: var(--clr-bg);
    line-height: 0;
    overflow: hidden;
    display: block;
    margin-bottom: -1px;
}

.wave-to-dark svg {
    display: block;
    width: 100%;
    height: auto;
}

/* Wrapper that holds a wave SVG; sits on the light background, closing the dark section */
.wave-from-dark {
    background: var(--clr-bg);
    line-height: 0;
    overflow: hidden;
    display: block;
    margin-top: -1px;
    margin-bottom: -1px;
}

.wave-from-dark svg {
    display: block;
    width: 100%;
    height: auto;
}

/* Dark section styles */
.section-dark {
    background: var(--clr-bg-dark);
    color: var(--clr-text-on-dark);
}

.section-dark h1,
.section-dark h2,
.section-dark h3 {
    color: var(--clr-white);
}

.section-dark p {
    color: rgba(240, 232, 213, 0.8);
}

/* ==========================================================================
   12. Footer
   ========================================================================== */
.site-footer {
    background: var(--clr-bg-dark);
    color: var(--clr-text-on-dark);
    padding: var(--space-xl) 0 var(--space-md);
    position: relative;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
    position: relative;
}

/* Footer widget titles: same display typography in every column */
.site-footer .widget .widget-title {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--clr-white);
    text-transform: none;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--clr-border);
    margin-bottom: var(--space-sm);
}

/* Footer fallback headings (e.g. empty widget areas) */
.site-footer h3:not(.widget-title) {
    color: var(--clr-white);
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-sm);
}

.site-footer p,
.site-footer .font-sans {
    color: rgba(240, 232, 213, 0.62);
    font-size: 0.9rem;
    line-height: 1.72;
}

.site-footer a {
    color: rgba(240, 232, 213, 0.58);
    transition: color 0.2s ease;
}

.site-footer a:hover {
    color: var(--clr-white);
}

.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer ul li {
    padding: 0.35rem 0;
}

.site-footer ul li a {
    font-family: var(--font-sans);
    font-size: 0.88rem;
}

.site-footer .form-input {
    border-color: rgba(240, 232, 213, 0.18);
    background: rgba(255, 252, 245, 0.06);
    color: var(--clr-white);
}

.site-footer .form-input::placeholder {
    color: rgba(240, 232, 213, 0.38);
}

.site-footer .form-input:focus {
    border-color: var(--clr-primary);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 252, 245, 0.09);
    padding-top: var(--space-md);
    font-size: 0.8rem;
    color: rgba(240, 232, 213, 0.38);
    font-family: var(--font-sans);
    position: relative;
}

/* ==========================================================================
   13. Animations
   ========================================================================== */
@keyframes fadeUp {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.fade-in-section {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease-out;
}

.fade-in-section.is-visible {
    opacity: 1;
    visibility: visible;
}

/* ==========================================================================
   14. Responsive Media Queries
   ========================================================================== */
@media (max-width: 1100px) {

    /* Header & Nav */
    .site-header {
        padding: 0;
    }

    .header-inner {
        position: relative;
    }

    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
    }

    .header-actions {
        display: flex;
        align-items: center;
        gap: var(--space-xs);
    }

    .header-actions .btn {
        display: none;
    }

    .main-navigation {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(248, 244, 236, 0.97);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-out;
        box-shadow: 0 20px 40px rgba(28, 18, 8, 0.1);
        border-top: 1px solid var(--clr-border);
    }

    .main-navigation.is-open {
        max-height: calc(100dvh - 80px);
        overflow-y: auto;
        padding: var(--space-xs) 0;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 0;
        align-items: stretch;
    }

    /* Proper tap targets for all mobile nav links */
    .main-navigation a {
        display: flex;
        align-items: center;
        min-height: 48px;
        padding: 0.65rem var(--space-sm);
        font-size: 0.95rem;
        width: 100%;
        border-bottom: 1px solid var(--clr-border);
    }

    .main-navigation a::after {
        display: none;
    }

    /* Sub-menus — mobile mega menu collapsed by default */

    /* Level 1 panel: static, hidden until .is-open */
    .main-navigation > ul > li > ul {
        position: static;
        display: none;
        flex-direction: column;
        flex-wrap: nowrap;
        justify-content: flex-start;
        align-items: stretch;
        width: 100%;
        opacity: 1;
        visibility: visible;
        pointer-events: none;
        transform: none;
        transition: none;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        box-shadow: none;
        border: none;
        border-left: 2px solid var(--clr-primary);
        padding: var(--space-xs) 0 0 var(--space-xs);
        margin-top: var(--space-xs);
    }

    .main-navigation > ul > li.is-open > ul {
        display: flex;
        pointer-events: auto;
    }

    /* Disable CSS hover on mobile */
    .main-navigation > ul > li:hover > ul {
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    /* Level 1 column items: flat on mobile */
    .main-navigation > ul > li > ul > li {
        flex-direction: column;
        align-items: stretch;
        padding: 0;
        margin-bottom: 0;
    }

    .main-navigation > ul > li > ul > li + li::before {
        display: none;
    }

    /* Column header & flat links on mobile */
    .main-navigation > ul > li > ul > li:has(> ul) > a,
    .main-navigation > ul > li > ul > li:not(:has(> ul)) > a {
        font-size: 0.88rem;
        font-weight: 600;
        padding: 0.55rem var(--space-sm);
        min-height: 44px;
        border-bottom: 1px solid var(--clr-border);
        margin-bottom: 0;
        width: 100%;
        color: var(--clr-text);
    }

    /* Level 2: always visible when parent panel is open */
    .main-navigation > ul > li > ul > li > ul {
        padding-left: var(--space-xs);
    }

    .main-navigation > ul > li > ul > li > ul > li > a {
        font-size: 0.85rem;
        padding: 0.5rem var(--space-sm);
        min-height: 40px;
    }

    /* Arrow: give it breathing room from the right edge on mobile */
    .main-navigation > ul > li:has(> ul) > a {
        padding-right: calc(var(--space-sm) + 1.2rem);
        background-position: right var(--space-sm) center;
        background-size: 10px 6px;
    }

    /* Flip chevron when submenu is open */
    .main-navigation > ul > li.is-open:has(> ul) > a {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5' viewBox='0 0 8 5'%3E%3Cpath d='M1 4l3-3 3 3' stroke='%231C1208' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    }

    .mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
        transform: translateY(11.5px) rotate(45deg);
    }

    .mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
        transform: translateY(-11.5px) rotate(-45deg);
    }

    /* Hero */
    .hero {
        min-height: 72vh;
        padding-bottom: calc(var(--space-lg) + 50px);
    }

    .hero>.container.hero-layout {
        flex-direction: column;
        align-items: stretch;
    }

    .hero>.container.hero-layout .hero-brand {
        order: 1;
    }

    .hero>.container.hero-layout .hero-content {
        order: 2;
    }

    .hero-brand {
        flex: 1 1 auto;
        max-width: none;
        margin-left: 0;
        text-align: center;
        padding-top: var(--space-sm);
    }

    .hero-brand__title {
        text-align: center;
        font-size: clamp(2.5rem, 10vw, 3.75rem);
    }

    .hero-brand__tagline {
        margin-left: auto;
        margin-right: auto;
        text-align: center;
        max-width: 36ch;
        letter-spacing: 0.01em;
    }

    .hero-content {
        padding: var(--space-md) var(--space-lg);
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .fs-hero {
        font-size: 2.4rem;
    }

    .fs-display {
        font-size: 3rem;
    }

    /* Layouts */
    .card-grid {
        grid-template-columns: 1fr;
    }

    .category-layout,
    .page-layout {
        grid-template-columns: 1fr;
    }

    .category-layout .card-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .site-footer form {
        flex-direction: column;
    }

}

@media (max-width: 600px) {
    .card-grid,
    .category-layout .card-grid {
        padding: 0;
    }

    /* Small mobile: sidebar widgets stack in one column */
    .category-sidebar,
    .page-sidebar,
    .main-grid #secondary {
        display: flex;
        flex-direction: column;
        gap: var(--space-md);
    }
}

@media (min-width: 601px) and (max-width: 1100px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .category-layout,
    .page-layout {
        grid-template-columns: 1fr;
    }

    .category-layout .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-grid>div:last-child {
        grid-column: 1 / -1;
    }
}

/* ==========================================================================
   15. Layouts & Widgets
   ========================================================================== */
.main-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    align-items: start;
}

.main-grid .primary-content,
.page-main {
    min-width: 0;
    max-width: 740px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.widget {
    margin-bottom: var(--space-lg);
    background: var(--clr-card);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    border: 1px solid var(--clr-border);
    box-shadow: var(--shadow-subtle);
    overflow: hidden;
    word-break: break-word;
}

.widget.wkb-featured-posts {
    padding-top: var(--space-md);
}

.widget .widget-title {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--clr-text-muted);
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--clr-border);
    margin-bottom: var(--space-sm);
}

.widget select,
.widget input {
    width: 100%;
    max-width: 100%;
}

/* — Search widget — */
.search-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.search-form .search-field {
    width: 100%;
    padding: 0.65rem 1rem;
    border: 1.5px solid var(--clr-border);
    border-radius: var(--radius-sm);
    background: var(--clr-card);
    font-family: var(--font-sans);
    font-size: 0.875rem;
    color: var(--clr-text);
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.search-form .search-field::placeholder {
    color: var(--clr-text-muted);
}

.search-form .search-field:focus {
    outline: none;
    border-color: var(--clr-primary);
}

.search-form .search-submit {
    width: 100%;
    padding: 0.75rem 1.75rem;
    background: var(--clr-primary);
    color: var(--clr-white);
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 1.5px solid var(--clr-primary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.search-form .search-submit:hover {
    background: var(--clr-primary-hover);
    border-color: var(--clr-primary-hover);
}

.search-form .search-submit svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* — Search results page form — */
.search-form-wrap .search-form {
    flex-direction: row;
    gap: 0;
    border: 1.5px solid var(--clr-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--clr-card);
    box-shadow: var(--shadow-subtle);
}

.search-form-wrap .search-form .search-field {
    flex: 1;
    min-width: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    font-size: 0.95rem;
    padding: 0.75rem 1.25rem;
}

.search-form-wrap .search-form .search-field:focus {
    border-color: transparent;
}

.search-form-wrap .search-form .search-submit {
    width: 48px;
    padding: 0;
    border-radius: 0;
    border: none;
    border-left: 1.5px solid var(--clr-border);
    font-size: 0;
    flex-shrink: 0;
}

.search-form-wrap .search-form .search-submit svg {
    width: 17px;
    height: 17px;
}

/* Hide text label in icon-only submit contexts */
.search-bar-wrap .search-form .search-submit .search-submit-label,
.search-form-wrap .search-form .search-submit .search-submit-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.widget ul {
    list-style: none;
    padding-left: 0;
}

.widget ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--clr-border);
    font-size: 0.9rem;
}

.widget ul li:last-child {
    border-bottom: none;
}

.site-footer .widget {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    margin-bottom: var(--space-md);
}

.site-footer .footer-grid > div > .widget:last-child {
    margin-bottom: 0;
}

.site-footer .widget ul li {
    border-bottom-color: rgba(255, 252, 245, 0.08);
}

/* ==========================================================================
   18. Entry / Post Content
   ========================================================================== */
.entry-content {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--clr-text);
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin-top: var(--space-md);
    margin-bottom: var(--space-sm);
}

.entry-content p {
    margin-bottom: 1.3rem;
}

.entry-content a {
    color: var(--clr-primary);
    text-decoration: underline;
    text-decoration-color: rgba(154, 107, 42, 0.38);
    text-underline-offset: 3px;
    transition: text-decoration-color 0.2s ease;
}

.entry-content a:hover {
    text-decoration-color: var(--clr-primary);
}

.entry-content img {
    border-radius: var(--radius-md);
    margin: var(--space-md) 0;
}

.entry-content blockquote:first-child {
    margin-top: 0;
}

.entry-content blockquote {
    border-left: 3px solid var(--clr-primary);
    padding: var(--space-sm) var(--space-md);
    background: var(--clr-bg-warm);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: var(--space-md) 0;
    font-style: italic;
    font-size: 1.15rem;
    color: var(--clr-text-muted);
}

.wkb_comment_closed {
    border-left: 3px solid var(--clr-accent);
    padding: var(--space-sm) var(--space-md);
    background: var(--clr-bg-warm);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: var(--space-md) 0;
    font-style: italic;
    font-size: 1.1rem;
    color: var(--clr-text);
    line-height: 1.6;
}

.wkb_comment_closed a {
    color: var(--clr-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.wkb_comment_closed a:hover {
    color: var(--clr-primary-hover);
}

.entry-content hr {
    border: none;
    border-top: 2px solid var(--clr-border, #e5e7eb);
    margin: var(--space-lg) 0;
    opacity: 0.6;
}

/* Tip callout */
.wb_tip {
    position: relative;
    border-left: 4px solid var(--clr-accent);
    background: #FEF6E8;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: var(--space-sm) var(--space-sm) var(--space-sm) 3.25rem;
    margin: var(--space-md) 0;
    font-size: 0.95rem;
    color: var(--clr-text);
    line-height: 1.65;
}

.wb_tip::before {
    content: '💡';
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.25rem;
    line-height: 1;
}

.entry-content ul,
.entry-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1.3rem;
}

.entry-content li {
    margin-bottom: 0.4rem;
}

/* =========================================================
   Single Post Hero — featured image with overlaid header
   ========================================================= */

.post-hero {
    position: relative;
    min-height: 72vh;
    display: flex;
    align-items: flex-end;
    padding: var(--space-xl) 0 var(--space-xl);
    overflow: hidden;
    margin-bottom: var(--space-md);
}

.post-hero--short {
    min-height: 36vh;
}

.post-hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.post-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(28, 18, 8, 0.55) 0%,
        rgba(28, 18, 8, 0.18) 50%,
        rgba(28, 18, 8, 0.00) 100%
    );
    z-index: 1;
}

.post-hero-body {
    position: relative;
    z-index: 3;
    max-width: 780px;
    margin: 0 auto;
}

.post-hero-body h1 {
    font-size: clamp(2.8rem, 6vw, 5rem);
    font-style: italic;
    font-weight: 700;
    color: #FFFCF5;
    line-height: 1.06;
    letter-spacing: -0.03em;
    text-shadow: 0 2px 40px rgba(28, 18, 8, 0.25);
    margin-bottom: var(--space-sm);
}

.post-hero-body .post-meta {
    color: rgba(255, 252, 245, 0.75);
}

.post-hero-taxonomy {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
}

.post-hero-taxonomy a {
    text-decoration: none;
}

.post-hero-taxonomy a:hover {
    opacity: 0.8;
}

.post-hero-body .text-meta {
    background: var(--clr-primary);
    color: var(--clr-white);
    padding: 0.32em 1em;
    border-radius: var(--radius-pill);
    font-size: 0.67rem;
    letter-spacing: 0.14em;
    font-family: var(--font-sans);
    font-weight: 600;
}

.post-hero-body .text-meta--tag,
.post-hero-taxonomy .text-meta--tag {
    background: transparent;
    border: 1px solid rgba(255, 252, 245, 0.5);
    color: var(--clr-white);
}

.post-hero-taxonomy .text-meta {
    background: var(--clr-primary);
    color: var(--clr-white);
    padding: 0.32em 1em;
    border-radius: var(--radius-pill);
    font-size: 0.67rem;
    letter-spacing: 0.14em;
    font-family: var(--font-sans);
    font-weight: 600;
}

/* Tag pills in the no-image header (light background) */
.container .post-hero-taxonomy .text-meta--tag {
    background: rgba(255, 252, 245, 0.5);
    border: 1px solid var(--clr-border);
    color: var(--clr-text-muted);
}

@media (max-width: 768px) {
    .post-hero {
        min-height: 56vh;
        padding: var(--space-lg) 0;
    }
}

/* ==========================================================================
   WB Table — open-style conversion table
   ========================================================================== */
.wb_table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--clr-text);
    margin-bottom: var(--space-md);
}

.wb_table thead tr {
    border-bottom: 2px solid var(--clr-primary);
}

.wb_table th {
    padding: 0.65rem 1rem;
    text-align: left;
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--clr-text-muted);
}

.wb_table th:first-child {
    width: 9rem;
}

.wb_table td {
    padding: 0.5rem 1rem;
    border-bottom: 1px solid var(--clr-border);
    vertical-align: top;
}

.wb_table td:first-child {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--clr-primary);
    white-space: nowrap;
}

.wb_table td strong {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--clr-primary);
}

/* Space after each tbody (margin doesn't apply to table elements — use padding on last row) */
.wb_table tbody tr:last-child td {
    padding-bottom: var(--space-md);
}

/* Zebra stripe on data rows */
.wb_table tbody tr:nth-child(even) td {
    background: rgba(238, 229, 210, 0.35);
}

.wb_table tbody tr:hover td {
    background: rgba(154, 107, 42, 0.06);
}

/* Section separator — new thead inside the same table */
.wb_table thead + tbody + thead tr,
.wb_table tbody + thead tr {
    border-top: 2px solid var(--clr-border);
}

@media (max-width: 600px) {
    .container {
        padding: 0 var(--space-sm);
    }

    .wkb-featured-posts.widget {
        padding: var(--space-sm);
    }

    .wb_table th,
    .wb_table td {
        padding: 0.45rem 0.6rem;
        font-size: 0.8rem;
    }

    .wb_table th:first-child {
        width: auto;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */
@media print {
    /* Page layout */
    @page {
        margin: 1.5cm 2cm;
        size: A4;
    }

    /* Reset background colors & shadows */
    *,
    *::before,
    *::after {
        background: #fff !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    /* Hide non-content elements */
    .site-header,
    .site-footer,
    .site-nav,
    .mobile-menu,
    .search-bar-wrap,
    .wave-to-dark,
    aside.widget-area,
    .sidebar,
    .entry-footer,
    .comments-area,
    .after-entry-area,
    .page-links,
    .wp-block-buttons,
    .post-navigation,
    .breadcrumb,
    .share-buttons {
        display: none !important;
    }

    /* Reveal elements that rely on JS scroll animation */
    .fade-in-section {
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
    }

    /* Hero: keep the text, strip the image and overlay */
    .post-hero {
        display: block !important;
        position: static !important;
        min-height: 0 !important;
        padding: 0 0 0.5cm !important;
        border-bottom: 1px solid #ccc;
        margin-bottom: 0.5cm;
    }

    .post-hero-image,
    .post-hero-overlay,
    .post-hero .hero-wave {
        display: none !important;
    }

    .post-hero .post-hero-taxonomy {
        display: none !important;
    }

    .post-hero-body {
        position: static !important;
        transform: none !important;
        padding: 0 !important;
        text-align: left !important;
        color: #000 !important;
    }

    .post-hero-body h1,
    .post-hero-body .text-meta,
    .post-hero-body .post-meta {
        color: #000 !important;
    }

    /* Plain header (when no featured image) */
    article > header.container {
        padding: 0 0 0.5cm !important;
        border-bottom: 1px solid #ccc;
        margin-bottom: 0.5cm;
        text-align: left !important;
    }

    /* Typography */
    body {
        font-family: Georgia, serif;
        font-size: 11pt;
        line-height: 1.6;
    }

    h1 { font-size: 20pt; margin-bottom: 0.2cm; }
    h2 { font-size: 15pt; margin-top: 0.4cm; }
    h3 { font-size: 13pt; }

    .post-meta,
    .text-meta {
        font-size: 9pt;
        color: #555 !important;
    }

    /* Content area: full width, no grid */
    .main-grid {
        display: block !important;
    }

    .primary-content {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
    }

    /* Hide images, galleries and embeds */
    img,
    figure,
    .wp-block-image,
    .wp-block-gallery,
    .wp-block-cover,
    .ngg-galleryoverview,
    .ngg-gallery-thumbnail-box,
    .ngg-simplegallery,
    .ngg-album,
    [class*="ngg-"],
    iframe,
    .wp-block-embed,
    .wp-block-video,
    video {
        display: none !important;
    }

    /* Avoid breaking inside key blocks */
    p, blockquote, pre, table, figure, li {
        page-break-inside: avoid;
        orphans: 3;
        widows: 3;
    }

    h1, h2, h3, h4 {
        page-break-after: avoid;
    }

    /* Links: show URL after anchor text */
    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 8pt;
        color: #555 !important;
        word-break: break-all;
    }

    /* But not for image links or nav links */
    a[href^="#"]::after,
    a[href^="javascript"]::after {
        content: "";
    }

    /* Tables */
    table {
        border-collapse: collapse;
        width: 100%;
    }

    th, td {
        border: 1px solid #bbb;
        padding: 4pt 6pt;
        text-align: left;
    }

    /* Code blocks */
    pre, code {
        font-size: 9pt;
        border: 1px solid #ccc;
        padding: 0.2cm;
        white-space: pre-wrap;
        word-break: break-word;
    }
}

/* ==========================================================================
   Accessibility
   ========================================================================== */
.skip-link.screen-reader-text {
    position: absolute;
    left: -9999em;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-link.screen-reader-text:focus {
    left: 0;
    top: 0;
    width: auto;
    height: auto;
    overflow: visible;
    z-index: 9999;
    background: var(--clr-bg);
    color: var(--clr-text);
    padding: var(--space-xs) var(--space-sm);
    font-family: var(--font-sans);
    font-size: 0.875rem;
    text-decoration: none;
    border: 2px solid var(--clr-primary);
}
