/* The staging access page. Mirrors the app tokens (src/web/styles/tokens.css): felt, cream and gold. */
@font-face {
	font-family: "Big Shoulders Display";
	src: url("/fonts/big-shoulders-display.woff2") format("woff2");
	font-weight: 500 900;
	font-display: swap;
}

@font-face {
	font-family: "Figtree";
	src: url("/fonts/figtree.woff2") format("woff2");
	font-weight: 400 800;
	font-display: swap;
}

:root {
	color-scheme: light;
	--bg: #edf0e6;
	--surface: #fbfbf5;
	--line: #c6cfbe;
	--ink: #14261f;
	--muted: #475a51;
	--felt: #0b5f4a;
	--felt-ink: #f8f3d6;
	--gold: #f2b84b;
	--gold-ink: #231c06;
	--loss: #b0361f;
	--win: #11683f;
	--focus: #b86e00;
	--field: #ffffff;
	--shadow: 0 1px 0 rgb(20 38 31 / 0.06), 0 10px 30px -18px rgb(20 38 31 / 0.35);
}

@media (prefers-color-scheme: dark) {
	:root {
		color-scheme: dark;
		--bg: #0a1f19;
		--surface: #102b23;
		--line: #28503f;
		--ink: #f3efd9;
		--muted: #a9beb3;
		--felt: #147d68;
		--loss: #f69a86;
		--win: #74d9a5;
		--focus: #f2b84b;
		--field: #0a1f19;
		--shadow: 0 1px 0 rgb(0 0 0 / 0.25), 0 12px 30px -18px rgb(0 0 0 / 0.7);
	}
}

* {
	box-sizing: border-box;
}

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

body {
	margin: 0;
	min-height: 100vh;
	min-height: 100dvh;
	display: grid;
	place-items: center;
	padding: 24px 16px;
	background: var(--bg);
	color: var(--ink);
	font-family: Figtree, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 16px;
	line-height: 1.5;
}

.card {
	width: min(420px, 100%);
	padding: 28px 24px 24px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-top: 6px solid var(--felt);
	border-radius: 20px;
	box-shadow: var(--shadow);
}

.brand {
	display: flex;
	align-items: center;
	gap: 10px;
}

.brand img {
	border-radius: 12px;
}

.wordmark {
	font-family: "Big Shoulders Display", Figtree, sans-serif;
	font-size: 26px;
	font-weight: 800;
	letter-spacing: 0.01em;
}

.tag {
	margin-left: auto;
	padding: 2px 10px;
	border-radius: 999px;
	background: var(--gold);
	color: var(--gold-ink);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

h1 {
	margin: 22px 0 6px;
	font-family: "Big Shoulders Display", Figtree, sans-serif;
	font-size: 40px;
	font-weight: 800;
	line-height: 1;
}

.lead {
	margin: 0 0 18px;
	color: var(--muted);
}

.status {
	margin: 0 0 16px;
	padding: 10px 12px;
	border-radius: 12px;
	border: 1px solid currentColor;
	font-weight: 600;
}

.status.error {
	color: var(--loss);
}

.status.ok {
	color: var(--win);
}

form {
	display: grid;
	gap: 8px;
}

label {
	font-weight: 700;
}

input[type="password"] {
	width: 100%;
	min-height: 48px;
	padding: 10px 12px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--field);
	color: var(--ink);
	font: inherit;
}

button {
	margin-top: 8px;
	min-height: 48px;
	border: 0;
	border-radius: 12px;
	background: var(--felt);
	color: var(--felt-ink);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

button:hover {
	filter: brightness(1.08);
}

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