@font-face {
	font-family: "Funnel Display";
	src: url("/fonts/funnel-display.woff2") format("woff2");
	font-weight: 300 800;
	font-display: swap;
}
@font-face {
	font-family: "Funnel Sans";
	src: url("/fonts/funnel-sans.woff2") format("woff2");
	font-weight: 300 800;
	font-display: swap;
}

:root {
	--graphite-950: #0c0e12;
	--card: #121418;
	--card-line: #22262b;
	--panel: #191c21;
	--field: #22262b;
	--line: #2b2e32;
	--text: #ffffff;
	--text-2: #babec4;
	--text-3: #95989e;
	--text-4: #707378;
	--lime: #c6f931;
	--error: #f97066;
}

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

html {
	background: var(--graphite-950);
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	color: var(--text);
	font-family: "Funnel Sans", system-ui, -apple-system, sans-serif;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

p {
	margin: 0;
}

a {
	color: inherit;
}

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

/* Layout: one centered card. Copy on the left, Mort's window on the right. */
body {
	min-height: 100vh;
	min-height: 100dvh;
	display: grid;
	place-items: center;
	padding: 32px 24px;
}

.page {
	width: min(1120px, 100%);
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.card {
	display: grid;
	grid-template-columns: minmax(0, 600px) minmax(0, 1fr);
	height: 640px;
	border-radius: 28px;
	background: var(--card);
	box-shadow:
		inset 0 0 0 1px var(--card-line),
		0 40px 120px -40px rgba(0, 0, 0, 0.8);
	overflow: hidden;
}

.intro {
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: 44px 0 44px 56px;
}

.brand {
	display: inline-flex;
	align-self: flex-start;
	align-items: center;
	gap: 8px;
	text-decoration: none;
	font-family: "Funnel Display", system-ui, sans-serif;
	font-weight: 600;
	font-size: 17px;
	line-height: 22px;
	letter-spacing: -0.02em;
}

.brand img {
	border-radius: 6px;
}

.content {
	margin-top: auto;
	padding-top: 32px;
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 30px;
	padding: 0 12px;
	border-radius: 9999px;
	background: var(--field);
	box-shadow: inset 0 0 0 1px var(--line);
	font-weight: 600;
	font-size: 14px;
	line-height: 20px;
}

.dot {
	width: 8px;
	height: 8px;
	border-radius: 9999px;
	background: var(--lime);
	box-shadow: 0 0 0 4px rgba(198, 249, 49, 0.18);
}

h1 {
	margin: 22px 0 20px;
	font-family: "Funnel Display", system-ui, sans-serif;
	font-weight: 600;
	font-size: clamp(42px, 4.6vw, 60px);
	line-height: 1.04;
	letter-spacing: -0.04em;
	text-wrap: balance;
}

.lede {
	max-width: 480px;
	color: var(--text-2);
	font-size: 17px;
	line-height: 27px;
}

/* Signup form */
.signup {
	margin-top: 28px;
}

.fields {
	display: flex;
	gap: 10px;
}

.fields input {
	flex: 0 1 300px;
	min-width: 0;
	height: 52px;
	padding: 0 16px;
	border: 0;
	border-radius: 10px;
	background: var(--field);
	box-shadow: inset 0 0 0 1px var(--line);
	color: var(--text);
	font: inherit;
	font-size: 16px;
	line-height: 24px;
}

.fields input::placeholder {
	color: var(--text-3);
}

.fields input:focus-visible {
	outline: none;
	box-shadow:
		inset 0 0 0 1px var(--text-3),
		0 0 0 3px rgba(198, 249, 49, 0.45);
}

.fields input:disabled {
	color: var(--text-2);
}

.fields button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	flex-shrink: 0;
	height: 52px;
	padding: 0 20px;
	border: 0;
	border-radius: 10px;
	background: var(--lime);
	color: #000000;
	font: inherit;
	font-weight: 600;
	font-size: 16px;
	line-height: 24px;
	white-space: nowrap;
	cursor: pointer;
}

.fields button:hover {
	background: #afdf04;
}

.fields button:active {
	background: #96c001;
}

.fields button:focus-visible {
	outline: none;
	box-shadow:
		0 0 0 2px var(--graphite-950),
		0 0 0 4px #ffffff;
}

.spinner {
	display: none;
	width: 18px;
	height: 18px;
	border: 2.4px solid #000000;
	border-right-color: transparent;
	border-radius: 9999px;
	animation: spin 0.8s linear infinite;
}

.signup.is-busy .spinner {
	display: inline-block;
}

.signup.is-busy button {
	cursor: progress;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

.trap {
	position: absolute;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.help {
	margin-top: 12px;
	color: var(--text-3);
	font-size: 14px;
	line-height: 20px;
}

.signup.has-error input {
	box-shadow: inset 0 0 0 1.5px var(--error);
}

.signup.has-error .help {
	color: var(--error);
}

.turnstile:not(:empty) {
	margin-top: 16px;
}

.done {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: 28px;
	outline: none;
}

.done[hidden] {
	display: none;
}

.check {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	border-radius: 9999px;
	background: var(--lime);
}

.done-title {
	font-weight: 600;
	font-size: 17px;
	line-height: 26px;
}

.done-body {
	color: var(--text-2);
	font-size: 15px;
	line-height: 22px;
	overflow-wrap: anywhere;
}

/* Mort's window: the art sits in its own rounded frame inside the card,
   so wherever the art is cropped, the crop lands on a visible edge. */
.mort {
	position: relative;
	margin: 10px;
	border-radius: 20px;
	background: var(--panel);
	overflow: hidden;
}

.mort img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 30% 70%;
}

.mort-chip {
	position: absolute;
	left: 20px;
	top: 22px;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	height: 30px;
	padding: 0 12px;
	border-radius: 9999px;
	background: var(--graphite-950);
	color: var(--text-2);
	font-weight: 600;
	font-size: 13px;
	line-height: 18px;
}

.foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px 20px;
	color: var(--text-4);
	font-size: 14px;
	line-height: 20px;
}

.foot a {
	color: var(--text-3);
	text-underline-offset: 3px;
}

.foot a:focus-visible,
.brand:focus-visible {
	outline: 2px solid #ffffff;
	outline-offset: 4px;
	border-radius: 4px;
}

/* Tablets and phones: the card stacks, with Mort below the form. */
@media (max-width: 899px) {
	body {
		display: block;
		padding: 12px 12px 0;
	}

	.card {
		grid-template-columns: minmax(0, 1fr);
		height: auto;
		border-radius: 24px;
	}

	.intro {
		padding: 22px 20px 28px;
	}

	.content {
		margin-top: 0;
		padding-top: 36px;
	}

	.mort {
		height: clamp(320px, 80vw, 480px);
		margin: 0 8px 8px;
		border-radius: 18px;
	}

	.mort img {
		object-position: 30% 40%;
	}

	.mort-chip {
		left: 14px;
		top: 14px;
		height: 28px;
		padding: 0 10px;
	}

	.foot {
		flex-direction: column;
		gap: 6px;
		padding: 20px 0 28px;
	}

	.foot a {
		order: -1;
	}
}

@media (max-width: 639px) {
	h1 {
		margin: 20px 0 16px;
		font-size: 42px;
		line-height: 44px;
	}

	.signup {
		margin-top: 24px;
	}

	.fields {
		flex-direction: column;
	}

	.fields input {
		flex: none;
		width: 100%;
	}

	.fields button {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.spinner {
		animation-duration: 2.4s;
	}
}
