/* ==========================================================================
   nrbrtspvk Ghost Theme — screen.css
   Multi-site publishing network — matches Jekyll design system
   ========================================================================== */

/* ==========================================================================
   1. CSS Custom Properties — from Jekyll _tokens.scss
   ========================================================================== */

:root {
    /* Base Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Font Sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;

    /* Spacing */
    --gap: 1.5rem;
    --container: 1200px;
    --content-width: 720px;
    --header-height: 64px;

    /* Default brand colors (Data Drop = default) */
    --color-brand-primary: #4F46E5;
    --color-brand-primary-dark: #4338CA;
    --color-brand-secondary: #8B5CF6;
    --color-brand-accent: #F59E0B;
    --color-brand-light: #E0E7FF;
    --color-brand-dark: #312E81;
    --color-brand-rgb: 79, 70, 229;
    --color-brand-glow: rgba(79, 70, 229, 0.15);

    /* Light Theme Semantics */
    --color-bg: #FFFFFF;
    --color-bg-secondary: #FAFAFA;
    --color-bg-tertiary: #F5F5F5;
    --color-surface: #FFFFFF;
    --color-border: #E5E5E5;
    --color-text: #121212;
    --color-text-secondary: #525252;
    --color-text-tertiary: #737373;

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);

    /* Z-index */
    --z-ticker: 10;
    --z-header: 100;
    --z-filter: 99;
    --z-progress: 101;
    --z-dropdown: 200;
    --z-modal: 300;

    /* Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-2xl: 1rem;
    --radius-full: 9999px;
}

/* Dark mode */
[data-theme="dark"] {
    --color-bg: #0A0A0A;
    --color-bg-secondary: #121212;
    --color-bg-tertiary: #1A1A1A;
    --color-surface: #1A1A1A;
    --color-border: #2A2A2A;
    --color-text: #F5F5F5;
    --color-text-secondary: #A3A3A3;
    --color-text-tertiary: #737373;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.6);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.7), 0 2px 6px rgba(0,0,0,0.4);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.8), 0 4px 15px rgba(0,0,0,0.5);
    --shadow-xl: 0 20px 50px rgba(0,0,0,0.9), 0 10px 20px rgba(0,0,0,0.6);
}

/* ==========================================================================
   2. Brand Color Tokens
   ========================================================================== */

[data-subdomain="data-drop"],
.ticker__badge--data-drop { --color-brand-primary: #4F46E5; --color-brand-secondary: #8B5CF6; --color-brand-light: #E0E7FF; --color-brand-dark: #312E81; --color-brand-rgb: 79, 70, 229; --color-brand-glow: rgba(79, 70, 229, 0.15); }
[data-subdomain="gear-galore"],
.ticker__badge--gear-galore { --color-brand-primary: #10B981; --color-brand-secondary: #FBBF24; --color-brand-light: #ECFDF5; --color-brand-dark: #065F46; --color-brand-rgb: 16, 185, 129; --color-brand-glow: rgba(16, 185, 129, 0.15); }
[data-subdomain="rendered-perspective"],
.ticker__badge--rendered-perspective { --color-brand-primary: #DC143C; --color-brand-secondary: #1A0000; --color-brand-light: #FEE2E2; --color-brand-dark: #7F1D1D; --color-brand-rgb: 220, 20, 60; --color-brand-glow: rgba(220, 20, 60, 0.15); }
[data-subdomain="creative-collapse"],
.ticker__badge--creative-collapse { --color-brand-primary: #FF5722; --color-brand-secondary: #E91E63; --color-brand-light: #FFF3E0; --color-brand-dark: #4E342E; --color-brand-rgb: 255, 87, 34; --color-brand-glow: rgba(255, 87, 34, 0.18); }
[data-subdomain="terminal-drift"],
.ticker__badge--terminal-drift { --color-brand-primary: #FFB84D; --color-brand-secondary: #FF8C42; --color-brand-light: #FFF5E6; --color-brand-dark: #996600; --color-brand-rgb: 255, 184, 77; --color-brand-glow: rgba(255, 184, 77, 0.15); }
[data-subdomain="community"],
.ticker__badge--community { --color-brand-primary: #64748B; --color-brand-secondary: #94A3B8; --color-brand-light: #F1F5F9; --color-brand-dark: #334155; --color-brand-rgb: 100, 116, 139; --color-brand-glow: rgba(100, 116, 139, 0.15); }

/* Dark mode brand adjustments */
[data-theme="dark"] [data-subdomain="data-drop"] { --color-brand-primary: hsl(243, 75%, 70%); }
[data-theme="dark"] [data-subdomain="gear-galore"] { --color-brand-primary: hsl(159, 70%, 55%); }
[data-theme="dark"] [data-subdomain="rendered-perspective"] { --color-brand-primary: hsl(348, 83%, 60%); }
[data-theme="dark"] [data-subdomain="creative-collapse"] { --color-brand-primary: hsl(14, 100%, 70%); }
[data-theme="dark"] [data-subdomain="terminal-drift"] { --color-brand-primary: hsl(38, 100%, 70%); }
[data-theme="dark"] [data-subdomain="community"] { --color-brand-primary: hsl(215, 20%, 65%); }

/* ==========================================================================
   3. Reset & Base
   ========================================================================== */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
}

a { color: var(--color-brand-primary); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--color-brand-primary-dark, var(--color-brand-primary)); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, h5, h6 { line-height: 1.2; font-weight: 700; }

/* ==========================================================================
   4. Site Layout
   ========================================================================== */

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

.site-main { flex: 1; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gap);
}

.site-content {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gap);
}

/* ==========================================================================
   5. Header — matches Jekyll header.html
   ========================================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: var(--z-header);
    border-bottom: 1px solid var(--color-border);
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.92);
}

[data-theme="dark"] .site-header {
    background: rgba(10, 10, 10, 0.92);
}

.nav-container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gap);
}

.nav-wrapper {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-text);
    font-family: var(--font-sans);
    letter-spacing: -0.02em;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Icon buttons in header */
.btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text-secondary);
    padding: 0.5rem;
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}
.btn-icon:hover {
    background: var(--color-bg-secondary);
    color: var(--color-text);
}

/* Theme toggle icons */
[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }
.icon-sun { display: none; }
.icon-moon { display: block; }

/* Subdomains dropdown */
.nav-subdomains { position: relative; }

.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 220px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    z-index: var(--z-dropdown);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-lg);
    color: var(--color-text);
    font-size: var(--text-sm);
    font-weight: 500;
    transition: background var(--transition-fast);
}
.dropdown-item:hover {
    background: var(--color-bg-secondary);
    color: var(--color-text);
}

.dropdown-icon {
    width: 20px;
    height: 20px;
    border-radius: var(--radius-sm);
}

/* Reading Progress Bar */
.reading-progress {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 0;
    height: 3px;
    background: var(--color-brand-primary);
    z-index: var(--z-progress);
    transition: width 100ms linear;
}

/* ==========================================================================
   6. Ticker — matches Jekyll ticker.html
   ========================================================================== */

.ticker {
    background: var(--color-bg-secondary);
    border-bottom: 1px solid var(--color-border);
    overflow: hidden;
    position: relative;
    z-index: var(--z-ticker);
    display: flex;
    align-items: stretch;
}

.ticker__controls {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.ticker__nav {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text-tertiary);
    padding: 0.5rem;
    display: flex;
    align-items: center;
    transition: color var(--transition-fast);
}
.ticker__nav:hover { color: var(--color-text); }

.ticker__track {
    flex: 1;
    overflow: hidden;
}

.ticker__strip {
    display: flex;
    animation: ticker-scroll 60s linear infinite;
    white-space: nowrap;
    width: max-content;
}
.ticker:hover .ticker__strip { animation-play-state: paused; }

@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.ticker__item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: var(--text-sm);
    color: var(--color-text);
    transition: background var(--transition-fast);
}
.ticker__item:hover {
    background: var(--color-brand-glow);
    color: var(--color-text);
}

.ticker__badge {
    font-weight: 600;
    font-size: 0.6875rem;
    text-transform: lowercase;
    letter-spacing: 0.3px;
    padding: 0.125rem 0.5rem;
    border-radius: var(--radius-full);
    background: var(--color-brand-primary);
    color: #fff;
    white-space: nowrap;
}

/* Per-brand badge colors */
.ticker__badge--data-drop { background: #4F46E5; }
.ticker__badge--gear-galore { background: #10B981; }
.ticker__badge--rendered-perspective { background: #DC143C; }
.ticker__badge--creative-collapse { background: #FF5722; }
.ticker__badge--terminal-drift { background: #FFB84D; color: #1a1a1a; }
.ticker__badge--community { background: #64748B; }

.ticker__title { font-weight: 500; }

.ticker__separator {
    color: var(--color-text-tertiary);
    margin: 0 0.125rem;
}

.ticker__date {
    font-size: 0.75rem;
    color: var(--color-text-tertiary);
}

/* ==========================================================================
   7. Filter Bar — matches Jekyll filter bar
   ========================================================================== */

.filter-bar {
    padding: 1rem var(--gap);
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-bg);
}

.filter-bar--segmented {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.filter-section {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-section__label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--color-text-tertiary);
    letter-spacing: 0.5px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-sans);
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-md);
    transition: background var(--transition-fast);
}
.filter-section__label:hover { background: var(--color-bg-secondary); }

.filter-section__toggle {
    font-size: 0.625rem;
    transition: transform var(--transition-fast);
}

.filter-section__chips {
    display: flex;
    gap: 0.375rem;
    flex-wrap: wrap;
}

.filter-chip {
    font-size: var(--text-sm);
    font-weight: 500;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: var(--font-sans);
    display: flex;
    align-items: center;
    gap: 0.375rem;
}
.filter-chip:hover {
    border-color: var(--color-brand-primary);
    color: var(--color-brand-primary);
}
.filter-chip.active {
    background: var(--color-brand-primary);
    border-color: var(--color-brand-primary);
    color: #fff;
}

.filter-chip__icon {
    width: 16px;
    height: 16px;
    border-radius: 2px;
}

.filter-chip--dimmed {
    opacity: 0.35;
    pointer-events: auto;
}

.filter-section__chips--wrap {
    flex-wrap: wrap;
    max-height: 6rem;
    overflow-y: auto;
}

/* ==========================================================================
   8. Masonry Content Grid — matches Jekyll masonry layout
   ========================================================================== */

.masonry-section {
    padding: 2rem 0;
}

.masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

/* ==========================================================================
   9. Feed Card — matches Jekyll feed-card component
   ========================================================================== */

.feed-card {
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    overflow: hidden;
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
}
.feed-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--color-brand-primary);
}

.feed-card__image {
    aspect-ratio: 16/9;
    overflow: hidden;
    position: relative;
}
.feed-card__image a { display: block; height: 100%; }
.feed-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-base);
}
.feed-card:hover .feed-card__image img { transform: scale(1.03); }

.feed-card__image--placeholder {
    background: var(--color-bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}
.feed-card__image--placeholder .type-icon {
    font-size: 2.5rem;
}

.feed-card__content {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.feed-card__badges {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.feed-card__type-badge {
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.125rem 0.5rem;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.feed-card__type-badge--video { background: #DBEAFE; color: #1D4ED8; }
.feed-card__type-badge--short { background: #FEF3C7; color: #92400E; }
.feed-card__type-badge--article { background: #E0E7FF; color: #4338CA; }
.feed-card__type-badge--newsletter { background: #FCE7F3; color: #9D174D; }

[data-theme="dark"] .feed-card__type-badge--video { background: rgba(59,130,246,0.2); color: #93C5FD; }
[data-theme="dark"] .feed-card__type-badge--short { background: rgba(245,158,11,0.2); color: #FCD34D; }
[data-theme="dark"] .feed-card__type-badge--article { background: rgba(99,102,241,0.2); color: #A5B4FC; }
[data-theme="dark"] .feed-card__type-badge--newsletter { background: rgba(236,72,153,0.2); color: #F9A8D4; }

.feed-card__series {
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.125rem 0.5rem;
    border-radius: var(--radius-full);
    color: #fff;
}

.feed-card__title {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}
.feed-card__title a {
    color: var(--color-text);
    transition: color var(--transition-fast);
}
.feed-card__title a:hover { color: var(--color-brand-primary); }

.feed-card__excerpt {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: 1.5;
    flex: 1;
}

.feed-card__meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--color-text-tertiary);
    margin-top: 0.75rem;
}

.feed-card__subdomain {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 500;
    color: var(--color-brand-primary);
}

.feed-card__subdomain-icon {
    width: 14px;
    height: 14px;
    border-radius: 2px;
}

.feed-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-top: 0.75rem;
}

.tag-badge {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.125rem 0.5rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--color-border);
    color: var(--color-text-tertiary);
    transition: all var(--transition-fast);
}
.tag-badge:hover {
    border-color: var(--color-brand-primary);
    color: var(--color-brand-primary);
    background: var(--color-brand-glow);
}

/* ==========================================================================
   10. Network Quick Grid — matches Jekyll "Explore the Network"
   ========================================================================== */

.network-section {
    padding: 4rem 0;
    margin-top: 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-title {
    font-size: var(--text-3xl);
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
}

.network-quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.network-quick-card {
    padding: 1.5rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    text-align: center;
    transition: all var(--transition-base);
    color: var(--color-text);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}
.network-quick-card:hover {
    border-color: var(--color-brand-primary);
    box-shadow: 0 4px 20px rgba(var(--color-brand-rgb, 79,70,229), 0.2);
    transform: translateY(-2px);
    color: var(--color-text);
}

/* Per-brand card hover */
.network-quick-card[data-brand="data-drop"]:hover { border-color: #4F46E5; box-shadow: 0 4px 20px rgba(79,70,229,0.2); }
.network-quick-card[data-brand="gear-galore"]:hover { border-color: #10B981; box-shadow: 0 4px 20px rgba(16,185,129,0.2); }
.network-quick-card[data-brand="rendered-perspective"]:hover { border-color: #DC143C; box-shadow: 0 4px 20px rgba(220,20,60,0.2); }
.network-quick-card[data-brand="creative-collapse"]:hover { border-color: #FF5722; box-shadow: 0 4px 20px rgba(255,87,34,0.2); }
.network-quick-card[data-brand="terminal-drift"]:hover { border-color: #FFB84D; box-shadow: 0 4px 20px rgba(255,184,77,0.2); }
.network-quick-card[data-brand="community"]:hover { border-color: #64748B; box-shadow: 0 4px 20px rgba(100,116,139,0.2); }

.network-quick-icon { margin-bottom: 0.25rem; }
.network-icon-img { width: 48px; height: 48px; border-radius: var(--radius-lg); }

.network-quick-name {
    font-size: 1rem;
    font-weight: 700;
}

.network-quick-description {
    font-size: 0.75rem;
    color: var(--color-text-tertiary);
    line-height: 1.4;
}

/* ==========================================================================
   11. Corner Brackets Effect — from Jekyll
   ========================================================================== */

.corner-brackets {
    position: relative;
}

.corner-brackets::before,
.corner-brackets::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    border-color: var(--color-brand-primary);
    border-style: solid;
    transition: all var(--transition-base);
    opacity: 0;
}

.corner-brackets::before {
    top: -1px;
    left: -1px;
    border-width: 2px 0 0 2px;
    border-radius: 2px 0 0 0;
}

.corner-brackets::after {
    bottom: -1px;
    right: -1px;
    border-width: 0 2px 2px 0;
    border-radius: 0 0 2px 0;
}

.corner-brackets:hover::before,
.corner-brackets:hover::after {
    opacity: 1;
    width: 20px;
    height: 20px;
}

/* ==========================================================================
   12. Single Post — post.hbs
   ========================================================================== */

.post-full {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 2rem var(--gap) 4rem;
}

.series-banner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-left: 4px solid var(--color-brand-primary);
    background: var(--color-brand-glow);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    margin-bottom: 1.5rem;
}
.series-banner__label {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-text-tertiary);
}
.series-banner__name {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-brand-primary);
}

.post-badges {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.badge {
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.badge--type { background: var(--color-brand-light); color: var(--color-brand-primary-dark, var(--color-brand-primary)); }
.badge--featured { background: #FEF3C7; color: #92400E; }

.post-full__title {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.post-full__excerpt {
    font-size: var(--text-xl);
    color: var(--color-text-secondary);
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.post-full__meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: var(--text-sm);
    color: var(--color-text-tertiary);
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.post-full__author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text);
    font-weight: 500;
}
.post-full__author-image {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.post-full__image {
    margin: 0 -2rem 2rem;
    border-radius: var(--radius-xl);
    overflow: hidden;
}
.post-full__image img { width: 100%; }
.post-full__image figcaption {
    padding: 0.75rem 0;
    font-size: var(--text-sm);
    color: var(--color-text-tertiary);
    text-align: center;
}

/* Ghost Content */
.gh-content {
    font-size: var(--text-lg);
    line-height: 1.75;
    color: var(--color-text);
}

.gh-content > * + * { margin-top: 1.5rem; }

.gh-content h2 { font-size: 1.75rem; margin-top: 3rem; }
.gh-content h3 { font-size: 1.375rem; margin-top: 2.5rem; }
.gh-content h4 { font-size: var(--text-lg); margin-top: 2rem; }

.gh-content blockquote {
    border-left: 3px solid var(--color-brand-primary);
    padding-left: 1.25rem;
    font-style: italic;
    color: var(--color-text-secondary);
}

.gh-content code {
    font-family: var(--font-mono);
    font-size: 0.875em;
    background: var(--color-bg-secondary);
    padding: 0.125rem 0.375rem;
    border-radius: var(--radius-sm);
}

.gh-content pre {
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    overflow-x: auto;
}
.gh-content pre code { background: none; padding: 0; }
.gh-content img { border-radius: var(--radius-lg); }
.gh-content a { text-decoration: underline; text-underline-offset: 2px; }

/* Ghost Width Classes (required by theme spec) */
.kg-width-wide {
    margin-left: -4rem;
    margin-right: -4rem;
}
.kg-width-full {
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
    max-width: none;
}

.kg-width-wide img,
.kg-width-full img {
    width: 100%;
}

/* Post footer */
.post-full__footer {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
}

.post-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.post-tag {
    font-size: var(--text-sm);
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    transition: all var(--transition-fast);
}
.post-tag:hover {
    border-color: var(--color-brand-primary);
    color: var(--color-brand-primary);
    background: var(--color-brand-glow);
}

/* Related posts */
.related-posts {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

/* ==========================================================================
   13. Collection Hero
   ========================================================================== */

.collection-hero {
    padding: 3rem var(--gap);
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--color-brand-primary), var(--color-brand-secondary));
    border-radius: var(--radius-2xl);
    max-width: var(--container);
    margin-left: auto;
    margin-right: auto;
}

.collection-hero__image {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-2xl);
    margin-bottom: 1rem;
}

.collection-hero__title {
    font-size: 2.5rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 0.5rem;
}

.collection-hero__description {
    font-size: var(--text-lg);
    color: rgba(255, 255, 255, 0.85);
    max-width: 500px;
}

/* ==========================================================================
   14. Author Page
   ========================================================================== */

.author-header {
    text-align: center;
    padding: 4rem var(--gap) 2rem;
    max-width: var(--content-width);
    margin: 0 auto;
}

.author-header__image {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
}

.author-header__name { font-size: 2rem; font-weight: 800; margin-bottom: 0.5rem; }
.author-header__bio { color: var(--color-text-secondary); font-size: var(--text-lg); margin-bottom: 1rem; }
.author-header__meta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    font-size: var(--text-sm);
    color: var(--color-text-tertiary);
}

/* ==========================================================================
   15. Page
   ========================================================================== */

.page-full {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 3rem var(--gap) 4rem;
}
.page-full__title { font-size: 2.5rem; font-weight: 900; margin-bottom: 2rem; }
.page-full__image { margin-bottom: 2rem; border-radius: var(--radius-xl); overflow: hidden; }

/* ==========================================================================
   16. Pagination
   ========================================================================== */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    padding: 3rem 0;
}

.pagination__prev,
.pagination__next {
    font-size: var(--text-sm);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    transition: all var(--transition-fast);
}
.pagination__prev:hover,
.pagination__next:hover {
    border-color: var(--color-brand-primary);
    color: var(--color-brand-primary);
}

.pagination__info {
    font-size: var(--text-sm);
    color: var(--color-text-tertiary);
}

/* ==========================================================================
   17. Footer — matches Jekyll footer.html
   ========================================================================== */

.site-footer {
    background: var(--color-bg-secondary);
    border-top: 1px solid var(--color-border);
    padding: 4rem 0 0;
    margin-top: 4rem;
}

.footer-container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gap);
}

.footer-top { padding-bottom: 3rem; }

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
}

.footer-logo {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.footer-tagline {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-brand-primary);
    margin-bottom: 0.75rem;
}

.footer-description {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.footer-heading {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-tertiary);
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-lg);
    color: var(--color-text-secondary);
    transition: all var(--transition-fast);
    border: 1px solid var(--color-border);
}
.social-link:hover {
    color: var(--color-brand-primary);
    border-color: var(--color-brand-primary);
    background: var(--color-brand-glow);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    border-top: 1px solid var(--color-border);
    font-size: var(--text-sm);
    color: var(--color-text-tertiary);
}
.footer-bottom a { color: var(--color-text-tertiary); }
.footer-bottom a:hover { color: var(--color-brand-primary); }

.footer-meta {
    display: flex;
    gap: 1.5rem;
}

.footer-copyright {
    font-size: var(--text-sm);
}

/* ==========================================================================
   18. Responsive
   ========================================================================== */

@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
    .masonry-grid { grid-template-columns: 1fr; }
    .network-quick-grid { grid-template-columns: repeat(2, 1fr); }

    .post-full__title { font-size: 1.75rem; }
    .collection-hero__title { font-size: 1.75rem; }
    .post-full__image { margin: 0 0 2rem; }
    .kg-width-wide { margin-left: 0; margin-right: 0; }

    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }

    .section-title { font-size: var(--text-2xl); }

    .filter-bar--segmented { gap: 0.5rem; }
}

@media (max-width: 480px) {
    :root { --gap: 1rem; }
    .network-quick-grid { grid-template-columns: 1fr; }
    .nav-controls { gap: 0; }
}
