:root {
	--bg: #0b0b0c;
	--fg: #f3f0ea;
	--display: Anton, "Arial Narrow", Impact, sans-serif;
	--mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
	--pad-x: max(clamp(20px, 3.4vw, 52px), env(safe-area-inset-left), env(safe-area-inset-right));
	--pad-y: max(clamp(20px, 3.4vw, 52px), env(safe-area-inset-top), env(safe-area-inset-bottom));
}

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

html,
body {
	height: 100%;
	overflow: hidden;
	background: var(--bg);
	color: var(--fg);
	overscroll-behavior: none;
}

body {
	font-family: var(--mono);
	-webkit-font-smoothing: antialiased;
	-webkit-tap-highlight-color: transparent;
}

a {
	color: inherit;
}

a:focus-visible {
	outline: 2px solid var(--fg);
	outline-offset: 6px;
}

.stream {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	display: block;
	pointer-events: none;
}

.card {
	position: fixed;
	inset: 0;
	padding: var(--pad-y) var(--pad-x);
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	grid-template-rows: auto 1fr auto;
	column-gap: 32px;
}

.name {
	grid-column: 1;
	grid-row: 1;
	justify-self: start;
	font-family: var(--display);
	font-weight: 400;
	font-size: min(8.5svh, 6.4vw);
	line-height: 1;
	white-space: nowrap;
}

.nav {
	grid-column: 2;
	grid-row: 1 / 4;
	align-self: end;
	justify-self: end;
	text-align: right;
}

.nav ul {
	list-style: none;
}

.nav a {
	display: inline-block;
	font-family: var(--display);
	font-size: min(13.5svh, 11vw);
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
}

.bio {
	grid-column: 1;
	grid-row: 3;
	align-self: end;
	font-size: clamp(13px, 1.05vw, 15px);
	line-height: 1.6;
}

.bio .line {
	display: block;
	width: max-content;
	white-space: nowrap;
}

.bio .gap {
	margin-top: 1.2em;
}

.bio a {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
}

.hud {
	display: flex;
	gap: 1.1em;
	font: 500 12px/1 var(--mono);
	font-variant-numeric: tabular-nums;
	user-select: none;
	-webkit-user-select: none;
}

html:not(.gl) .site-topbar .hud {
	display: none;
}

html:not(.gl) a:hover,
html:not(.gl) a:focus-visible {
	color: var(--c, var(--fg));
}

html.pending [data-ink],
html.gl [data-ink] {
	color: transparent;
	text-decoration-color: transparent;
}

html.gl,
html.gl body {
	touch-action: none;
	cursor: crosshair;
}

html.gl a {
	cursor: pointer;
}

@media (max-width: 720px), (max-aspect-ratio: 4/5) {
	.card {
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: auto 1fr auto auto;
	}

	.name {
		font-size: min(12.5vw, 8svh);
	}

	.nav {
		grid-column: 1;
		grid-row: 3;
		justify-self: start;
		text-align: left;
	}

	.nav a {
		font-size: min(16vw, 9.4svh);
	}

	.bio {
		grid-row: 4;
		margin-top: 5svh;
		font-size: 13px;
	}
}
