:root {
	color-scheme: dark;
	--rosewater: #f5e0dc;
	--flamingo: #f2cdcd;
	--pink: #f5c2e7;
	--mauve: #cba6f7;
	--red: #f38ba8;
	--maroon: #eba0ac;
	--peach: #fab387;
	--yellow: #f9e2af;
	--green: #a6e3a1;
	--teal: #94e2d5;
	--sky: #89dceb;
	--sapphire: #74c7ec;
	--blue: #89b4fa;
	--lavender: #b4befe;
	--text: #cdd6f4;
	--subtext-1: #bac2de;
	--subtext-0: #a6adc8;
	--overlay-2: #9399b2;
	--surface-2: #585b70;
	--surface-1: #45475a;
	--surface-0: #313244;
	--base: #1e1e2e;
	--mantle: #181825;
	--crust: #11111b;
	--bg: var(--crust);
	--fg: var(--text);
	--muted: var(--subtext-0);
	--accent: var(--sky);
	--accent-2: var(--lavender);
	--line: var(--surface-0);
	--font-terminal: "RunvSquareTerminal", ui-monospace, SFMono-Regular, Menlo,
		Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
	--font-terminal-compact: "RunvSquareTerminalCompact", "RunvSquareTerminal",
		ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
		"Courier New", monospace;
}

html,
body {
	margin: 0;
	min-height: 100vh;
	background: var(--bg);
	color: var(--fg);
	font-family: var(--font-terminal);
	line-height: 1.5;
}

body {
	display: flex;
	flex-direction: column;
}

.shell {
	max-width: 72ch;
	margin: 0 auto;
	padding: 2rem 1rem 4rem;
	box-sizing: border-box;
	width: 100%;
}

a {
	color: var(--accent);
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
	color: var(--blue);
}

h1 {
	margin: 0 0 0.5rem;
	font-size: 1.25rem;
	font-weight: 600;
	letter-spacing: 0.02em;
}

h2,
h3 {
	margin: 1.5rem 0 0.75rem;
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: 0.02em;
}

::selection {
	background: color-mix(in srgb, var(--mauve) 50%, transparent);
	color: var(--crust);
}

.meta,
.page-lead,
.prototype-body,
.prototype-empty {
	color: var(--muted);
	font-size: 0.875rem;
}

.meta {
	margin-bottom: 1.5rem;
}

.page-header,
.section-card,
.article-frame,
.prototype-hero,
.prototype-empty {
	margin: 0 0 1.5rem;
	padding: 0;
	border: none;
	background: transparent;
	box-shadow: none;
}

.page-kicker {
	margin: 0 0 0.25rem;
	color: var(--muted);
	font-size: 0.875rem;
}

.page-title {
	margin: 0;
	font-size: 1.25rem;
	font-weight: 600;
	letter-spacing: 0.02em;
}

.page-lead {
	margin-top: 0.5rem;
	max-width: 72ch;
}

.section-title {
	margin: 0 0 0.75rem;
	font-size: 1rem;
	color: var(--fg);
}

.square-list {
	margin: 0;
	padding-left: 1.25rem;
	list-style: disc;
}

.square-item {
	display: list-item;
	margin: 0 0 0.4rem;
	padding: 0;
	border: none;
	background: transparent;
}

.square-link {
	font-size: inherit;
	font-weight: 400;
	color: var(--accent);
}

.square-path {
	margin-left: 0.25rem;
	margin-bottom: 0;
	color: var(--muted);
}

.prototype-kicker {
	margin: 0 0 0.25rem;
	color: var(--pink);
	font-size: 0.875rem;
}

.prototype-title {
	margin: 0 0 0.5rem;
	font-size: 1rem;
	color: var(--rosewater);
}

.prototype-body {
	margin: 0 0 0.75rem;
	max-width: 72ch;
}

.prototype-cta {
	color: var(--yellow);
}

.article p {
	margin: 0 0 1rem;
}

.rendered .squaredoc h1,
.rendered .squaredoc h2,
.rendered .squaredoc h3 {
	margin: 1.5rem 0 0.5rem;
	color: var(--rosewater);
	font-family: var(--font-terminal-compact);
	font-size: 1rem;
	font-weight: 600;
}

.rendered .squaredoc h1 {
	font-size: 1.25rem;
}

.rendered .squaredoc p {
	margin: 0 0 1rem;
	white-space: pre-wrap;
	color: var(--fg);
}

.rendered .squaredoc ul,
.rendered .squaredoc ol {
	margin: 0 0 1rem;
	padding-left: 1.4rem;
}

.rendered .squaredoc li {
	margin-bottom: 0.4rem;
}

.rendered .squaredoc strong {
	color: var(--yellow);
}

.rendered .squaredoc pre {
	margin: 0 0 1rem;
	padding: 0.75rem 1rem;
	overflow-x: auto;
	border: 1px solid var(--line);
	background: var(--mantle);
	color: var(--subtext-1);
	font-family: var(--font-terminal-compact);
	line-height: 1.45;
}

.rendered .squaredoc aside[data-fence] {
	margin: 1rem 0;
	padding: 0 0 0 1rem;
	border-left: 2px solid var(--peach);
}

.rendered .squaredoc aside[data-fence] pre {
	margin: 0;
	padding: 0;
	border: none;
	background: transparent;
	white-space: pre;
}

.rendered .squaredoc hr {
	border: none;
	border-top: 1px solid var(--line);
	margin: 1.5rem 0;
}

@media (max-width: 720px) {
	.shell {
		padding: 1.5rem 1rem 3rem;
	}
}
