@import url("https://fonts.googleapis.com/css2?family=Geist+Mono:wght@400;500;600;700&display=swap");

:root {
	color-scheme: dark;
	--desk: #020202;
	--paper: #080806;
	--ink: #f2eee4;
	--muted: #aaa397;
	--faint: #746f66;
	--rule: rgba(242, 238, 228, 0.12);
	--rule-strong: rgba(242, 238, 228, 0.2);
	--accent: #d7d0c4;
	font-family: "Geist Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
	box-sizing: border-box;
}

html,
body {
	background: var(--desk);
	color: var(--ink);
	font-family: "Geist Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
	letter-spacing: 0;
}

body {
	width: min(1120px, calc(100% - 48px));
	margin: 24px auto;
	padding: 0 74px 96px;
	border: 1px solid var(--rule-strong);
	background: var(--paper);
	box-shadow: 0 28px 80px rgba(0, 0, 0, 0.65);
}

a {
	color: var(--ink);
	text-decoration-color: var(--rule-strong);
	text-underline-offset: 0.24em;
}

a:hover,
a:focus-visible {
	text-decoration-color: var(--ink);
}

.q-site-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 48px;
	min-height: 90px;
	border-bottom: 1px solid var(--rule-strong);
}

.q-brand {
	flex: 0 0 auto;
	color: var(--ink);
	font-size: 1.06rem;
	font-weight: 600;
	text-decoration: none;
	text-transform: lowercase;
}

.q-site-nav {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex-wrap: wrap;
	gap: 16px;
}

.q-site-nav a,
.q-back-link {
	color: var(--muted);
	font-size: 0.72rem;
	font-weight: 500;
	text-decoration: none;
	text-transform: uppercase;
}

.q-site-nav a {
	padding: 8px 0;
	border-bottom: 1px solid transparent;
}

.q-site-nav a:hover,
.q-site-nav a:focus-visible {
	color: var(--ink);
	border-color: var(--ink);
}

.q-back-link {
	display: inline-flex;
	margin: 42px 0 72px;
	padding-bottom: 4px;
	border-bottom: 1px solid var(--rule-strong);
}

#title-block-header {
	margin: 0 0 48px;
	padding: 0 0 34px;
	border-bottom: 1px solid var(--rule-strong);
}

.quarto-title-meta {
	color: var(--muted);
	font-size: 0.72rem;
	text-transform: uppercase;
}

h1,
h2,
h3,
p,
li {
	word-break: keep-all;
	overflow-wrap: break-word;
}

h1 {
	max-width: 880px;
	margin: 0 0 22px;
	font-size: clamp(2.3rem, 8vw, 4.6rem);
	line-height: 1.06;
	font-weight: 600;
}

h2 {
	margin-top: 58px;
	padding-top: 24px;
	border-top: 1px solid var(--rule);
	font-size: 1.28rem;
	line-height: 1.35;
}

h3 {
	margin-top: 34px;
	font-size: 1rem;
}

p,
li {
	color: var(--muted);
	font-size: 1rem;
	line-height: 1.9;
}

main {
	width: min(820px, 100%);
	margin: 0 auto;
}

table {
	width: 100%;
	margin: 26px 0 36px;
	border-collapse: collapse;
	color: var(--muted);
	font-size: 0.86rem;
}

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

th {
	color: var(--ink);
	font-weight: 600;
}

pre,
code {
	font-family: inherit;
}

pre {
	margin: 24px 0 36px;
	padding: 20px;
	overflow-x: auto;
	border: 1px solid var(--rule);
	background: rgba(255, 255, 255, 0.02);
}

code {
	color: var(--ink);
	font-size: 0.88rem;
}

.note-strip {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1px;
	margin: 30px 0 42px;
	border: 1px solid var(--rule);
	background: var(--rule);
}

.note-strip > div {
	min-height: 138px;
	padding: 18px;
	background: var(--paper);
}

.note-strip b,
.source-list b {
	display: block;
	margin-bottom: 14px;
	color: var(--ink);
	font-size: 0.78rem;
	text-transform: uppercase;
}

.note-strip span {
	display: block;
	color: var(--muted);
	font-size: 0.84rem;
	line-height: 1.7;
}

.slope {
	display: grid;
	grid-template-columns: 92px 1fr 92px;
	gap: 16px;
	align-items: center;
	margin: 30px 0 42px;
	color: var(--muted);
}

.slope-track {
	position: relative;
	height: 120px;
	border-top: 1px solid var(--rule);
	border-bottom: 1px solid var(--rule);
}

.slope-track::before,
.slope-track::after {
	position: absolute;
	left: 0;
	right: 0;
	content: "";
	border-top: 1px solid var(--rule);
}

.slope-track::before {
	top: 38px;
}

.slope-track::after {
	top: 80px;
}

.slope-line {
	position: absolute;
	left: 0;
	right: 0;
	top: 76px;
	height: 2px;
	background: var(--accent);
	transform: rotate(-12deg);
	transform-origin: left center;
}

.slope-point {
	position: absolute;
	width: 10px;
	height: 10px;
	border: 1px solid var(--ink);
	background: var(--paper);
}

.slope-point.start {
	left: 0;
	top: 72px;
}

.slope-point.end {
	right: 0;
	top: 38px;
}

.source-list {
	margin-top: 56px;
	padding-top: 24px;
	border-top: 1px solid var(--rule-strong);
}

.source-list ul {
	padding-left: 1.1rem;
}

@media (max-width: 760px) {
	body {
		width: min(100% - 16px, 520px);
		margin: 8px auto;
		padding: 0 24px 64px;
	}

	.q-site-header {
		align-items: flex-start;
		flex-direction: column;
		gap: 18px;
		padding: 22px 0 24px;
	}

	.q-site-nav {
		width: 100%;
		justify-content: flex-start;
	}

	.q-site-nav a {
		font-size: 0.68rem;
	}

	.q-back-link {
		margin: 32px 0 54px;
	}

	.note-strip {
		grid-template-columns: 1fr;
	}

	.slope {
		grid-template-columns: 1fr;
	}
}
