/* Simple Blog Theme — jasonwu.ai */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #fafafa;
  --fg: #1a1a1a;
  --muted: #666;
  --border: #e0e0e0;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --radius: 8px;
  --max-w: 720px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--fg);
  background: var(--bg);
}

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

/* Header */
.site-header { border-bottom: 1px solid var(--border); padding: 16px 0; }
.site-header nav { display: flex; align-items: center; justify-content: space-between; }
.site-title { font-size: 1.1rem; font-weight: 700; text-decoration: none; color: var(--fg); }
.nav-links { display: flex; gap: 20px; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: 0.95rem; }
.nav-links a:hover { color: var(--accent); }

/* Main */
main { padding: 40px 0; min-height: 60vh; }

/* Hero */
.hero { text-align: center; padding: 60px 0 40px; }
.hero h1 { font-size: 1.4rem; font-weight: 400; color: var(--muted); line-height: 1.5; }
.hero p { margin-top: 12px; color: var(--muted); font-size: 1rem; }

/* Post List */
.recent-posts h2, .list-page h1 { font-size: 1.3rem; margin-bottom: 24px; padding-bottom: 8px; border-bottom: 2px solid var(--accent); }

.post-list { display: flex; flex-direction: column; gap: 28px; }
.post-card { }
.post-meta { font-size: 0.85rem; color: var(--muted); margin-bottom: 4px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.post-tags { display: flex; gap: 6px; }
.tag { text-decoration: none; color: var(--accent); font-size: 0.82rem; }
.tag:hover { text-decoration: underline; }
.post-title { font-size: 1.2rem; margin: 4px 0 8px; }
.post-title a { text-decoration: none; color: var(--fg); }
.post-title a:hover { color: var(--accent); }
.post-summary { color: var(--muted); font-size: 0.95rem; line-height: 1.5; }

/* Single Post */
.post-header { margin-bottom: 32px; }
.post-header h1 { font-size: 1.8rem; line-height: 1.3; }
.post-content { }
.post-content h2 { font-size: 1.3rem; margin: 28px 0 12px; }
.post-content h3 { font-size: 1.1rem; margin: 24px 0 8px; }
.post-content p { margin-bottom: 16px; }
.post-content code { background: #f0f0f0; padding: 2px 6px; border-radius: 4px; font-size: 0.9em; }
.post-content pre { background: #1a1a1a; color: #f0f0f0; padding: 16px; border-radius: var(--radius); overflow-x: auto; margin-bottom: 16px; }
.post-content pre code { background: none; padding: 0; }
.post-content a { color: var(--accent); }
.post-content blockquote { border-left: 3px solid var(--accent); padding-left: 16px; margin: 16px 0; color: var(--muted); }
.post-content ul, .post-content ol { margin: 0 0 16px 20px; }
.post-content li { margin-bottom: 4px; }
.post-content hr { border: none; border-top: 1px solid var(--border); margin: 32px 0; }
.post-content img { max-width: 100%; height: auto; border-radius: var(--radius); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 24px 0; text-align: center; color: var(--muted); font-size: 0.85rem; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.pagination a, .pagination span { padding: 8px 14px; border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; color: var(--fg); font-size: 0.9rem; }
.pagination .active { background: var(--accent); color: white; border-color: var(--accent); }
.pagination a:hover { border-color: var(--accent); }
