:root {
	--bg: #060708;
	--bg-raised: #0c0e10;
	--ink: #e9e4d8;
	--ink-soft: #c9c3b6;
	--muted: #a39d90;
	--line: rgba(233, 228, 216, 0.14);
	--line-strong: rgba(233, 228, 216, 0.32);
	--red: #e0483a;
	--glow: #7fe8cc;
	--glow-dim: rgba(127, 232, 204, 0.16);
	--error: #ff8a7a;
	--serif: 'Cormorant Garamond', 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
	--mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
	--gutter: clamp(1rem, 5vw, 4rem);
	--measure: 38rem;
	color-scheme: dark;
}

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--serif);
	font-size: 1.25rem;
	line-height: 1.6;
	font-weight: 500;
	font-variant-numeric: lining-nums;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

p,
h1,
h2,
dl,
dd,
figure {
	margin: 0;
}

cite {
	font-style: italic;
}

a {
	color: var(--ink);
	text-decoration-color: var(--line-strong);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
	transition: text-decoration-color 0.2s, color 0.2s;
}

a:hover {
	color: var(--glow);
	text-decoration-color: currentColor;
}

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

.skip {
	position: absolute;
	left: 1rem;
	top: -4rem;
	z-index: 10;
	padding: 0.6rem 1rem;
	background: var(--ink);
	color: var(--bg);
	font-family: var(--mono);
	font-size: 0.85rem;
	text-decoration: none;
}

.skip:focus {
	top: 1rem;
}

/* ---------- hero ---------- */

.hero {
	position: relative;
	isolation: isolate;
	background: var(--bg);
}

.hero-art {
	position: relative;
	aspect-ratio: 1040 / 720;
	overflow: hidden;
}

/* Phones and tablets: crop to the pyramids and the tunnels beneath them. */
.hero-art .art {
	position: absolute;
	right: 0;
	bottom: 0;
	width: 153.85%;
	height: auto;
	aspect-ratio: 1600 / 1000;
	display: block;
}

@media (min-width: 40rem) {
	.hero-art {
		aspect-ratio: 1600 / 780;
	}
	.hero-art .art {
		width: 100%;
	}
}

.hero-art::after {
	content: '';
	position: absolute;
	inset: auto 0 0 0;
	height: 45%;
	background: linear-gradient(to bottom, rgba(6, 7, 8, 0), var(--bg));
	pointer-events: none;
}

.hero-inner {
	position: relative;
	padding: 0 var(--gutter) clamp(3rem, 8vw, 5rem);
	margin-top: clamp(-5rem, -12vw, -2rem);
}

.hero-copy {
	max-width: 36rem;
}

.eyebrow,
.label,
.meta,
.field-label,
.fineprint,
.spec dt,
.legal {
	font-family: var(--mono);
	font-weight: 400;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	font-size: 0.75rem;
	line-height: 1.5;
}

.eyebrow {
	color: var(--ink-soft);
}

.title {
	margin: 0.35rem 0 1.25rem;
	font-family: var(--serif);
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	line-height: 0.86;
	font-size: clamp(3.6rem, 17vw, 8.75rem);
	margin-left: -0.04em;
}

.title span {
	display: block;
}

.hook {
	font-style: italic;
	font-weight: 500;
	font-size: clamp(1.45rem, 4.4vw, 1.9rem);
	line-height: 1.3;
	max-width: 32rem;
}

.premise {
	margin-top: 1rem;
	color: var(--ink-soft);
	font-size: 1.2rem;
	line-height: 1.55;
	max-width: 33rem;
}

.meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem 0.75rem;
	margin-top: 1.5rem;
	color: var(--ink);
}

.meta .dot {
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--red);
	box-shadow: 0 0 8px var(--red);
}

@media (max-width: 29.99rem) {
	.meta {
		flex-direction: column;
		align-items: flex-start;
	}
	.meta .dot {
		display: none;
	}
}

/* Cover slot: inactive until .has-cover is set on the hero (see index.html). */
.cover {
	display: none;
}

.hero.has-cover .cover {
	display: block;
	width: min(60vw, 17rem);
	margin: 2rem 0 0;
}

.cover img {
	display: block;
	width: 100%;
	height: auto;
	box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.7), 0 0 0 1px var(--line);
}

@media (min-width: 64rem) {
	.hero {
		min-height: max(100svh, 44vw);
		display: flex;
		align-items: center;
	}

	.hero-art {
		position: absolute;
		inset: 0;
		aspect-ratio: auto;
		z-index: -1;
	}

	.hero-art .art {
		width: 100%;
		height: 100%;
		aspect-ratio: auto;
	}

	.hero-art::after {
		inset: 0;
		height: auto;
		background:
			linear-gradient(90deg, rgba(6, 7, 8, 0.94) 0%, rgba(6, 7, 8, 0.78) 30%, rgba(6, 7, 8, 0.15) 55%, rgba(6, 7, 8, 0) 70%),
			linear-gradient(to bottom, rgba(6, 7, 8, 0) 80%, var(--bg));
	}

	.hero-inner {
		width: 100%;
		margin-top: 0;
		padding-top: clamp(2.5rem, 6vh, 6rem);
		padding-bottom: clamp(3rem, 7vh, 6rem);
	}

	.title {
		font-size: clamp(5rem, 7.4vw, 8.75rem);
		margin-bottom: 1rem;
	}

	.premise {
		font-size: 1.12rem;
	}

	.meta {
		margin-top: 1.1rem;
	}

	.hero .signup {
		margin-top: 1.5rem;
		padding: 1.25rem 1.4rem;
	}

	.hero.has-cover .hero-inner {
		display: grid;
		grid-template-columns: minmax(0, 36rem) auto;
		justify-content: space-between;
		align-items: center;
		gap: 3rem;
	}

	.hero.has-cover .cover {
		width: clamp(16rem, 22vw, 22rem);
		margin: 0;
	}
}

/* ---------- signup form ---------- */

.signup {
	margin-top: 2rem;
	max-width: 30rem;
	padding: 1.5rem;
	background: rgba(12, 14, 16, 0.82);
	border: 1px solid var(--line);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

.signup-title {
	font-size: 1.35rem;
	font-weight: 600;
	line-height: 1.3;
	margin-bottom: 1.1rem;
}

.field-label {
	display: block;
	margin-bottom: 0.45rem;
	color: var(--ink-soft);
}

.input {
	display: block;
	width: 100%;
	min-height: 3rem;
	padding: 0.7rem 0.85rem;
	font-family: var(--mono);
	font-size: 1rem;
	color: var(--ink);
	background: var(--bg);
	border: 1px solid var(--line-strong);
	border-radius: 0;
	transition: border-color 0.2s;
}

.input::placeholder {
	color: var(--muted);
}

.input:hover {
	border-color: rgba(233, 228, 216, 0.5);
}

.input:focus-visible {
	outline-offset: 0;
	border-color: var(--glow);
}

.input[aria-invalid='true'] {
	border-color: var(--error);
}

.consent {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 0.75rem;
	align-items: start;
	margin-top: 1.1rem;
	font-size: 1.05rem;
	line-height: 1.45;
	color: var(--ink-soft);
}

.check {
	appearance: none;
	-webkit-appearance: none;
	width: 1.35rem;
	height: 1.35rem;
	margin: 0.1rem 0 0;
	border: 1px solid var(--line-strong);
	background: var(--bg);
	display: grid;
	place-content: center;
	cursor: pointer;
}

.check::before {
	content: '';
	width: 0.7rem;
	height: 0.7rem;
	background: var(--glow);
	clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
	transform: scale(0);
	transition: transform 0.12s;
}

.check:checked::before {
	transform: scale(1);
}

.check[aria-invalid='true'] {
	border-color: var(--error);
}

.consent label {
	cursor: pointer;
}

.error {
	margin-top: 0.4rem;
	font-size: 1rem;
	color: var(--error);
}

.row {
	display: grid;
	gap: 0.6rem;
}

@media (min-width: 30rem) {
	.row {
		grid-template-columns: 1fr auto;
		gap: 0;
	}
	.row .input {
		border-right: 0;
	}
}

.button {
	width: 100%;
	min-height: 3rem;
	padding: 0.75rem 1.5rem;
	font-family: var(--mono);
	font-size: 0.85rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--bg);
	background: var(--ink);
	border: 1px solid var(--ink);
	border-radius: 0;
	cursor: pointer;
	transition: background 0.2s, color 0.2s, box-shadow 0.3s;
}

.button:hover {
	background: var(--glow);
	border-color: var(--glow);
	box-shadow: 0 0 24px var(--glow-dim);
}

.button:disabled {
	cursor: progress;
	opacity: 0.7;
}

.fineprint {
	margin-top: 0.8rem;
	color: var(--muted);
	letter-spacing: 0.08em;
	text-transform: none;
}

.form-status:empty {
	display: none;
}

.form-status {
	margin-top: 1rem;
	font-size: 1.1rem;
	line-height: 1.45;
}

.form-status:focus {
	outline: none;
}

.form-status.is-error {
	color: var(--error);
}

.form-status.is-success {
	margin-top: 0;
	padding-left: 1rem;
	border-left: 2px solid var(--glow);
	font-size: 1.3rem;
	color: var(--ink);
}

.signup.is-done > :not(.form-status):not(.signup-title) {
	display: none;
}

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

/* ---------- sections ---------- */

.band {
	padding: clamp(3.5rem, 9vw, 7rem) var(--gutter);
}

.prose {
	max-width: var(--measure);
	margin: 0 auto;
}

.prose p + p {
	margin-top: 1.1em;
}

.kicker {
	font-family: var(--serif);
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-size: clamp(1.5rem, 4vw, 2rem);
	line-height: 1.15;
	margin-bottom: 1.5rem;
}

.kicker::before {
	content: '';
	display: block;
	width: 1.1rem;
	height: 0.95rem;
	margin-bottom: 1.1rem;
	background: linear-gradient(90deg, #16181b 50%, #3a3f44 50%);
	clip-path: polygon(50% 0, 100% 100%, 0 100%);
	box-shadow: none;
}

.description {
	position: relative;
	border-top: 1px solid var(--line);
}

.description p {
	font-size: 1.3rem;
}

.description p:first-of-type::first-letter {
	float: left;
	font-size: 3.6em;
	line-height: 0.82;
	padding: 0.06em 0.1em 0 0;
	color: var(--red);
	font-weight: 500;
}

.readers {
	background:
		radial-gradient(ellipse 60% 80% at 50% 110%, rgba(127, 232, 204, 0.09), transparent 70%),
		var(--bg-raised);
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}

.readers-line {
	max-width: 46rem;
	margin: 0 auto;
	text-align: center;
	font-size: clamp(1.45rem, 3.6vw, 2.1rem);
	line-height: 1.35;
	font-weight: 500;
}

.readers-line cite {
	color: var(--glow);
}

.note {
	padding-bottom: 0;
}

.note-box {
	max-width: var(--measure);
	margin: 0 auto;
	padding: 1.25rem 1.5rem;
	border: 1px solid var(--line);
	border-left: 2px solid var(--red);
}

.note-box .label {
	color: var(--red);
	margin-bottom: 0.4rem;
}

.note-box p {
	font-size: 1.15rem;
	color: var(--ink-soft);
}

.details {
	max-width: calc(var(--measure) + 2 * var(--gutter));
	margin: 0 auto;
}

.spec {
	border-top: 1px solid var(--line);
}

.spec > div {
	display: grid;
	grid-template-columns: 7.5rem 1fr;
	gap: 1rem;
	align-items: baseline;
	padding: 0.8rem 0;
	border-bottom: 1px solid var(--line);
}

.spec dt {
	color: var(--muted);
}

.spec dd {
	font-size: 1.2rem;
}

.author {
	border-top: 1px solid var(--line);
}

.author p:last-child {
	color: var(--ink-soft);
}

/* ---------- footer ---------- */

.site-footer {
	border-top: 1px solid var(--line);
	background:
		radial-gradient(ellipse 70% 60% at 50% 100%, rgba(127, 232, 204, 0.07), transparent 70%),
		var(--bg);
}

.final-inner {
	max-width: 30rem;
	margin: 0 auto;
}

.final-title {
	font-weight: 500;
	font-size: clamp(1.9rem, 5vw, 2.6rem);
	line-height: 1.1;
}

.final-sub {
	margin-top: 0.6rem;
	color: var(--ink-soft);
}

.signup-final .signup-title {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.legal {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.6rem 2rem;
	padding: 2rem var(--gutter) 2.5rem;
	border-top: 1px solid var(--line);
	color: var(--muted);
	letter-spacing: 0.1em;
}

.legal a {
	color: var(--ink-soft);
}

/* ---------- 404 ---------- */

.lost {
	min-height: 100svh;
	display: grid;
	place-content: center;
	gap: 1.25rem;
	padding: 3rem var(--gutter);
	text-align: center;
}

.lost .title {
	font-size: clamp(3rem, 12vw, 6rem);
	margin: 0;
}

.lost p {
	color: var(--ink-soft);
}

/* ---------- motion (hero art) ---------- */

.art .myc {
	animation: pulse 7s ease-in-out infinite;
}

.art .myc1 {
	animation-duration: 9s;
	animation-delay: -3s;
}

.art .myc2 {
	animation-duration: 11s;
	animation-delay: -6s;
}

.art .apex {
	animation: pulse 5s ease-in-out infinite;
}

.art .haze {
	animation: pulse 13s ease-in-out infinite;
}

.art .haze2 {
	animation-delay: -6s;
}

.art .tw {
	animation: twinkle 4s ease-in-out infinite;
}

.art .tw1 {
	animation-delay: -1.4s;
	animation-duration: 5.5s;
}

.art .tw2 {
	animation-delay: -2.7s;
	animation-duration: 7s;
}

.art .spore {
	animation: drift 16s linear infinite;
}

.art .sp1 {
	animation-duration: 21s;
	animation-delay: -7s;
}

.art .sp2 {
	animation-duration: 26s;
	animation-delay: -13s;
}

.art .sp3 {
	animation-duration: 19s;
	animation-delay: -4s;
}

@keyframes pulse {
	0%,
	100% {
		opacity: 1;
	}
	50% {
		opacity: 0.45;
	}
}

@keyframes twinkle {
	0%,
	100% {
		opacity: 1;
	}
	50% {
		opacity: 0.2;
	}
}

@keyframes drift {
	0% {
		transform: translateY(0);
		opacity: 0;
	}
	15% {
		opacity: 0.9;
	}
	85% {
		opacity: 0.6;
	}
	100% {
		transform: translateY(-90px);
		opacity: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
		scroll-behavior: auto !important;
	}
}

@media (forced-colors: active) {
	.check::before {
		background: CanvasText;
	}
	.signup {
		border: 1px solid CanvasText;
	}
}
