@view-transition {
	navigation: auto;
}

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

html {
	height: 100vh;
	scroll-behavior: smooth;
	font-size: 62.5%;
	background: var(--surface-base);
}

body {
	min-height: 100vh;
	margin: 0;
	padding: 0;
	color: var(--text-primary);
	font-family: var(--font-ui);
	font-size: var(--step-0);
	font-optical-sizing: auto;
	cursor: default;
	background-color: var(--surface-base);
	background-image: var(--surface-grid), var(--surface-ramp);
	background-repeat: repeat, no-repeat;
	background-position: 0 0;
	background-size:
		var(--surface-grid-size),
		100% 100%;
	background-attachment: fixed;
}

body::before {
	position: fixed;
	inset: 0;
	z-index: 0;
	background-image: var(--surface-grid), var(--surface-ramp-deep);
	background-repeat: repeat, no-repeat;
	background-position: 0 0;
	background-size:
		var(--surface-grid-size),
		100% 100%;
	opacity: 0;
	transition: opacity var(--dur-slow) var(--ease-soft);
	content: "";
	pointer-events: none;
}

:root.is-past-hero body::before,
body.is-deep::before {
	opacity: 1;
}

.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	top: var(--space-2);
	left: var(--space-2);
	z-index: 100;
	width: 1px;
	height: 1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border-radius: var(--radius-s);
	background: var(--accent);
	color: var(--nm-paper);
	font-size: var(--step--1);
	text-decoration: none;
}

.skip-link:focus-visible {
	width: auto;
	height: auto;
	padding: var(--space-2) var(--space-4);
	overflow: visible;
	clip-path: none;
}

:focus-visible {
	outline: 2px solid var(--focus-ring);
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}
