/* The game's look: cream paper, ink, Baloo for display. */
:root {
	--ink: #1d1b19;
	--cream: #f6f1e6;
	--paper: #fffdf9;
	--line: #e4dccd;
	--muted: #77716a;
	--red: #c5050c;
	--display: 'Baloo 2', ui-rounded, system-ui, sans-serif;
	--body: 'Figtree', system-ui, sans-serif;
	color-scheme: light;
}

* {
	box-sizing: border-box;
}
html,
body {
	margin: 0;
	min-height: 100%;
	background: var(--cream);
	color: var(--ink);
	font-family: var(--body);
	-webkit-font-smoothing: antialiased;
}
h1,
h2 {
	font-family: var(--display);
	font-weight: 800;
	letter-spacing: -0.01em;
	line-height: 1.05;
	margin: 0;
}
h1 {
	font-size: clamp(40px, 6vw, 64px);
}
h2 {
	font-size: 28px;
}
button,
input,
textarea {
	font: inherit;
	color: inherit;
}
button {
	cursor: pointer;
}
[hidden] {
	display: none !important;
}

.eyebrow {
	margin: 0;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--muted);
}
.lede {
	margin: 0;
	font-size: 20px;
	line-height: 1.4;
}
.hint {
	margin: 0;
	font-size: 14px;
	line-height: 1.45;
	color: var(--muted);
}
.error {
	margin: 0;
	font-weight: 700;
	color: var(--red);
}

.btn {
	display: inline-block;
	border: 3px solid var(--ink);
	background: var(--ink);
	color: var(--paper);
	border-radius: 999px;
	padding: 14px 26px;
	font-family: var(--display);
	font-weight: 700;
	font-size: 20px;
	line-height: 1;
	text-decoration: none;
	text-align: center;
	white-space: nowrap;
	transition: transform 0.08s;
}
.btn:active {
	transform: translateY(2px);
}
.btn.ghost {
	background: transparent;
	color: var(--ink);
}
.btn:disabled {
	opacity: 0.35;
	cursor: default;
}

.field {
	width: 100%;
	border: 3px solid var(--ink);
	border-radius: 18px;
	background: var(--paper);
	padding: 14px 16px;
	font-size: 18px;
	outline: none;
}
.field:focus {
	box-shadow: 0 0 0 4px rgb(29 27 25 / 0.12);
}
textarea.field {
	resize: vertical;
	line-height: 1.45;
}

/* ---- the form */

.sheet {
	max-width: 560px;
	margin: 0 auto;
	padding: 56px 16px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.sheet h1 {
	margin-bottom: 16px;
}
#form {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

/* ---- the exec panel */

.panel {
	max-width: 960px;
	margin: 0 auto;
	padding: 48px 16px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.tally {
	margin: 0;
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 0 18px;
	font-family: var(--display);
	font-weight: 800;
	line-height: 1;
}
.tally > b {
	font-size: clamp(96px, 18vw, 200px);
}
.tally > span {
	font-size: clamp(32px, 5vw, 56px);
	color: var(--muted);
}
.tally .of {
	display: inline-flex;
	align-items: baseline;
	gap: 10px;
	color: var(--ink);
}
.step {
	align-self: center;
	width: 40px;
	height: 40px;
	border: 2px solid var(--line);
	border-radius: 50%;
	background: var(--paper);
	font-size: 22px;
	line-height: 1;
	color: var(--muted);
}
.step:hover {
	border-color: var(--ink);
	color: var(--ink);
}
.meter {
	height: 14px;
	border-radius: 999px;
	background: var(--line);
	overflow: hidden;
}
.meter i {
	display: block;
	height: 100%;
	width: 0;
	background: var(--ink);
	transition: width 0.4s ease-out;
}
.notes {
	margin-top: 24px;
}
.notes summary {
	cursor: pointer;
	font-family: var(--display);
	font-weight: 800;
	font-size: 24px;
}
.notes ul {
	list-style: none;
	margin: 16px 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.notes li {
	background: var(--paper);
	border-radius: 18px;
	padding: 16px 20px;
	font-size: 17px;
	line-height: 1.5;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}

.gate {
	max-width: 560px;
	margin: 0 auto;
	padding: 96px 16px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
}
