:root {
    --bg: #fafafa;
    --text: #1a1a1a;
    --muted: #6b7280;
    --accent: #0d6efd;
    --accent-hover: #0a58ca;
    --border: #e5e7eb;
    --code-bg: #f3f4f6;
    --card-bg: #ffffff;
    --max-width: 780px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
}

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

code, pre { font-family: "SF Mono", Menlo, Consolas, monospace; }
pre { background: var(--code-bg); padding: 16px; border-radius: 8px; overflow-x: auto; font-size: 0.875rem; }
code { background: var(--code-bg); padding: 2px 6px; border-radius: 4px; font-size: 0.875em; }

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

.site-header {
    border-bottom: 1px solid var(--border);
    background: var(--card-bg);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--text) !important;
}

.main-content { padding: 48px 0 64px; }

.site-footer {
    border-top: 1px solid var(--border);
    padding: 32px 0;
    color: var(--muted);
    font-size: 0.875rem;
}

.hero { margin-bottom: 48px; }
.hero h1 { font-size: 2rem; letter-spacing: -0.03em; line-height: 1.2; margin-bottom: 16px; }
.subtitle { color: var(--muted); font-size: 1.125rem; max-width: 600px; }

.post-list { border-top: 1px solid var(--border); padding-top: 32px; }
.post-preview { padding: 20px 0; border-bottom: 1px solid var(--border); }
.post-preview:last-child { border-bottom: none; }
.post-header time { display: block; color: var(--muted); font-size: 0.875rem; margin-bottom: 4px; }
.post-header h2 { font-size: 1.25rem; letter-spacing: -0.02em; }

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

.topic-section { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border); }
.topic-section h2 { font-size: 1.5rem; letter-spacing: -0.02em; margin-bottom: 8px; }
.empty-hint { color: var(--muted); font-size: 0.9375rem; }

/* Post body */
.post-body h2 { font-size: 1.5rem; margin-top: 40px; margin-bottom: 16px; }
.post-body h3 { font-size: 1.25rem; margin-top: 32px; margin-bottom: 12px; }
.post-body p { margin-bottom: 16px; }
.post-body ul, .post-body ol { margin-bottom: 16px; padding-left: 24px; }
.post-body blockquote { border-left: 3px solid var(--accent); padding: 8px 16px; margin: 16px 0; color: var(--muted); background: rgba(13,110,253,0.04); border-radius: 0 4px 4px 0; }
.post-body img { max-width: 100%; height: auto; border-radius: 8px; margin: 16px 0; }
.post-body table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 0.9375rem; }
.post-body th, .post-body td { padding: 8px 12px; border: 1px solid var(--border); text-align: left; }
.post-body th { background: var(--code-bg); font-weight: 600; }
.post-body hr { border: none; border-top: 1px solid var(--border); margin: 32px 0; }

@media (max-width: 600px) {
    .hero h1 { font-size: 1.5rem; }
    .container { padding: 0 16px; }
    .subtitle { font-size: 1rem; }
}
