/* The maintenance screen, Figma `4111:40854` (a 402 × 874 frame).
 *
 * The app's own face, self-hosted for the same reason the app does it: the
 * page draws with no third-party request. Fustat replaced Inter Tight across
 * the app, so the frame's Inter Tight is read as Fustat here too. */
@font-face {
	font-family: "Fustat";
	font-style: normal;
	font-weight: 200 800;
	font-display: swap;
	src: url("assets/fustat/Fustat-var.woff2") format("woff2");
}

:root {
	--content-primary: #ffffff;
	--content-secondary: rgba(255, 255, 255, 0.7);
	--ground: #071844;
	--sky: linear-gradient(180deg, #030c24 21.259%, #0a234a 69.439%, #25426e 90.647%, #41629b 117.45%);
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	background: var(--ground);
	-webkit-text-size-adjust: 100%;
}

body {
	min-height: 100vh;
	min-height: 100dvh;
	background: var(--sky), var(--ground);
	color: var(--content-primary);
	font-family: Fustat, system-ui, sans-serif;
	-webkit-font-smoothing: antialiased;
}

/* The frame's block runs from 175 to 581 of 874: above the middle, by 118 more
 * room below than above. Centred, with that difference as bottom padding. */
.maintenance {
	min-height: 100vh;
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 24px 16px calc(24px + 118px);
	padding-top: max(24px, env(safe-area-inset-top));
	text-align: center;
}

/* The export is the Earth with room around it; the frame shows it through a
 * 240 × 252 window, which these offsets reproduce. */
.maintenance__earth {
	position: relative;
	flex: none;
	width: 240px;
	height: 252px;
	overflow: hidden;
}

.maintenance__earth img {
	position: absolute;
	left: -19.18%;
	top: -38.88%;
	width: 138.36%;
	height: 177.75%;
	max-width: none;
}

.maintenance__title {
	max-width: 269px;
	margin-top: 12px;
	font-size: 34px;
	font-weight: 500;
	/* Inter Tight's `normal` at 34, which the frame was measured in; Fustat's
	 * own would add 7 to each line and push the block down. */
	line-height: 41px;
}

.maintenance__text {
	/* Two lines, broken where the frame breaks them: Fustat is wider than the
	 * frame's 208 and would wrap to three. */
	max-width: 100%;
	margin-top: 12px;
	font-size: 14px;
	font-weight: 400;
	line-height: 24px;
	color: var(--content-secondary);
}

.maintenance__estimate {
	max-width: 280px;
	margin-top: 28px;
}

.maintenance__label {
	font-size: 14px;
	line-height: 24px;
	color: var(--content-secondary);
}

.maintenance__countdown {
	margin-top: 4px;
	font-size: 32px;
	font-weight: 500;
	line-height: 44px;
	font-variant-numeric: tabular-nums;
}

.maintenance__note {
	margin-top: 8px;
	font-size: 12px;
	line-height: 20px;
	color: var(--content-secondary);
}
