/* Default theme — semantic, fast, no JS (master-plan §8).
   Accent comes from the blog's validated hex via a :root override
   emitted in _head.html; font-sans/font-serif from the manifest-driven
   `font` setting. */

:root {
	--accent: #0f62fe;
	--text: #1a1a1a;
	--muted: #6b6b6b;
	--rule: #e5e5e5;
	--bg: #ffffff;
}

* { box-sizing: border-box; }

body {
	margin: 0 auto;
	padding: 0 1.25rem;
	max-width: 42rem;
	background: var(--bg);
	color: var(--text);
	line-height: 1.65;
	-webkit-text-size-adjust: 100%;
}
body.font-sans { font-family: system-ui, -apple-system, "Segoe UI", sans-serif; }
body.font-serif { font-family: Georgia, "Times New Roman", serif; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header / footer */
.site-header { padding: 2.5rem 0 1.5rem; border-bottom: 1px solid var(--rule); }
.site-title {
	font-size: 1.6rem;
	font-weight: 700;
	color: var(--text);
}
.site-title:hover { color: var(--accent); text-decoration: none; }
.site-tagline { margin: 0.25rem 0 0; color: var(--muted); }

main { padding: 1.5rem 0 3rem; min-height: 50vh; }

.site-footer {
	padding: 1.5rem 0 2.5rem;
	border-top: 1px solid var(--rule);
	color: var(--muted);
	font-size: 0.9rem;
}
.site-footer p { margin: 0.25rem 0; }

/* Post list */
.post-list { list-style: none; margin: 0; padding: 0; }
.post-item { padding: 1.25rem 0; border-bottom: 1px solid var(--rule); }
.post-item:last-child { border-bottom: none; }
.post-item h2 { margin: 0 0 0.15rem; font-size: 1.25rem; }
.post-item h2 a { color: var(--text); }
.post-item h2 a:hover { color: var(--accent); }
.post-item time { color: var(--muted); font-size: 0.85rem; }
.post-item p { margin: 0.5rem 0 0; }

/* Tags */
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.75rem 0 0; padding: 0; }
.tags li a {
	display: inline-block;
	padding: 0.1rem 0.6rem;
	border: 1px solid var(--rule);
	border-radius: 999px;
	font-size: 0.8rem;
	color: var(--muted);
}
.tags li a:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

/* Single post */
.post h1 { margin: 0 0 0.15rem; font-size: 1.9rem; line-height: 1.25; }
.post > time { color: var(--muted); font-size: 0.9rem; }
.post .cover { display: block; width: 100%; height: auto; border-radius: 6px; margin: 1.25rem 0; }
.post-body { margin-top: 1.25rem; }
.post-body img { max-width: 100%; height: auto; }
.post-body pre {
	overflow-x: auto;
	padding: 0.9rem 1rem;
	background: #f6f6f6;
	border-radius: 6px;
	font-size: 0.9rem;
}
.post-body code { background: #f6f6f6; padding: 0.1rem 0.3rem; border-radius: 4px; font-size: 0.92em; }
.post-body pre code { background: none; padding: 0; }
.post-body blockquote {
	margin: 1rem 0;
	padding: 0.25rem 1rem;
	border-left: 3px solid var(--accent);
	color: var(--muted);
}
.post-body table { border-collapse: collapse; width: 100%; }
.post-body th, .post-body td { border: 1px solid var(--rule); padding: 0.4rem 0.6rem; text-align: left; }

/* Pagination */
.pagination {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 2rem;
	font-size: 0.95rem;
}
.pagination .page-no { color: var(--muted); font-size: 0.85rem; }

/* Tag page / message page */
.tag-heading { font-size: 1.4rem; margin: 0 0 0.5rem; }
.empty-state { color: var(--muted); padding: 2rem 0; }
.message { text-align: center; padding: 4rem 0; }
.message h1 { font-size: 1.5rem; }
.message p { color: var(--muted); }
