/*
 * Construction Gate
 * Styles for the construction page and the message above the login form.
 */

.construction-gate {
	--construction-gate-text: #1d2327;
	--construction-gate-muted: #646970;
	--construction-gate-body: #50575e;

	max-width: 520px;
	margin: 0 auto;
	text-align: center;
}

.construction-gate__site {
	margin: 0 0 16px;
	font-size: 13px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--construction-gate-muted);
}

.construction-gate__heading {
	margin: 0 0 12px;
	font-size: 32px;
	line-height: 1.25;
	font-weight: 600;
	color: var(--construction-gate-text);
}

.construction-gate__message {
	margin: 0;
	font-size: 17px;
	line-height: 1.6;
	color: var(--construction-gate-body);
}

.construction-gate__link {
	display: inline-block;
	margin-top: 28px;
	font-size: 28px;
	font-weight: 700;
	color: var(--construction-gate-text);
	text-decoration: underline;
	text-underline-offset: 4px;
	overflow-wrap: anywhere;
}

.construction-gate__link:hover,
.construction-gate__link:focus {
	text-decoration: none;
}

/* Standalone construction page. */

.construction-gate-page {
	box-sizing: border-box;
	margin: 0;
	min-height: 100vh;
	min-height: 100dvh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: #f6f7f7;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.construction-gate-page *,
.construction-gate-page *::before,
.construction-gate-page *::after {
	box-sizing: inherit;
}

@media (prefers-color-scheme: dark) {
	.construction-gate-page {
		background: #1d2327;
	}

	.construction-gate-page .construction-gate {
		--construction-gate-text: #f0f0f1;
		--construction-gate-muted: #a7aaad;
		--construction-gate-body: #dcdcde;
	}
}

/* Message above the login form. */

.construction-gate-login {
	box-sizing: border-box;
	min-height: 100vh;
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 24px;
	padding: 48px 24px;
}

.construction-gate-login__hint {
	margin: 0;
	font-size: 13px;
	color: #646970;
}

/* The login form sits directly below the message rather than centred. */
body.login {
	display: block;
}

body.login #login {
	padding-top: 24px;
}
