:root {
	color-scheme: light dark;
	--newnav-canvas: #f4f6fa;
	--newnav-surface: #fcfdff;
	--newnav-surface-muted: #e9edf5;
	--newnav-text: #172033;
	--newnav-text-muted: #5b6577;
	--newnav-border: #cbd3e1;
	--newnav-accent: #315acb;
	--newnav-accent-hover: #2447a7;
	--newnav-on-accent: #f8faff;
	--newnav-focus: #1749d1;
	--newnav-radius: 12px;
	--newnav-container: 1200px;
	--newnav-shadow: 0 16px 40px rgb(30 46 78 / 0.08);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

@media (prefers-color-scheme: dark) {
	:root {
		--newnav-canvas: #111725;
		--newnav-surface: #182132;
		--newnav-surface-muted: #222e43;
		--newnav-text: #edf2fb;
		--newnav-text-muted: #aeb9cc;
		--newnav-border: #35435b;
		--newnav-accent: #86a8ff;
		--newnav-accent-hover: #adc2ff;
		--newnav-on-accent: #111725;
		--newnav-focus: #a9c0ff;
		--newnav-shadow: 0 16px 40px rgb(3 8 18 / 0.28);
	}
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

::selection {
	background: var(--newnav-accent);
	color: #f8faff;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--newnav-canvas);
	color: var(--newnav-text);
	font-size: 16px;
	line-height: 1.7;
}

img,
svg,
video {
	display: block;
	max-width: 100%;
	height: auto;
}

a {
	color: var(--newnav-accent);
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.18em;
}

a:hover {
	color: var(--newnav-accent-hover);
}

button,
input,
select,
textarea {
	font: inherit;
	caret-color: var(--newnav-accent);
}

[hidden] {
	display: none !important;
}

:focus-visible {
	outline: 3px solid var(--newnav-focus);
	outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}
