:root {
  --bg: #0d1117; --text: #e6edf3; --muted: #8b949e; --accent: #58a6ff;
  --surface: #161b22; --border: #30363d; --green: #3fb950; --blue: #58a6ff;
  --code-bg: #1c2129;
}
.light {
  --bg: #fafafa; --text: #1a1a1a; --muted: #666; --accent: #0055d4;
  --surface: #fff; --border: #e5e5e5; --green: #16803c; --blue: #0055d4;
  --code-bg: #f0f0f0;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif; background: var(--bg); color: var(--text); line-height: 1.7; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Layout */
.container { max-width: 720px; margin: 0 auto; padding: 40px 24px; }

/* Nav */
nav { border-bottom: 1px solid var(--border); padding: 16px 0; }
nav .nav-inner { max-width: 720px; margin: 0 auto; padding: 0 24px; display: flex; justify-content: space-between; align-items: center; }
nav .site-name { font-size: 18px; font-weight: 700; color: var(--text); text-decoration: none; }
nav .site-name:hover { text-decoration: none; color: var(--accent); }
nav .nav-links { display: flex; gap: 20px; align-items: center; font-size: 14px; }
nav .nav-links a { color: var(--muted); }
nav .nav-links a:hover, nav .nav-links a.active { color: var(--text); text-decoration: none; }
.theme-toggle { background: none; border: 1px solid var(--border); border-radius: 6px; padding: 4px 8px; cursor: pointer; font-size: 14px; color: var(--muted); }
.theme-toggle:hover { color: var(--text); border-color: var(--muted); }

/* Blog listing */
.blog-header { margin-bottom: 40px; }
.blog-header h1 { font-size: 32px; font-weight: 700; letter-spacing: -0.5px; margin-bottom: 8px; }
.blog-header p { color: var(--muted); font-size: 15px; }

.post-list { list-style: none; }
.post-item { border-bottom: 1px solid var(--border); padding: 24px 0; }
.post-item:last-child { border-bottom: none; }
.post-item .post-date { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.post-item h2 { font-size: 20px; font-weight: 600; margin-bottom: 6px; }
.post-item h2 a { color: var(--text); }
.post-item h2 a:hover { color: var(--accent); text-decoration: none; }
.post-item .post-excerpt { font-size: 14px; color: var(--muted); line-height: 1.6; }
.post-item .post-tags { margin-top: 8px; display: flex; gap: 6px; flex-wrap: wrap; }
.post-tag { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 2px 10px; font-size: 12px; color: var(--muted); }

/* Article */
article { margin-bottom: 48px; }
article header { margin-bottom: 32px; }
article header h1 { font-size: 32px; font-weight: 700; letter-spacing: -0.5px; line-height: 1.3; margin-bottom: 12px; }
article .article-meta { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
article .article-tags { display: flex; gap: 6px; flex-wrap: wrap; }
article .content { font-size: 16px; line-height: 1.8; }
article .content h2 { font-size: 22px; margin: 32px 0 12px; font-weight: 600; }
article .content h3 { font-size: 18px; margin: 24px 0 8px; font-weight: 600; }
article .content p { margin-bottom: 16px; }
article .content ul, article .content ol { margin-bottom: 16px; padding-left: 24px; }
article .content li { margin-bottom: 6px; }
article .content blockquote { border-left: 3px solid var(--accent); padding-left: 16px; margin: 16px 0; color: var(--muted); font-style: italic; }
article .content code { background: var(--code-bg); padding: 2px 6px; border-radius: 4px; font-size: 14px; }
article .content pre { background: var(--code-bg); padding: 16px; border-radius: 8px; overflow-x: auto; margin-bottom: 16px; }
article .content pre code { background: none; padding: 0; }
article .content strong { color: var(--text); }

/* About page */
.hero { margin-bottom: 48px; }
.hero h1 { font-size: 36px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.5px; }
.hero .subtitle { font-size: 18px; color: var(--muted); margin-bottom: 16px; }
.hero .thesis { font-size: 15px; color: var(--text); line-height: 1.7; border-left: 3px solid var(--accent); padding-left: 16px; margin-top: 16px; }
.links { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 16px; font-size: 14px; }
.avatar { width: 96px; height: 96px; border-radius: 50%; border: 2px solid var(--border); margin-bottom: 16px; }

section { margin-bottom: 48px; }
section h2 { font-size: 14px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); margin-bottom: 20px; font-weight: 600; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 20px; margin-bottom: 12px; }
.card h3 { font-size: 16px; margin-bottom: 4px; }
.card .meta { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--muted); }

.awards-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.award { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 16px; }
.award .name { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.award .org { font-size: 12px; color: var(--muted); }

.edu { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.edu:last-child { border-bottom: none; }
.edu .school { color: var(--muted); font-size: 13px; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 4px 12px; font-size: 13px; }

.meetless-card { background: var(--surface); border: 2px solid var(--accent); border-radius: 8px; padding: 24px; }
.meetless-card h3 { font-size: 20px; margin-bottom: 8px; }
.meetless-card .status { display: inline-block; background: rgba(22,128,60,0.1); color: var(--green); padding: 2px 10px; border-radius: 12px; font-size: 12px; font-weight: 600; margin-bottom: 12px; }
.meetless-card ul { padding-left: 20px; font-size: 14px; color: var(--muted); }
.meetless-card li { margin-bottom: 6px; }

footer { border-top: 1px solid var(--border); padding-top: 24px; font-size: 13px; color: var(--muted); text-align: center; }

@media (max-width: 600px) {
  .awards-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 28px; }
  .container { padding: 40px 16px; }
  article header h1 { font-size: 26px; }
}
