@import '../bundles/classful.css';

body > section > header {
	position: sticky;
	top: 0;
	z-index: 1;
	background: var(--color-bg);
	color: var(--color-text);
}

body > section > header > h1 {
	font-variant: small-caps;
	padding: .25em 0;
}

body > section > header > :last-child::after {
	content: '';
	display: block;
	margin-top: .25em;
	border-bottom: 1px solid var(--color-border);
	/* opacity: .25; */
}

.settings {
	position: sticky;
	top: 0;
	z-index: 2;
	float: right;
	padding: .25em;
	background: var(--color-bg);
}

.message-demo,
.color-demo {
	display: inline-block;
	width: 4rem;
	height: 4rem;
	background: var(--demo-color);
}

.color-demo[title='--color-bg'] {
	border: 1px dotted var(--color-bg-elevated);
}

.message-demo {
	border: 1px solid var(--demo-color);
	padding: .25em;
	background: light-dark(oklch(from var(--demo-color) 0.9 0.02 h), oklch(from var(--demo-color) 0.25 0.02 h));
	color: var(--demo-color);
	font-size: .875em;
}

/* the fill is off by default; a project opts in with this one token */
.range-filled {
	--color-range-fill: var(--color-text-muted);
}
