/* === Summer Blog — Minimal Magazine Edition === */

/* === Design Tokens === */
:root {
    --primary: #111827;
    --primary-soft: #374151;
    --primary-faint: #9ca3af;
    --accent: #6366f1;
    --accent-hover: #4f46e5;
    --bg: #fafafa;
    --bg-secondary: #f3f4f6;
    --bg-card: #ffffff;
    --text: #1a1a1a;
    --text-secondary: #6b7280;
    --text-tertiary: #9ca3af;
    --text-faint: #d1d5db;
    --border: #e5e7eb;
    --border-light: #f3f4f6;
    --code-bg: #f8f9fb;
    --highlight-bg: #fef3c7;
    --highlight-color: #92400e;
    --radius-sm: 4px;
    --radius: 6px;
    --radius-lg: 8px;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-serif: 'Georgia', 'Noto Serif SC', 'Source Han Serif SC', 'SimSun', serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, "Courier New", monospace;
    --transition: 0.25s ease;
    --max-width: 720px;
}

.dark {
    --primary: #e5e7eb;
    --primary-soft: #9ca3af;
    --primary-faint: #6b7280;
    --accent: #a5b4fc;
    --accent-hover: #818cf8;
    --bg: #141414;
    --bg-secondary: #1c1c1c;
    --bg-card: #1a1a1a;
    --text: #e8e8e8;
    --text-secondary: #8b8b8b;
    --text-tertiary: #6b6b6b;
    --text-faint: #4a4a4a;
    --border: #2a2a2a;
    --border-light: #222222;
    --code-bg: #1a1a1a;
    --highlight-bg: rgba(251, 191, 36, 0.08);
    --highlight-color: #fde68a;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.8;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background var(--transition), color var(--transition);
}

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

::selection { background: var(--accent); color: #fff; }

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

/* === Scrollbar — ultra thin === */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--text-faint); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-tertiary); }

/* === Header — minimal text-only === */
header {
    background: var(--bg);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all var(--transition);
}
.dark header { background: var(--bg); }

header.scrolled {
    border-bottom-color: var(--border);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
}

.mobile-search-inline { display: none; }

.nav-brand {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 400;
    color: var(--text);
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav-brand i { display: none; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}
.nav-links a {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 400;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    transition: color var(--transition);
    letter-spacing: 0.02em;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); }
.nav-links .nav-search-form {
    display: flex;
    align-items: center;
    margin-left: 8px;
}
.nav-links .nav-search-form input {
    width: 140px;
    padding: 5px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text);
    font-size: 13px;
    outline: none;
    transition: border-color var(--transition);
}
.nav-links .nav-search-form input:focus { border-color: var(--text-tertiary); }
.nav-links .nav-search-form button {
    background: none;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    padding: 5px 6px;
    font-size: 13px;
}

/* Dark mode toggle — minimal dot switch */
.dark-toggle-switch {
    position: relative;
    width: 36px;
    height: 20px;
    background: var(--text-faint);
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: background var(--transition);
    flex-shrink: 0;
    margin-left: 8px;
}
.dark-toggle-switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 14px;
    height: 14px;
    background: var(--bg-card);
    border-radius: 50%;
    transition: transform var(--transition);
}
.dark .dark-toggle-switch { background: var(--text-tertiary); }
.dark .dark-toggle-switch::after { transform: translateX(16px); }
.dark-toggle-switch .toggle-icon { display: none; }

/* === Buttons — flat & quiet === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    background: var(--text);
    color: var(--bg);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}
.btn:hover {
    background: var(--text-secondary);
    color: var(--bg);
    transform: none;
    box-shadow: none;
}
.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}
.btn-outline:hover { border-color: var(--text-tertiary); background: transparent; color: var(--text); }
.btn-sm { padding: 6px 16px; font-size: 13px; }
.btn-danger { background: #b91c1c; }
.btn-danger:hover { background: #991b1b; }
.badge { display: inline-block; padding: 2px 8px; background: var(--bg-secondary); color: var(--text-secondary); border-radius: var(--radius-sm); font-size: 12px; font-weight: 400; }
.badge-secondary { background: var(--bg-secondary); color: var(--text-secondary); border: 1px solid var(--border); }

/* === Main Layout === */
main { padding: 0; min-height: calc(100vh - 200px); }
.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    align-items: start;
}

/* === Hero — minimal, typographic === */
.hero {
    text-align: left;
    padding: 80px 0 60px;
    margin-bottom: 0;
    border-bottom: none;
    background: none;
    overflow: hidden;
}
.hero::before,
.hero::after { display: none; }
.hero h1 {
    font-family: var(--font-serif);
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 400;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
    line-height: 1.3;
    color: var(--text);
}
.hero h1 i { display: none; }
.hero-tagline {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 480px;
    margin: 0;
    line-height: 1.8;
    font-weight: 300;
}
.hero-subline {
    font-size: 14px;
    color: var(--text-tertiary);
    max-width: 480px;
    margin: 12px 0 0;
    line-height: 1.7;
    font-weight: 300;
}

/* === Section titles — serif, quiet === */
.section-title {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 24px;
    color: var(--text-tertiary);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}
.section-title i { display: none; }
.section-subtitle {
    font-size: 14px;
    color: var(--text-tertiary);
    margin-top: -18px;
    margin-bottom: 32px;
    font-weight: 300;
}
.section-pinned { margin-bottom: 56px; }

/* === Post Grid — single column, list-like === */
.post-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

/* === Post Card — borderless, clean === */
.post-card {
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: hidden;
    transition: none;
    display: block;
    color: inherit;
    position: relative;
    padding: 32px 0;
    border-bottom: 1px solid var(--border-light);
}
.post-card::before { display: none; }
.post-card:hover {
    transform: none;
    border-color: var(--border);
}
.post-card:hover::before { opacity: 0; }
.post-card--pinned {
    border-color: var(--border);
    border-left: 2px solid var(--accent);
    padding-left: 20px;
}
.post-card--pinned::after { display: none; }
.post-card-cover {
    display: none;
}
.post-card-cover-wrapper { display: none; }
.post-card-body {
    padding: 0;
    position: relative;
    z-index: 2;
}
.post-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: var(--text-tertiary);
    margin-bottom: 8px;
    flex-wrap: wrap;
    font-weight: 400;
    letter-spacing: 0.02em;
}
.post-card-meta i { display: none; }
.post-card-title {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 8px;
    line-height: 1.4;
    letter-spacing: -0.01em;
    color: var(--text);
    transition: color var(--transition);
}
.post-card:hover .post-card-title { color: var(--accent); }
.post-card-excerpt {
    font-size: 15px;
    color: var(--text-secondary);
    margin-top: 0;
    line-height: 1.8;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 300;
}
.post-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    padding-top: 0;
    border-top: none;
}
.post-card-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.post-card-stats { color: var(--text-faint); font-size: 12px; }
.post-card-stats i { display: none; }
.read-more {
    display: none;
}

/* === Tags — minimal text === */
.tag {
    display: inline-block;
    padding: 2px 8px;
    background: transparent;
    color: var(--text-tertiary);
    border-radius: 0;
    font-size: 12px;
    border: none;
    transition: color var(--transition);
    font-weight: 400;
}
.tag:hover { color: var(--accent); background: transparent; border-color: transparent; }
.tag-sm { font-size: 11px; padding: 1px 6px; }
.tag-md { font-size: 12px; padding: 2px 8px; }
.tag-lg { font-size: 12px; padding: 2px 8px; }
.tag-xl { font-size: 13px; padding: 3px 10px; font-weight: 500; color: var(--text-secondary); }

/* === Sidebar — moved below content, minimal === */
.sidebar {
    display: none;
}
.sidebar-widget {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    margin-bottom: 48px;
    transition: none;
}
.sidebar-widget:hover { box-shadow: none; }
.widget-title {
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-tertiary);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
}
.widget-title i { display: none; }
.widget-list { list-style: none; padding: 0; margin: 0; }
.widget-list li {
    border-bottom: 1px solid var(--border-light);
    padding: 8px 0;
    font-size: 14px;
    transition: none;
}
.widget-list li:last-child { border-bottom: none; }
.widget-list li:hover { padding-left: 0; }
.widget-list a { color: var(--text); display: flex; justify-content: space-between; align-items: center; font-weight: 300; }
.widget-list a:hover { color: var(--accent); }
.widget-list .count {
    background: transparent;
    color: var(--text-faint);
    padding: 0;
    border-radius: 0;
    font-size: 12px;
    font-weight: 300;
}

/* === Author Card — text only === */
.author-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0;
    background: transparent;
    border-radius: 0;
    transition: none;
}
.author-card:hover { background: transparent; }
.author-avatar { display: none; }
.author-avatar--placeholder { display: none; }
.author-info { flex: 1; min-width: 0; }
.author-name { font-size: 15px; font-weight: 400; color: var(--text); display: block; margin-bottom: 4px; }
.author-bio { font-size: 14px; color: var(--text-secondary); line-height: 1.7; margin: 0; font-weight: 300; }

/* === Pagination — minimal === */
.pagination {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-top: 48px;
    padding-bottom: 24px;
}
.pagination a, .pagination span {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-secondary);
    transition: all var(--transition);
    font-weight: 400;
}
.pagination a:hover {
    border-color: var(--text-tertiary);
    color: var(--text);
    box-shadow: none;
}
.pagination .active {
    background: var(--text);
    color: var(--bg);
    border-color: var(--text);
    box-shadow: none;
}
.pagination .disabled {
    opacity: 0.3;
    cursor: default;
}

/* === Back to Top — minimal line === */
#back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 36px;
    height: 36px;
    background: var(--bg-card);
    color: var(--text-tertiary);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    box-shadow: none;
    z-index: 90;
    font-size: 13px;
}
#back-to-top.visible { opacity: 1; visibility: visible; }
#back-to-top:hover {
    transform: none;
    box-shadow: none;
    color: var(--text);
    border-color: var(--text-tertiary);
}

/* === Footer — minimal === */
footer {
    background: transparent;
    border-top: 1px solid var(--border-light);
    padding: 32px 0;
    text-align: center;
    font-size: 13px;
    color: var(--text-faint);
    margin-top: 80px;
}
footer a { color: var(--text-tertiary); font-weight: 300; }
footer a:hover { color: var(--text-secondary); text-decoration: none; }

/* === Alerts === */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: 300;
    backdrop-filter: none;
}
.alert-success { background: var(--bg-secondary); border: 1px solid var(--border); color: var(--text-secondary); }
.alert-error { background: var(--bg-secondary); border: 1px solid var(--border); color: var(--text-secondary); }
.alert-info { background: var(--bg-secondary); border: 1px solid var(--border); color: var(--text-secondary); }

/* === Article Page — narrow reading column === */
.article-wrapper {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 48px 0;
}
.article-back { margin-bottom: 32px; }
.article-back a {
    color: var(--text-tertiary);
    font-size: 13px;
    font-weight: 300;
    padding: 0;
    border-radius: 0;
    transition: color var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.article-back a:hover { color: var(--text); background: transparent; }
.article-cover {
    width: 100%;
    max-height: 360px;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 40px;
    box-shadow: none;
}
.article-header { margin-bottom: 40px; }
.article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: var(--text-tertiary);
    margin-bottom: 16px;
    flex-wrap: wrap;
    font-weight: 400;
    letter-spacing: 0.02em;
}
.article-meta i { display: none; }
.article-category-badge {
    background: transparent;
    color: var(--text-secondary);
    padding: 0;
    border-radius: 0;
    font-size: 12px;
    font-weight: 400;
    box-shadow: none;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.article-title {
    font-family: var(--font-serif);
    font-size: clamp(26px, 5vw, 36px);
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 16px;
    color: var(--text);
    letter-spacing: -0.01em;
}
.article-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 0; }

/* === Attachments === */
.article-attachments {
    margin-top: 40px;
    padding: 20px 0;
    background: transparent;
    border-radius: 0;
    border-top: 1px solid var(--border-light);
}
.article-attachments h3 { font-size: 13px; margin-bottom: 16px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-tertiary); }
.article-attachments h3 i { display: none; }
.attachment-list { display: flex; flex-wrap: wrap; gap: 8px; }
.attachment-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: 13px;
    font-weight: 400;
    transition: all var(--transition);
    box-shadow: none;
}
.attachment-link i { display: none; }
.attachment-link:hover { color: var(--text); transform: none; box-shadow: none; }

/* === Comments — quiet === */
.comments-section {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border-light);
}
.comments-section h3 { font-size: 16px; margin-bottom: 24px; font-weight: 400; letter-spacing: 0; }
.comments-section h3 i { display: none; }
.comment-toast {
    display: none;
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
    padding: 14px 24px;
    border-radius: var(--radius);
    font-size: 13px;
    color: var(--bg);
    background: var(--text);
    box-shadow: none;
    backdrop-filter: none;
}
.comment-form {
    background: var(--bg-secondary);
    padding: 24px;
    border-radius: var(--radius);
    margin-bottom: 32px;
    border: 1px solid var(--border-light);
}
.comment-form h4 { font-size: 14px; margin-bottom: 16px; font-weight: 400; }
.comment-reply-hint {
    display: none;
    margin-bottom: 12px;
    padding: 8px 14px;
    background: transparent;
    border-radius: 0;
    font-size: 13px;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}
.comment-reply-cancel { background: none; border: none; color: var(--text-tertiary); cursor: pointer; font-size: 12px; margin-left: 8px; }
.comment-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 12px; }
.comment-form-field { margin-bottom: 12px; }
.comment-label { display: block; font-size: 12px; margin-bottom: 6px; font-weight: 400; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.06em; }
.comment-input {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text);
    transition: border-color var(--transition);
}
.comment-input:focus { border-color: var(--text-tertiary); outline: none; box-shadow: none; }
.comment-textarea {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text);
    resize: vertical;
    transition: border-color var(--transition);
    line-height: 1.8;
}
.comment-textarea:focus { border-color: var(--text-tertiary); outline: none; box-shadow: none; }
.comments-empty { color: var(--text-faint); font-size: 14px; text-align: center; padding: 24px; font-weight: 300; }
.comments-list { margin-top: 24px; }
.comment-item {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-light);
}
.comment-item:last-child { border-bottom: none; }
.comment-header { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.comment-avatar {
    width: 32px;
    height: 32px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    font-weight: 400;
    font-size: 13px;
    flex-shrink: 0;
    box-shadow: none;
}
.comment-avatar--small { width: 26px; height: 26px; font-size: 11px; }
.comment-info strong { font-size: 13px; display: block; font-weight: 400; }
.comment-time { color: var(--text-faint); font-size: 11px; margin-left: 8px; }
.comment-body { font-size: 14px; line-height: 1.8; color: var(--text-secondary); margin-bottom: 8px; font-weight: 300; }
.comment-reply-btn {
    background: none;
    border: none;
    color: var(--text-faint);
    cursor: pointer;
    font-size: 12px;
    padding: 0;
    border-radius: 0;
    transition: color var(--transition);
    font-weight: 300;
}
.comment-reply-btn i { display: none; }
.comment-reply-btn:hover { color: var(--text-secondary); background: transparent; }
.comment-replies {
    margin-top: 16px;
    margin-left: 44px;
    padding-left: 16px;
    border-left: 1px solid var(--border-light);
}
.comment-reply-item {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 16px;
}

/* === Related Posts — minimal text === */
.related-posts { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border-light); }
.related-posts h3 { font-size: 13px; margin-bottom: 20px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-tertiary); }
.related-posts h3 i { display: none; }
.related-posts-grid { display: flex; flex-direction: column; gap: 0; }
.related-post-card {
    display: block;
    padding: 12px 0;
    background: transparent;
    border-radius: 0;
    color: inherit;
    border: none;
    border-bottom: 1px solid var(--border-light);
    transition: color var(--transition);
}
.related-post-card:last-child { border-bottom: none; }
.related-post-card:hover {
    border-color: var(--border);
    box-shadow: none;
    transform: none;
}
.related-post-card h4 { font-size: 14px; font-weight: 400; margin-bottom: 4px; letter-spacing: 0; font-family: var(--font-serif); }
.related-post-card span { font-size: 12px; color: var(--text-faint); font-weight: 300; }

/* === Search Page === */
.search-page { max-width: var(--max-width); margin: 0 auto; padding: 48px 0; }
.search-title {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 32px;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 10px;
}
.search-title i { display: none; }
.search-form { display: flex; gap: 8px; margin-bottom: 32px; }
.search-input {
    flex: 1;
    padding: 10px 16px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 14px;
    transition: border-color var(--transition);
}
.search-input:focus { border-color: var(--text-tertiary); outline: none; box-shadow: none; }
.search-form .btn { padding: 10px 20px; }
.search-form .btn i { display: none; }

/* === Highlight === */
mark {
    background: var(--highlight-bg);
    color: var(--highlight-color);
    padding: 1px 4px;
    border-radius: 2px;
    font-weight: 400;
}

/* === Focus visible === */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
    outline: 1px solid var(--text-tertiary);
    outline-offset: 2px;
    border-radius: 2px;
}

/* === Post Content — reading typography === */
.post-content {
    line-height: 1.9;
    font-size: 16px;
    color: var(--text);
    margin-bottom: 32px;
    overflow-wrap: break-word;
    word-break: break-word;
    font-weight: 300;
}
.post-content p { margin-bottom: 24px; }
.post-content h2 {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 400;
    margin: 48px 0 16px;
    color: var(--text);
    border-left: none;
    padding-left: 0;
    letter-spacing: -0.01em;
    line-height: 1.3;
}
.post-content h3 {
    font-size: 18px;
    font-weight: 500;
    margin: 36px 0 12px;
    color: var(--text);
    letter-spacing: 0;
}
.post-content img {
    max-width: 100%;
    border-radius: var(--radius);
    margin: 24px 0;
    box-shadow: none;
}
.post-content code {
    background: var(--code-bg);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.88em;
    color: var(--accent);
    font-family: var(--font-mono);
    border: 1px solid var(--border-light);
}
.post-content pre {
    background: var(--code-bg);
    padding: 20px;
    border-radius: var(--radius);
    overflow-x: auto;
    margin: 24px 0;
    font-size: 13px;
    -webkit-overflow-scrolling: touch;
    line-height: 1.7;
    position: relative;
    border: 1px solid var(--border-light);
}
.post-content pre code {
    background: none;
    padding: 0;
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 13px;
    border: none;
}
.post-content blockquote {
    background: transparent;
    border-left: 2px solid var(--border);
    padding: 16px 0 16px 20px;
    margin: 24px 0;
    border-radius: 0;
    font-style: normal;
    color: var(--text-secondary);
    font-weight: 300;
}
.post-content a { color: var(--accent); text-decoration: none; }
.post-content a:hover { text-decoration: underline; }
.post-content ul, .post-content ol { margin: 20px 0; padding-left: 24px; }
.post-content li { margin-bottom: 8px; }
.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 14px;
    border-radius: 0;
    overflow: hidden;
}
.post-content th, .post-content td { padding: 10px 14px; border: 1px solid var(--border-light); text-align: left; }
.post-content th { background: transparent; font-weight: 500; }

/* === Mobile Nav — slide panel, minimal === */
.hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 0;
    transition: color var(--transition);
}
.hamburger:hover { color: var(--text-secondary); background: transparent; }

.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.3);
    z-index: 200;
    opacity: 0;
    transition: opacity var(--transition);
    backdrop-filter: blur(2px);
}
.mobile-nav-overlay.active { opacity: 1; }

.mobile-nav {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100%;
    background: var(--bg);
    z-index: 201;
    transition: right var(--transition);
    padding: 24px;
    box-shadow: none;
    border-left: 1px solid var(--border-light);
}
.mobile-nav.active { right: 0; }

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
}
.mobile-nav-header span {
    font-family: var(--font-serif);
    font-size: 16px;
    font-weight: 400;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}
.mobile-nav-close { background: none; border: none; color: var(--text-tertiary); font-size: 18px; cursor: pointer; padding: 4px; }
.mobile-nav-close:hover { color: var(--text); }

.mobile-nav-links { list-style: none; padding: 0; margin: 0; }
.mobile-nav-links li { border-bottom: 1px solid var(--border-light); }
.mobile-nav-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 0;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 300;
    text-decoration: none;
    border-radius: 0;
    transition: color var(--transition);
}
.mobile-nav-links a:hover, .mobile-nav-links a.active { color: var(--text); background: transparent; }
.mobile-nav-links a i { width: 18px; text-align: center; display: none; }

.mobile-nav-actions {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-sidebar { display: block; }
.mobile-sidebar-toggle { display: none; }

/* === Sidebar shown on all screens, below posts === */
.blog-grid > .sidebar {
    display: block;
    margin-top: 64px;
    border-top: 1px solid var(--border-light);
    padding-top: 32px;
}
.blog-grid > .sidebar .sidebar-widget:first-child {
    margin-top: 0;
}

/* === Responsive === */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hamburger { display: block; }
    .mobile-search-inline { display: flex !important; flex: 1; margin: 0 8px; }
    .mobile-search-inline input {
        flex: 1;
        padding: 6px 12px;
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        background: transparent;
        color: var(--text);
        font-size: 13px;
        outline: none;
        min-width: 0;
    }
    .mobile-search-inline button { background: none; border: none; color: var(--text-tertiary); cursor: pointer; padding: 6px 8px; font-size: 13px; }
    .blog-grid { grid-template-columns: 1fr; gap: 0; }
    .container { padding: 0 20px; }
    .nav-brand { font-size: 16px; }
    .post-card-body { padding: 0; }
    .post-card-meta { flex-wrap: wrap; gap: 8px; }
    .pagination a, .pagination span { padding: 6px 12px; font-size: 12px; }
    .pagination { gap: 4px; }
    .hero { padding: 48px 0 40px; }
    .comment-form-row { grid-template-columns: 1fr; }
    .comment-replies { margin-left: 20px; padding-left: 12px; }
    .article-wrapper { padding: 32px 0; }
    .article-cover { border-radius: var(--radius); max-height: 240px; }
}

@media (max-width: 480px) {
    .post-card-title { font-size: 18px; }
    .container { padding: 0 16px; }
    .search-form { flex-direction: column; }
    .post-grid { grid-template-columns: 1fr; }
    .hero { padding: 32px 0 32px; }
    .hero h1 { font-size: 24px; }
}

/* === Login Page Card === */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: none;
}
