:root {
	--bg: #f4f7f8;
	--surface: #ffffff;
	--sidebar: #101316;
	--sidebar-muted: #a9b3b6;
	--text: #161a1d;
	--muted: #5d6870;
	--line: #d8e0e3;
	--accent: #0f766e;
	--accent-2: #a65f16;
	--code-bg: #edf2f4;
	--max-content: 820px;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 16px/1.65 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
	color: var(--accent);
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.16em;
}

.shell {
	display: grid;
	grid-template-columns: minmax(250px, 310px) minmax(0, 1fr);
	min-height: 100vh;
}

.sidebar {
	background: var(--sidebar);
	color: #eef4f4;
	padding: 28px 20px;
	position: sticky;
	top: 0;
	height: 100vh;
	overflow-y: auto;
}

.brand {
	display: grid;
	grid-template-columns: 42px 1fr;
	gap: 12px;
	align-items: center;
	color: #ffffff;
	text-decoration: none;
	margin-bottom: 28px;
}

.brand img {
	width: 42px;
	height: 42px;
}

.brand strong,
.brand small {
	display: block;
}

.brand strong {
	font-size: 15px;
	line-height: 1.2;
}

.brand small {
	color: var(--sidebar-muted);
	font-size: 12px;
	margin-top: 2px;
}

.nav-list {
	display: grid;
	gap: 8px;
}

.nav-list a {
	display: grid;
	gap: 2px;
	padding: 10px 11px;
	border-left: 3px solid transparent;
	color: #eef4f4;
	text-decoration: none;
}

.nav-list a[aria-current="page"] {
	border-left-color: var(--accent-2);
	background: rgba(255, 255, 255, 0.08);
}

.nav-list span {
	font-size: 14px;
	font-weight: 650;
}

.nav-list small {
	color: var(--sidebar-muted);
	font-size: 12px;
	line-height: 1.4;
}

.content {
	width: min(100%, calc(var(--max-content) + 96px));
	padding: 42px 48px 72px;
}

.page-kicker {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 18px;
	margin-bottom: 34px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--line);
}

.page-kicker p {
	margin: 0;
	color: var(--muted);
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
}

.tickets {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	justify-content: flex-end;
}

.ticket {
	border: 1px solid var(--line);
	background: var(--surface);
	color: var(--accent-2);
	font: 12px/1.4 ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
	padding: 3px 7px;
}

article {
	max-width: var(--max-content);
}

.summary {
	margin: 0 0 24px;
	color: var(--muted);
	font-size: 18px;
	line-height: 1.55;
}

.learning-meta {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 10px;
	margin: 0 0 30px;
}

.learning-meta__item {
	border: 1px solid var(--line);
	background: var(--surface);
	color: var(--muted);
	padding: 10px 12px;
	font-size: 13px;
	line-height: 1.45;
}

.learning-meta__item strong {
	display: block;
	color: var(--text);
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0;
	margin-bottom: 3px;
}

h1,
h2,
h3 {
	line-height: 1.2;
	letter-spacing: 0;
}

h1 {
	font-size: clamp(32px, 6vw, 56px);
	margin: 0 0 22px;
	max-width: 780px;
}

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

h3 {
	font-size: 19px;
	margin: 32px 0 10px;
}

p,
ul,
pre {
	margin: 0 0 18px;
}

ul {
	padding-left: 22px;
}

li + li {
	margin-top: 6px;
}

code {
	background: var(--code-bg);
	border: 1px solid var(--line);
	font: 0.92em/1.4 ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
	padding: 1px 4px;
}

pre {
	background: #11161a;
	color: #edf2f4;
	overflow-x: auto;
	padding: 16px;
}

pre code {
	background: transparent;
	border: 0;
	padding: 0;
}

@media (max-width: 760px) {
	.shell {
		display: block;
	}

	.sidebar {
		position: static;
		height: auto;
		padding: 18px 16px;
	}

	.brand {
		margin-bottom: 16px;
	}

	.nav-list {
		display: flex;
		gap: 8px;
		overflow-x: auto;
		padding-bottom: 4px;
	}

	.nav-list a {
		min-width: 230px;
		border-left: 0;
		border-bottom: 3px solid transparent;
	}

	.nav-list a[aria-current="page"] {
		border-bottom-color: var(--accent-2);
	}

	.content {
		padding: 28px 18px 54px;
	}

	.page-kicker {
		display: grid;
		align-items: start;
	}

	.tickets {
		justify-content: flex-start;
	}

	.summary {
		font-size: 16px;
	}
}
