/* Lean base: reset + design tokens + bare shell defaults.
   Site-specific styles belong in the lean_site_css option (or inline in
   page content) — override the tokens there, don't edit this file. */

:root {
	--color-bg: #ffffff;
	--color-text: #1c1c1c;
	--color-muted: #6b7280;
	--color-accent: #2563eb;
	--color-border: #e5e7eb;
	--font-sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--font-mono: ui-monospace, "Cascadia Code", Consolas, Menlo, monospace;
	--space-1: 0.25rem;
	--space-2: 0.5rem;
	--space-3: 1rem;
	--space-4: 2rem;
	--space-5: 4rem;
	--content-width: 70rem;
	--text-width: 42rem;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
	font-family: var(--font-sans);
	line-height: 1.6;
	color: var(--color-text);
	background: var(--color-bg);
	-webkit-font-smoothing: antialiased;
}
img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; }
p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }
h1, h2, h3, h4, h5, h6 { line-height: 1.2; }
a { color: var(--color-accent); }
code, pre, kbd { font-family: var(--font-mono); }
pre { overflow-x: auto; }

/* Accessibility */
.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

/* Site shell */
.site-header, .site-main, .site-footer {
	width: min(100% - 2 * var(--space-3), var(--content-width));
	margin-inline: auto;
}
.site-header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-3);
	padding-block: var(--space-3);
}
.site-title {
	font-weight: 700;
	text-decoration: none;
	color: inherit;
}
.site-nav ul {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-3);
	list-style: none;
	margin: 0;
	padding: 0;
}
.site-nav a { text-decoration: none; }
.site-nav a:hover { text-decoration: underline; }
.site-nav ul ul { display: none; } /* Per-site CSS decides how submenus appear. */
.site-main { min-height: 60vh; padding-block: var(--space-4); }
.site-footer {
	padding-block: var(--space-4);
	color: var(--color-muted);
	border-top: 1px solid var(--color-border);
}

/* Blog listing / single */
.site-main > article, .site-main > .page-header { max-width: var(--text-width); }
.site-main > article + article { margin-top: var(--space-4); }
.entry-title a { color: inherit; text-decoration: none; }
.entry-title a:hover { text-decoration: underline; }
.entry-meta { color: var(--color-muted); font-size: 0.875rem; }
.entry-content > * + * { margin-top: var(--space-3); }
.page-header { margin-bottom: var(--space-4); }
.pagination .nav-links {
	display: flex;
	gap: var(--space-2);
	margin-top: var(--space-4);
}

/* Form defaults */
input[type="text"], input[type="email"], input[type="url"], input[type="tel"],
input[type="search"], input[type="number"], input[type="password"], textarea, select {
	padding: var(--space-2) var(--space-3);
	border: 1px solid var(--color-border);
	border-radius: 4px;
	background: var(--color-bg);
	color: inherit;
	max-width: 100%;
}
button, input[type="submit"] {
	padding: var(--space-2) var(--space-3);
	border: none;
	border-radius: 4px;
	background: var(--color-accent);
	color: #fff;
	cursor: pointer;
}
button:hover, input[type="submit"]:hover { opacity: 0.9; }
.search-form { display: flex; gap: var(--space-2); }
