:root {
	--bg: #ffffff;
	--text: #37352f;
	--muted: #787774;
	--border: #e9e9e7;
	--surface: #f7f6f3;
	--hover: #efefed;
	--accent: #2383e2;
	--tag-bg: #fbecdd;
	--tag-text: #9a5b13;
	--beta-bg: #e7f3f8;
	--beta-text: #1f6c9f;
	color-scheme: light;
}
@media (prefers-color-scheme: dark) {
	:root {
		--bg: #191919;
		--text: #e3e2e0;
		--muted: #9b9a97;
		--border: #2f2f2f;
		--surface: #202020;
		--hover: #2c2c2c;
		--accent: #529cca;
		--tag-bg: #3a2a1a;
		--tag-text: #e2a35c;
		--beta-bg: #1c2b36;
		--beta-text: #6fb3e0;
		color-scheme: dark;
	}
}

* {
	box-sizing: border-box;
}
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font:
		16px / 1.6 ui-sans-serif,
		-apple-system,
		BlinkMacSystemFont,
		"Segoe UI",
		Helvetica,
		Arial,
		sans-serif;
	-webkit-font-smoothing: antialiased;
}
.page {
	max-width: 720px;
	margin: 0 auto;
	padding: 96px 16px 64px;
}
.page-icon {
	font-size: 72px;
	line-height: 1;
	margin-bottom: 16px;
}
h1 {
	font-size: 40px;
	line-height: 1.2;
	font-weight: 700;
	margin: 0 0 8px;
}
h2 {
	font-size: 24px;
	font-weight: 600;
	margin: 40px 0 8px;
}
p {
	margin: 4px 0 12px;
}
.tagline {
	font-size: 22px;
	font-weight: 500;
	margin: 0;
}
.subtagline {
	font-size: 18px;
	color: var(--muted);
	margin: 0 0 24px;
}
.muted {
	color: var(--muted);
}
a {
	color: inherit;
	text-decoration: underline;
	text-decoration-color: var(--muted);
	text-underline-offset: 3px;
}
footer a {
	text-decoration: none;
}
hr {
	border: 0;
	border-top: 1px solid var(--border);
	margin: 40px 0;
}

.actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 32px;
}
.button {
	display: inline-block;
	padding: 6px 12px;
	border: 1px solid var(--border);
	border-radius: 6px;
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
}
.button:hover {
	background: var(--hover);
}
.button.primary {
	background: var(--accent);
	border-color: var(--accent);
	color: #fff;
}
.button.primary:hover {
	filter: brightness(1.08);
}

code {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 85%;
	background: var(--surface);
	color: #eb5757;
	padding: 2px 4px;
	border-radius: 4px;
}
pre {
	margin: 8px 0;
	overflow-x: auto;
}
pre code {
	display: block;
	color: var(--text);
	background: none;
	padding: 0;
	font-size: 13px;
	line-height: 1.5;
	white-space: pre;
}
.code {
	background: var(--surface);
	border-radius: 6px;
	padding: 16px 20px;
}

.quote {
	margin: 20px 0;
}
.quote figcaption {
	color: var(--muted);
	font-size: 14px;
	margin-bottom: 4px;
}
.quote blockquote {
	margin: 0;
	padding: 2px 0 2px 16px;
	border-left: 3px solid var(--text);
	font-size: 17px;
}
/* A quote's p and ol are only inside its blockquote; one class and one element keeps these from
   outranking the later list rules (.features p, .demos p). */
.quote p,
.quote ol {
	margin: 4px 0;
}
.quote blockquote ol {
	padding-left: 20px;
}

.callout {
	display: flex;
	gap: 12px;
	background: var(--surface);
	border-radius: 6px;
	padding: 16px 20px 16px 16px;
	margin: 24px 0;
	min-width: 0;
}
.callout > div {
	min-width: 0;
}
.callout-icon {
	font-size: 20px;
	line-height: 1.4;
}
.callout pre code {
	background: var(--bg);
	border-radius: 4px;
	padding: 8px 10px;
}

.features {
	list-style: none;
	padding: 0;
	margin: 8px 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}
.features li {
	display: flex;
	gap: 10px;
	padding: 12px;
	border: 1px solid var(--border);
	border-radius: 6px;
}
.features .icon {
	font-size: 18px;
	line-height: 1.5;
}
.features p {
	margin: 2px 0 0;
	color: var(--muted);
	font-size: 14px;
	line-height: 1.5;
}
.tag {
	display: inline-block;
	background: var(--tag-bg);
	color: var(--tag-text);
	border-radius: 4px;
	padding: 0 6px;
	font-size: 12px;
	font-weight: 500;
}

.tag.beta {
	background: var(--beta-bg);
	color: var(--beta-text);
}

.status {
	width: 100%;
	border-collapse: collapse;
	margin: 8px 0;
	font-size: 14px;
}
.status th,
.status td {
	text-align: left;
	padding: 6px 8px;
	border-bottom: 1px solid var(--border);
	vertical-align: top;
}
.status th {
	color: var(--muted);
	font-weight: 500;
}
.status td:nth-child(2) {
	color: var(--muted);
}
.status tr:last-child td {
	border-bottom: 0;
}

.links {
	list-style: none;
	padding: 0;
	margin: 8px 0;
}
.links a {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 8px;
	margin: 0 -8px;
	border-radius: 4px;
	text-decoration: none;
	border-bottom: 1px solid transparent;
}
.links a:hover {
	background: var(--hover);
}
.links .arrow {
	margin-left: auto;
	color: var(--muted);
}

footer {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-top: 64px;
	padding-top: 16px;
	border-top: 1px solid var(--border);
	color: var(--muted);
	font-size: 14px;
}
@media (max-width: 600px) {
	.page {
		padding-top: 48px;
	}
	h1 {
		font-size: 32px;
	}
	.features {
		grid-template-columns: 1fr;
	}
}

.demos {
	list-style: none;
	padding: 0;
	margin: 8px 0;
}
.demos li {
	padding: 8px 0 10px;
	border-bottom: 1px solid var(--border);
}
.demos li:last-child {
	border-bottom: 0;
}
.demos p {
	margin: 0;
	color: var(--muted);
	font-size: 14px;
}
.demos .demo-title {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	text-decoration: none;
}
.demos .demo-title:hover {
	text-decoration: underline;
}
.demos .demo-links {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 4px;
	font-size: 13px;
}
.demos .arrow {
	margin-left: auto;
	color: var(--muted);
	font-weight: 400;
}
h3 {
	font-size: 18px;
	font-weight: 600;
	margin: 28px 0 4px;
}
kbd {
	font:
		0.85em ui-monospace,
		SFMono-Regular,
		Menlo,
		monospace;
	padding: 1px 5px;
	border: 1px solid var(--border);
	border-bottom-width: 2px;
	border-radius: 4px;
	background: var(--surface);
}

/* Playgrounds are wider than the text column, centered on it. */
tutuca-playground.wide {
	display: block;
	position: relative;
	left: 50%;
	width: min(1200px, calc(100vw - 32px));
	transform: translateX(-50%);
	margin: 16px 0;
	font-size: 14px;
	line-height: 1.5;
}
body {
	overflow-x: clip;
}
