/* Dark mode, applied automatically from the visitor's OS setting. */

@media (prefers-color-scheme: dark) {

	:root { color-scheme: dark; }

	body { background: #16181c; }

	body, input, select, textarea { color: #a8adb5; }

	strong, b, h1, h2, h3, h4, h5, h6, label { color: #d4d8de; }

	a { color: #7fb0f0; }
	a:hover { color: #9cc4f5 !important; }

	hr, #main > section { border-color: #2a2d33; }
	blockquote { border-left-color: #2a2d33; }
	code, .box { background: #1e2126; border-color: #2a2d33; }

	input[type="text"], input[type="password"], input[type="email"], select, textarea {
		background: #23262c;
	}
	input[type="text"]:focus, input[type="email"]:focus, textarea:focus, select:focus {
		border-color: #7fb0f0;
	}
	::placeholder { color: #7b818a; }

	.button, input[type="submit"], input[type="reset"], input[type="button"] {
		border-color: #353941;
		color: #c3c8cf !important;
	}
	.button:hover, input[type="submit"]:hover { border-color: #7fb0f0; color: #7fb0f0 !important; }
	.button.primary, input[type="submit"].primary {
		background-color: #3d78c9;
		border-color: #3d78c9;
		color: #fff !important;
	}

	.features {
		border-color: rgba(255, 255, 255, 0.1);
		background: rgba(255, 255, 255, 0.03);
	}
	.features section,
	.features section:nth-child(2n) { border-color: rgba(255, 255, 255, 0.1); }

	.labeled-icons .icon, ul.icons li a { color: #a8adb5; }
}

@media (prefers-color-scheme: dark) {
	.features.work section,
	.features.work section:nth-child(n) { background: rgba(255, 255, 255, 0.05); }
}

@media (prefers-color-scheme: dark) {
	.hl { background: linear-gradient(transparent 62%, rgba(var(--c-orange), 0.45) 62%); }
	.features.work section,
	.features.work section:nth-child(n) { background: rgba(var(--accent), 0.13); }
	.features.work section h3 { filter: brightness(1.25); }
	.features.work section .icon { background: rgba(var(--accent), 0.25); }
	#background li strong { color: #7fb0f0; }
	.button.primary { background-color: rgb(var(--c-orange)); border-color: rgb(var(--c-orange)); }
}
