/*
Theme Name: CHAONEO
Theme URI: https://www.chaoneo.cn
Author: 超哥
Author URI: https://www.chaoneo.cn
Description: 80后数字手艺人的个人博客主题 — 沉稳暗色调 + 极客网感 + 温暖点缀
Version: 1.0.0
License: GPL-2.0+
Text Domain: chaoneo
*/

/* ========== CSS Variables ========== */
:root {
    --bg: #0F172A;
    --card: #1E293B;
    --card-hover: #233044;
    --text: #F8FAFC;
    --text-muted: #94A3B8;
    --text-soft: #CBD5E1;
    --border: #334155;
    --border-light: #1E293B;
    --accent-intel: #38BDF8;
    --accent-life: #F59E0B;
    --accent-brand: #10B981;
    --header-bg: rgba(15, 23, 42, 0.85);
    --header-border: rgba(51, 65, 85, 0.5);
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
    --code-bg: rgba(56,189,248,0.1);
    --pre-bg: rgba(30,41,59,0.5);
    --blockquote-bg: rgba(56,189,248,0.05);
    --shadow: 0 4px 20px rgba(0,0,0,0.15);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.25);
}

/* ========== Light Theme ========== */
html[data-theme="light"] {
    --bg: #F8FAFC;
    --card: #FFFFFF;
    --card-hover: #F1F5F9;
    --text: #0F172A;
    --text-muted: #64748B;
    --text-soft: #334155;
    --border: #E2E8F0;
    --border-light: #CBD5E1;
    --accent-intel: #0284C7;
    --accent-life: #D97706;
    --accent-brand: #059669;
    --header-bg: rgba(248, 250, 252, 0.88);
    --header-border: rgba(226, 232, 240, 0.8);
    --code-bg: rgba(2,132,199,0.08);
    --pre-bg: rgba(241,245,249,0.8);
    --blockquote-bg: rgba(2,132,199,0.04);
    --shadow: 0 4px 12px rgba(0,0,0,0.06);
    --shadow-hover: 0 8px 24px rgba(0,0,0,0.1);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', 'Noto Sans SC', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.75;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    transition: background 0.3s ease, color 0.3s ease;
}

a { color: var(--accent-intel); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-brand); }

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

h1, h2, h3, h4, h5, h6 { color: var(--text); line-height: 1.4; font-weight: 700; }
h1 { font-size: 2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.3rem; }

/* ========== Reading Progress Bar ========== */
.reading-progress {
    position: fixed; top: 0; left: 0; z-index: 9999;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-intel), var(--accent-brand), var(--accent-life));
    width: 0%;
    transition: width 0.1s linear;
}

/* ========== Header / Navigation ========== */
.site-header {
    background: var(--header-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--header-border);
    position: sticky; top: 0; z-index: 100;
    padding: 0 24px;
}

.header-inner {
    max-width: 1100px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    height: 64px;
}

.site-branding {
    display: flex; align-items: center; gap: 10px;
}

.site-logo {
    font-size: 1.4rem; font-weight: 800; color: var(--text);
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
}
.site-logo span { color: var(--accent-brand); }

.site-tagline {
    font-size: 0.75rem; color: var(--text-muted);
    border-left: 1px solid var(--border); padding-left: 10px;
    display: none;
}
@media (min-width: 640px) { .site-tagline { display: inline; } }

/* Desktop Nav */
.nav-desktop { display: none; }
@media (min-width: 768px) {
    .nav-desktop { display: flex; align-items: center; gap: 4px; list-style: none; }
}

.nav-desktop a {
    display: block; padding: 8px 16px; border-radius: 8px;
    color: var(--text-muted); font-size: 0.9rem; font-weight: 500;
    transition: var(--transition);
}
.nav-desktop a:hover,
.nav-desktop .current-menu-item > a,
.nav-desktop .current_page_item > a {
    color: var(--text); background: rgba(56, 189, 248, 0.08);
}

/* Sub menus */
.nav-desktop .sub-menu {
    display: none; position: absolute; top: 100%; left: 0;
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 4px 0; min-width: 140px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}
.nav-desktop li { position: relative; }
.nav-desktop li:hover > .sub-menu { display: block; }
.nav-desktop .sub-menu a { padding: 8px 16px; border-radius: 0; }

/* Mobile Toggle */
.menu-toggle {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border: none; background: none;
    cursor: pointer; color: var(--text-muted); font-size: 1.5rem;
}
@media (min-width: 768px) { .menu-toggle { display: none; } }

/* Theme Toggle */
.theme-toggle {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border: 1px solid var(--border);
    border-radius: var(--radius-sm); background: var(--card);
    cursor: pointer; color: var(--text-muted);
    transition: var(--transition); margin-left: 4px;
}
.theme-toggle:hover {
    color: var(--accent-life); border-color: var(--accent-life);
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.2);
}
.theme-toggle svg { transition: var(--transition); }
.theme-toggle .icon-moon { display: none; }

/* Light mode: show moon, hide sun */
html[data-theme="light"] .theme-toggle .icon-sun { display: none; }
html[data-theme="light"] .theme-toggle .icon-moon { display: inline-block; }

/* Mobile Nav */
.mobile-nav {
    display: none; position: fixed; top: 64px; left: 0; right: 0; bottom: 0;
    background: var(--bg); backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 9998; padding: 24px; overflow-y: auto;
}


.mobile-nav.active { display: block; }
.mobile-nav ul { list-style: none; }
.mobile-nav a {
    display: block; padding: 14px 0; color: var(--text-muted);
    font-size: 1.1rem; border-bottom: 1px solid var(--border);
    transition: var(--transition);
}
.mobile-nav a:hover,
.mobile-nav .current-menu-item > a { color: var(--accent-brand); }

/* ========== Container ========== */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 780px; margin: 0 auto; padding: 0 24px; }

/* ========== Hero Section ========== */
.hero-section {
    padding: 80px 24px 60px; text-align: center;
    background: linear-gradient(180deg, rgba(56,189,248,0.03) 0%, transparent 100%);
    border-bottom: 1px solid var(--border);
}
html[data-theme="light"] .hero-section {
    background: linear-gradient(180deg, rgba(2,132,199,0.04) 0%, transparent 100%);
}

.hero-avatar {
    width: 80px; height: 80px; border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-intel), var(--accent-brand));
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px; font-size: 2rem; font-weight: 800;
    color: #fff; font-family: 'JetBrains Mono', monospace;
}

.hero-intro {
    max-width: 600px; margin: 0 auto;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    color: var(--text-soft); font-size: 1rem; line-height: 1.9;
}
.hero-intro em { color: var(--accent-brand); font-style: normal; }
.hero-intro strong { color: var(--accent-life); }

.hero-stats {
    display: flex; justify-content: center; gap: 32px; margin-top: 32px;
    flex-wrap: wrap;
}
.hero-stat-num { font-size: 1.6rem; font-weight: 800; color: var(--accent-intel); font-family: 'JetBrains Mono', monospace; }
.hero-stat-label { font-size: 0.8rem; color: var(--text-muted); margin-top: 2px; }

/* ========== Timeline (Front Page) ========== */
.timeline {
    position: relative; padding: 20px 0 60px;
}

.timeline::before {
    content: ''; position: absolute; left: 20px; top: 0; bottom: 0;
    width: 2px; background: linear-gradient(180deg, var(--accent-intel), var(--accent-life));
    opacity: 0.3;
}
@media (min-width: 640px) { .timeline::before { left: 50%; transform: translateX(-50%); } }

.timeline-item {
    position: relative; padding-left: 48px; margin-bottom: 40px;
}
@media (min-width: 640px) {
    .timeline-item { padding-left: 0; width: 50%; }
    .timeline-item:nth-child(odd) { padding-right: 40px; text-align: right; }
    .timeline-item:nth-child(even) { margin-left: 50%; padding-left: 40px; }
}

.timeline-dot {
    position: absolute; left: 12px; top: 8px;
    width: 18px; height: 18px; border-radius: 50%;
    background: var(--card); border: 3px solid var(--accent-intel);
    z-index: 2;
}
@media (min-width: 640px) {
    .timeline-dot { left: auto; }
    .timeline-item:nth-child(odd) .timeline-dot { right: -9px; }
    .timeline-item:nth-child(even) .timeline-dot { left: -9px; }
}

.timeline-date {
    font-size: 0.8rem; color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 8px;
}

.timeline-card {
    background: var(--card); border-radius: var(--radius-lg);
    padding: 20px 24px; border: 1px solid var(--border);
    transition: var(--transition);
    display: block; color: inherit;
}
.timeline-card:hover {
    border-color: var(--accent-intel);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.08);
    transform: translateY(-2px);
}

.timeline-card h3 {
    font-size: 1.15rem; margin-bottom: 8px; line-height: 1.5;
}
.timeline-card p {
    font-size: 0.9rem; color: var(--text-muted); line-height: 1.7;
}

/* Category Badge */
.cat-badge {
    display: inline-block; padding: 2px 10px; border-radius: 50px;
    font-size: 0.72rem; font-weight: 600; margin-bottom: 8px;
    transition: var(--transition);
}
.cat-badge:hover { transform: translateY(-1px); }

.cat-intel { background: rgba(56,189,248,0.12); color: var(--accent-intel); }
.cat-life { background: rgba(245,158,11,0.12); color: var(--accent-life); }
.cat-brand { background: rgba(16,185,129,0.12); color: var(--accent-brand); width: fit-content;}

/* ========== Article Card (Archive/List) ========== */
.article-card {
    display: flex; flex-direction: column;
    background: var(--card); border-radius: var(--radius-lg);
    overflow: hidden; border: 1px solid var(--border);
    transition: var(--transition); color: inherit;
}
@media (min-width: 640px) { .article-card { flex-direction: row; } }
.article-card:hover {
    border-color: var(--accent-intel);
    box-shadow: 0 0 20px rgba(56,189,248,0.06);
    transform: translateY(-2px);
}

.article-thumb {
    flex-shrink: 0; width: 100%; height: 180px;
    background: var(--card-hover); overflow: hidden;
}
@media (min-width: 640px) { .article-thumb { width: 240px; height: auto; min-height: 180px; } }
.article-thumb img { width: 100%; height: 100%; object-fit: cover; }

.article-info {
    padding: 20px 24px; display: flex; flex-direction: column;
    justify-content: center; flex: 1;
}

.article-info h3 { font-size: 1.15rem; margin-bottom: 8px; }
.article-info .excerpt {
    font-size: 0.9rem; color: var(--text-muted); line-height: 1.7;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}
.article-meta {
    display: flex; align-items: center; gap: 12px; margin-top: 12px;
    font-size: 0.8rem; color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
}

/* ========== Grid Cards (分享页面) ========== */
.share-grid {
    display: grid; grid-template-columns: 1fr; gap: 20px;
}
@media (min-width: 640px) { .share-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .share-grid { grid-template-columns: repeat(3, 1fr); } }

.share-card {
    background: var(--card); border-radius: var(--radius-lg);
    padding: 24px; border: 1px solid var(--border);
    transition: var(--transition); color: inherit; display: block;
}
.share-card:hover {
    border-color: var(--accent-life);
    box-shadow: 0 0 20px rgba(245,158,11,0.08);
    transform: translateY(-2px);
}
.share-card .tool-icon {
    font-size: 2rem; margin-bottom: 12px;
}
.share-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.share-card p {
    font-size: 0.85rem; color: var(--text-muted); line-height: 1.7;
}

/* ========== Note Card (笔记流式) ========== */
.note-stream { max-width: 680px; margin: 0 auto; }

.note-card {
    background: var(--card); border-radius: var(--radius);
    padding: 20px 24px; margin-bottom: 16px;
    border: 1px solid var(--border);
    transition: var(--transition); color: inherit; display: block;
}
.note-card:hover {
    border-color: var(--accent-intel);
    box-shadow: 0 0 15px rgba(56,189,248,0.06);
}

.note-card .note-content {
    font-size: 0.95rem; color: var(--text-soft); line-height: 1.8;
}
.note-card .note-time {
    margin-top: 12px; font-size: 0.75rem; color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
}

/* ========== Single Article ========== */
.article-header {
    padding: 60px 0 40px; text-align: center;
}
.article-header h1 {
    font-size: 2rem; line-height: 1.4; margin-bottom: 16px;
    max-width: 700px; margin-left: auto; margin-right: auto;
}
.article-header .meta-line {
    color: var(--text-muted); font-size: 0.85rem;
    font-family: 'JetBrains Mono', monospace;
    display: flex; align-items: center; justify-content: center;
    gap: 16px; flex-wrap: wrap;
}

/* TOC */
.article-toc {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 20px 24px;
    margin-bottom: 32px;
}
.article-toc summary {
    font-weight: 700; cursor: pointer; color: var(--text);
    font-size: 1rem; user-select: none;
}
.article-toc summary:hover { color: var(--accent-intel); }
.article-toc ol {
    margin-top: 12px; padding-left: 20px; list-style: decimal;
}
.article-toc li { margin-bottom: 6px; font-size: 0.9rem; }
.article-toc a {
    color: var(--text-muted); text-decoration: none;
    transition: var(--transition);
}
.article-toc a:hover,
.article-toc a.active-toc { color: var(--accent-intel); }

/* Article Body */
.article-body {
    font-size: 1.05rem; line-height: 1.9; color: var(--text-soft);
}
.article-body h2 {
    font-size: 1.5rem; margin: 48px 0 16px; padding-bottom: 8px;
    border-bottom: 2px solid var(--border);
}
.article-body h3 {
    font-size: 1.25rem; margin: 36px 0 12px;
}
.article-body p { margin-bottom: 20px; }
.article-body blockquote {
    border-left: 4px solid var(--accent-intel);
    padding: 16px 20px; margin: 24px 0; border-radius: 0 var(--radius) var(--radius) 0;
    background: var(--blockquote-bg); color: var(--text-muted);
    font-style: italic;
}
.article-body ul, .article-body ol {
    margin: 16px 0; padding-left: 24px;
}
.article-body li { margin-bottom: 8px; }
.article-body code {
    background: var(--code-bg); padding: 2px 6px;
    border-radius: 4px; font-family: 'JetBrains Mono', monospace;
    font-size: 0.9em; color: var(--accent-intel);
}
.article-body pre {
    background: var(--pre-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(51,65,85,0.5);
    border-radius: var(--radius-lg); padding: 20px 24px;
    margin: 24px 0; overflow-x: auto; font-size: 0.88rem;
    line-height: 1.7;
}
.article-body pre code {
    background: none; padding: 0; color: var(--text-soft);
}
.article-body img {
    border-radius: var(--radius-lg); margin: 24px auto;
}
.article-body a { border-bottom: 1px solid rgba(56,189,248,0.3); }
.article-body a:hover { border-color: var(--accent-intel); }
.article-body hr {
    border: none; height: 1px; background: var(--border);
    margin: 40px 0;
}
.article-body table {
    width: 100%; border-collapse: collapse; margin: 24px 0;
}
.article-body th, .article-body td {
    padding: 10px 14px; border: 1px solid var(--border); text-align: left;
}
.article-body th { background: var(--card); font-weight: 600; }

/* ========== Post Navigation ========== */
.post-nav {
    display: grid; grid-template-columns: 1fr;
    gap: 16px; margin-top: 60px; padding-top: 32px;
    border-top: 1px solid var(--border);
}
@media (min-width: 640px) { .post-nav { grid-template-columns: 1fr 1fr; } }

.post-nav a {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 16px 20px;
    transition: var(--transition); color: inherit; display: block;
}
.post-nav a:hover { border-color: var(--accent-intel); }
.post-nav .nav-label {
    font-size: 0.75rem; color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace; margin-bottom: 4px;
}
.post-nav .nav-title { font-size: 0.95rem; font-weight: 600; color: var(--text); }
.post-nav .nav-next { text-align: right; margin-left: auto; }

/* ========== Related Posts ========== */
.related-posts { margin-top: 60px; padding-top: 32px; border-top: 1px solid var(--border); }
.related-posts h3 { font-size: 1.2rem; margin-bottom: 20px; }

.related-grid {
    display: grid; grid-template-columns: 1fr; gap: 16px;
}
@media (min-width: 500px) { .related-grid { grid-template-columns: repeat(3, 1fr); } }

.related-item {
    background: var(--card); border-radius: var(--radius);
    overflow: hidden; border: 1px solid var(--border);
    transition: var(--transition); color: inherit; display: block;
}
.related-item:hover {
    border-color: var(--accent-intel);
    transform: translateY(-2px);
}
.related-thumb {
    height: 120px; background: var(--card-hover); overflow: hidden;
}
.related-thumb img { width: 100%; height: 100%; object-fit: cover; }
.related-item h4 {
    padding: 12px 14px 8px; font-size: 0.9rem; line-height: 1.5;
}
.related-item .rel-date {
    padding: 0 14px 12px; font-size: 0.75rem;
    color: var(--text-muted); font-family: 'JetBrains Mono', monospace;
}

/* ========== Archive Header ========== */
.archive-header {
    padding: 60px 0 40px; text-align: center;
    border-bottom: 1px solid var(--border);
    margin-bottom: 40px;
}
.archive-header h1 { font-size: 2rem; }
.archive-header .archive-desc {
    color: var(--text-muted); font-size: 1rem; margin-top: 8px;
}

/* Archive accent border variants */
.archive-intel { border-bottom-color: var(--accent-intel); }
.archive-life { border-bottom-color: var(--accent-life); }
.archive-brand { border-bottom-color: var(--accent-brand); }

/* ========== Pagination ========== */
.pagination {
    display: flex; justify-content: center; gap: 8px;
    margin-top: 48px; padding-bottom: 60px; flex-wrap: wrap;
}
.pagination .page-numbers {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 38px; height: 38px; padding: 0 10px;
    border-radius: var(--radius-sm); font-size: 0.9rem;
    background: var(--card); color: var(--text-muted);
    border: 1px solid var(--border); transition: var(--transition);
}
.pagination .page-numbers.current {
    background: var(--accent-intel); color: #fff; border-color: var(--accent-intel);
}
.pagination .page-numbers:hover:not(.current):not(.dots) {
    border-color: var(--accent-intel); color: var(--text);
}

/* ========== Page Template ========== */
.page-content {
    max-width: 780px; margin: 0 auto; padding: 60px 24px 80px;
}
.page-content h1 { font-size: 2rem; margin-bottom: 24px; }
.page-content h2 { font-size: 1.4rem; margin: 36px 0 12px; }
.page-content p { color: var(--text-soft); line-height: 1.9; margin-bottom: 16px; }

/* ========== About Page ========== */
.about-hero {
    padding: 60px 24px 40px; text-align: center;
}
.about-hero h1 { font-family: 'JetBrains Mono', monospace; }

.about-grid {
    display: grid; grid-template-columns: 1fr; gap: 24px;
    max-width: 900px; margin: 0 auto; padding: 0 24px 60px;
}
@media (min-width: 640px) { .about-grid { grid-template-columns: 1fr 1fr; } }

.about-card {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 28px;
    transition: var(--transition);
}
.about-card:hover { border-color: var(--accent-brand); }

.about-card h3 {
    font-size: 1.1rem; margin-bottom: 12px;
    display: flex; align-items: center; gap: 8px;
}
.about-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.8; }
.about-card .tech-tag {
    display: inline-block; padding: 2px 10px; margin: 2px 4px 2px 0;
    background: rgba(56,189,248,0.1); color: var(--accent-intel);
    border-radius: 50px; font-size: 0.78rem;
}

/* ========== Contact Page ========== */
.contact-cards {
    display: grid; grid-template-columns: 1fr; gap: 16px;
    max-width: 560px; margin: 0 auto; padding: 0 24px 60px;
}
@media (min-width: 500px) { .contact-cards { grid-template-columns: 1fr 1fr; } }

.contact-card {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 24px;
    transition: var(--transition); text-align: center;
}
.contact-card:hover { border-color: var(--accent-brand); }

.contact-card .c-icon {
    font-size: 1.8rem; margin-bottom: 8px;
}
.contact-card .c-label {
    font-size: 0.75rem; color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace; margin-bottom: 4px;
}
.contact-card .c-value {
    font-size: 1rem; font-weight: 600; color: var(--text);
    word-break: break-all;
}
.contact-card .c-value a { color: var(--accent-intel); }

.contact-map {
    max-width: 560px; margin: 0 auto 60px; padding: 0 24px;
}
.contact-map .map-placeholder {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 40px; text-align: center;
    color: var(--text-muted);
}

/* ========== CTA Banner ========== */
.cta-banner {
    background: linear-gradient(135deg, rgba(56,189,248,0.08), rgba(16,185,129,0.06));
    border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 40px; text-align: center; margin: 60px 0;
}
.cta-banner h2 {
    font-size: 1.3rem; margin-bottom: 8px;
    font-family: 'JetBrains Mono', monospace;
}
.cta-banner p { color: var(--text-muted); margin-bottom: 20px; }
.cta-banner .btn {
    display: inline-block; padding: 12px 32px;
    background: var(--accent-brand); color: #fff;
    border-radius: 50px; font-weight: 600;
    transition: var(--transition);
}
.cta-banner .btn:hover {
    background: #0ea571; transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(16,185,129,0.3);
}

/* ========== Empty State ========== */
.empty-state {
    text-align: center; padding: 80px 24px; color: var(--text-muted);
}
.empty-state .empty-icon { font-size: 3rem; margin-bottom: 16px; }

/* ========== Footer ========== */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 40px 24px; text-align: center;
}
.footer-inner { max-width: 1100px; margin: 0 auto; }

.footer-links {
    display: flex; justify-content: center; gap: 24px;
    margin-bottom: 16px; flex-wrap: wrap;
}
.footer-links a { color: var(--text-muted); font-size: 0.9rem; }
.footer-links a:hover { color: var(--accent-brand); }

.footer-copy {
    font-size: 0.8rem; color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
}

/* ========== Counter Animation ========== */
.counter { display: inline; }

/* ========== Utilities ========== */
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-2 { gap: 8px; }
.gap-4 { gap: 16px; }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; }
.mb-8 { margin-bottom: 32px; }
.text-muted { color: var(--text-muted); }
.text-mono { font-family: 'JetBrains Mono', monospace; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ========== Responsive images in articles ========== */
.article-body .wp-caption {
    max-width: 100%; margin: 24px 0;
}
.article-body .wp-caption-text {
    font-size: 0.85rem; color: var(--text-muted); text-align: center;
    margin-top: 8px;
}
.article-body .aligncenter { margin-left: auto; margin-right: auto; }
.article-body .alignleft { float: left; margin: 8px 20px 16px 0; }
.article-body .alignright { float: right; margin: 8px 0 16px 20px; }
