*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	overflow-x: hidden;
}

body {
	margin: 0;
	min-height: 100vh;
	font-family: var(--font-body);
	font-size: 15px;
	line-height: 1.45;
	color: var(--text);
	background:
		radial-gradient(1200px 600px at 10% -10%, rgba(0, 229, 200, 0.08), transparent 55%),
		radial-gradient(900px 500px at 90% 0%, rgba(255, 59, 92, 0.06), transparent 50%),
		linear-gradient(180deg, #0E1628 0%, var(--bg) 40%, #090E18 100%);
	background-attachment: fixed;
	padding-bottom: calc(var(--bottom-nav-h) + 24px);
	overflow-x: hidden;
	max-width: 100%;
}

body::before {
	content: "";
	pointer-events: none;
	position: fixed;
	inset: 0;
	opacity: 0.035;
	background-image:
		linear-gradient(90deg, transparent 49%, #fff 50%, transparent 51%),
		linear-gradient(#fff 1px, transparent 1px);
	background-size: 80px 80px, 100% 40px;
	z-index: 0;
}

a {
	color: var(--accent);
	text-decoration: none;
	transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
	color: #5ff0da;
}

img {
	max-width: 100%;
	height: auto;
}

button,
select,
input {
	font: inherit;
	color: inherit;
}

h1, h2, h3, h4 {
	font-family: var(--font-display);
	font-weight: 400;
	letter-spacing: 0.04em;
	margin: 0 0 0.4em;
	line-height: 1;
}

h1 { font-size: clamp(2.2rem, 8vw, 3.4rem); }
h2 { font-size: clamp(1.8rem, 5vw, 2.6rem); }
h3 { font-size: clamp(1.4rem, 4vw, 1.9rem); }

p {
	margin: 0 0 1em;
	color: var(--text-muted);
}

.site-shell {
	position: relative;
	z-index: 1;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.site-main {
	flex: 1;
	width: 100%;
	max-width: var(--max);
	margin: 0 auto;
	padding: 16px var(--page-pad) 24px;
	min-width: 0;
}

.page-header {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 18px;
}

.page-header__eyebrow {
	display: block;
	font-size: 0.72rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--accent);
	margin-bottom: 4px;
	font-family: var(--font-body);
	font-weight: 700;
}

.page-header__title {
	margin: 0;
}

.page-header__meta {
	color: var(--text-muted);
	font-size: 0.9rem;
}

.site-footer {
	text-align: center;
	padding: 24px var(--page-pad) 12px;
	color: var(--text-dim);
	font-size: 0.75rem;
}

.site-footer a {
	display: inline-block;
	margin-bottom: 10px;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.site-footer svg {
	max-width: 120px;
	opacity: 0.7;
}

.hide-mobile {
	display: none !important;
}

@media (min-width: 768px) {
	body {
		padding-bottom: 40px;
	}

	/* revert restores table-cell for th/td; `initial` breaks into inline */
	.hide-mobile {
		display: revert !important;
	}

	.hide-desktop {
		display: none !important;
	}
}

@media (min-width: 900px) {
	.site-main {
		padding-top: calc(var(--topbar-h) + 28px);
	}
}

@media (max-width: 767px) {
	.hide-desktop-only {
		display: none !important;
	}
}
