:root {
	--bg: #ffffff;
	--fg: #1f2430;
	--muted: #6b7280;
	--accent: #f6821f;
	--accent-soft: #fff3e6;
	--card: #f9fafb;
	--border: #e5e7eb;
}

@media (prefers-color-scheme: dark) {
	:root {
		--bg: #0f1117;
		--fg: #e5e7eb;
		--muted: #9ca3af;
		--accent: #fbad41;
		--accent-soft: #2a2013;
		--card: #171a23;
		--border: #262b38;
	}
}

* { box-sizing: border-box; }

body {
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
		"Hiragino Sans GB", "Microsoft YaHei", sans-serif;
	background: var(--bg);
	color: var(--fg);
	line-height: 1.75;
	-webkit-font-smoothing: antialiased;
}

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

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

/* Header */
header.site {
	border-bottom: 1px solid var(--border);
	padding: 40px 0 28px;
	margin-bottom: 40px;
}
header.site .logo {
	font-size: 1.6rem;
	font-weight: 700;
	color: var(--fg);
	letter-spacing: -0.02em;
}
header.site .logo span { color: var(--accent); }
header.site .tagline {
	margin: 6px 0 0;
	color: var(--muted);
	font-size: 0.95rem;
}

/* Post list */
.post-card {
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: 12px;
	padding: 24px 28px;
	margin-bottom: 20px;
	transition: border-color 0.15s ease;
}
.post-card:hover { border-color: var(--accent); }
.post-card h2 { margin: 0 0 6px; font-size: 1.25rem; line-height: 1.4; }
.post-card h2 a { color: var(--fg); }
.post-card h2 a:hover { color: var(--accent); text-decoration: none; }
.post-card time { color: var(--muted); font-size: 0.85rem; }
.post-card p { margin: 10px 0 12px; color: var(--fg); font-size: 0.95rem; }
.read-more { font-size: 0.9rem; font-weight: 500; }

/* Article */
article.post header { margin-bottom: 28px; }
article.post h1 {
	font-size: 1.9rem;
	line-height: 1.3;
	margin: 0 0 10px;
	letter-spacing: -0.02em;
}
article.post time { color: var(--muted); font-size: 0.9rem; }
article.post h2 { font-size: 1.3rem; margin-top: 2em; }
article.post p, article.post li { font-size: 1rem; }
article.post code {
	background: var(--accent-soft);
	color: var(--accent);
	padding: 2px 6px;
	border-radius: 5px;
	font-size: 0.88em;
	font-family: "SF Mono", Consolas, "Cascadia Code", monospace;
}
article.post pre {
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: 10px;
	padding: 16px 20px;
	overflow-x: auto;
	line-height: 1.55;
}
article.post pre code {
	background: none;
	color: var(--fg);
	padding: 0;
	font-size: 0.85rem;
}
article.post blockquote {
	margin: 1.5em 0;
	padding: 4px 20px;
	border-left: 3px solid var(--accent);
	color: var(--muted);
	background: var(--card);
	border-radius: 0 8px 8px 0;
}
.back-link { display: inline-block; margin-bottom: 24px; font-size: 0.9rem; }

/* Footer */
footer.site {
	border-top: 1px solid var(--border);
	margin-top: 64px;
	padding: 28px 0 40px;
	color: var(--muted);
	font-size: 0.88rem;
}
footer.site a { color: var(--muted); }
footer.site a:hover { color: var(--accent); }
