/*!
Theme Name: Deckari Field Notes
Theme URI: https://deckari.com/
Author: Deckari
Author URI: https://deckari.com/
Description: Editorial blog theme matched to deckari.com. Warm walnut palette, Fraunces + Inter + JetBrains Mono, single-column reader-focused article layout with numbered field-note vocabulary carried from the main site.
Version: 1.1.1
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: Proprietary
Text Domain: deckari
Tags: blog, one-column, editorial, custom-colors, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ============ TOKENS (identical to main site) ============ */
:root {
    --pine:       #2A1810;
    --pine-2:     #38241A;
    --walnut:     #5C3826;
    --paper:      #4A2C1B;
    --bone:       #562F1D;
    --brass:      #E89B3C;
    --brass-hi:   #F4B968;
    --sage:       #D68B3C;
    --ink:        #F5EAD4;
    --ink-mute:   #C4B294;
    --rule:       rgba(245, 234, 212, 0.16);
    --rule-inv:   rgba(245, 234, 212, 0.16);

    --f-display:  'Fraunces', ui-serif, Georgia, serif;
    --f-body:     'Inter', system-ui, -apple-system, sans-serif;
    --f-mono:     'JetBrains Mono', ui-monospace, 'SF Mono', monospace;

    --page-max: 1240px;
    --gutter: clamp(1.25rem, 4vw, 3rem);
    --nav-h: 68px;

    /* Blog-specific */
    --read-max: 68ch;
    --read-max-wide: 82ch;
}

/* ============ RESET ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--f-body);
    font-weight: 400;
    font-size: 17px;
    line-height: 1.55;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { margin: 0; font-family: var(--f-display); font-weight: 500; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; display: block; height: auto; }

/* WP admin bar offset when logged in */
body.admin-bar .nav.is-scrolled { top: 32px; }
@media (max-width: 782px) {
    body.admin-bar .nav.is-scrolled { top: 46px; }
}

/* ============ LAYOUT ============ */
.wrap {
    max-width: var(--page-max);
    margin: 0 auto;
    padding-inline: var(--gutter);
}
.wrap--reader {
    max-width: calc(var(--read-max) + var(--gutter) * 2);
}
.wrap--reader-wide {
    max-width: calc(var(--read-max-wide) + var(--gutter) * 2);
}

/* ============ NAV (identical to main site) ============ */
.nav {
    position: absolute;
    top: 0; left: 0; right: 0;
    z-index: 20;
    background: rgba(74, 44, 27, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--rule);
}
.nav.is-scrolled {
    position: fixed;
    animation: navSlideIn .3s ease;
}
@keyframes navSlideIn {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}
.nav__inner {
    display: flex; align-items: center; justify-content: space-between;
    padding-block: 1.1rem;
}
.brand {
    font-family: var(--f-display);
    font-weight: 600;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
    text-decoration: none;
    display: flex; align-items: baseline; gap: 0.4rem;
    color: var(--ink);
}
.brand__mark {
    font-family: var(--f-mono);
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--brass);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transform: translateY(-2px);
}
.nav__links {
    display: flex; gap: 2rem; align-items: center;
    font-family: var(--f-mono);
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.nav__links a { text-decoration: none; opacity: 0.85; transition: opacity .2s; color: var(--ink); }
.nav__links a:hover { opacity: 1; }
.nav__links a.is-current { opacity: 1; color: var(--brass); }
.nav__cta {
    padding: 0.55rem 1.1rem;
    border: 1px solid var(--ink);
    border-radius: 999px;
    transition: background .2s, color .2s;
}
.nav__cta:hover { background: var(--ink); color: var(--pine) !important; opacity: 1 !important; }
.nav__toggle {
    display: none;
}

@media (max-width: 720px) {
    .nav {
        transition: background .2s ease, border-color .2s ease;
    }

    .nav.is-menu-open {
        background: rgba(42, 24, 16, 0.98);
        border-bottom: 1px solid var(--rule);
    }

    .nav__inner {
        position: relative;
        gap: 1rem;
    }

    .brand {
        min-width: 0;
        position: relative;
        z-index: 2;
    }

    .brand__mark {
        white-space: nowrap;
    }

    .nav__toggle {
        width: 44px;
        height: 44px;
        flex: 0 0 44px;
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        padding: 0;
        color: var(--ink);
        background: rgba(42, 24, 16, 0.42);
        border: 1px solid rgba(245, 234, 212, 0.55);
        border-radius: 999px;
        cursor: pointer;
        position: relative;
        z-index: 2;
        -webkit-tap-highlight-color: transparent;
    }

    .nav__toggle:hover,
    .nav__toggle:focus-visible {
        color: var(--pine);
        background: var(--ink);
        outline: none;
    }

    .nav__toggle-line {
        display: block;
        width: 18px;
        height: 2px;
        border-radius: 999px;
        background: currentColor;
        transform-origin: center;
        transition: transform .2s ease, opacity .2s ease;
    }

    .nav.is-menu-open .nav__toggle-line:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .nav.is-menu-open .nav__toggle-line:nth-child(2) {
        opacity: 0;
    }

    .nav.is-menu-open .nav__toggle-line:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .nav__links {
        position: absolute;
        top: 100%;
        left: var(--gutter);
        right: var(--gutter);
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0.65rem 1.15rem 1.15rem;
        background: rgba(42, 24, 16, 0.98);
        border: 1px solid var(--rule);
        border-top: 0;
        box-shadow: 0 18px 35px rgba(0, 0, 0, 0.35);
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-8px);
        transition:
            max-height .3s ease,
            opacity .2s ease,
            transform .2s ease,
            visibility 0s linear .3s;
    }

    .nav.is-menu-open .nav__links {
        max-height: calc(100vh - var(--nav-h) - 1rem);
        max-height: calc(100dvh - var(--nav-h) - 1rem);
        opacity: 1;
        overflow-y: auto;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
        transition:
            max-height .3s ease,
            opacity .2s ease,
            transform .2s ease,
            visibility 0s;
    }

    .nav__links a {
        display: block;
        width: 100%;
        padding: 0.95rem 0;
        border-bottom: 1px solid var(--rule);
        opacity: 1;
    }

    .nav__links a:hover,
    .nav__links a:focus-visible {
        color: var(--brass-hi);
        outline: none;
    }

    .nav__links .nav__cta {
        margin-top: 0.85rem;
        padding: 0.8rem 1rem;
        text-align: center;
        border: 1px solid var(--ink);
    }

    body.nav-menu-open {
        overflow: hidden;
    }
}

@media (max-width: 430px) {
    .brand__mark {
        display: none;
    }
}

/* ============ BUTTONS (identical) ============ */
.btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.95rem 1.6rem;
    font-family: var(--f-body);
    font-size: 0.92rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    border-radius: 999px;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .15s ease, background .2s, color .2s, box-shadow .2s;
}
.btn--primary { background: var(--ink); color: var(--pine); }
.btn--primary:hover {
    background: var(--brass);
    color: var(--pine);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--pine); }
.btn__arrow { transition: transform .2s; }
.btn:hover .btn__arrow { transform: translateX(3px); }

.btn--small {
    padding: 0.6rem 1.1rem;
    font-size: 0.82rem;
}

/* ============ SECTION FRAME (identical) ============ */
main section, main .section { padding-block: clamp(3rem, 7vw, 5.5rem); }

.section-head {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: clamp(1.5rem, 4vw, 3rem);
    margin-bottom: clamp(2rem, 4vw, 3rem);
    align-items: baseline;
}
@media (max-width: 720px) { .section-head { grid-template-columns: 1fr; } }
.section-head__num {
    font-family: var(--f-mono);
    font-size: 0.78rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--brass);
}
.section-head__title {
    font-size: clamp(1.9rem, 3.5vw, 2.8rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    max-width: 22ch;
}
.section-head__title em { font-style: italic; color: var(--ink-mute); }
.section-head__lead {
    color: var(--ink-mute);
    font-size: 1.05rem;
    max-width: 44ch;
    margin-top: 0.9rem;
}

/* ============ JOURNAL HEADER (blog / archive) ============ */
.journal-head {
    padding-top: calc(var(--nav-h) + clamp(3rem, 7vw, 5.5rem));
    padding-bottom: clamp(2.5rem, 5vw, 4rem);
    border-bottom: 1px solid var(--rule);
    background: var(--bone);
}

/* ============ POST LIST (blog / archive) ============ */
.post-list {
    display: grid;
    gap: 0;
    border-top: 1px solid var(--rule);
}
.post-list__item {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: clamp(1.5rem, 4vw, 3rem);
    padding-block: clamp(2rem, 4vw, 3rem);
    border-bottom: 1px solid var(--rule);
    align-items: start;
}
@media (max-width: 720px) {
    .post-list__item { grid-template-columns: 1fr; gap: 0.9rem; padding-block: 2rem; }
}
.post-list__meta {
    font-family: var(--f-mono);
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ink-mute);
    line-height: 1.7;
}
.post-list__meta .num { color: var(--brass); display: block; margin-bottom: 0.4rem; }
.post-list__meta .cat { color: var(--ink); display: block; }
.post-list__body a { text-decoration: none; }
.post-list__title {
    font-size: clamp(1.5rem, 2.8vw, 2.1rem);
    line-height: 1.15;
    letter-spacing: -0.015em;
    margin-bottom: 0.7rem;
    transition: color .2s;
}
.post-list__body a:hover .post-list__title { color: var(--brass-hi); }
.post-list__title em { font-style: italic; color: var(--ink-mute); }
.post-list__excerpt {
    color: var(--ink-mute);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 60ch;
    margin-bottom: 0.9rem;
}
.post-list__read {
    display: inline-flex; align-items: center; gap: 0.4rem;
    font-family: var(--f-mono);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--brass);
}
.post-list__read .arr { transition: transform .2s; }
.post-list__body a:hover .post-list__read .arr { transform: translateX(3px); }

.post-list__thumb {
    grid-column: 2;
    aspect-ratio: 16 / 9;
    background: var(--pine-2);
    overflow: hidden;
    margin-bottom: 1.2rem;
    border: 1px solid var(--rule);
}
@media (max-width: 720px) { .post-list__thumb { grid-column: auto; } }
.post-list__thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.post-list__body a:hover .post-list__thumb img { transform: scale(1.02); }

/* ============ SINGLE ARTICLE ============ */
.article {
    padding-top: calc(var(--nav-h) + clamp(2.5rem, 5vw, 4rem));
    padding-bottom: clamp(3rem, 7vw, 5.5rem);
}
.article__eyebrow {
    font-family: var(--f-mono);
    font-size: 0.78rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--brass);
    margin-bottom: 1.4rem;
    display: flex; align-items: center; gap: 0.8rem;
    flex-wrap: wrap;
}
.article__eyebrow .sep { opacity: 0.4; }
.article__eyebrow a { color: inherit; text-decoration: none; opacity: 0.85; }
.article__eyebrow a:hover { opacity: 1; }
.article__title {
    font-size: clamp(2.1rem, 4.6vw, 3.6rem);
    line-height: 1.05;
    letter-spacing: -0.025em;
    max-width: 22ch;
    margin-bottom: 1.4rem;
}
.article__title em { font-style: italic; color: var(--ink-mute); font-weight: 400; }
.article__title .accent { font-style: italic; color: var(--brass); font-weight: 500; }
.article__meta {
    display: flex; flex-wrap: wrap; gap: 1.4rem;
    padding-block: 1.1rem;
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    font-family: var(--f-mono);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-mute);
    margin-bottom: clamp(2rem, 4vw, 3rem);
}
.article__meta .k { color: var(--brass); margin-right: 0.5rem; opacity: 0.85; }
.article__hero {
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
    border: 1px solid var(--rule);
}
.article__hero img {
    width: 100%;
    aspect-ratio: 21 / 9;
    object-fit: cover;
}

/* ============ PROSE (article body typography) ============ */
.prose {
    max-width: var(--read-max);
    font-family: var(--f-body);
    font-size: 1.075rem;
    line-height: 1.7;
    color: var(--ink);
}
.prose > * + * { margin-top: 1.4rem; }
.prose > h2 { margin-top: 3rem; }
.prose > h3 { margin-top: 2.4rem; }
.prose > h2 + p, .prose > h3 + p { margin-top: 1rem; }

.prose p { max-width: var(--read-max); }
.prose h2 {
    font-family: var(--f-display);
    font-weight: 500;
    font-size: clamp(1.55rem, 2.4vw, 1.95rem);
    line-height: 1.18;
    letter-spacing: -0.015em;
    color: var(--ink);
}
.prose h3 {
    font-family: var(--f-display);
    font-weight: 500;
    font-size: clamp(1.25rem, 1.8vw, 1.5rem);
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: var(--ink);
}
.prose h4 {
    font-family: var(--f-mono);
    font-weight: 500;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--brass);
    margin-top: 2rem;
}
.prose em, .prose i { color: var(--ink-mute); }
.prose strong, .prose b { color: var(--brass-hi); font-weight: 600; }
.prose a {
    color: var(--brass-hi);
    text-decoration: underline;
    text-decoration-color: rgba(244, 185, 104, 0.4);
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    transition: text-decoration-color .2s, color .2s;
}
.prose a:hover {
    color: var(--ink);
    text-decoration-color: var(--brass-hi);
}
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose ul li, .prose ol li { margin-block: 0.5rem; }
.prose ul li::marker { color: var(--brass); }
.prose ol li::marker { color: var(--brass); font-family: var(--f-mono); font-size: 0.9em; }

.prose blockquote {
    margin: 2rem 0;
    padding: 0.4rem 0 0.4rem 1.5rem;
    border-left: 3px solid var(--brass);
    font-family: var(--f-display);
    font-style: italic;
    font-size: clamp(1.15rem, 1.8vw, 1.35rem);
    line-height: 1.45;
    color: var(--ink);
}
.prose blockquote cite {
    display: block;
    font-family: var(--f-mono);
    font-style: normal;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-mute);
    margin-top: 0.9rem;
}

.prose figure { margin: 2rem 0; }
.prose figure img { border: 1px solid var(--rule); }
.prose figcaption {
    font-family: var(--f-mono);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-mute);
    margin-top: 0.7rem;
}

.prose code {
    font-family: var(--f-mono);
    font-size: 0.9em;
    background: var(--pine-2);
    color: var(--brass-hi);
    padding: 0.1em 0.4em;
    border-radius: 3px;
}
.prose pre {
    background: var(--pine);
    border: 1px solid var(--rule);
    padding: 1.2rem 1.4rem;
    overflow-x: auto;
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--ink);
    margin: 1.8rem 0;
}
.prose pre code { background: none; padding: 0; color: inherit; font-size: inherit; }

.prose hr {
    border: 0;
    border-top: 1px solid var(--rule);
    margin: 2.4rem 0;
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.6rem 0;
    font-size: 0.95rem;
}
.prose th, .prose td {
    padding: 0.75rem 0.9rem;
    text-align: left;
    border-bottom: 1px solid var(--rule);
}
.prose th {
    font-family: var(--f-mono);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--brass);
    font-weight: 500;
}

/* Drop cap on first paragraph — the editorial signature */
.prose > p:first-of-type::first-letter {
    font-family: var(--f-display);
    font-style: italic;
    font-weight: 400;
    font-size: 5.2em;
    line-height: 0.85;
    float: left;
    margin: 0.08em 0.12em 0 -0.02em;
    color: var(--brass);
}

/* Lead paragraph gets slight optical lift */
.prose > p:first-of-type {
    font-family: var(--f-display);
    font-weight: 300;
    font-size: 1.22rem;
    line-height: 1.55;
    color: var(--ink);
}

/* ============ WORDPRESS BLOCK / ALIGNMENT SUPPORT ============ */
.prose .alignleft { float: left; margin: 0.4rem 1.6rem 1rem 0; max-width: 45%; }
.prose .alignright { float: right; margin: 0.4rem 0 1rem 1.6rem; max-width: 45%; }
.prose .aligncenter { margin-left: auto; margin-right: auto; text-align: center; }
.prose .alignwide {
    max-width: var(--read-max-wide);
    margin-left: calc(50% - min(50%, calc(var(--read-max-wide) / 2)));
    margin-right: calc(50% - min(50%, calc(var(--read-max-wide) / 2)));
}
.prose .alignfull {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}
@media (max-width: 720px) {
    .prose .alignleft, .prose .alignright { float: none; margin: 1rem 0; max-width: 100%; }
}

.wp-caption { max-width: 100%; }
.wp-caption-text, .gallery-caption {
    font-family: var(--f-mono);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-mute);
    margin-top: 0.6rem;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(var(--cols, 3), 1fr);
    gap: 0.6rem;
    margin: 1.8rem 0;
}
.gallery-columns-2 { --cols: 2; }
.gallery-columns-3 { --cols: 3; }
.gallery-columns-4 { --cols: 4; }
.gallery-item img { border: 1px solid var(--rule); }

.screen-reader-text {
    position: absolute !important;
    clip: rect(1px, 1px, 1px, 1px);
    height: 1px; width: 1px;
    overflow: hidden;
}

/* ============ ARTICLE FOOTER ============ */
.article__foot {
    max-width: var(--read-max);
    margin-top: clamp(3rem, 6vw, 4.5rem);
    padding-top: 1.6rem;
    border-top: 1px solid var(--rule);
}
.article__tags {
    display: flex; flex-wrap: wrap; gap: 0.5rem;
    margin-bottom: 1.6rem;
}
.article__tags a {
    font-family: var(--f-mono);
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-mute);
    border: 1px solid var(--rule);
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    text-decoration: none;
    transition: color .2s, border-color .2s;
}
.article__tags a:hover { color: var(--brass); border-color: var(--brass); }

.article__nav {
    display: flex; justify-content: space-between; align-items: baseline;
    gap: 2rem;
    padding-block: 1.2rem;
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    font-family: var(--f-mono);
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 2rem;
}
.article__nav a { color: var(--ink); text-decoration: none; opacity: 0.85; transition: opacity .2s, color .2s; }
.article__nav a:hover { opacity: 1; color: var(--brass); }
.article__nav .prev-label, .article__nav .next-label { color: var(--brass); opacity: 0.7; display: block; font-size: 0.68rem; margin-bottom: 0.3rem; }

/* ============ RELATED / CTA BLOCK ============ */
.related {
    background: var(--bone);
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    padding-block: clamp(3rem, 6vw, 4.5rem);
}
.related .section-head { margin-bottom: 2rem; }
.related-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.6rem;
}
.related-list a {
    display: block;
    padding: 1.4rem 1.4rem 1.6rem;
    background: var(--paper);
    border: 1px solid var(--rule);
    text-decoration: none;
    transition: background .2s, border-color .2s;
}
.related-list a:hover { background: var(--pine-2); border-color: var(--brass); }
.related-list .num {
    font-family: var(--f-mono);
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--brass);
    display: block;
    margin-bottom: 0.5rem;
}
.related-list h3 {
    font-size: 1.15rem;
    line-height: 1.25;
    margin-bottom: 0.4rem;
    color: var(--ink);
}
.related-list p {
    font-size: 0.9rem;
    color: var(--ink-mute);
    line-height: 1.5;
}

.cta-band {
    padding-block: clamp(3rem, 6vw, 4.5rem);
    background: var(--walnut);
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    text-align: center;
}
.cta-band h2 {
    font-size: clamp(1.8rem, 3.2vw, 2.4rem);
    letter-spacing: -0.02em;
    max-width: 22ch;
    margin: 0 auto 0.8rem;
}
.cta-band h2 em { font-style: italic; color: var(--ink-mute); }
.cta-band p {
    color: var(--ink-mute);
    max-width: 44ch;
    margin: 0 auto 1.8rem;
}

/* ============ PAGINATION ============ */
.pagination {
    display: flex; justify-content: space-between; align-items: baseline;
    padding-block: clamp(2rem, 4vw, 3rem);
    border-top: 1px solid var(--rule);
    margin-top: -1px;
    font-family: var(--f-mono);
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.pagination a, .pagination span { color: var(--ink); text-decoration: none; }
.pagination a { opacity: 0.85; transition: opacity .2s, color .2s; }
.pagination a:hover { opacity: 1; color: var(--brass); }
.pagination .current { color: var(--brass); }
.pagination__pages { display: flex; gap: 1rem; }
.pagination__side { display: flex; flex-direction: column; gap: 0.2rem; }
.pagination__side .label { color: var(--brass); font-size: 0.68rem; opacity: 0.7; }
.pagination__side.is-empty { visibility: hidden; }

/* ============ 404 & SEARCH ============ */
.centered {
    max-width: var(--read-max);
    padding-top: calc(var(--nav-h) + clamp(3rem, 8vw, 6rem));
    padding-bottom: clamp(3rem, 7vw, 5.5rem);
}
.centered h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.05;
    letter-spacing: -0.025em;
    margin-bottom: 1.2rem;
}
.centered h1 em { font-style: italic; color: var(--ink-mute); }
.centered p {
    color: var(--ink-mute);
    max-width: 44ch;
    margin-bottom: 1.6rem;
}

.search-form {
    display: flex; gap: 0.6rem;
    padding-block: 0.4rem;
    max-width: 32rem;
}
.search-form input[type="search"] {
    flex: 1;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--ink);
    color: var(--ink);
    font-family: var(--f-body);
    font-size: 1rem;
    padding: 0.6rem 0;
    outline: none;
    transition: border-color .2s;
}
.search-form input[type="search"]:focus { border-color: var(--brass); }
.search-form button {
    background: var(--ink);
    color: var(--pine);
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 999px;
    font-family: var(--f-body);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background .2s;
}
.search-form button:hover { background: var(--brass); }

/* ============ FOOTER (identical) ============ */
footer.site-foot {
    background: var(--pine);
    padding-block: 2.5rem;
    border-top: 1px solid var(--rule);
}
.foot {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 1rem;
    font-family: var(--f-mono);
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    color: var(--ink-mute);
}
.foot__brand {
    font-family: var(--f-display);
    font-size: 1.1rem;
    color: var(--ink);
    letter-spacing: -0.01em;
}
.foot a { color: var(--ink-mute); text-decoration: none; transition: color .2s; }
.foot a:hover { color: var(--brass); }

/* ============ MOTION ============ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}


/* ============ TWO-AUDIENCE FIELD NOTES LANDING PAGE ============ */
.journal-head__lead { max-width: 62ch; }

.audience-paths {
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
}
.audience-paths__intro {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: baseline;
    margin-bottom: clamp(1.8rem, 4vw, 2.8rem);
}
.audience-paths__intro h2,
.latest-notes__head h2 {
    font-size: clamp(1.9rem, 3.5vw, 2.8rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
}
.latest-notes__head h2 em { font-style: italic; color: var(--ink-mute); }

.audience-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1rem, 2.5vw, 1.8rem);
}
.audience-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 320px;
    padding: clamp(1.5rem, 3vw, 2.2rem);
    background: var(--bone);
    border: 1px solid var(--rule);
    text-decoration: none;
    overflow: hidden;
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.audience-card::after {
    content: '→';
    position: absolute;
    right: 1.5rem;
    top: 1.15rem;
    font-family: var(--f-display);
    font-size: 3rem;
    line-height: 1;
    color: var(--brass);
    opacity: 0.16;
    transition: transform .2s ease, opacity .2s ease;
}
.audience-card:hover {
    transform: translateY(-3px);
    border-color: var(--brass);
    background: var(--pine-2);
}
.audience-card:hover::after { transform: translateX(4px); opacity: 0.35; }
.audience-card__label,
.cta-band__eyebrow {
    display: block;
    margin-bottom: 1rem;
    font-family: var(--f-mono);
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--brass);
}
.audience-card h3 {
    max-width: 18ch;
    margin-bottom: 1rem;
    font-size: clamp(1.55rem, 2.8vw, 2.1rem);
    line-height: 1.15;
}
.audience-card p {
    max-width: 48ch;
    color: var(--ink-mute);
    line-height: 1.65;
}
.audience-card__link {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-top: auto;
    padding-top: 1.6rem;
    font-family: var(--f-mono);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--brass-hi);
}
.audience-card__count {
    min-width: 1.7rem;
    padding: 0.15rem 0.4rem;
    border: 1px solid var(--rule);
    border-radius: 999px;
    text-align: center;
    color: var(--ink-mute);
}

.latest-notes__head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 36ch);
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: end;
    margin-bottom: clamp(2rem, 4vw, 3rem);
}
.latest-notes__head .section-head__num { margin-bottom: 0.65rem; }
.latest-notes__head p { color: var(--ink-mute); line-height: 1.6; }

/* Clickable audience badge used on each listing. */
.post-list__meta a.audience-badge {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    margin-bottom: 0.7rem;
    padding: 0.34rem 0.65rem;
    border: 1px solid rgba(232, 155, 60, 0.5);
    border-radius: 999px;
    color: var(--brass-hi);
    text-decoration: none;
    line-height: 1.2;
    transition: color .2s, background .2s, border-color .2s;
}
.post-list__meta a.audience-badge:hover {
    color: var(--pine);
    background: var(--brass);
    border-color: var(--brass);
}
.post-list__meta > span { display: block; }

/* Audience-aware conversion bands. */
.cta-band__actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.8rem;
}
.cta-band--audiences { text-align: left; }
.cta-band--audiences .cta-band__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-inline: var(--gutter);
}
.cta-band__panel {
    padding: clamp(1rem, 3vw, 2rem) clamp(1rem, 4vw, 3rem);
}
.cta-band__panel + .cta-band__panel { border-left: 1px solid var(--rule); }
.cta-band--audiences h2,
.cta-band--audiences p {
    margin-left: 0;
    margin-right: 0;
}
.cta-band--audiences h2 { max-width: 20ch; }
.cta-band--audiences p { max-width: 40ch; }
.cta-band--homeowners .cta-band__eyebrow,
.cta-band--builders .cta-band__eyebrow { text-align: center; }

.foot__positioning { max-width: 46ch; line-height: 1.5; }
.foot__links { white-space: nowrap; }

@media (max-width: 820px) {
    .audience-grid,
    .cta-band--audiences .cta-band__grid { grid-template-columns: 1fr; }
    .audience-card { min-height: 280px; }
    .cta-band__panel + .cta-band__panel {
        border-left: 0;
        border-top: 1px solid var(--rule);
    }
    .latest-notes__head { grid-template-columns: 1fr; align-items: start; }
}

@media (max-width: 720px) {
    .audience-paths__intro { grid-template-columns: 1fr; }
    .audience-card { min-height: 0; }
    .audience-card__link { margin-top: 1.2rem; }
    .foot__positioning { flex-basis: 100%; }
    .foot__links { white-space: normal; }
}
