/* The look of richardwollyce.com, read from the live site on 2026-11-10:
   zinc-950 background, Playfair Display for the title, Montserrat for the rest,
   zinc greys for secondary text, and the site's dark-theme accent for focus. */

:root {
	--bg: #09090b;
	--text: #f4f4f5;
	--text-2: #a1a1aa;
	--text-3: #71717a;
	--line: #27272a;
	--field: #18181b;
	--field-line: #3f3f46;
	--accent: #e8624a;
	--error: #f87171;
	--display: 'RoxboroughCF', 'Playfair Display', Georgia, serif;
	--sans: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	color-scheme: dark;
}

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

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

body {
	margin: 0;
	min-height: 100vh;
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
	background: var(--bg);
	color: var(--text);
	font-family: var(--sans);
	font-weight: 400;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

.page {
	flex: 1;
	width: 100%;
	max-width: 26rem;
	margin: 0 auto;
	padding: clamp(3rem, 12vh, 7rem) 1.25rem 2rem;
}

.name {
	display: inline-block;
	margin-bottom: 2.5rem;
	color: var(--text-2);
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	text-decoration: none;
}

.name:hover {
	color: var(--text);
}

h1 {
	margin: 0 0 1rem;
	font-family: var(--display);
	font-weight: 400;
	font-size: clamp(2.25rem, 9vw, 3rem);
	line-height: 1.1;
	letter-spacing: -0.025em;
}

.lede {
	margin: 0 0 2.25rem;
	color: var(--text-2);
	font-size: 1rem;
	font-weight: 300;
	letter-spacing: 0.01em;
}

.field {
	display: block;
	margin-bottom: 1rem;
}

.label {
	display: block;
	margin-bottom: 0.375rem;
	color: var(--text-2);
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

input[type='text'],
input[type='tel'] {
	width: 100%;
	padding: 0.8rem 0.9rem;
	border: 1px solid var(--field-line);
	border-radius: 10px;
	background: var(--field);
	color: var(--text);
	font: inherit;
	font-size: 1rem; /* 16px keeps iOS from zooming in on focus */
	transition: border-color 0.15s ease-out;
}

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

input:focus-visible,
button:focus-visible,
a:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

input[type='text']:focus,
input[type='tel']:focus {
	border-color: var(--text-2);
}

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

.consent {
	display: flex;
	gap: 0.75rem;
	align-items: flex-start;
	margin: 1.5rem 0 1.25rem;
	color: var(--text-2);
	font-size: 0.8125rem;
	line-height: 1.55;
	cursor: pointer;
}

.consent input {
	flex: none;
	width: 1.125rem;
	height: 1.125rem;
	margin: 0.15rem 0 0;
	accent-color: var(--accent);
	cursor: pointer;
}

/* Off screen rather than display:none, which some bots check for and skip. */
.hp {
	position: absolute;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.ts:not(:empty) {
	margin-bottom: 1rem;
}

.err {
	margin: 0 0 1rem;
	color: var(--error);
	font-size: 0.875rem;
}

button {
	width: 100%;
	padding: 0.9rem 1rem;
	border: 0;
	border-radius: 10px;
	background: #fafafa;
	color: #09090b;
	font: inherit;
	font-weight: 500;
	font-size: 0.9375rem;
	letter-spacing: 0.02em;
	cursor: pointer;
	transition: background 0.15s ease-out;
}

button:hover {
	background: #e4e4e7;
}

button:disabled {
	opacity: 0.6;
	cursor: progress;
}

#done:focus {
	outline: none;
}

.foot {
	padding: 1.5rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom));
	border-top: 1px solid var(--line);
	color: var(--text-3);
	font-size: 0.75rem;
	text-align: center;
}

.foot p {
	max-width: 26rem;
	margin: 0 auto;
}

.foot a {
	color: var(--text-2);
}

@media (prefers-reduced-motion: reduce) {
	* {
		transition: none !important;
	}
}
