/* style.css — this file plus the templates in ./blog are your entire theme.
   Nothing here depends on a build engine, so nothing here can break on update. */

:root {
	--bg:       #2e2e33;  /* your existing charcoal */
	--fg:       #d7d7d2;  /* warm light gray, easy on the eyes */
	--muted:    #8b8b93;  /* dates, footer, secondary text */
	--accent:   #d9a86c;  /* warm sand — links (not the usual acid green) */
	--accent-hi:#f0c08a;  /* link hover */
	--rule:     #3c3c43;  /* hairlines */
	--code:     #26262a;  /* code background */
}

* { box-sizing: border-box; }

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

body {
	margin: 0;
	background: var(--bg);
	color: var(--fg);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
	             Helvetica, Arial, sans-serif;
	line-height: 1.65;
}

/* readable column, ~70 chars */
header.site, main, footer.site {
	max-width: 42rem;
	margin-inline: auto;
	padding-inline: 1.25rem;
}

header.site { padding-top: 2.5rem; padding-bottom: 1.5rem; }
header.site a {
	color: var(--fg);
	text-decoration: none;
	font-weight: 700;
	font-size: 1.05rem;
	letter-spacing: .01em;
}
header.site a:hover { color: var(--fg); }

main { padding-bottom: 3rem; }

footer.site {
	margin-top: 3rem;
	padding-top: 1.25rem;
	padding-bottom: 3rem;
	border-top: 1px solid var(--rule);
	color: var(--muted);
	font-size: .85rem;
}

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

h1, h2, h3 { line-height: 1.25; font-weight: 700; }
article h1 { font-size: 1.7rem; margin: .2em 0 .1em; }
article h2 { font-size: 1.3rem; margin: 2rem 0 .5rem; }

/* the one signature flourish: monospace, terminal-flavored dates */
article > time {
	display: block;
	margin-bottom: 2rem;
	color: var(--muted);
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: .8rem;
}

p { margin: 1.1em 0; }

code {
	background: var(--code);
	padding: .15em .35em;
	border-radius: 3px;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: .9em;
}
pre {
	background: var(--code);
	padding: 1rem;
	border-radius: 5px;
	border: 1px solid var(--rule);
	overflow: auto;
}
pre code { background: none; padding: 0; }

blockquote {
	margin: 1.2em 0;
	padding-left: 1rem;
	border-left: 2px solid var(--accent);
	color: var(--muted);
}

hr { border: 0; border-top: 1px solid var(--rule); margin: 2.5rem 0; }
img { max-width: 100%; height: auto; }

/* index listing */
.index { list-style: none; margin: 0; padding: 0; }
.entry {
	display: flex;
	gap: 1rem;
	align-items: baseline;
	padding: .35rem 0;
}
.entry time {
	flex: none;
	width: 6.5rem;
	color: var(--muted);
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: .8rem;
}
.entry a { font-size: 1.05rem; }

@media (max-width: 30rem) {
	.entry { flex-direction: column; gap: .1rem; }
	.entry time { width: auto; }
}
