/* blog.jbvsmo.com — aesthetics matched to jbvsmo.com (void/cream/bronze,
   Newsreader + IBM Plex Mono, sparse editorial sheet). Fonts are SIL OFL
   (see fonts/*-OFL.txt), copied from the main site's repo. */

@font-face {
	font-family: "Newsreader";
	src: url("fonts/newsreader-500.woff2") format("woff2");
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Newsreader";
	src: url("fonts/newsreader-400.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "IBM Plex Mono";
	src: url("fonts/ibm-plex-mono-400.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

:root {
	--void: #0e0d0c;
	--cream: #f3eee6;
	--ink: #1c1915;
	--muted: #6f675f;
	--bronze: #a68456;
	--quiet: #c9c1b6;
	--serif: "Newsreader", "Iowan Old Style", Palatino, "Palatino Linotype", serif;
	--mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

* { box-sizing: border-box; }

html { background: var(--void); }

body {
	margin: 0;
	color: var(--cream);
	background: var(--void);
	font-family: var(--serif);
	font-weight: 400;
	font-size: 1.15rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

::selection {
	background: #e4d3b4;
	color: var(--ink);
}

a { color: inherit; }

.wrap {
	max-width: 44rem;
	margin: 0 auto;
	padding: 12vh 8vw 3rem;
}

@media (max-width: 760px) {
	.wrap { padding: 8vh 1.4rem 2.4rem; }
}

/* Masthead (index) */

.masthead h1 {
	margin: 0;
	font-weight: 500;
	font-size: clamp(2.6rem, 7vw, 4.6rem);
	line-height: 0.95;
	letter-spacing: -0.02em;
}

.masthead .rule,
article .rule {
	display: block;
	width: 2.25rem;
	height: 1px;
	margin: 1.6rem 0 1.2rem;
	background: var(--bronze);
}

.masthead .lede {
	max-width: 24em;
	margin: 0;
	color: var(--quiet);
	font-size: clamp(1.1rem, 2vw, 1.3rem);
	line-height: 1.4;
}

/* Post list */

.entries { margin-top: 14vh; }

.entry { margin-bottom: 3.2rem; }

.entry h2 {
	margin: 0;
	font-weight: 500;
	font-size: 1.7rem;
	line-height: 1.15;
}

.entry h2 a { text-decoration: none; }
.entry h2 a:hover { color: var(--quiet); }

.entry .meta,
article .meta {
	font-family: var(--mono);
	font-size: 0.75rem;
	color: var(--muted);
	margin: 0.5rem 0 0.65rem;
}

.entry p {
	margin: 0;
	color: var(--quiet);
	max-width: 34em;
}

/* Article */

article h1 {
	margin: 0;
	font-weight: 500;
	font-size: clamp(2.2rem, 5.5vw, 3.4rem);
	line-height: 1.02;
	letter-spacing: -0.02em;
}

article p { max-width: 36em; }

article h2 {
	margin: 2.6rem 0 0.6rem;
	font-weight: 500;
	font-size: 1.5rem;
	line-height: 1.2;
}

article h3 {
	margin: 2.2rem 0 0.5rem;
	font-weight: 500;
	font-size: 1.25rem;
}

article ul { max-width: 36em; padding-left: 1.2rem; }

article a {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.22em;
}

article a:hover { color: var(--quiet); }

code {
	font-family: var(--mono);
	font-size: 0.85em;
	background: rgba(243, 238, 230, 0.08);
	padding: 0.1em 0.35em;
	border-radius: 3px;
}

pre { max-width: 36em; overflow-x: auto; }
pre code { display: block; padding: 1em; }

/* Site header (post pages) and shared footer */

header.site {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 14vh;
	font-family: var(--mono);
	font-size: 0.75rem;
}

header.site a {
	color: var(--quiet);
	text-decoration: none;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

header.site a:hover { color: var(--cream); }

footer {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 1.75rem;
	margin-top: 14vh;
	padding-top: 1.25rem;
	border-top: 1px solid rgba(243, 238, 230, 0.16);
	font-family: var(--mono);
	font-size: 0.75rem;
	color: var(--quiet);
}

footer a {
	color: inherit;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.22em;
}

footer a:hover { color: var(--cream); }
