/* The blog's own styles (scripts/build-blog.js): its pages have none of the app's */
:root {
	--text: #18181B;
	--text-2: #3F3F46;
	--muted: #71717A;
	--bg: #FFFFFF;
	--surface: #F4F4F5;
	--border: #E4E4E7;
	--accent: #2563EB;
	--on-accent: #FFFFFF;
	color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
	:root {
		--text: #F4F4F5;
		--text-2: #D4D4D8;
		--muted: #9C9CA6;
		--bg: #0B0B0D;
		--surface: #1B1B1F;
		--border: #33333A;
		--accent: #60A5FA;
		--on-accent: #0B0B0D;
	}

	.brand img {
		box-sizing: content-box;
		padding: 4px 8px;
		border-radius: 6px;
		background: #FFFFFF;
	}
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text-2);
	font: 17px/1.7 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

h1, h2, h3 {
	color: var(--text);
	line-height: 1.25;
}

h1 {
	margin: 0 0 12px;
	font-size: clamp(30px, 5vw, 40px);
	letter-spacing: -0.02em;
}

h2 {
	margin: 44px 0 12px;
	font-size: 24px;
}

h3 {
	margin: 28px 0 8px;
	font-size: 19px;
}

.site-header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 24px;
	max-width: 1040px;
	margin: 0 auto;
	padding: 16px;
}

.brand img {
	display: block;
	width: auto;
	height: 30px;
}

.site-header nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 20px;
	font-size: 15px;
}

.site-header nav a:not(.start) {
	color: var(--text-2);
	text-decoration: none;
}

.start {
	display: inline-block;
	padding: 8px 16px;
	border-radius: 8px;
	background: var(--accent);
	color: var(--on-accent);
	font-weight: 600;
	text-decoration: none;
}

main {
	max-width: 720px;
	margin: 0 auto;
	padding: 24px 16px 56px;
}

.crumbs, .dates {
	margin: 0 0 8px;
	color: var(--muted);
	font-size: 14px;
}

.answer {
	margin: 28px 0;
	padding: 16px 20px;
	border-left: 4px solid var(--accent);
	border-radius: 6px;
	background: var(--surface);
	color: var(--text);
}

li {
	margin-bottom: 6px;
}

table {
	width: 100%;
	margin: 20px 0;
	border-collapse: collapse;
	font-size: 15px;
}

th, td {
	padding: 10px 12px;
	border: 1px solid var(--border);
	text-align: left;
	vertical-align: top;
}

th {
	background: var(--surface);
	color: var(--text);
}

@media (max-width: 520px) {
	table {
		display: block;
		overflow-x: auto;
		font-size: 14px;
	}

	th, td {
		padding: 8px;
	}
}

.sources {
	font-size: 15px;
	overflow-wrap: anywhere;
}

.notice {
	margin-top: 36px;
	padding-top: 16px;
	border-top: 1px solid var(--border);
	color: var(--muted);
	font-size: 14px;
}

.trial {
	margin-top: 36px;
	padding: 24px;
	border-radius: 10px;
	background: var(--surface);
}

.trial h2, .more h2 {
	margin-top: 0;
	font-size: 20px;
}

.more {
	margin-top: 36px;
}

.intro {
	margin-bottom: 36px;
}

.posts article {
	padding: 24px 0;
	border-top: 1px solid var(--border);
}

.posts h2 {
	margin: 0 0 8px;
	font-size: 22px;
}

.posts h2 a {
	color: var(--text);
	text-decoration: none;
}

.posts h2 a:hover {
	color: var(--accent);
}

.posts p:last-child {
	margin-bottom: 0;
}

.site-footer {
	padding: 20px 16px;
	border-top: 1px solid var(--border);
	background: var(--surface);
	font-size: 14px;
}

.site-footer ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 4px 20px;
	max-width: 1040px;
	margin: 0 auto;
	padding: 0;
	list-style: none;
}

.site-footer li {
	margin: 0;
}

.site-footer a {
	color: var(--text-2);
}
