/* Reset, element defaults and layout primitives. */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 12px);
	-webkit-text-size-adjust: 100%;
}

body {
	counter-reset: section;
	margin: 0;
	background: var(--bg-0);
	color: var(--text);
	font-family: var(--font-sans);
	font-size: var(--fs-md);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

[hidden] {
	display: none !important;
}

img,
svg,
iframe {
	display: block;
	max-width: 100%;
}

img {
	height: auto;
}

a {
	color: var(--accent-cyan);
	text-decoration: none;
	transition: color 0.2s;
}

a:hover {
	color: #fff;
}

h1,
h2,
h3,
h4,
p,
ul,
ol {
	margin: 0;
}

h1,
h2,
h3,
h4 {
	font-family: var(--font-display);
	line-height: 1.15;
	letter-spacing: -0.02em;
}

ul,
ol {
	padding: 0;
	list-style: none;
}

:focus-visible {
	outline: 2px solid var(--accent-cyan);
	outline-offset: 3px;
	border-radius: 4px;
}

::selection {
	background: rgba(139, 92, 246, 0.5);
	color: #fff;
}

.container {
	width: min(100% - 2.5rem, var(--container));
	margin-inline: auto;
}

.section {
	position: relative;
	padding-block: var(--section-pad);
}

.section {
	counter-increment: section;
}

.section--alt {
	background: linear-gradient(180deg, var(--bg-1), var(--bg-0));
	border-block: 1px solid var(--border);
}

.visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.skip-link {
	position: fixed;
	top: -100px;
	left: 1rem;
	z-index: 200;
	padding: 0.6rem 1rem;
	background: var(--accent-cyan);
	color: #04121a;
	border-radius: var(--radius-sm);
	font-weight: 600;
}

.skip-link:focus {
	top: 1rem;
	color: #04121a;
}

/* Scroll reveal; JS adds .is-visible. Without JS everything stays visible. */
.js .reveal {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
	transition-delay: var(--delay, 0ms);
}

.js .reveal.is-visible {
	opacity: 1;
	transform: none;
}

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

	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
	}

	.js .reveal {
		opacity: 1;
		transform: none;
	}
}


