/* The colours and proportions of the pitch (Franku.pdf): white, near-black, one red. */
@font-face {
	font-family: "Inter";
	src: url("/fonts/InterVariable.woff2") format("woff2");
	font-weight: 100 900;
	font-display: swap;
}

:root {
	--red: #d52b1e;
	--ink: #15181d;
	--grey: #5b616b;
	--light: #8a8f98;
	--line: #e3e5e8;
	--tint: #f6f6f4;
}

* {
	box-sizing: border-box;
}

/* The display rules below would otherwise show what the script hides. */
[hidden] {
	display: none !important;
}

html {
	font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: 17px;
	line-height: 1.55;
	color: var(--ink);
	background: #fff;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
}

main {
	max-width: 40rem;
	margin: 0 auto;
	padding: clamp(3rem, 12vh, 7rem) 1.5rem 4rem;
}

.wordmark {
	display: block;
	margin: 0 0 3.5rem;
	font-size: 3rem;
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.03em;
	color: var(--ink);
	text-decoration: none;
}

.wordmark::before {
	content: "";
	display: block;
	width: 3rem;
	height: 0.3rem;
	margin-bottom: 1.4rem;
	background: var(--red);
}

.label {
	margin: 0 0 0.9rem;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--red);
}

.lead {
	margin: 0 0 0.8rem;
	font-size: clamp(1.5rem, 5vw, 1.9rem);
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: -0.02em;
	text-wrap: balance;
}

.sub {
	margin: 0 0 2.5rem;
	font-size: 1.15rem;
	color: var(--grey);
}

p {
	margin: 0 0 0.8rem;
}

ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

li {
	position: relative;
	margin-bottom: 0.5rem;
	padding-left: 1.5rem;
}

li::before {
	content: "";
	position: absolute;
	left: 0.25rem;
	top: 0.62em;
	width: 0.35rem;
	height: 0.35rem;
	border-radius: 50%;
	background: var(--red);
}

hr {
	margin: 3rem 0;
	border: 0;
	border-top: 1px solid var(--line);
}

label {
	display: block;
	margin-bottom: 0.9rem;
	font-weight: 600;
}

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

input,
button {
	font: inherit;
	border-radius: 0;
	padding: 0.7rem 0.9rem;
}

input {
	flex: 1;
	min-width: 0;
	color: var(--ink);
	background: #fff;
	border: 1px solid var(--light);
}

input::placeholder {
	color: var(--light);
}

button {
	font-weight: 600;
	color: #fff;
	background: var(--red);
	border: 1px solid var(--red);
	cursor: pointer;
}

button:hover {
	background: #b82218;
	border-color: #b82218;
}

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

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

/* A field for programs that fill in everything; no person sees it. */
.trap {
	position: absolute;
	left: -100vw;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.note {
	margin: 0.9rem 0 0;
	font-size: 0.85rem;
	color: var(--grey);
}

/* The answer of the server after a registration, in the callout of the pitch. */
.note.done,
.note.failed {
	padding: 0.8rem 1rem;
	font-size: 1rem;
	color: var(--ink);
	background: var(--tint);
	border-left: 3px solid var(--red);
}

@media (max-width: 30rem) {
	.row {
		flex-direction: column;
	}
}

.sub {
	text-wrap: pretty;
}
