/* The site's one stylesheet. Static, no build step, no fonts to fetch.
   The pages render the archive; this only makes them readable — on a phone
   first, because that is where a reader actually is (spec 0002, story 12). */

:root {
	--ink: #16181d;
	--paper: #fbfaf7;
	--muted: #6b7280;
	--rule: #e3e0d8;
	--accent: #1d4ed8;
	--quote: #f2efe6;
	--watch: #b45309;
}

@media (prefers-color-scheme: dark) {
	:root {
		--ink: #e8e6e1;
		--paper: #14161a;
		--muted: #9aa1ab;
		--rule: #2a2e36;
		--accent: #8cb4ff;
		--quote: #1c1f25;
		--watch: #f0b25b;
	}
}

* { box-sizing: border-box; }

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

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font: 1.0625rem/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
		"Helvetica Neue", Arial, sans-serif;
}

main {
	max-width: 44rem;
	margin: 0 auto;
	padding: 1.5rem 1.15rem 4rem;
}

a { color: var(--accent); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }

h1 {
	font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.15rem);
	line-height: 1.25;
	margin: 0 0 0.75rem;
	letter-spacing: -0.011em;
}

h2 {
	font-size: 1.2rem;
	line-height: 1.3;
	margin: 2.25rem 0 0.75rem;
	padding-top: 0.75rem;
	border-top: 1px solid var(--rule);
}

h3 {
	font-size: 1.05rem;
	margin: 1.75rem 0 0.5rem;
}

p { margin: 0 0 1rem; }

ul, ol { padding-left: 1.15rem; }
li { margin: 0.3rem 0; }

/* the index: one line per claim, the counts quieter than the claim */
main > ul > li { margin: 0.55rem 0; }
small { color: var(--muted); }

blockquote {
	margin: 0.75rem 0;
	padding: 0.15rem 0 0.15rem 0.9rem;
	border-left: 3px solid var(--accent);
	background: var(--quote);
	border-radius: 0 4px 4px 0;
}
blockquote p { margin: 0.5rem 0; }

blockquote + p, .attribution, figcaption, .counts, .provenance, .note, .caveat {
	color: var(--muted);
	font-size: 0.92rem;
}

.watched, .draft, .caveat {
	border-left: 3px solid var(--watch);
	padding-left: 0.9rem;
}

.draft { color: var(--watch); }

.provenance, .note { margin-top: 2.5rem; }

code, .ref, .slug {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.85em;
	color: var(--muted);
	word-break: break-word;
}

/* the shell: every page names the site and the two things a reader can do */
nav.site {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	margin: 0 0 1.75rem;
	padding-bottom: 0.7rem;
	border-bottom: 1px solid var(--rule);
	font-size: 0.95rem;
}
nav.site a { white-space: nowrap; }
nav.site a + a::before { content: "·"; color: var(--muted); margin: 0 0.6rem; }
nav.site .brand { font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
nav.site .brand::after { content: " —"; color: var(--muted); font-weight: 400; }

.back { margin-bottom: 1.5rem; font-size: 0.95rem; }

section.side { margin-top: 2rem; }
section.side h2 { border-top: 0; padding-top: 0; }

footer {
	margin-top: 3rem;
	padding-top: 0.75rem;
	border-top: 1px solid var(--rule);
	color: var(--muted);
	font-size: 0.92rem;
}

figure.inline-quote { margin: 1.25rem 0; }

@media (max-width: 30rem) {
	main { padding: 1.15rem 0.9rem 3rem; }
	body { font-size: 1.03rem; }
}
