:root { --bg: #fafaf9; --card: #ffffff; --code: #f5f5f4; --text: #1c1917; --muted: #57534e; --border: #e7e5e4; --accent: #059669; --accent-soft: #d1fae5; }
[data-theme="dark"] { --bg: #0c0a09; --card: #1c1917; --code: #292524; --text: #e7e5e4; --muted: #a8a29e; --border: #292524; --accent: #34d399; --accent-soft: rgba(52,211,153,0.14); }
* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--text); line-height: 1.72; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
header { background: var(--card); border-bottom: 1px solid var(--border); }
.wrap { max-width: 820px; margin: 0 auto; padding: 0 22px; }
.nav-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand img { width: 22px; height: 22px; }
nav { display: flex; gap: 18px; align-items: center; font-size: 0.92rem; }
nav a { color: var(--muted); }
nav a.active, nav a:hover { color: var(--text); text-decoration: none; }
.theme-btn { border: 1px solid var(--border); background: var(--bg); color: var(--text); border-radius: 6px; padding: 4px 10px; font-size: 0.82rem; cursor: pointer; }
main { padding: 34px 0 64px; }
h1 { margin: 0 0 8px; font-size: 1.75rem; letter-spacing: -0.02em; }
.subtitle { color: var(--muted); margin: 0 0 28px; }
.post { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 20px 22px; margin-bottom: 16px; }
.post h2 { margin: 0 0 6px; font-size: 1.15rem; border: none; padding: 0; }
.post p { margin: 0 0 8px; color: var(--muted); font-size: 0.94rem; }
.meta { font-size: 0.82rem; color: var(--muted); }
.tag { display: inline-block; font-size: 0.74rem; padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); margin-right: 6px; }
pre { background: var(--code); border: 1px solid var(--border); border-radius: 8px; padding: 14px 16px; overflow-x: auto; font-size: 0.86rem; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.88em; }
footer { border-top: 1px solid var(--border); padding: 20px 0; text-align: center; color: var(--muted); font-size: 0.84rem; }
