:root {
	--paper: #eaeff2;
	--ink: #13202b;
	--ink-2: #4b5a68;
	--line: #c9d3db;
	--signal: #0f5e7a;
	--mark: #f2c46b;
	--sans: "Avenir Next", "Segoe UI Variable Display", "Segoe UI", Seravek, "Gill Sans Nova", Ubuntu, Cantarell, "Noto Sans", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
	:root {
		--paper: #0f171e;
		--ink: #e4ebf0;
		--ink-2: #9db0be;
		--line: #2a3945;
		--signal: #5cb6d4;
		--mark: #b8862a;
	}
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; height: 100%; }
body {
	margin: 0;
	min-height: 100%;
	display: grid;
	grid-template-rows: 1fr auto;
	background: var(--paper);
	color: var(--ink);
	font: 400 1.0625rem/1.55 var(--sans);
	-webkit-font-smoothing: antialiased;
}
a { color: var(--signal); text-underline-offset: 0.18em; }
a:focus-visible { outline: 3px solid var(--mark); outline-offset: 3px; border-radius: 4px; }

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

main {
	align-self: end;
	padding-block: clamp(4rem, 14vh, 9rem) clamp(3rem, 10vh, 6rem);
}

/* The name is the page. Set big and tight, with a marker stroke drawn once under it. */
h1 {
	margin: 0;
	font-size: clamp(6rem, 26vw, 19rem);
	line-height: 0.82;
	letter-spacing: -0.065em;
	font-weight: 800;
	display: inline-block;
	position: relative;
	padding-right: 0.06em;
}
h1::after {
	content: "";
	position: absolute;
	left: 0.02em;
	right: 0.04em;
	bottom: 0.02em;
	height: 0.14em;
	background: var(--mark);
	z-index: -1;
	transform-origin: 0 50%;
	transform: scaleX(0);
	animation: stroke 0.9s cubic-bezier(.65, 0, .25, 1) 0.35s forwards;
}
h1 { isolation: isolate; }
@keyframes stroke { to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) {
	h1::after { animation: none; transform: none; }
}

.lede {
	margin: clamp(1.75rem, 4vw, 2.75rem) 0 0;
	font-size: clamp(1.2rem, 2.2vw, 1.55rem);
	line-height: 1.4;
	max-width: 38rem;
}
.hint {
	margin: 1rem 0 0;
	color: var(--ink-2);
	max-width: 32rem;
}

footer {
	border-top: 1px solid var(--line);
	padding-block: 1.5rem 2rem;
	color: var(--ink-2);
	font-size: 0.9rem;
}
