



:root {
	--ink: #1a1a1a;
	--crimson: #c83d32;
	--hot-red: #dc2626;
	--paper: #f2f0eb;
	--white: #ffffff;
	--card-dark: #111111;
	--panel-dark: #222222;
	--border-dark: #333333;
	--black: #000000;
	--gray-400: #9ca3af;
	--gray-300: #d1d5db;
	--gray-500: #6b7280;

	--sans: system-ui, sans-serif;
	--mono: ui-monospace, SFMono-Regular, Menlo, monospace;

	--shadow-card: 6px 8px 26px rgba(0, 0, 0, 0.55);
	--radius: 26px;
}

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

html {
	scroll-behavior: smooth;
	overflow-x: hidden;
}

body {
	font-family: var(--sans);
	background-color: var(--ink);
	color: var(--white);
	overflow-x: hidden;
	padding: 30px 10px;
	-webkit-font-smoothing: antialiased;
	position: relative;
}

@media (min-width: 768px) {
	body {
		padding: 40px 28px;
	}
}

::selection {
	background-color: var(--hot-red);
	color: var(--white);
}

.procedural-visual {
	display: block;
	max-width: 100%;
	aspect-ratio: 4 / 3;
	min-height: 1px;
}

button {
	font-family: var(--sans);
	cursor: pointer;
	border: none;
	background: none;
}

:focus-visible {
	outline: 3px solid var(--hot-red);
	outline-offset: 3px;
}

/* Visually hidden but still read by assistive tech: labels for the form
   fields, which otherwise only carry a placeholder. */
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}


.grain {
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 1;
	opacity: 0.4;
	background-image: var(--noise);
	mix-blend-mode: soft-light;
}

.page-grain {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background-image: var(--noise);
	mix-blend-mode: multiply;
	opacity: 0.35;
	border-radius: var(--radius);
}


.binder {
	position: relative;
	z-index: 2;
	max-width: 1040px;
	margin: 0 auto;
}

.page {
	position: relative;
	border-radius: var(--radius);
	box-shadow: var(--shadow-card);
	overflow: hidden;
	padding: 28px 22px;
}

/* Reveal only when motion is welcome, so the page is never blank without JS. */
@media (prefers-reduced-motion: no-preference) {
	.page {
		opacity: 0;
		transform: translateY(34px);
		transition:
			opacity 0.8s ease,
			transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
	}
}

.page.in-view {
	opacity: 1;
	transform: translateY(0);
}

@media (min-width: 768px) {
	.page {
		padding: 52px 56px;
	}
}

.page-content {
	position: relative;
	z-index: 3;
}


.spiral {
	position: relative;
	z-index: 5;
	height: 76px;
	margin: -18px 0 -26px;
	width: 100%;
	overflow: hidden;
	pointer-events: none;
	user-select: none;
}

.spiral svg {
	display: block;
	width: 100%;
	height: 100%;
}


