:root {
	--ground: #304a34;
	--foil: #c9b892;
	--foil-soft: rgba(201, 184, 146, 0.7);
	--paper: #dfd6bd;
	--ink: #4c4331;
	--ink-2: #6c5c31;
	--board: #6a473c;
	--board-hover: #5b3d34;
	--error: #a8624e;
}
@media (prefers-color-scheme: dark) {
	:root {
		--ground: #22371e;
	}
}
* {
	box-sizing: border-box;
}
html,
body {
	margin: 0;
	background: var(--ground);
	-webkit-font-smoothing: antialiased;
}
a {
	color: var(--foil);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}
a:hover {
	color: #e7dec7;
}

.page {
	position: relative;
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
	align-items: center;
	overflow: hidden;
}
.page::before,
.page::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
}
.page::before {
	background: url(/assets/grain.png) 0 0 / 320px;
	opacity: 0.18;
	mix-blend-mode: overlay;
}
.page::after {
	background: radial-gradient(ellipse 70% 60% at 50% 42%, transparent 0%, rgba(0, 0, 0, 0.28) 100%);
}

main {
	position: relative;
	z-index: 1;
	flex: 1;
	width: 100%;
	max-width: 560px;
	padding: 72px 24px 40px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
}
.wheel {
	width: min(46vw, 208px);
	height: auto;
	display: block;
}
h1 {
	margin: 40px 0 0;
	font:
		400 clamp(44px, 9vw, 68px) / 1.05 "Almendra Display",
		serif;
	letter-spacing: 0.5px;
	color: var(--foil);
	-webkit-text-stroke: 0.8px var(--foil);
}
.rule {
	width: 56px;
	height: 1px;
	margin: 22px 0;
	background: rgba(201, 184, 146, 0.5);
}
.tagline {
	margin: 0;
	max-width: 400px;
	font:
		italic 400 19px / 1.5 Newsreader,
		serif;
	color: #d9cfb6;
	text-wrap: pretty;
}

.slip {
	margin-top: 32px;
	width: 100%;
	max-width: 400px;
	transform: rotate(-0.8deg);
	background: var(--paper);
	border-radius: 7px;
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
	padding: 16px 16px 14px;
	text-align: left;
}
.eyebrow {
	font:
		700 10px "Zilla Slab",
		serif;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--ink-2);
}
form {
	margin-top: 10px;
	display: flex;
	gap: 8px;
}
input {
	flex: 1;
	min-width: 0;
	height: 44px;
	padding: 0 12px;
	border: none;
	border-bottom: 1px solid rgba(108, 92, 49, 0.45);
	border-radius: 0;
	background: rgba(255, 255, 255, 0.28);
	font:
		400 16px Fraunces,
		serif;
	color: var(--ink);
	outline: none;
}
input::placeholder {
	color: rgba(108, 92, 49, 0.6);
	font-style: italic;
}
input:focus-visible {
	border-bottom: 2px solid var(--ink);
}
button {
	flex: none;
	height: 44px;
	padding: 0 16px;
	border: none;
	border-radius: 5px;
	background: var(--board);
	color: #ece2ce;
	font:
		600 12px "Zilla Slab",
		serif;
	letter-spacing: 1.6px;
	text-transform: uppercase;
	cursor: pointer;
}
button:hover:not(:disabled) {
	background: var(--board-hover);
}
button:focus-visible {
	outline: 2px solid var(--ink);
	outline-offset: 2px;
}
button:disabled {
	opacity: 0.6;
	cursor: default;
}
.error {
	margin: 8px 0 0;
	font:
		italic 400 14px Newsreader,
		serif;
	color: var(--error);
}
.done {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 4px 0;
}
.done b {
	font:
		600 17px / 1.4 Fraunces,
		serif;
	color: var(--ink);
}
.done span {
	font:
		italic 400 14px Newsreader,
		serif;
	color: var(--ink-2);
}
[hidden] {
	display: none;
}

footer {
	position: relative;
	z-index: 1;
	width: 100%;
	padding: 0 24px 32px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 10px 28px;
	font:
		600 11px "Zilla Slab",
		serif;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: rgba(201, 184, 146, 0.75);
}
.social {
	display: inline-flex;
	margin-top: 32px;
}
.social svg {
	width: 32px;
	height: 32px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
}
