/* Nova Nevedoma — Literary indie press stylesheet */

@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&display=swap');

:root {
    --font-body: "EB Garamond", Garamond, "Times New Roman", serif;
    --font-sans: system-ui, -apple-system, sans-serif;

    /* Brand colors */
    --color-gold: #F1DE71;
    --color-gold-dim: #D2B45B;
    --color-purple: #311955;
    --color-purple-deep: #0f071a;
    --color-grey-purple: #4B454B;

    /* Light theme (default) */
    --color-bg: #F5F0E6;
    --color-bg-alt: #F5F2EB;
    --color-text: #1a1a1a;
    --color-text-muted: #4B454B;
    --color-border: #e5e0d8;
    --color-link: #1a1a1a;
    --color-link-hover: #000;
    --color-accent: #F1DE71;
    --color-accent-dim: #D2B45B;

    /* Layout widths */
    --max-width: 720px;
    --max-width-wide: 960px;
    --content-width: 640px;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
}

/* Dark/Purple theme - manual override */
[data-theme="dark"] {
    --color-bg: #0f071a;
    --color-bg-alt: #1a0f2e;
    --color-text: #FAF8F3;
    --color-text-muted: #c5bfcc;
    --color-border: #2d1f4a;
    --color-link: #FAF8F3;
    --color-link-hover: #F1DE71;
    --color-accent: #F1DE71;
}

/* Dark/Purple theme - system preference (when no manual override) */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --color-bg: #0f071a;
        --color-bg-alt: #1a0f2e;
        --color-text: #FAF8F3;
        --color-text-muted: #c5bfcc;
        --color-border: #2d1f4a;
        --color-link: #FAF8F3;
        --color-link-hover: #F1DE71;
        --color-accent: #F1DE71;
    }
}


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

html {
    font-size: 20px;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--color-link);
    text-decoration: none;
    border-bottom: 1px solid var(--color-border);
}

a:hover {
    border-color: var(--color-text);
}

/* Make links in prose/content areas more visible */
.prose a,
.book-content a {
    color: var(--color-text);
    text-decoration: underline;
    text-decoration-color: var(--color-accent-dim);
    text-underline-offset: 0.15em;
    text-decoration-thickness: 1.5px;
    border-bottom: none;
}

.prose a:hover,
.book-content a:hover {
    text-decoration-color: var(--color-text);
}

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

h1, h2, h3 {
    font-weight: 500;
    line-height: 1.3;
    margin: 0 0 var(--space-sm);
    letter-spacing: -0.01em;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.15rem; }

/* Layout */
.site-header {
    max-width: var(--max-width-wide);
    margin: 0 auto;
    padding: var(--space-lg) var(--space-md) var(--space-sm);
}

/* Centered dot-separated navigation bar */
.nav-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 0.6rem 0;
}

.nav-link {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
    border-bottom: none;
    padding: 0.25rem 0.5rem;
    transition: color 0.15s ease;
}

.nav-link:hover {
    color: var(--color-text);
}

.nav-link.nav-active {
    color: var(--color-text);
}

/* Gold highlight for Subscribe — matches home page */
.nav-subscribe {
    color: var(--color-gold) !important;
}

.nav-subscribe:hover {
    color: var(--color-accent-dim) !important;
}

/* Center-dot separators */
.nav-dot {
    color: var(--color-text-muted);
    font-size: 0.7rem;
    margin: 0 0.1rem;
    opacity: 0.5;
    user-select: none;
}

.header-intro {
    line-height: 1.5;
    font-size: 1.15rem;
}

.header-intro p {
    margin: 0 0 var(--space-sm);
}

.header-intro p:last-child {
    margin-bottom: 0;
}

.site-manifesto {
    font-size: 1.05rem;
    color: var(--color-text-muted);
}

.main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--space-md) var(--space-md) var(--space-xl);
}

/* Wider layout for homepage and book pages */
.main--home,
.main--wide {
    max-width: var(--max-width-wide);
}

/* Narrow layout for reading (posts) */
.main--narrow {
    max-width: var(--content-width);
}

.site-footer {
    padding: var(--space-xl) var(--space-md);
    text-align: center;
}

.footer-nav {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer-nav a {
    color: var(--color-text-muted);
    border-bottom: none;
}

.footer-nav a:hover {
    color: var(--color-text);
}

.footer-sep {
    margin: 0 0.75em;
    color: var(--color-text-muted);
}

/* Intro / Hero */
.intro {
    margin-bottom: var(--space-lg);
    color: var(--color-text-muted);
    font-size: 1.1rem;
}

.intro::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: var(--color-accent);
    margin: var(--space-lg) auto 0;
}

/* Accent divider */
.accent-bar {
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
    margin: var(--space-lg) 0;
}

.accent-bar--short {
    width: 60px;
    margin-left: auto;
    margin-right: auto;
}

/* Featured Book */
.featured-book {
    display: flex;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
    padding: var(--space-lg) 0;
}

.featured-book-cover {
    width: 280px;
    flex-shrink: 0;
}

.featured-book-cover a {
    border-bottom: none;
    display: block;
}

.featured-book-cover img {
    width: 100%;
    height: auto;
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.1),
        0 12px 32px rgba(0, 0, 0, 0.15);
}

.featured-book-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-book-label {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-accent);
    margin-bottom: var(--space-xs);
    font-weight: 600;
}

.featured-book-info h3 {
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: var(--space-xs);
    line-height: 1.2;
}

.featured-book-info h3 a {
    border-bottom: none;
}

.featured-book-info h3 a:hover {
    color: var(--color-accent-dim);
}

.featured-book-info .book-author {
    font-size: 1.1rem;
    margin-bottom: var(--space-sm);
    color: var(--color-text-muted);
}

.featured-book-info .book-description {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    margin: 0 0 var(--space-md);
    line-height: 1.6;
}

.featured-book-info .book-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text);
    border-bottom: none;
}

.featured-book-info .book-cta:hover {
    color: var(--color-accent-dim);
}

.featured-book-info .book-cta::after {
    content: "→";
}

/* Sections */
.section {
    margin-bottom: var(--space-xl);
}

.section-title {
    font-size: 0.65rem;
    margin: 0 0 var(--space-xs);
    color: var(--color-text-muted);
    font-family: var(--font-sans);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.section-title::before {
    display: none;
}

.section-more {
    margin-top: var(--space-md);
}

.section-more a {
    color: var(--color-text-muted);
    font-size: 0.85rem;
    border-bottom: none;
}

.section-more a:hover {
    color: var(--color-text);
}

/* Book Grid */
.book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: var(--space-md);
}

.book-grid-full {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: var(--space-lg);
}

.book-card {
    text-decoration: none;
    border-bottom: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.book-cover {
    width: 100%;
    height: auto;
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.06),
        0 4px 12px rgba(0, 0, 0, 0.08);
}

.book-card:hover .book-title {
    color: var(--color-accent-dim);
}

.book-cover-placeholder {
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-sm);
    text-align: center;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.book-title {
    font-size: 0.85rem;
    line-height: 1.35;
    margin-top: var(--space-xs);
}

.book-author {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.book-year {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.book-category {
    font-size: 0.7rem;
    color: var(--color-text-muted);
}

.book-status-badge {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-accent);
    margin-top: 0.25rem;
}

.book-status-badge-released {
    color: var(--color-text-muted);
}

.book-section {
    margin-bottom: var(--space-xl);
}

.book-section:last-child {
    margin-bottom: 0;
}

/* Book Detail */
.book-detail {
    max-width: var(--max-width-wide);
}

.book-detail-header {
    display: flex;
    gap: var(--space-xl);
    margin-bottom: var(--space-lg);
}

.book-detail-cover {
    width: 300px;
    height: auto;
    flex-shrink: 0;
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.06),
        0 8px 24px rgba(0, 0, 0, 0.1);
}

.book-detail-info h1 {
    font-size: 1.6rem;
    margin-bottom: var(--space-xs);
    font-weight: 400;
}

.book-detail-info .book-author {
    font-size: 1.1rem;
    margin-bottom: var(--space-xs);
    display: block;
}

.book-detail-info .book-meta {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-xs);
}

.book-detail-info .book-year {
    font-size: 0.9rem;
    margin-bottom: var(--space-sm);
    display: block;
}

.book-status {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: var(--space-sm) 0;
}

.book-status-upcoming {
    color: var(--color-accent);
}

/* Buy Links Section */
.buy-links-section {
    margin-top: var(--space-lg);
}

.buy-links-primary {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.buy-link {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-bottom: none;
    transition: all 0.15s ease;
}

/* Primary links (PERSONAL, DIRECT) - prominent gold-accented style */
.buy-link--primary {
    padding: 0.6rem 1rem;
    background: transparent;
    border: 1px solid var(--color-accent);
    justify-content: space-between;
    gap: var(--space-md);
}

.buy-link--primary:hover {
    background: var(--color-accent);
    color: var(--color-purple-deep);
    border-color: var(--color-accent);
}

.buy-link-name {
    font-weight: 500;
}

.buy-link-price {
    font-weight: 400;
    opacity: 0.8;
}

.buy-link--primary:hover .buy-link-price {
    opacity: 1;
}

/* Secondary links (retailers) - subdued inline style */
.buy-links-secondary {
    padding-top: var(--space-sm);
    border-top: 1px dotted var(--color-border);
}

.buy-links-label {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    margin-bottom: var(--space-xs);
}

.buy-links-retailers {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.buy-link--secondary {
    padding: 0.35rem 0.7rem;
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    font-size: 0.7rem;
}

.buy-link--secondary:hover {
    border-color: var(--color-text-muted);
    color: var(--color-text);
}

/* Legacy fallback for old format */
.buy-links {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-md);
    flex-wrap: wrap;
}

.buy-links > .buy-link:not(.buy-link--primary):not(.buy-link--secondary) {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    border: 1px solid var(--color-text);
}

.buy-links > .buy-link:not(.buy-link--primary):not(.buy-link--secondary):hover {
    background: var(--color-text);
    color: var(--color-bg);
    border-color: var(--color-text);
}

.book-content {
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
}

.book-content::before {
    content: "~";
    display: block;
    text-align: center;
    color: var(--color-text-muted);
    font-size: 1.2rem;
    margin-bottom: var(--space-lg);
}

@media (max-width: 600px) {
    .site-header {
        padding: var(--space-md) var(--space-md);
    }

    .nav-link {
        font-size: 0.7rem;
        padding: 0.2rem 0.35rem;
    }

    .nav-dot {
        font-size: 0.6rem;
    }


    .site-manifesto {
        font-size: 0.85rem;
    }

    .main--home {
        max-width: 100%;
    }

    .featured-book {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .featured-book-cover {
        width: 200px;
    }

    .featured-book-info h3 {
        font-size: 1.4rem;
    }

    .featured-book-info .book-cta {
        justify-content: center;
    }

    .book-detail-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .book-detail-cover {
        width: 180px;
    }

    .buy-links {
        justify-content: center;
    }

    .prose p {
        text-align: left;
        hyphens: none;
    }

    /* TOC list mobile */
    .post-list-toc .post-item {
        flex-wrap: wrap;
    }

    .post-list-toc .toc-dots {
        display: none;
    }

    .post-list-toc .post-date {
        font-size: 0.8rem;
        width: 100%;
        text-align: left;
        order: -1;
        margin-bottom: 0.25rem;
    }

}

/* Post List */
.post-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.post-item {
    padding: var(--space-xs) 0;
}

.post-item a {
    border-bottom: none;
}

.post-item a:hover {
    color: var(--color-text-muted);
}

.post-date {
    color: var(--color-text-muted);
}

.post-separator {
    color: var(--color-text-muted);
    margin: 0 0.4em;
}

.post-list-home .post-item {
    padding: var(--space-xs) 0;
}

.post-list-full .post-item {
    padding: var(--space-sm) 0;
}

.post-list-full .post-item::after {
    content: "~";
    display: block;
    text-align: center;
    color: var(--color-text-muted);
    font-size: 1rem;
    margin-top: var(--space-sm);
}

.post-list-full .post-item:last-child::after {
    display: none;
}

.post-excerpt {
    color: var(--color-text-muted);
    margin: var(--space-xs) 0 0;
    font-size: 0.85rem;
    line-height: 1.5;
}

/* TOC-style Blog Listing (dotted leaders) */
.post-list-toc {
    list-style: none;
    margin: 0;
    padding: 0;
}

.post-list-toc .post-item {
    display: flex;
    align-items: baseline;
    padding: 0.4rem 0;
    gap: 0.5rem;
}

.post-list-toc .post-item::after {
    display: none;
}

.post-list-toc .post-title-link {
    flex-shrink: 0;
    border-bottom: none;
}

.post-list-toc .post-title-link:hover {
    color: var(--color-accent-dim);
}

/* Dotted leader line */
.post-list-toc .toc-dots {
    flex: 1;
    border-bottom: 1px dotted var(--color-border);
    margin: 0 0.5rem;
    min-width: 2rem;
    height: 0.7em;
}

.post-list-toc .post-date {
    flex-shrink: 0;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    white-space: nowrap;
}

/* Category badge for TOC */
.post-list-toc .toc-badge {
    flex-shrink: 0;
    font-family: var(--font-sans);
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.15em 0.4em;
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    margin-left: 0.5rem;
}

/* Year headers for TOC */
.post-year-header {
    font-weight: 500;
    font-size: 1rem;
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
}

.post-year-header:first-of-type {
    margin-top: 0;
}

/* Month headers for TOC (right-aligned) */
.toc-month-header {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    text-align: right;
    margin-top: var(--space-md);
    margin-bottom: var(--space-xs);
}

/* Post/Page Detail */
.post-detail,
.page-detail {
    max-width: var(--content-width);
    margin: 0 auto;
}

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

.post-header h1 {
    font-size: 2.2rem;
    font-weight: 400;
    margin-bottom: var(--space-sm);
    line-height: 1.2;
}

.post-header .post-date {
    margin-top: 0;
}

/* Prose */
.prose {
    font-size: 1.1rem;
    line-height: 1.55;
}

.prose p {
    margin: 0 0 var(--space-md);
    text-align: justify;
    hyphens: auto;
}

.prose h2 {
    margin-top: var(--space-lg);
    font-size: 1.3rem;
}

.prose h3 {
    margin-top: var(--space-md);
}

.prose blockquote {
    margin: var(--space-md) 0;
    padding: 0 var(--space-md);
    border-left: 2px solid var(--color-accent);
    font-style: italic;
}

.prose blockquote p:last-child {
    margin-bottom: 0;
}

.prose ul, .prose ol {
    margin: 0 0 var(--space-md);
    padding-left: var(--space-md);
}

.prose li {
    margin-bottom: var(--space-xs);
}

.prose code {
    font-size: 0.9em;
    background: var(--color-bg-alt);
    padding: 0.15em 0.35em;
    border: 1px solid var(--color-border);
}

.prose pre {
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    padding: var(--space-sm);
    overflow-x: auto;
    margin: var(--space-md) 0;
}

.prose pre code {
    background: none;
    border: none;
    padding: 0;
}

.prose hr {
    border: none;
    text-align: center;
    margin: var(--space-lg) 0;
}

.prose hr::before {
    content: "* * *";
    color: var(--color-text-muted);
    letter-spacing: 0.5em;
}

.prose strong {
    font-weight: 600;
}

.prose em {
    font-style: italic;
}

/* Sidenotes — marginal notes beside text */
.sidenote-toggle {
    display: none;
}

.sidenote-number {
    font-size: 0.65em;
    vertical-align: super;
    line-height: 0;
    cursor: default;
    color: var(--color-accent-dim);
    font-family: var(--font-sans);
    font-weight: 600;
}

.sidenote-wrap {
    display: inline;
}

.sidenote {
    position: absolute;
    left: calc(var(--content-width) + 1.5rem);
    width: 200px;
    font-size: 0.7rem;
    line-height: 1.5;
    color: var(--color-text-muted);
    font-style: normal;
    text-align: left;
    hyphens: none;
    text-indent: 0;
}

.sidenote::before {
    content: "· ";
    color: var(--color-accent-dim);
    font-weight: 600;
}

.sidenote a {
    color: var(--color-text-muted);
    text-decoration-color: var(--color-border);
}

.sidenote a:hover {
    color: var(--color-text);
}

.sidenote p {
    margin: 0 0 0.4em;
    text-align: left;
    hyphens: none;
}

.sidenote p:last-child {
    margin-bottom: 0;
}

/* Inline toggle mode for narrow screens */
@media (max-width: 1100px) {
    .sidenote-number {
        cursor: pointer;
        border-bottom: 1px dotted var(--color-accent-dim);
        padding: 0 0.1em;
    }

    .sidenote-number:hover {
        color: var(--color-accent);
    }

    .sidenote {
        position: relative;
        left: auto;
        right: auto;
        top: auto;
        width: auto;
        display: none;
        font-size: 0.85rem;
        background: var(--color-bg-alt);
        border-left: 2px solid var(--color-accent);
        padding: 0.5rem 0.75rem;
        margin: 0.5rem 0;
        max-width: 100%;
    }

    .sidenote-toggle:checked + .sidenote-number + .sidenote {
        display: block;
    }
}

/* Page Header */
.page-header {
    margin-bottom: var(--space-lg);
    text-align: center;
}

.page-header h1 {
    font-weight: 400;
}

/* Utilities */
.back-link {
    margin-top: var(--space-lg);
    padding-top: var(--space-md);
}

.back-link::before {
    content: "~";
    display: block;
    text-align: center;
    color: var(--color-text-muted);
    font-size: 1.2rem;
    margin-bottom: var(--space-md);
}

.back-link a {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 2px;
}

.back-link a:hover {
    color: var(--color-text);
    border-color: var(--color-text);
}

.empty-state {
    color: var(--color-text-muted);
    text-align: center;
    padding: var(--space-xl) 0;
}

/* Small caps for certain elements */
.section-title,
.book-status,
.buy-link {
    font-feature-settings: "smcp";
}

/* Series Navigation */
.series-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--color-border);
}

.series-info {
    text-align: center;
}

.series-label {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
}

.series-position {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.series-prev,
.series-next {
    width: 2.5rem;
    text-align: center;
}

.series-prev a,
.series-next a {
    color: var(--color-text-muted);
    border-bottom: none;
    font-size: 1.25rem;
    font-weight: 500;
    display: inline-block;
    padding: 0.25rem;
}

.series-prev a:hover,
.series-next a:hover {
    color: var(--color-text);
}

.series-nav-disabled {
    color: var(--color-border);
    font-size: 1.25rem;
    padding: 0.25rem;
}

/* Series Footer */
.series-footer {
    margin-top: var(--space-lg);
    padding-top: var(--space-md);
}

.series-footer::before {
    content: "~";
    display: block;
    text-align: center;
    color: var(--color-text-muted);
    font-size: 1.2rem;
    margin-bottom: var(--space-md);
}

.series-footer-label {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    margin-bottom: var(--space-sm);
}

.series-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.series-item {
    padding: var(--space-xs) 0;
    font-size: 0.9rem;
}

.series-item::before {
    content: "·";
    margin-right: 0.5em;
    color: var(--color-text-muted);
}

.series-item a {
    border-bottom: none;
}

.series-item a:hover {
    color: var(--color-text-muted);
}

.series-item-current {
    color: var(--color-text-muted);
}

.series-item-current span {
    font-style: italic;
}

/* Newsletter Embed */
.newsletter-embed {
    max-width: 480px;
    margin: var(--space-md) 0;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
}

.newsletter-embed iframe {
    display: block;
}


/* Decorative elements */
.decoration-stars {
    text-align: center;
    color: var(--color-accent);
    font-size: 0.9rem;
    letter-spacing: 0.3em;
    margin: var(--space-lg) 0;
}

.decoration-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: var(--space-md) 0;
}

.decoration-dots span {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--color-accent);
}

/* Gold highlight for special text */
.highlight-gold {
    background: linear-gradient(transparent 60%, rgba(241, 222, 113, 0.3) 60%);
}

/* Book grid improvements for homepage */
.book-grid-home {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

@media (max-width: 700px) {
    .book-grid-home {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }
}

/* Links with gold underline on hover */
a.link-gold:hover {
    border-color: var(--color-accent);
}

/* Theme Toggle — inline at end of nav */
.theme-toggle {
    background: none;
    border: none;
    padding: 0.25rem 0.4rem;
    cursor: pointer;
    color: var(--color-text-muted);
    font-size: 1.15rem;
    line-height: 1;
    transition: color 0.15s ease;
    flex-shrink: 0;
    vertical-align: middle;
}

.theme-toggle:hover {
    color: var(--color-text);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
    display: none;
}

/* Show sun icon in dark mode (to switch to light) */
[data-theme="dark"] .theme-toggle .icon-sun {
    display: inline;
}

[data-theme="dark"] .theme-toggle .icon-moon {
    display: none;
}

/* Show moon icon in light mode (to switch to dark) */
[data-theme="light"] .theme-toggle .icon-moon {
    display: inline;
}

[data-theme="light"] .theme-toggle .icon-sun {
    display: none;
}

/* System preference defaults when no data-theme set */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) .theme-toggle .icon-sun {
        display: inline;
    }
    :root:not([data-theme]) .theme-toggle .icon-moon {
        display: none;
    }
}

@media (prefers-color-scheme: light) {
    :root:not([data-theme]) .theme-toggle .icon-moon {
        display: inline;
    }
    :root:not([data-theme]) .theme-toggle .icon-sun {
        display: none;
    }
}

/* Fallback for no preference */
:root:not([data-theme]) .theme-toggle .icon-moon {
    display: inline;
}

:root:not([data-theme]) .theme-toggle .icon-sun {
    display: none;
}


/* ============================================
   HOMEPAGE — Editorial Two-Panel Split
   ============================================ */

.home-split {
    display: flex;
    min-height: 100vh;
}

/* ---- LEFT panel: banner image + title ---- */
.home-banner {
    width: 50%;
    background: url('/static/banner.jpg') center center / cover no-repeat;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 2rem 2.5rem;
    position: relative;
}

.home-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(15, 7, 26, 0.5) 0%,
        rgba(15, 7, 26, 0.15) 50%,
        transparent 75%
    );
    pointer-events: none;
}

.home-title {
    position: relative;
    z-index: 1;
    margin: 0;
    line-height: 0;
    width: 100%;
    text-align: center;
}

.home-title-svg {
    display: block;
    width: clamp(280px, 85%, 620px);
    height: auto;
    margin: 0 auto;
    filter: drop-shadow(0 2px 16px rgba(15, 7, 26, 0.5));
}


/* ---- RIGHT panel: info (two-column interior) ---- */
.home-info {
    width: 50%;
    background: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2.5rem;
    overflow-y: auto;
}

.home-info-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    width: 100%;
    max-width: 680px;
}

/* Column A — about + nav */
.home-col-about {
    display: flex;
    flex-direction: column;
}

.home-about p {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    margin: 0 0 0.8rem;
}

.home-about p strong {
    font-weight: 600;
}

.home-brand-name {
    color: var(--color-gold);
}

.home-manifesto {
    font-size: 1rem !important;
    color: var(--color-text-muted) !important;
    line-height: 1.6 !important;
}

/* Nav — two-column grid */
.home-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
}

.home-nav a {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    border-bottom: none;
    padding: 0.35rem 0;
    transition: color 0.15s ease;
}

.home-nav a:hover {
    color: var(--color-text);
}

.home-nav-subscribe {
    color: var(--color-gold) !important;
}

.home-nav-subscribe:hover {
    color: var(--color-accent-dim) !important;
}

/* Column B — books + posts */
.home-col-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.home-section-label {
    font-family: var(--font-sans);
    font-size: 0.6rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    margin: 0 0 0.5rem;
}

/* Book list — text only, no covers */
.home-book-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.home-book-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--color-border);
}

.home-book-list li:last-child {
    border-bottom: none;
}

.home-book-list a {
    display: block;
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.3;
    color: var(--color-text);
    border-bottom: none;
}

.home-book-list a:hover {
    color: var(--color-accent-dim);
}

.home-book-author {
    display: block;
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-top: 0.1rem;
}

.home-book-status {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-accent-dim);
    margin-top: 0.2rem;
}

/* Post list */
.home-post-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.home-post-list li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.3rem 0;
}

.home-post-list a {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--color-text);
    border-bottom: none;
    line-height: 1.4;
}

.home-post-list a:hover {
    color: var(--color-text-muted);
}

.home-post-list time {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    color: var(--color-text-muted);
    white-space: nowrap;
    flex-shrink: 0;
}

.home-more-link {
    margin-top: 0.5rem;
}

.home-more-link a {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    border-bottom: none;
}

.home-more-link a:hover {
    color: var(--color-text);
}


/* ---- Homepage: locked to light theme, no dark mode ---- */
.home-split {
    --color-bg: #0f071a;
    --color-bg-alt: #1a0f2e;
    --color-text: #FAF8F3;
    --color-text-muted: #c5bfcc;
    --color-border: #2d1f4a;
    --color-link: #FAF8F3;
    --color-link-hover: #F1DE71;
    --color-accent: #F1DE71;
    --color-accent-dim: #D2B45B;
    --color-gold: #F1DE71;
}

/* ---- Homepage responsive ---- */
@media (max-width: 960px) {
    .home-info {
        padding: 2rem 1.5rem;
    }

    .home-info-inner {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .home-split {
        flex-direction: column;
        min-height: auto;
    }

    /* Banner on top on mobile */
    .home-banner {
        width: 100%;
        min-height: 45vh;
        padding: 1.5rem;
        align-items: flex-start;
    }

    .home-title-svg {
        width: clamp(200px, 80%, 400px);
    }

    /* Info below */
    .home-info {
        width: 100%;
        padding: 2rem 1.5rem;
        align-items: flex-start;
    }

    .home-info-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: none;
    }

    /* On mobile, nav stays 2-col */
    .home-nav {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .home-banner {
        min-height: 40vh;
        padding: 1rem 1.25rem;
    }

    .home-info {
        padding: 1.5rem 1.25rem;
    }
}


/* ============================================
   BOOK DETAIL — Split-Screen Layout
   Left half: [cover | metadata]  +  back link
   Right half: body text
   ============================================ */

.book-split {
    --book-bg: var(--color-bg);
    --book-text: var(--color-text);

    /* Override global vars so all nested elements (prose, links, etc.) inherit */
    --color-bg: var(--book-bg);
    --color-text: var(--book-text);
    --color-text-muted: var(--book-text);
    --color-link: var(--book-text);
    --color-link-hover: var(--book-text);
    --color-border: var(--book-text);

    display: flex;
    min-height: 100vh;
    background: var(--book-bg);
    color: var(--book-text);
}

/* ---- LEFT HALF: sticky, full viewport height ---- */
.book-split-left {
    width: 50%;
    position: sticky;
    top: 0;
    height: 100vh;
    background: var(--book-bg);
    color: var(--book-text);
    display: flex;
    overflow: hidden;
}

/* Two-column interior: cover | metadata */
.book-split-left-cols {
    display: flex;
    gap: 0;
    align-items: flex-start;
    width: 100%;
    height: 100%;
}

/* Cover column — dominant, ~70% of left half, full bleed */
.book-split-cover-col {
    flex: 7 1 0;
    min-width: 0;
    align-self: stretch;
    position: relative;
}

.book-split-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Metadata column — ~30% of left half */
.book-split-meta {
    flex: 3 1 0;
    min-width: 0;
    padding: 2.85rem 1.5rem 1.5rem 1rem;
    overflow-y: auto;
}

.book-split-title {
    font-size: 1.35rem;
    font-weight: 400;
    margin: 0 0 0.2rem;
    color: var(--book-text);
    line-height: 1.25;
}

.book-split-author {
    font-size: 0.95rem;
    color: var(--book-text);
    opacity: 0.7;
    margin: 0 0 0.15rem;
}

.book-split-detail {
    font-size: 0.8rem;
    color: var(--book-text);
    opacity: 0.55;
    margin: 0 0 0.15rem;
}

.book-split-year {
    font-size: 0.8rem;
    color: var(--book-text);
    opacity: 0.45;
    margin: 0;
}

.book-split-status {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent);
    margin: 0.4rem 0 0;
}

/* Goodreads link */
.goodreads-link {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--book-text);
    opacity: 0.5;
    border-bottom: 1px solid var(--book-text);
    margin-top: 0.6rem;
    transition: opacity 0.15s ease;
}

.goodreads-link:hover {
    opacity: 1;
}

/* Buy links — inherit book colors */
.book-split-buy {
    margin-top: 1rem;
}

.book-split-buy .buy-link--primary {
    background: var(--book-text);
    color: var(--book-bg);
    border-color: var(--book-text);
}

.book-split-buy .buy-link--primary:hover {
    background: transparent;
    color: var(--book-text);
    border-color: var(--book-text);
}

.book-split-buy .buy-links-label {
    color: var(--book-text);
    opacity: 0.45;
}

.book-split-buy .buy-links-secondary {
    border-top-color: var(--book-text);
    opacity: 0.7;
}

.book-split-buy .buy-link--secondary {
    border-color: var(--book-text);
    color: var(--book-text);
    opacity: 0.6;
}

.book-split-buy .buy-link--secondary:hover {
    opacity: 1;
}

/* Back links — top-right corner of right panel, above body */
.book-split-back {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.15rem;
}

.book-split-back-link {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    letter-spacing: 0.03em;
    color: var(--book-text);
    opacity: 0.5;
    border-bottom: none;
    transition: opacity 0.15s ease;
}

.book-split-back-link:hover {
    opacity: 1;
}

.book-split-back-dot {
    color: var(--book-text);
    opacity: 0.3;
    font-size: 0.7rem;
    margin: 0 0.15rem;
}

/* ---- RIGHT HALF: body content, scrollable ---- */
.book-split-right {
    position: relative;
    width: 50%;
    background: var(--book-bg);
    color: var(--book-text);
    padding: 2.85rem 3rem 3rem 2.5rem;
}

.book-split-content {
    max-width: 640px;
    width: 100%;
    color: var(--book-text);
}

.book-split-content p {
    text-align: justify;
    hyphens: auto;
}

.book-split-content p:first-child {
    margin-top: 0;
}

.book-split-content a {
    color: var(--book-text);
    border-bottom-color: var(--book-text);
    opacity: 0.8;
}

.book-split-content a:hover {
    opacity: 1;
}

/* ---- Book split responsive ---- */
@media (max-width: 960px) {
    .book-split-meta {
        padding: 2rem 1rem 1rem 0.75rem;
    }

    .book-split-right {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 768px) {
    .book-split {
        flex-direction: column;
        min-height: auto;
    }

    .book-split-left {
        width: 100%;
        position: relative;
        height: auto;
    }

    .book-split-left-cols {
        flex-direction: column;
    }

    .book-split-cover-col {
        max-height: 55vh;
        width: 100%;
    }

    .book-split-cover {
        max-height: 55vh;
    }

    .book-split-meta {
        flex: none;
        width: 100%;
        padding: 1.5rem;
        text-align: center;
    }

    .book-split-right {
        width: 100%;
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .book-split-cover-col {
        max-height: 45vh;
    }

    .book-split-cover {
        max-height: 45vh;
    }

    .book-split-meta {
        padding: 1.25rem;
    }

    .book-split-right {
        padding: 1.5rem 1.25rem;
    }
}


/* ============================================
   BLOG POST — Split-Screen Layout
   Left half: title, date, series nav (sticky)
   Right half: prose content (scrollable)
   ============================================ */

.post-split {
    display: flex;
    min-height: 100vh;
    background: var(--color-bg);
    color: var(--color-text);
}

/* ---- LEFT PANEL: sticky sidebar ---- */
.post-split-left {
    width: 30%;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    background: var(--color-bg);
    border-right: 1px solid var(--color-border);
    /* Fade into shadow after first scroll — reduce reading distraction */
    transition: opacity 0.3s ease;
}

.post-split.has-scrolled .post-split-left {
    opacity: 0.4;
}

.post-split.has-scrolled .post-split-left:hover,
.post-split.has-scrolled .post-split-left:focus-within {
    opacity: 1;
}

.post-split-sidebar {
    padding: 2.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

/* Back navigation */
.post-split-back {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    margin-bottom: 2rem;
}

.post-split-back-link {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
    border-bottom: none;
    transition: color 0.15s ease;
}

.post-split-back-link:hover {
    color: var(--color-text);
}

.post-split-back-dot {
    color: var(--color-text-muted);
    opacity: 0.5;
    font-size: 0.7rem;
    margin: 0 0.15rem;
}

/* Theme toggle pushed to the right end of nav row */
.post-split-theme-toggle {
    margin-left: auto;
}

/* Post header in sidebar */
.post-split-header {
    margin-bottom: 1.5rem;
}

.post-split-title {
    font-size: 1.8rem;
    font-weight: 400;
    line-height: 1.25;
    margin: 0 0 0.4rem;
}

.post-split-date {
    display: block;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}

.post-split-description {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.5;
    margin: 0.5rem 0 0;
    font-style: italic;
}

/* Series navigation in sidebar */
.post-split-series {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
}

.post-split-series-label {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}

.post-split-series-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.post-split-series-position {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.post-split-series-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.post-split-series-item {
    padding: 0.2rem 0;
    font-size: 0.85rem;
}

.post-split-series-item::before {
    content: "·";
    margin-right: 0.5em;
    color: var(--color-text-muted);
}

.post-split-series-item a {
    border-bottom: none;
}

.post-split-series-item a:hover {
    color: var(--color-text-muted);
}

.post-split-series-current {
    color: var(--color-text-muted);
    font-style: italic;
}

/* Decorative element */
.post-split-decoration {
    margin-top: auto;
    padding-top: 2rem;
    text-align: center;
    color: var(--color-text-muted);
    font-size: 1.2rem;
}

/* ---- RIGHT PANEL: prose content, scrollable ---- */
.post-split-right {
    width: 70%;
    padding: 2.5rem 3rem 3rem 2.5rem;
    background: var(--color-bg);
}

.post-split-content {
    max-width: 640px;
    width: 100%;
    position: relative;
}

.post-split-content p:first-child {
    margin-top: 0;
}

/* ---- Post split responsive ---- */
@media (max-width: 960px) {
    .post-split-left {
        width: 28%;
    }

    .post-split-right {
        width: 72%;
        padding: 2rem 1.5rem;
    }

    .post-split-sidebar {
        padding: 2rem 1rem;
    }

    .post-split-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .post-split {
        flex-direction: column;
        min-height: auto;
    }

    .post-split-left {
        width: 100%;
        position: relative;
        height: auto;
        overflow-y: visible;
        border-right: none;
        border-bottom: 1px solid var(--color-border);
        opacity: 1;
    }

    .post-split-sidebar {
        padding: 1.5rem;
    }

    .post-split-series {
        margin-top: 1rem;
    }

    .post-split-decoration {
        display: none;
    }

    .post-split-right {
        width: 100%;
        padding: 1.5rem;
    }

    .post-split-content {
        max-width: none;
    }
}

@media (max-width: 480px) {
    .post-split-sidebar {
        padding: 1.25rem;
    }

    .post-split-right {
        padding: 1.25rem;
    }

    .post-split-title {
        font-size: 1.4rem;
    }
}


/* ============================================
   BLOG CATALOGUE — Split-Screen Layout
   Left half: navigation sidebar (sticky)
   Right half: chronological post index (scrollable)
   ============================================ */

.blog-split {
    display: flex;
    min-height: 100vh;
    background: var(--color-bg);
    color: var(--color-text);
}

/* ---- LEFT PANEL: sticky sidebar ---- */
.blog-split-left {
    width: 38%;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    background: var(--color-bg);
    border-right: 1px solid var(--color-border);
}

.blog-split-sidebar {
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

/* Blog header in sidebar */
.blog-split-header {
    margin-bottom: 1.5rem;
}

.blog-split-title {
    font-size: 1.8rem;
    font-weight: 400;
    line-height: 1.25;
    margin: 0 0 0.2rem;
}

.blog-split-subtitle {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    font-style: italic;
    margin: 0;
}

/* Navigation sections */
.blog-nav-section {
    margin-bottom: 1.5rem;
}

.blog-nav-label {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    margin-bottom: 0.4rem;
}

.blog-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.blog-nav-item {
    padding: 0.15rem 0;
    font-size: 0.85rem;
    display: flex;
    align-items: baseline;
    gap: 0.3em;
}

.blog-nav-item::before {
    content: "·";
    color: var(--color-text-muted);
    flex-shrink: 0;
}

.blog-nav-item a {
    border-bottom: none;
}

.blog-nav-item a:hover {
    color: var(--color-text-muted);
}

.blog-nav-count {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    color: var(--color-text-muted);
    opacity: 0.6;
    margin-left: auto;
}

.blog-nav-active {
    font-style: italic;
}

.blog-nav-active a {
    color: var(--color-text-muted);
}

/* ---- RIGHT PANEL: post index, scrollable ---- */
.blog-split-right {
    width: 62%;
    padding: 2.5rem 3rem 3rem 2.5rem;
    background: var(--color-bg);
}

.blog-split-content {
    max-width: 640px;
    width: 100%;
}

/* Filter back link */
.blog-filter-note {
    font-size: 0.85rem;
    margin: 0 0 1.5rem;
}

.blog-filter-note a {
    color: var(--color-text-muted);
    border-bottom: none;
}

.blog-filter-note a:hover {
    color: var(--color-text);
}

/* ---- Blog split responsive ---- */
@media (max-width: 960px) {
    .blog-split-left {
        width: 35%;
    }

    .blog-split-right {
        width: 65%;
        padding: 2rem 1.5rem;
    }

    .blog-split-sidebar {
        padding: 2rem 1.25rem;
    }

    .blog-split-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .blog-split {
        flex-direction: column;
        min-height: auto;
    }

    .blog-split-left {
        width: 100%;
        position: relative;
        height: auto;
        overflow-y: visible;
        border-right: none;
        border-bottom: 1px solid var(--color-border);
    }

    .blog-split-sidebar {
        padding: 1.5rem;
    }

    .blog-split-right {
        width: 100%;
        padding: 1.5rem;
    }

    .blog-split-content {
        max-width: none;
    }

    .post-split-decoration {
        display: none;
    }
}

@media (max-width: 480px) {
    .blog-split-sidebar {
        padding: 1.25rem;
    }

    .blog-split-right {
        padding: 1.25rem;
    }

    .blog-split-title {
        font-size: 1.4rem;
    }
}


/* ============================================
   BOOKS CATALOGUE — Split-Screen Layout
   Left half: narrow sidebar with filters (sticky)
   Right half: Letterboxd-style cover grid (scrollable)
   ============================================ */

.books-split {
    display: flex;
    min-height: 100vh;
    background: var(--color-bg);
    color: var(--color-text);
}

/* ---- LEFT PANEL: narrow sticky sidebar ---- */
.books-split-left {
    width: 30%;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    background: var(--color-bg);
    border-right: 1px solid var(--color-border);
}

.books-split-sidebar {
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

/* Books header in sidebar */
.books-split-header {
    margin-bottom: 1.5rem;
}

.books-split-title {
    font-size: 1.8rem;
    font-weight: 400;
    line-height: 1.25;
    margin: 0 0 0.2rem;
}

.books-split-subtitle {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    font-style: italic;
    margin: 0;
}

/* ---- RIGHT PANEL: cover grid, scrollable ---- */
.books-split-right {
    width: 70%;
    padding: 2.5rem 3rem 3rem 2.5rem;
    background: var(--color-bg);
}

.books-split-content {
    width: 100%;
}

/* Filter back link */
.books-filter-note {
    font-size: 0.85rem;
    margin: 0 0 1.5rem;
}

.books-filter-note a {
    color: var(--color-text-muted);
    border-bottom: none;
}

.books-filter-note a:hover {
    color: var(--color-text);
}

/* Letterboxd-style cover grid */
.books-cover-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: var(--space-lg);
}

.books-cover-item {
    display: block;
    text-decoration: none;
    border-bottom: none;
    transition: transform 0.15s ease;
}

.books-cover-item:hover {
    transform: scale(1.03);
}

.books-cover-item img {
    width: 100%;
    height: auto;
    display: block;
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.06),
        0 4px 12px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.15s ease;
}

.books-cover-item:hover img {
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.08),
        0 8px 24px rgba(0, 0, 0, 0.12);
}

/* ---- Books split responsive ---- */
@media (max-width: 960px) {
    .books-split-left {
        width: 32%;
    }

    .books-split-right {
        width: 68%;
        padding: 2rem 1.5rem;
    }

    .books-split-sidebar {
        padding: 2rem 1.25rem;
    }

    .books-split-title {
        font-size: 1.5rem;
    }

    .books-cover-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    }
}

@media (max-width: 768px) {
    .books-split {
        flex-direction: column;
        min-height: auto;
    }

    .books-split-left {
        width: 100%;
        position: relative;
        height: auto;
        overflow-y: visible;
        border-right: none;
        border-bottom: 1px solid var(--color-border);
    }

    .books-split-sidebar {
        padding: 1.5rem;
    }

    .books-split-right {
        width: 100%;
        padding: 1.5rem;
    }

    .books-cover-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: var(--space-md);
    }
}

@media (max-width: 480px) {
    .books-split-sidebar {
        padding: 1.25rem;
    }

    .books-split-right {
        padding: 1.25rem;
    }

    .books-split-title {
        font-size: 1.4rem;
    }

    .books-cover-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
}


/* ============================================
   STATIC PAGES — Split-Screen Layout
   Left half: banner image + title overlay (fixed)
   Right half: scrollable prose content
   ============================================ */

.page-split {
    display: flex;
    height: 100vh;
    --color-bg: #0f071a;
    --color-bg-alt: #1a0f2e;
    --color-text: #FAF8F3;
    --color-text-muted: #c5bfcc;
    --color-border: #2d1f4a;
    --color-link: #FAF8F3;
    --color-link-hover: #F1DE71;
    --color-accent: #F1DE71;
    --color-accent-dim: #D2B45B;
    --color-gold: #F1DE71;
}

/* ---- LEFT panel: banner image + title at top ---- */
.page-banner {
    width: 50%;
    height: 100vh;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 2rem 2.5rem;
    position: relative;
    flex-shrink: 0;
}

.page-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(15, 7, 26, 0.5) 0%,
        rgba(15, 7, 26, 0.15) 50%,
        transparent 75%
    );
    pointer-events: none;
}

.page-banner-title {
    position: relative;
    z-index: 1;
    font-family: var(--font-body);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 400;
    color: #FAF8F3;
    text-align: center;
    margin: 0;
    width: 100%;
    line-height: 1.2;
    filter: drop-shadow(0 2px 16px rgba(15, 7, 26, 0.5));
}

/* ---- RIGHT panel: scrollable page content ---- */
.page-info {
    width: 50%;
    height: 100vh;
    background: var(--color-bg);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 3rem 2.5rem;
    overflow-y: auto;
}

.page-info-inner {
    width: 100%;
    max-width: 540px;
}

.page-back-nav {
    margin-bottom: 2rem;
}

.page-back-nav a {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    border-bottom: none;
    transition: color 0.15s ease;
}

.page-back-nav a:hover {
    color: var(--color-text);
}

/* Prose overrides inside split page */
.page-split .prose {
    color: var(--color-text);
}

.page-split .prose h2 {
    color: var(--color-gold);
    font-size: 1.1rem;
    font-weight: 500;
    margin-top: 2.5rem;
}

.page-split .prose a {
    color: var(--color-link);
}

.page-split .prose a:hover {
    color: var(--color-link-hover);
}

.page-split .prose strong {
    color: var(--color-gold);
}

.page-split .prose ul,
.page-split .prose ol {
    color: var(--color-text);
}

.page-split .prose blockquote {
    border-left-color: var(--color-gold);
}

/* ---- Static page responsive ---- */
@media (max-width: 960px) {
    .page-info {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 768px) {
    .page-split {
        flex-direction: column;
        height: auto;
    }

    .page-banner {
        width: 100%;
        height: auto;
        min-height: 45vh;
        padding: 1.5rem;
        align-items: flex-start;
    }

    .page-info {
        width: 100%;
        height: auto;
        padding: 2rem 1.5rem;
        align-items: flex-start;
    }

    .page-info-inner {
        max-width: none;
    }
}

@media (max-width: 480px) {
    .page-banner {
        min-height: 40vh;
        padding: 1rem 1.25rem;
    }

    .page-info {
        padding: 1.5rem 1.25rem;
    }
}

