/* ============================================================
   BlueMist Theme — Zen Edition
   Calm · Spacious · Unhurried
   ============================================================ */

/* --- Reset & Base ----------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Skip-to-content link */
.skip-link {
    position: absolute;
    top: -999px;
    left: 0;
    z-index: 999;
    padding: 10px 20px;
    background: var(--zen-blue);
    color: var(--zen-surface);
    font-size: .9rem;
    font-weight: 500;
    border-radius: 0 0 var(--radius) 0;
    letter-spacing: .02em;
}
.skip-link:focus { top: 0; }

/* Focus ring */
:focus-visible {
    outline: 2px solid var(--zen-blue-l);
    outline-offset: 3px;
    border-radius: 2px;
}
:focus:not(:focus-visible) { outline: none; }

/* ── Design Tokens ───────────────────────────────────────── */
:root {
    /* Background & surface */
    --zen-bg:        #F2F1EC;   /* warm parchment — the "rice paper" base */
    --zen-surface:   #FEFEFE;   /* card / panel white */
    --zen-surface-2: #F8F7F3;   /* slightly tinted surface */

    /* Borders */
    --zen-border:    #E0DFD8;   /* main border — warm, barely there */
    --zen-border-2:  #ECEAE3;   /* even softer dividers */

    /* Text */
    --zen-text:      #2B3A47;   /* deep slate — not pure black */
    --zen-text-2:    #5E7282;   /* secondary muted blue-gray */
    --zen-text-3:    #8FA4B1;   /* captions, placeholders */

    /* Brand greens — muted forest, not electric */
    --zen-blue:      #4A9A6E;   /* primary */
    --zen-blue-h:    #3A8960;   /* hover / active */
    --zen-blue-d:    #2E7352;   /* deep emphasis */
    --zen-blue-l:    #88C0A4;   /* lighter accent */
    --zen-blue-pale: #C4E2D4;   /* subtle tint */
    --zen-blue-wash: #EAF5EF;   /* barely-green background */

    /* Header / Footer chrome */
    --zen-header:    #1B3428;   /* deep forest green */
    --zen-header-b:  #244035;   /* slightly lighter header border/divider */
    --zen-nav:       #91CAAF;   /* nav link text */
    --zen-nav-desc:  #6AA58A;   /* description text in header */
    --zen-footer:    #132519;   /* footer background */
    --zen-footer-l:  #8ABDA4;   /* footer link color */

    /* Semantics */
    --zen-success:   #5A9E7A;
    --zen-error:     #B56060;

    /* Geometry */
    --radius:        5px;
    --radius-lg:     10px;
    --shadow:        0 1px 4px rgba(0,0,0,.05);   /* nearly invisible */
    --shadow-hover:  0 4px 16px rgba(31,130,70,.08);

    /* Typography */
    --font-sans: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-mono: 'Consolas', 'Courier New', monospace;

    /* Layout */
    --max-width:     780px;
    --sidebar-width: 260px;
}

/* ── Dark theme ───────────────────────────────── */
[data-theme="dark"] {
    --zen-bg:        #1a1f2e;
    --zen-surface:   #242936;
    --zen-surface-2: #1e2330;
    --zen-border:    #2e3650;
    --zen-border-2:  #263044;
    --zen-text:      #e2e8f0;
    --zen-text-2:    #94a3b8;
    --zen-text-3:    #64748b;
    --zen-blue:      #4ade80;
    --zen-blue-h:    #86efac;
    --zen-blue-d:    #22c55e;
    --zen-blue-l:    #bbf7d0;
    --zen-blue-pale: #1a3d2b;
    --zen-blue-wash: #172d20;
    --zen-header:    #0a1f12;
    --zen-header-b:  #152d1e;
    --zen-nav:       #86efac;
    --zen-nav-desc:  #6ccf95;
    --zen-footer:    #060f09;
    --zen-footer-l:  #4ade80;
    --zen-success:   #4ade80;
    --zen-error:     #f87171;
    --shadow:        0 1px 4px rgba(0,0,0,.3);
    --shadow-hover:  0 4px 16px rgba(0,0,0,.4);
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    text-size-adjust: 100%;
    transition: background-color .25s, color .25s;
}

body {
    font-family: var(--font-sans);
    color: var(--zen-text);
    background: var(--zen-bg);
    line-height: 1.85;
    -webkit-font-smoothing: antialiased;
}

/* Links */
a {
    color: var(--zen-blue);
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-color: var(--zen-blue-pale);
    transition: color .2s, text-decoration-color .2s;
}
a:hover {
    color: var(--zen-blue-h);
    text-decoration-color: var(--zen-blue-l);
}

/* Selective no-underline */
.site-title a,
.main-navigation a,
.entry-title a,
.read-more,
.post-tag,
.entry-category,
.page-numbers,
.footer-navigation a,
.footer-credit a,
.comment-reply-link,
.btn,
.breadcrumb-item a {
    text-decoration: none;
}

img { max-width: 100%; height: auto; display: block; border-radius: var(--radius); }

/* ── Layout ─────────────────────────────────────────────── */
.site-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: calc(var(--max-width) + var(--sidebar-width) + 56px);
    margin: 0 auto;
    padding: 0 28px;
}

.site-main {
    flex: 1;
    padding: 56px 0 72px;
}

.content-area {
    display: flex;
    gap: 48px;
    align-items: flex-start;
}

.primary-content { flex: 1; min-width: 0; }

/* ── Header ─────────────────────────────────────────────── */
.site-header {
    background: var(--zen-header);
    color: var(--zen-surface);
    /* single thin bottom line — no thick accent bar */
    border-bottom: 1px solid var(--zen-header-b);
    position: sticky;
    top: 0;
    z-index: 100;
    /* no heavy shadow — calm */
    box-shadow: 0 1px 12px rgba(0,0,0,.12);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 62px;
    gap: 24px;
}

.site-branding { display: flex; flex-direction: column; line-height: 1.25; }

.site-title {
    font-size: 1.2rem;
    font-weight: 600;              /* softer than 700 */
    letter-spacing: .01em;
    color: var(--zen-surface);
}
.site-title a { color: inherit; }
.site-title a:hover { opacity: .8; }

.site-description {
    font-size: .75rem;
    color: var(--zen-nav-desc);
    margin-top: 2px;
    font-weight: 400;
    letter-spacing: .02em;
}

/* Nav */
.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 2px;
}

.main-navigation a {
    display: block;
    padding: 6px 13px;
    color: var(--zen-nav);
    font-size: .88rem;
    font-weight: 400;
    letter-spacing: .02em;
    border-radius: var(--radius);
    transition: color .2s, background .2s;
}
.main-navigation a:hover {
    color: var(--zen-surface);
    background: rgba(255,255,255,.07);
}
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
    color: var(--zen-surface);
    background: rgba(255,255,255,.1);
}

.menu-toggle {
    display: none;
    background: none;
    border: 1px solid rgba(255,255,255,.2);
    color: var(--zen-nav);
    padding: 5px 12px;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: .85rem;
    transition: border-color .2s, color .2s;
}
.menu-toggle:hover {
    border-color: rgba(255,255,255,.4);
    color: var(--zen-surface);
}

/* Theme toggle button */
.theme-toggle {
    background: none;
    border: 1px solid var(--zen-header-b);
    border-radius: 50%;
    color: var(--zen-nav);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    padding: 0;
    transition: color .2s, border-color .2s, background .2s;
}
.theme-toggle:hover {
    color: var(--zen-surface);
    border-color: var(--zen-nav);
    background: rgba(255,255,255,.08);
}
.theme-toggle svg { display: block; }
/* Show correct icon per theme */
.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun  { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
/* Mobile: centre below nav */
@media (max-width: 680px) {
    .theme-toggle { margin: .5rem auto 0; }
}

/* ── Breadcrumb Bar ─────────────────────────────────────── */
.breadcrumb-bar {
    background: var(--zen-surface-2);
    border-bottom: 1px solid var(--zen-border-2);
    padding: 9px 0;
    font-size: .78rem;
}

.breadcrumb-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}

.breadcrumb-item { display: flex; align-items: center; gap: 4px; }

.breadcrumb-item a {
    color: var(--zen-blue);
    font-weight: 500;
}
.breadcrumb-item a:hover { text-decoration: underline; }

.breadcrumb-current { color: var(--zen-text-3); }
.breadcrumb-sep { color: var(--zen-border); user-select: none; }

/* ── Page Header (archives, search) ─────────────────────── */
.page-header {
    background: var(--zen-header);       /* flat, no gradient */
    color: var(--zen-surface);
    padding: 36px 0;
    margin-bottom: 44px;
}

.page-title {
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: -.01em;
    line-height: 1.25;
}
.page-subtitle {
    margin-top: 8px;
    color: var(--zen-nav);
    font-size: .93rem;
    font-weight: 400;
}

/* ── Post Cards ─────────────────────────────────────────── */
.post-card {
    background: var(--zen-surface);
    border: 1px solid var(--zen-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 24px;
    /* no shadow by default — appears on hover */
    transition: border-color .25s, box-shadow .25s;
}
.post-card:hover {
    border-color: var(--zen-blue-pale);
    box-shadow: var(--shadow-hover);
}

/* post-card spacing handled by margin-bottom on each card */

.entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: .78rem;
    color: var(--zen-text-3);
    margin-bottom: 12px;
    align-items: center;
    letter-spacing: .02em;
}
.entry-meta a { color: var(--zen-text-3); text-decoration: none; }
.entry-meta a:hover { color: var(--zen-blue); }

.entry-category {
    background: var(--zen-blue-wash);
    color: var(--zen-blue-d);
    border: 1px solid var(--zen-blue-pale);
    padding: 2px 10px;
    border-radius: 100px;
    font-size: .7rem;
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.entry-title {
    font-size: 1.3rem;
    font-weight: 600;               /* 600 vs 700 — less assertive */
    letter-spacing: -.01em;
    line-height: 1.35;
    margin-bottom: 10px;
}
.entry-title a { color: var(--zen-text); }
.entry-title a:hover { color: var(--zen-blue); }

.entry-excerpt {
    color: var(--zen-text-2);
    font-size: .93rem;
    line-height: 1.75;
    margin-bottom: 18px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .82rem;
    font-weight: 500;
    color: var(--zen-blue);
    letter-spacing: .03em;
    border-bottom: 1px solid transparent;
    transition: border-color .2s;
}
.read-more:hover {
    border-bottom-color: var(--zen-blue-l);
}
/* no arrow animation — zen = stillness */

/* ── Single Post ────────────────────────────────────────── */
.single-post-card {
    background: var(--zen-surface);
    border: 1px solid var(--zen-border);
    border-radius: var(--radius-lg);
    padding: 48px;
    /* no shadow — the border is enough */
}

.entry-content {
    font-size: 1.02rem;
    line-height: 1.9;
    color: var(--zen-text);
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    color: var(--zen-text);
    font-weight: 600;
    letter-spacing: -.01em;
    margin: 2em 0 .7em;
    line-height: 1.3;
}
.entry-content h1 { font-size: 1.75rem; }
.entry-content h2 {
    font-size: 1.35rem;
    padding-bottom: .4em;
    /* thin bottom line — restrained */
    border-bottom: 1px solid var(--zen-border);
}
.entry-content h3 { font-size: 1.15rem; }
.entry-content h4 { font-size: 1rem; color: var(--zen-text-2); }

.entry-content p { margin-bottom: 1.2em; }
.entry-content ul,
.entry-content ol { margin: 0 0 1.2em 1.5em; }
.entry-content li { margin-bottom: .4em; }

.entry-content blockquote {
    /* subtle left bar — thin, calm */
    border-left: 3px solid var(--zen-blue-pale);
    background: var(--zen-blue-wash);
    padding: 16px 22px;
    margin: 1.8em 0;
    border-radius: 0 var(--radius) var(--radius) 0;
    color: var(--zen-text-2);
    font-style: italic;
    font-size: .97rem;
    line-height: 1.8;
}

.entry-content code {
    font-family: var(--font-mono);
    font-size: .86em;
    background: var(--zen-surface-2);
    border: 1px solid var(--zen-border);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--zen-blue-d);
}

.entry-content pre {
    background: #1A2A1E;
    color: #C8E0D2;
    padding: 22px 26px;
    border-radius: var(--radius);
    overflow-x: auto;
    margin: 1.8em 0;
    font-family: var(--font-mono);
    font-size: .87em;
    line-height: 1.65;
    border: 1px solid #24361E;
}
.entry-content pre code {
    background: none;
    border: none;
    padding: 0;
    color: inherit;
}

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.8em 0;
    font-size: .92rem;
}
.entry-content th,
.entry-content td {
    border: 1px solid var(--zen-border);
    padding: 10px 16px;
    text-align: left;
}
.entry-content th {
    background: var(--zen-blue-wash);
    color: var(--zen-blue-d);
    font-weight: 600;
    font-size: .82rem;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.entry-content tr:nth-child(even) td { background: var(--zen-surface-2); }

.entry-content hr {
    border: none;
    /* single hair line — zen divider */
    border-top: 1px solid var(--zen-border);
    margin: 2.5em 0;
}

.entry-content a { font-weight: 500; }

.entry-footer {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--zen-border-2);
    font-size: .8rem;
    color: var(--zen-text-3);
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

.post-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.post-tag {
    background: transparent;
    color: var(--zen-text-2);
    border: 1px solid var(--zen-border);
    padding: 2px 10px;
    border-radius: 100px;
    font-size: .72rem;
    font-weight: 500;
    letter-spacing: .03em;
    transition: border-color .2s, color .2s;
}
.post-tag:hover {
    border-color: var(--zen-blue-pale);
    color: var(--zen-blue);
}

/* Post navigation */
.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 36px;
}
.nav-previous, .nav-next {
    background: var(--zen-surface);
    border: 1px solid var(--zen-border);
    border-radius: var(--radius);
    padding: 18px 20px;
    transition: border-color .2s;
}
.nav-previous:hover, .nav-next:hover {
    border-color: var(--zen-blue-pale);
}
.nav-next { text-align: right; }
.nav-label {
    display: block;
    font-size: .7rem;
    font-weight: 500;
    color: var(--zen-text-3);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 5px;
}
.nav-title { font-size: .88rem; color: var(--zen-text); font-weight: 500; line-height: 1.4; }
.nav-previous a:hover .nav-title,
.nav-next a:hover .nav-title { color: var(--zen-blue); }

/* ── Comments ───────────────────────────────────────────── */
.comments-section {
    background: var(--zen-surface);
    border: 1px solid var(--zen-border);
    border-radius: var(--radius-lg);
    padding: 40px;
    margin-top: 32px;
}

.comments-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--zen-text);
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: .01em;
}
.comments-title::before {
    content: '';
    display: block;
    width: 3px;
    height: 18px;
    background: var(--zen-blue-l);  /* muted bar, not vivid */
    border-radius: 2px;
}

.comment-list { list-style: none; }
.comment-list .children {
    list-style: none;
    margin-left: 32px;
    border-left: 1px solid var(--zen-border-2);
    padding-left: 24px;
}

.comment {
    padding: 22px 0;
    border-bottom: 1px solid var(--zen-border-2);
}
.comment:last-child { border-bottom: none; }

.comment-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}
.comment-author img {
    border-radius: 50%;
    width: 36px;
    height: 36px;
    border: 1px solid var(--zen-border);
    opacity: .9;
}
.comment-author .fn {
    font-weight: 600;
    color: var(--zen-text);
    font-size: .9rem;
    font-style: normal;
}
.comment-metadata {
    font-size: .75rem;
    color: var(--zen-text-3);
}
.comment-metadata a { color: inherit; }

.comment-content { font-size: .92rem; color: var(--zen-text-2); line-height: 1.75; }
.comment-content p { margin-bottom: .7em; }

.reply { margin-top: 10px; }
.comment-reply-link {
    font-size: .75rem;
    font-weight: 500;
    color: var(--zen-blue);
    background: var(--zen-blue-wash);
    border: 1px solid var(--zen-blue-pale);
    padding: 3px 11px;
    border-radius: 100px;
    letter-spacing: .02em;
    transition: background .2s, border-color .2s;
}
.comment-reply-link:hover {
    background: #DFF0E8;
    border-color: var(--zen-blue-l);
}

.no-comments {
    color: var(--zen-text-3);
    font-size: .92rem;
    text-align: center;
    padding: 32px 0;
    letter-spacing: .02em;
}

/* Comment Form */
.comment-respond {
    margin-top: 36px;
    padding-top: 32px;
    border-top: 1px solid var(--zen-border-2);
}

.comment-reply-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--zen-text);
    margin-bottom: 22px;
    letter-spacing: .01em;
}

.comment-form label {
    display: block;
    font-size: .8rem;
    font-weight: 500;
    color: var(--zen-text-2);
    margin-bottom: 6px;
    letter-spacing: .03em;
    text-transform: uppercase;
}
.comment-form label span { color: var(--zen-blue-l); }

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--zen-border);
    border-radius: var(--radius);
    font-size: .93rem;
    font-family: var(--font-sans);
    color: var(--zen-text);
    background: var(--zen-surface-2);
    transition: border-color .2s, background .2s;
}
.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--zen-blue-l);
    background: var(--zen-surface);
    box-shadow: 0 0 0 3px rgba(74,154,110,.08);
}

.comment-form textarea { resize: vertical; min-height: 130px; }

.comment-form-fields-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.comment-form p { margin-bottom: 18px; }
.comment-form .form-submit { margin-top: 6px; }

.submit {
    background: var(--zen-blue);
    color: var(--zen-surface);
    border: none;
    padding: 11px 28px;
    border-radius: var(--radius);
    font-size: .9rem;
    font-weight: 500;
    cursor: pointer;
    letter-spacing: .03em;
    transition: background .2s;
    font-family: var(--font-sans);
}
.submit:hover { background: var(--zen-blue-h); }
.submit:active { opacity: .9; }

.comment-form-cookies-consent { display: flex; align-items: center; gap: 8px; }
.comment-form-cookies-consent input { width: auto; }
.comment-form-cookies-consent label { margin-bottom: 0; font-weight: 400; text-transform: none; letter-spacing: 0; }

/* ── Sidebar ────────────────────────────────────────────── */
.sidebar {
    width: var(--sidebar-width);
    flex-shrink: 0;
}

.widget {
    background: var(--zen-surface);
    border: 1px solid var(--zen-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    /* no shadow */
}

.widget-title {
    font-size: .72rem;
    font-weight: 600;
    color: var(--zen-text-3);
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--zen-border-2);
}

.widget ul { list-style: none; }
.widget ul li {
    padding: 6px 0;
    border-bottom: 1px solid var(--zen-border-2);
    font-size: .88rem;
    color: var(--zen-text-2);
}
.widget ul li:last-child { border-bottom: none; }
.widget ul li a { color: var(--zen-text-2); text-decoration: none; }
.widget ul li a:hover { color: var(--zen-blue); }

.widget_search .search-form { display: flex; gap: 8px; }
.widget_search .search-field {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--zen-border);
    border-radius: var(--radius);
    font-size: .88rem;
    font-family: var(--font-sans);
    background: var(--zen-surface-2);
    color: var(--zen-text);
}
.widget_search .search-field:focus {
    outline: none;
    border-color: var(--zen-blue-l);
    background: var(--zen-surface);
}
.widget_search .search-submit {
    background: var(--zen-blue);
    color: var(--zen-surface);
    border: none;
    padding: 8px 14px;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: .85rem;
    font-family: var(--font-sans);
    transition: background .2s;
}
.widget_search .search-submit:hover { background: var(--zen-blue-h); }

/* ── Pagination ─────────────────────────────────────────── */
.posts-pagination, .pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 48px;
    flex-wrap: wrap;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid var(--zen-border);
    border-radius: var(--radius);
    font-size: .85rem;
    font-weight: 400;
    color: var(--zen-text-2);
    background: var(--zen-surface);
    transition: border-color .2s, color .2s;
}
.page-numbers:hover {
    border-color: var(--zen-blue-pale);
    color: var(--zen-blue);
    text-decoration: none;
}
.page-numbers.current {
    background: var(--zen-blue);
    border-color: var(--zen-blue);
    color: var(--zen-surface);
    font-weight: 500;
}

/* ── Footer ─────────────────────────────────────────────── */
.site-footer {
    background: var(--zen-footer);
    color: var(--zen-footer-l);
    padding: 48px 0 28px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
    margin-bottom: 36px;
}

.footer-widget-title {
    font-size: .7rem;
    font-weight: 600;
    color: rgba(255,255,255,.5);
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: 16px;
}

.footer-widget ul { list-style: none; }
.footer-widget ul li { padding: 4px 0; font-size: .86rem; }
.footer-widget ul li a { color: var(--zen-footer-l); text-decoration: none; }
.footer-widget ul li a:hover { color: rgba(255,255,255,.8); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.07);
    padding-top: 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: .8rem;
    color: rgba(255,255,255,.3);
}

.footer-credit a { color: var(--zen-footer-l); text-decoration: none; }
.footer-credit a:hover { color: rgba(255,255,255,.8); }

/* ── 404 ────────────────────────────────────────────────── */
.error-page {
    text-align: center;
    padding: 80px 24px;
}
.error-code {
    font-size: 5.5rem;
    font-weight: 300;           /* ultra-light — zen feel */
    color: var(--zen-blue-pale);
    line-height: 1;
    margin-bottom: 16px;
    letter-spacing: -.05em;
}
.error-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--zen-text);
    margin-bottom: 12px;
    letter-spacing: -.01em;
}
.error-description {
    color: var(--zen-text-2);
    margin-bottom: 28px;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}
.btn {
    display: inline-block;
    padding: 10px 26px;
    background: var(--zen-blue);
    color: var(--zen-surface);
    border-radius: var(--radius);
    font-weight: 500;
    font-size: .9rem;
    letter-spacing: .02em;
    transition: background .2s;
}
.btn:hover { background: var(--zen-blue-h); color: var(--zen-surface); }

/* ── Search Header Bar ──────────────────────────────────── */
.search-header-bar {
    background: var(--zen-blue-wash);
    border: 1px solid var(--zen-border-2);
    border-radius: var(--radius);
    padding: 13px 18px;
    margin-bottom: 28px;
    font-size: .88rem;
    color: var(--zen-text-2);
}
.search-term { font-weight: 600; color: var(--zen-text); }

/* ── Featured Image ─────────────────────────────────────── */
.post-thumbnail {
    margin-bottom: 28px;
    border-radius: var(--radius);
    overflow: hidden;
}
.post-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    /* slight desaturation for zen mood */
    filter: saturate(.92);
    transition: filter .3s;
}
.post-card:hover .post-thumbnail img,
.single-post-card .post-thumbnail img {
    filter: saturate(1);
}

/* ── Skip link (colour uses token) ─────────────────────── */
.skip-link { background: var(--zen-blue); }

/* ── Admin Bar Offset ───────────────────────────────────── */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
    .content-area { flex-direction: column; }
    .sidebar { width: 100%; }
    .footer-widgets { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
    :root { --max-width: 100%; }

    .header-inner { height: auto; flex-wrap: wrap; padding: 14px 0; gap: 12px; }

    .menu-toggle { display: block; }
    .main-navigation { width: 100%; }
    .main-navigation ul {
        flex-direction: column;
        gap: 2px;
        padding: 6px 0 12px;
        display: none;
    }
    .main-navigation.is-open ul { display: flex; }
    .main-navigation a { padding: 9px 10px; }

    .page-title { font-size: 1.35rem; }

    .single-post-card { padding: 24px; }
    .comments-section { padding: 24px; }
    .comment-form-fields-row { grid-template-columns: 1fr; }

    .post-navigation { grid-template-columns: 1fr; }
    .nav-next { text-align: left; }

    .footer-widgets { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }

    .error-code { font-size: 3.5rem; }
}

/* ── WordPress Core Classes ─────────────────────────────── */
.alignleft  { float: left;  margin-right: 22px; margin-bottom: 10px; }
.alignright { float: right; margin-left:  22px; margin-bottom: 10px; }
.aligncenter { display: block; margin: 0 auto 10px; }
.alignwide { margin-left: -40px; margin-right: -40px; max-width: calc(100% + 80px); }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: .78rem; color: var(--zen-text-3); text-align: center; margin-top: 6px; font-style: italic; }

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ── Reduced Motion ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    html { transition: none; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ── Print ──────────────────────────────────────────────── */
@media print {
    .site-header,
    .site-footer,
    .sidebar,
    .main-navigation,
    .breadcrumb-bar,
    .post-navigation,
    .posts-pagination,
    .comments-section,
    .menu-toggle,
    .read-more,
    .edit-link { display: none !important; }

    body { font-size: 12pt; color: #000; background: #fff; }
    a { color: #000; text-decoration: underline; }
    a[href]::after { content: ' (' attr(href) ')'; font-size: .8em; color: #555; }
    a[href^="#"]::after,
    a[href^="javascript:"]::after { content: ''; }

    .container { max-width: 100%; padding: 0; }
    .content-area { display: block; }
    .single-post-card, .post-card { box-shadow: none; border: none; padding: 0; }
    .entry-content { font-size: 11pt; }
    .entry-title { font-size: 18pt; }
    img { max-width: 500pt; page-break-inside: avoid; }
    h2, h3, h4 { page-break-after: avoid; }
    p, blockquote { page-break-inside: avoid; }
}
