:root {
	--bg: #ffffff;
	--bg-subtle: #f6f7f9;
	--fg: #1a1d21;
	--fg-muted: #5c6670;
	--border: #e3e6ea;
	--accent: #1f6feb;
	--accent-soft: #eaf2fe;
	--radius: 10px;
	color-scheme: light;
}

@media (prefers-color-scheme: dark) {
	:root {
		--bg: #14171a;
		--bg-subtle: #1c2126;
		--fg: #e6e9ec;
		--fg-muted: #9aa4ae;
		--border: #2b3239;
		--accent: #5aa2ff;
		--accent-soft: #17263b;
		color-scheme: dark;
	}
}

* {
	box-sizing: border-box;
}

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

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

.wrap {
	max-width: 760px;
	margin: 0 auto;
	padding: 0 20px 80px;
}

/* Header */

.site-header {
	border-bottom: 1px solid var(--border);
	background: var(--bg-subtle);
	margin-bottom: 40px;
}

.site-header .wrap {
	padding-top: 18px;
	padding-bottom: 18px;
	display: flex;
	gap: 20px;
	align-items: baseline;
	flex-wrap: wrap;
}

.brand {
	font-weight: 700;
	font-size: 1.05rem;
	color: var(--fg);
	text-decoration: none;
	letter-spacing: -0.01em;
}

.site-nav {
	display: flex;
	gap: 18px;
	margin-left: auto;
	font-size: 0.92rem;
}

.site-nav a {
	color: var(--fg-muted);
	text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
	color: var(--accent);
}

/* Typography */

h1 {
	font-size: 2rem;
	line-height: 1.2;
	letter-spacing: -0.02em;
	margin: 0 0 8px;
}

h2 {
	font-size: 1.3rem;
	line-height: 1.3;
	letter-spacing: -0.01em;
	margin: 48px 0 12px;
	padding-top: 8px;
}

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

p,
ul,
ol {
	margin: 0 0 16px;
}

ul,
ol {
	padding-left: 22px;
}

li {
	margin-bottom: 6px;
}

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

strong {
	font-weight: 650;
}

hr {
	border: 0;
	border-top: 1px solid var(--border);
	margin: 40px 0;
}

.dates {
	color: var(--fg-muted);
	font-size: 0.9rem;
	margin-bottom: 32px;
}

.lede {
	font-size: 1.05rem;
}

/* Tables */

.table-scroll {
	overflow-x: auto;
	margin: 0 0 20px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
}

table {
	border-collapse: collapse;
	width: 100%;
	font-size: 0.92rem;
	min-width: 460px;
}

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

th {
	background: var(--bg-subtle);
	font-weight: 650;
	white-space: nowrap;
}

tr:last-child td {
	border-bottom: 0;
}

/* Callout */

.note {
	background: var(--accent-soft);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 14px 18px;
	margin: 0 0 24px;
	font-size: 0.95rem;
}

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

/* Index page */

.card-list {
	list-style: none;
	padding: 0;
	display: grid;
	gap: 14px;
}

.card-list a {
	display: block;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 18px 20px;
	text-decoration: none;
	color: inherit;
	background: var(--bg-subtle);
}

.card-list a:hover {
	border-color: var(--accent);
}

.card-list strong {
	display: block;
	color: var(--accent);
	margin-bottom: 4px;
}

.card-list span {
	color: var(--fg-muted);
	font-size: 0.92rem;
}

/* Footer */

.site-footer {
	border-top: 1px solid var(--border);
	margin-top: 64px;
	padding-top: 24px;
	color: var(--fg-muted);
	font-size: 0.88rem;
}

.site-footer a {
	color: var(--fg-muted);
}
