/* ===========================================================================
   Jasper Ghost theme
   =========================================================================== */

:root {
    --max-width: 1100px;
    --gutter: 16px;

    /* Brand */
    --background-color: #14839c;        /* dark teal — page field */
    --nav-top-bg: #e3c564;              /* sandy yellow — nav body, decorative */
    --nav-line-bg: #bd5048;              /* clay red — rules, accents */
    --nav-button-bg: #48bda7;            /* mint teal — button surfaces */

    /* Tinted neutrals on warm cream paper (post cards, light surfaces) */
    --text: oklch(0.22 0.018 85);        /* deep ink, warm — body on paper */
    --muted: oklch(0.42 0.018 85);       /* warm muted ink */
    --surface: oklch(0.96 0.018 85 / 0.96); /* warm cream paper, slight see-through */
    --border: oklch(0.22 0.018 85 / 0.14);

    /* Tinted lights on dark teal (page bg) */
    --text-on-dark: oklch(0.97 0.018 85);          /* warm off-white — body on teal */
    --text-on-dark-muted: oklch(0.92 0.022 85);    /* meta, lede */
    --text-on-dark-accent: oklch(0.88 0.10 88);    /* tertiary meta — soft yellow accent */

    /* Deep ink for button text on mint teal — AA contrast 4.8:1 */
    --ink: oklch(0.25 0.04 200);

    /* Overlays and rules over the teal field */
    --rule-on-dark: oklch(1 0 0 / 0.18);
    --overlay-on-dark: oklch(0 0 0 / 0.22);

    --nav-top-pad-x: 14px;
    --nav-top-height: 46px;
    --nav-line-height: 10px;

    /* Type families — Art Deco display + warm humanist serif body */
    --gh-font-heading: "Big Shoulders Display", "Helvetica Neue Condensed", "Arial Narrow", system-ui, sans-serif;
    --gh-font-body: "Vollkorn", Georgia, "Times New Roman", serif;

    /* Modular type scale (1.25 perfect-fourth) — fluid at the top end */
    --type-100: 0.75rem;
    --type-200: 0.875rem;
    --type-300: 1rem;
    --type-400: 1.125rem;
    --type-500: 1.375rem;
    --type-600: 1.75rem;
    --type-700: 2.25rem;
    --type-800: clamp(2.5rem, 4vw + 1rem, 3.5rem);

    /* Line heights — looser default for light-on-dark long-form */
    --lh-tight: 1.05;
    --lh-snug: 1.2;
    --lh-base: 1.65;

    /* Letter spacing — Big Shoulders is tall and narrow, wants air on caps */
    --ls-tight: -0.01em;
    --ls-base: 0;
    --ls-wide: 0.04em;
    --ls-wider: 0.14em;

    /* 4pt spacing scale — semantic, not pixel-named */
    --space-3xs: 4px;
    --space-2xs: 8px;
    --space-xs: 12px;
    --space-sm: 16px;
    --space-md: 18px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    color: var(--text);
    font-family: var(--gh-font-body);
    font-size: var(--type-300);
    line-height: var(--lh-base);
    background: var(--background-color);
    font-kerning: normal;
    text-rendering: optimizeLegibility;
    text-wrap: pretty;
    overflow-x: clip;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--gh-font-heading);
    font-weight: 800;
    line-height: var(--lh-tight);
    letter-spacing: var(--ls-tight);
    text-wrap: balance;
}

h1 { font-size: var(--type-800); text-transform: uppercase; }
h2 { font-size: var(--type-700); font-weight: 700; }
h3 { font-size: var(--type-600); font-weight: 700; letter-spacing: var(--ls-base); }
h4 { font-size: var(--type-500); font-weight: 700; letter-spacing: var(--ls-base); }
h5 { font-size: var(--type-400); font-weight: 700; letter-spacing: var(--ls-wide); }
h6 { font-size: var(--type-300); font-weight: 700; letter-spacing: var(--ls-wider); text-transform: uppercase; }

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(var(--max-width), calc(100% - (var(--gutter) * 2)));
    margin-inline: auto;
}

/* ===========================================================================
   Focus + skip link — accessibility fundamentals
   =========================================================================== */

:focus {
    outline: none;
}

:focus-visible {
    outline: 2px solid var(--nav-line-bg);
    outline-offset: 2px;
}

main:focus-visible {
    outline: none;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: var(--space-2xs);
    z-index: 100;
    padding: var(--space-xs) var(--space-md);
    background: var(--nav-button-bg);
    color: var(--ink);
    font-family: var(--gh-font-heading);
    font-size: var(--type-200);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: var(--ls-wider);
    text-decoration: none;
    transition: top 80ms ease;
}

.skip-link:focus {
    top: var(--space-2xs);
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ===========================================================================
   Header / banner
   =========================================================================== */

.site__header {
    padding: var(--space-md) 0 var(--space-2xs);
}

.banner {
    display: block;
    overflow: visible;
}

.banner__img {
    width: 100%;
    height: auto;
    object-fit: contain;
    background: transparent;
}

/* ===========================================================================
   Navbar
   =========================================================================== */

.nav {
    margin-top: var(--space-2xs);
}

.nav__top {
    background: var(--nav-top-bg);
}

.nav__inner {
    width: min(var(--max-width), calc(100% - (var(--gutter) * 2)));
    margin-inline: auto;
    min-height: var(--nav-top-height);
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    gap: var(--space-xs);
    padding-inline: var(--nav-top-pad-x);
}

.nav__links {
    list-style: none;
    display: flex;
    gap: var(--space-xs);
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    align-items: stretch;
}

.nav__links li {
    display: flex;
}

.nav__links a {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 var(--space-sm);
    background: var(--nav-button-bg);
    color: var(--ink);
    border: 0;
    font-family: var(--gh-font-heading);
    font-size: var(--type-300);
    font-weight: 800;
    letter-spacing: var(--ls-wider);
    text-transform: uppercase;
    line-height: 1;
}

.nav__links a:hover {
    text-decoration: underline;
    text-decoration-color: var(--nav-line-bg);
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
}

.nav__line {
    height: var(--nav-line-height);
    background: var(--nav-line-bg);
}

/* ===========================================================================
   Main / content
   =========================================================================== */

.site__main {
    padding: var(--space-md) 0 var(--space-xl);
}

.content {
    background: transparent;
    border: 0;
    padding: var(--space-md) 0;
    color: var(--text-on-dark);
    font-size: var(--type-400);
    line-height: var(--lh-base);
}

.content h1,
.content h2,
.content h3,
.content h4,
.content h5,
.content h6 {
    color: var(--text-on-dark);
}

.content h1 {
    margin-top: 0;
}

.content > * + * {
    margin-top: 1em;
}

.content > h2,
.content > h3 {
    margin-top: 1.6em;
}

.content p,
.content li {
    color: var(--text-on-dark);
    max-width: 65ch;
}

.content a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
    text-decoration-color: var(--nav-line-bg);
}

.content a:hover {
    text-decoration-thickness: 2px;
    text-decoration-color: var(--nav-top-bg);
}

.content blockquote {
    margin: 1.5em 0;
    padding: 0 0 0 1.4em;
    color: var(--text-on-dark);
    font-family: var(--gh-font-body);
    font-style: italic;
    font-size: var(--type-500);
    line-height: 1.45;
    position: relative;
    max-width: 60ch;
}

.content blockquote::before {
    content: "\201C";
    position: absolute;
    left: -0.05em;
    top: -0.15em;
    font-family: var(--gh-font-heading);
    font-style: normal;
    font-size: 3.2em;
    font-weight: 900;
    line-height: 1;
    color: var(--nav-line-bg);
}

.content blockquote p {
    margin: 0;
}

.content blockquote p + p {
    margin-top: 0.6em;
}

.content pre,
.content code {
    background: var(--overlay-on-dark);
    color: var(--text-on-dark);
    border-radius: 2px;
    font-family: ui-monospace, "SF Mono", "Cascadia Mono", "JetBrains Mono", Menlo, monospace;
}

.content pre {
    padding: var(--space-sm);
    overflow-x: auto;
    font-size: var(--type-200);
    line-height: 1.55;
}

.content code {
    padding: 2px 6px;
    font-size: 0.88em;
}

.content pre code {
    padding: 0;
    background: transparent;
    font-size: inherit;
}

.content img {
    border-radius: 2px;
}

/* ===========================================================================
   Koenig editor card widths and built-in cards
   =========================================================================== */

.kg-width-wide {
    position: relative;
    width: calc(100vw - (var(--gutter) * 2));
    max-width: 1240px;
    margin-inline: auto;
    margin-left: 50%;
    transform: translateX(-50%);
}

.kg-width-full {
    position: relative;
    width: 100vw;
    max-width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
}

.kg-width-full img {
    width: 100vw;
}

.kg-image-card img,
.kg-gallery-card img,
.kg-bookmark-card img {
    margin: 0 auto;
}

.kg-gallery-container {
    display: flex;
    flex-direction: column;
    max-width: 1040px;
    width: 100vw;
}

.kg-gallery-row {
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.kg-gallery-image img {
    display: block;
    margin: 0;
    width: 100%;
    height: 100%;
}

.kg-gallery-row:not(:first-of-type) {
    margin: 0.75em 0 0 0;
}

.kg-gallery-image:not(:first-of-type) {
    margin: 0 0 0 0.75em;
}

.kg-bookmark-card {
    width: 100%;
    background: var(--surface);
    color: var(--text);
}

.kg-bookmark-container {
    display: flex;
    color: inherit;
    text-decoration: none;
}

.kg-bookmark-content {
    flex-basis: 0;
    flex-grow: 999;
    padding: var(--space-md);
}

.kg-bookmark-thumbnail {
    flex: 1 1 30%;
    min-width: 32%;
    max-width: 240px;
}

.kg-bookmark-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.kg-callout-card {
    padding: var(--space-sm);
    background: oklch(1 0 0 / 0.12);
    border-radius: 2px;
    display: flex;
    gap: var(--space-xs);
    align-items: flex-start;
}

.kg-toggle-card {
    padding: var(--space-sm);
    background: oklch(1 0 0 / 0.12);
    border-radius: 2px;
}

.kg-button-card {
    text-align: center;
    margin: var(--space-md) 0;
}

.kg-button-card a {
    display: inline-block;
    padding: var(--space-xs) var(--space-lg);
    background: var(--nav-button-bg);
    color: var(--ink);
    font-family: var(--gh-font-heading);
    font-size: var(--type-300);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: var(--ls-wider);
    text-decoration: none;
}

/* ===========================================================================
   Home: media-split intro
   =========================================================================== */

.media-split {
    display: flex;
    gap: var(--space-lg);
    align-items: stretch;
    margin-bottom: var(--space-xl);
}

.media-split__credit {
    margin: 0;
    flex: 0 0 auto;
    font-family: var(--gh-font-heading);
    font-size: var(--type-200);
    font-weight: 700;
    letter-spacing: var(--ls-wider);
    text-transform: uppercase;
    color: var(--text-on-dark-muted);
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    padding: var(--space-2xs) 0;
}

.media-split__image {
    flex: 0 0 42%;
    min-width: 240px;
}

.media-split__image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.media-split__text {
    flex: 1 1 auto;
    min-width: 240px;
    text-align: right;
}

.media-split__text h1 {
    margin-top: 0;
}

/* Home page only: vertically center the intro copy alongside the image */
.home .media-split__text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.home .media-split__text h1 {
    margin-bottom: var(--space-2xs);
}

/* ===========================================================================
   Home: bottom stack (social + bsky embed)
   =========================================================================== */

.bottom-stack {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    margin-top: var(--space-md);
}

/* Two-column row at desktop: recent posts left, bsky feed right.
   Stacks vertically on narrow viewports. */
.bottom-stack__row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-lg);
    align-items: flex-start;
}

.bottom-stack__row > * {
    flex: 1 1 320px;
    min-width: 0;
}

.social {
    flex: 1 1 50%;
    padding: var(--space-sm);
    border: 1px solid var(--border);
    background: var(--surface);
}

.social__title {
    margin: 0 0 var(--space-xs);
    font-family: var(--gh-font-heading);
    font-size: var(--type-200);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: var(--ls-wider);
    color: var(--muted);
}

.social__icons {
    display: flex;
    gap: var(--space-xs);
    flex-wrap: wrap;
}

.social__icon {
    width: 44px;
    height: 44px;
    display: inline-grid;
    place-items: center;
    background: oklch(0.22 0.018 85 / 0.06);
    border: 1px solid var(--border);
    transition: transform 120ms ease, background 120ms ease;
}

.social__icon:hover {
    transform: translateY(-2px);
    background: oklch(0.22 0.018 85 / 0.1);
}

.social--simple {
    flex: 0 0 auto;
    padding: 0;
    border: 0;
    background: transparent;
}

.social--simple .social__icons {
    gap: var(--space-xs);
    flex-wrap: nowrap;
    align-items: center;
}

.social--simple .social__icon {
    width: 44px;
    height: 44px;
    display: inline-grid;
    place-items: center;
    background: transparent;
    border: 0;
    transition: transform 120ms ease;
    color: var(--text-on-dark);
}

.social--simple .social__icon img,
.social--simple .social__icon svg {
    display: block;
}

.social--simple .social__icon:hover {
    transform: translateY(-2px);
}

/* ===========================================================================
   Bluesky feed (home page) — cream paper inset so the embed's metadata reads
   =========================================================================== */

.bsky-feed {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.bsky-feed__title {
    margin: 0;
    font-family: var(--gh-font-heading);
    font-size: var(--type-300);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: var(--ls-wider);
    color: var(--text-on-dark);
}

.bsky-feed__embed {
    background: var(--overlay-on-dark);
    padding: var(--space-sm);
    max-height: 560px;
    overflow-y: auto;
}

bsky-embed {
    width: 100%;
    display: block;
}


/* ===========================================================================
   Footer
   =========================================================================== */

.site__footer {
    padding: var(--space-lg) 0 var(--space-xl);
    color: var(--text-on-dark-accent);
}

.site__footer small {
    display: block;
    text-align: center;
    font-family: var(--gh-font-heading);
    font-size: var(--type-200);
    font-weight: 500;
    letter-spacing: var(--ls-wider);
    text-transform: uppercase;
}

/* ===========================================================================
   Page header (used on tag, author, index, error pages)
   =========================================================================== */

.page-header {
    margin-bottom: var(--space-xl);
}

.page-header__kicker {
    margin: 0 0 var(--space-xs);
    font-family: var(--gh-font-heading);
    font-size: var(--type-200);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: var(--ls-wider);
    color: var(--text-on-dark-muted);
}

.page-header__title {
    margin: 0 0 var(--space-xs);
    font-size: var(--type-800);
    color: var(--text-on-dark);
    overflow-wrap: break-word;
    word-break: break-word;
}

/* Printer's slash mark — alternating clay red + sandy yellow,
   pulled from the banner's diagonal divider + triangle motifs */
.page-header__title::after,
.post__title::after {
    content: "";
    display: block;
    margin-top: var(--space-sm);
    width: 240px;
    max-width: 100%;
    height: 6px;
    background: repeating-linear-gradient(
        -45deg,
        var(--nav-line-bg) 0,
        var(--nav-line-bg) 6px,
        var(--nav-top-bg) 6px,
        var(--nav-top-bg) 12px
    );
}

.page-header__lede {
    margin: 0;
    font-family: var(--gh-font-body);
    font-size: var(--type-400);
    line-height: var(--lh-base);
    color: var(--text-on-dark-muted);
    max-width: 60ch;
}

.author-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-xs);
}

.author-header__image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

/* ===========================================================================
   Post list / post card
   =========================================================================== */

.post-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-lg);
}

/* Featured first card: spans the row; switches to horizontal split at ≥720px */
.post-list > .post-card:first-child {
    grid-column: 1 / -1;
}

@media (min-width: 720px) {
    .post-list > .post-card:first-child {
        flex-direction: row;
        min-height: 320px;
    }

    .post-list > .post-card:first-child .post-card__image-link {
        flex: 1 1 58%;
        aspect-ratio: auto;
        align-self: stretch;
    }

    .post-list > .post-card:first-child .post-card__body {
        flex: 1 1 42%;
        padding: var(--space-lg);
        justify-content: center;
        gap: var(--space-xs);
    }

    .post-list > .post-card:first-child .post-card__title {
        font-size: var(--type-700);
        -webkit-line-clamp: 4;
    }

    .post-list > .post-card:first-child .post-card__excerpt {
        font-size: var(--type-400);
        -webkit-line-clamp: 5;
    }
}

/* On screens narrower than 720px, the featured card stays vertical
   but stretches edge to edge */
@media (max-width: 719px) {
    .post-list > .post-card:first-child .post-card__image-link {
        aspect-ratio: 16 / 10;
    }
}

.post-card {
    display: flex;
    flex-direction: column;
    background: var(--overlay-on-dark);
    color: var(--text-on-dark);
    overflow: hidden;
    border: 0;
}

.post-card__image-link {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: oklch(0 0 0 / 0.05);
}

.post-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.post-card__body {
    padding: var(--space-sm);
    display: flex;
    flex-direction: column;
    gap: var(--space-2xs);
    flex: 1;
}

.post-card__title {
    margin: 0;
    font-family: var(--gh-font-heading);
    font-size: var(--type-500);
    font-weight: 700;
    line-height: var(--lh-snug);
    letter-spacing: var(--ls-base);
    text-transform: uppercase;
    color: var(--text-on-dark);
    overflow-wrap: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card__title a {
    color: inherit;
    text-decoration: none;
}

.post-card__title a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 2px;
    text-decoration-color: var(--nav-line-bg);
}

.post-card__excerpt {
    margin: 0;
    font-family: var(--gh-font-body);
    font-size: var(--type-300);
    line-height: 1.5;
    color: var(--text-on-dark-muted);
    overflow-wrap: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card__meta {
    margin-top: auto;
    padding-top: var(--space-2xs);
    font-family: var(--gh-font-heading);
    font-size: var(--type-100);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: var(--ls-wider);
    color: var(--text-on-dark);
}

.post-card__sep {
    margin: 0 var(--space-2xs);
}

.post-card__tag {
    color: var(--nav-top-bg);
    text-decoration: none;
}

/* ===========================================================================
   Single post / page
   =========================================================================== */

.post__header {
    margin-bottom: var(--space-lg);
}

.post__primary-tag {
    display: inline-block;
    margin-bottom: var(--space-xs);
    font-family: var(--gh-font-heading);
    font-size: var(--type-200);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: var(--ls-wider);
    color: var(--text-on-dark-muted);
    text-decoration: none;
}

.post__title {
    margin: 0 0 var(--space-xs);
    font-size: var(--type-800);
    line-height: var(--lh-tight);
    color: var(--text-on-dark);
    overflow-wrap: break-word;
    word-break: break-word;
}

.post__meta {
    font-family: var(--gh-font-heading);
    font-size: var(--type-200);
    font-weight: 500;
    letter-spacing: var(--ls-wide);
    text-transform: uppercase;
    color: var(--text-on-dark);
}

.post__sep {
    margin: 0 var(--space-2xs);
}

.post__feature-image {
    margin: 0 0 var(--space-md);
}

.post__feature-image img {
    width: 100%;
    height: auto;
}

.post__feature-image figcaption {
    margin-top: var(--space-2xs);
    text-align: center;
    font-family: var(--gh-font-body);
    font-style: italic;
    font-size: var(--type-200);
    line-height: 1.4;
    color: var(--text-on-dark-accent);
}

.post__body > * + * {
    margin-top: 1em;
}

.post__footer {
    margin-top: var(--space-lg);
    padding-top: var(--space-sm);
    border-top: 1px solid var(--rule-on-dark);
}

.post__tags {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2xs);
}

.post__tags a {
    color: var(--text-on-dark);
    background: var(--overlay-on-dark);
    padding: var(--space-2xs) var(--space-xs);
    font-family: var(--gh-font-heading);
    font-size: var(--type-200);
    font-weight: 600;
    letter-spacing: var(--ls-wide);
    text-transform: uppercase;
    text-decoration: none;
}

/* ===========================================================================
   Recent posts (home page)
   =========================================================================== */

.recent-posts {
    margin-top: 0;
}

.recent-posts__title {
    margin: 0 0 var(--space-sm);
    font-family: var(--gh-font-heading);
    font-size: var(--type-300);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: var(--ls-wider);
    color: var(--text-on-dark);
}

.recent-posts__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-2xs);
}

.recent-posts__link {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: var(--space-sm);
    padding: var(--space-xs) var(--space-sm);
    background: var(--overlay-on-dark);
    color: var(--text-on-dark);
    text-decoration: none;
    transition: background 160ms ease, transform 160ms cubic-bezier(0.25, 1, 0.5, 1);
}

.recent-posts__link:hover {
    background: oklch(0 0 0 / 0.32);
    transform: translateX(4px);
}

.recent-posts__heading {
    flex: 1 1 auto;
    min-width: 0;
    font-family: var(--gh-font-body);
    font-size: var(--type-300);
    font-weight: 600;
    overflow-wrap: break-word;
}

.recent-posts__date {
    font-family: var(--gh-font-heading);
    font-size: var(--type-100);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: var(--ls-wider);
    color: var(--text-on-dark);
    white-space: nowrap;
}

/* ===========================================================================
   Pagination
   =========================================================================== */

.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-xs);
    margin-top: var(--space-xl);
    color: var(--text-on-dark);
}

.pagination a {
    color: var(--ink);
    background: var(--nav-button-bg);
    padding: var(--space-xs) var(--space-sm);
    font-family: var(--gh-font-heading);
    font-size: var(--type-200);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: var(--ls-wider);
    text-decoration: none;
}

.pagination .page-number {
    font-family: var(--gh-font-heading);
    font-size: var(--type-200);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: var(--ls-wide);
    color: var(--text-on-dark-accent);
}

/* ===========================================================================
   Empty state
   =========================================================================== */

.empty-state {
    padding: var(--space-xl) 0;
    text-align: center;
    font-family: var(--gh-font-body);
    font-style: italic;
    font-size: var(--type-400);
    color: var(--text-on-dark-muted);
}

/* Bullseye ornament — drawn from the banner's circle motif */
.empty-state::before {
    content: "";
    display: block;
    margin: 0 auto var(--space-md);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 4px solid var(--nav-line-bg);
}

/* ===========================================================================
   Responsive
   =========================================================================== */

@media (max-width: 720px) {
    .media-split {
        flex-direction: column;
    }

    .media-split__image,
    .media-split__text {
        min-width: 0;
    }

    .media-split__credit {
        writing-mode: horizontal-tb;
        transform: none;
        padding: 0;
        text-align: left;
    }

    .media-split__text {
        text-align: left;
    }

    .nav__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-xs);
        padding-block: var(--space-xs);
        min-height: 0;
    }

    .nav__links {
        width: 100%;
    }

    .content {
        padding: var(--space-sm) 0;
        font-size: var(--type-300);
    }

    .social--simple .social__icons {
        flex-wrap: wrap;
    }

    .post__title {
        font-size: var(--type-700);
    }
}
