:root {
	--bg: #ffffff;
	--fg: #000000;
	--accent: #0000ff;
	--accent-visited: #551a8b;
	--code-bg: #1e1e1e;
	--code-fg: #f8f8f2;
	--border: #000000;
}

@media (prefers-color-scheme: dark) {
	:root {
		--bg: #121212;
		--fg: #e0e0e0;
		--accent: #66b2ff;
		--accent-visited: #bb99ff;
		--code-bg: #000000;
		--code-fg: #50fa7b;
		--border: #e0e0e0;
	}
}

html {
	background-color: var(--bg);
	color: var(--fg);
}

body {
	max-width: 42em;
	margin: 2rem auto;
	padding: 0 1rem;
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, monospace;
	line-height: 1.5;
}

header {
	font-size: 1.8rem;
	font-weight: 900;
	text-transform: uppercase;
	margin-bottom: 0.5rem;
}

nav {
	margin-bottom: 1rem;
	font-weight: bold;
}

nav a {
	margin-right: 0.8rem;
}

hr {
	border: 0;
	border-top: 2px solid var(--border);
	margin: 1.5rem 0;
}

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

a:visited {
	color: var(--accent-visited);
}

a:hover {
	background-color: var(--fg);
	color: var(--bg);
	text-decoration: none;
}

h1, h2, h3, h4 {
	font-weight: 900;
	line-height: 1.2;
	margin-top: 1.8rem;
	margin-bottom: 0.5rem;
	text-transform: uppercase;
}

h1 { font-size: 1.6rem; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.1rem; }

pre {
	background-color: var(--code-bg);
	color: var(--code-fg);
	padding: 1rem;
	overflow-x: auto;
	border: 2px solid var(--border);
	font-family: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, monospace;
	font-size: 0.9rem;
	line-height: 1.4;
}

code {
	font-family: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, monospace;
	background-color: rgba(127, 127, 127, 0.15);
	padding: 0.15rem 0.3rem;
	font-size: 0.9em;
}

pre code {
	background-color: transparent;
	padding: 0;
}

/* Lists & Metadata */
ul {
	padding-left: 1.2rem;
}

.post-list {
	list-style: none;
	padding: 0;
}

.post-list li {
	display: flex;
	gap: 1rem;
	margin-bottom: 0.5rem;
}

.date {
	font-family: ui-monospace, monospace;
	font-size: 0.88rem;
	color: var(--fg);
	opacity: 0.8;
}

table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.5rem 0;
}

th, td {
	border: 2px solid var(--border);
	padding: 0.5rem;
	text-align: left;
}

th {
	background-color: var(--fg);
	color: var(--bg);
}

blockquote {
	border-left: 4px solid var(--border);
	margin: 1rem 0;
	padding-left: 1rem;
	font-style: italic;
}

footer {
	margin-top: 2rem;
	font-size: 0.85rem;
}

.footer-row {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex-wrap: wrap;
}
