/* A small, deliberately plain stylesheet: one column, generous measure,
   system fonts, and a palette that follows the reader's theme. */

:root {
	--bg: #fdfdfc;
	--fg: #21201c;
	--muted: #6f6d66;
	--rule: #e4e2dd;
	--accent: #9a5b2f;
	--code-bg: #f2f1ed;
	--measure: 34rem;
}

@media (prefers-color-scheme: dark) {
	:root {
		--bg: #16151a;
		--fg: #e6e4df;
		--muted: #96938c;
		--rule: #2c2a31;
		--accent: #d99a6c;
		--code-bg: #232128;
	}
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--fg);
	font: 1.0625rem/1.65 ui-serif, Georgia, "Iowan Old Style", "Palatino Linotype", serif;
	padding: 0 1.5rem;
}

.wrap {
	max-width: var(--measure);
	margin: 0 auto;
	padding: 3.5rem 0 5rem;
}

a { color: var(--accent); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }

/* Masthead */

.masthead {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.5rem 1.25rem;
	padding-bottom: 1.25rem;
	border-bottom: 1px solid var(--rule);
	margin-bottom: 2.5rem;
}

.masthead h1 {
	font-size: 1.0625rem;
	margin: 0;
	letter-spacing: 0.01em;
}

.masthead h1 a { color: var(--fg); text-decoration: none; }
.masthead h1 a:hover { color: var(--accent); }

.masthead nav {
	margin-left: auto;
	display: flex;
	gap: 1rem;
	font-family: ui-sans-serif, system-ui, sans-serif;
	font-size: 0.8125rem;
}

.masthead nav a { color: var(--muted); text-decoration: none; }
.masthead nav a:hover { color: var(--accent); }

/* Feed */

.h-feed > * + * {
	margin-top: 2.75rem;
	padding-top: 2.75rem;
	border-top: 1px solid var(--rule);
}

.h-entry .p-name {
	font-size: 1.5rem;
	line-height: 1.25;
	margin: 0 0 0.5rem;
	font-weight: 600;
}

.h-entry .p-name a { color: var(--fg); text-decoration: none; }
.h-entry .p-name a:hover { color: var(--accent); }

.e-content > :first-child { margin-top: 0; }
.e-content > :last-child { margin-bottom: 0; }
.e-content img { max-width: 100%; height: auto; border-radius: 4px; }
.e-content pre {
	background: var(--code-bg);
	padding: 0.9rem 1rem;
	border-radius: 5px;
	overflow-x: auto;
	font-size: 0.875rem;
}
.e-content code {
	font-family: ui-monospace, "SF Mono", Menlo, monospace;
	font-size: 0.9em;
}
.e-content pre code { font-size: inherit; }
.e-content blockquote {
	margin: 1.25rem 0;
	padding-left: 1rem;
	border-left: 2px solid var(--rule);
	color: var(--muted);
}

/* Post metadata */

.meta {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.5rem 0.85rem;
	margin-top: 0.9rem;
	font-family: ui-sans-serif, system-ui, sans-serif;
	font-size: 0.8125rem;
	color: var(--muted);
}

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

.note-permalink { font-weight: 500; }

.p-category::before { content: "#"; opacity: 0.55; }

.badge {
	font-size: 0.6875rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	padding: 0.1rem 0.4rem;
	border: 1px solid var(--rule);
	border-radius: 3px;
}

.response {
	font-family: ui-sans-serif, system-ui, sans-serif;
	font-size: 0.8125rem;
	color: var(--muted);
	margin: 0 0 0.6rem;
}

/* Page furniture */

.page-title {
	font-size: 1.25rem;
	font-weight: 600;
	margin: 0 0 2rem;
	color: var(--muted);
	font-family: ui-sans-serif, system-ui, sans-serif;
}

.empty {
	color: var(--muted);
	font-style: italic;
}

.foot {
	margin-top: 4rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--rule);
	font-family: ui-sans-serif, system-ui, sans-serif;
	font-size: 0.8125rem;
	color: var(--muted);
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}

.foot a { color: var(--muted); }
