/* Critical boot shell. Painted from index.html on the very first frame, before
   the JS bundle parses - so there's no white gap and no flash of a text splash.
   Vue clears #sternman and mounts its own, identical-looking app shell
   (.app/.hd/.brand + .loadskel) over it, so the swap is seamless.

   Loaded render-blocking and OUTSIDE the SCSS build, so it can't read the :root
   design tokens (sternman.scss hasn't loaded yet) - every value here is a
   literal copy of a token and must be kept in sync with sternman.scss if those
   change. Kept deliberately tiny (background + masthead brand + skeleton bars;
   the .app compass-rose texture is skipped - imperceptible for a sub-second
   boot). data-theme + data-boot are stamped pre-paint by theme-init.js. */

/* Root font-size baseline: the whole shell below is rem-based on a 62.5% root
   (1rem = 10px), the same value sternman.scss's :root sets - but that stylesheet
   only loads with the JS bundle, so without this the first frame would use the
   16px browser default and every rem here would render ~1.6x too big, then snap
   to size (a zoom flash on reload). theme-init.js also stamps this inline (and
   raises it to 68.75% for the Large text-size setting, which wins over this via
   inline specificity); this is the JS-independent baseline. Keep in sync with
   constants.TEXT_SIZES / sternman.scss. */
html {
	font-size: 62.5%;
}

.boot {
	background: rgb(12 19 27 / 1);
	display: flex;
	flex-direction: column;
	margin: 0 auto;
	max-width: 72rem;
	min-height: 100dvh;
}

.boot__hd {
	align-items: center;
	background: rgb(12 19 27 / 0.75);
	border-bottom: 0.1rem solid rgb(36 52 71 / 1);
	display: flex;

	/* Mirror sternman.scss .hd: clear the black-translucent iOS status bar with
	   env(safe-area-inset-top) so the boot masthead doesn't sit under the clock. */
	padding: calc(1rem + env(safe-area-inset-top)) 1rem 1rem;
}

.boot__brand {
	color: rgb(238 243 248 / 1);
	font-family: "Inter", system-ui, sans-serif;
	font-size: 2.5rem;
	font-weight: 700;
	padding: 0.4rem 1rem 0.4rem 0;
}

/* Skeleton bars only for a returning signed-in user; a guest boot shows the
   bare masthead, then the marketing page mounts. */
.boot__pane {
	display: none;
	flex-direction: column;
	gap: 1rem;
	padding: 1.2rem 1.4rem;
}

:root[data-boot="app"] .boot__pane {
	display: flex;
}

.boot__cap {
	animation: boot-shimmer 1.4s ease-in-out infinite;
	background: linear-gradient(90deg, rgb(36 52 71 / 1) 25%, rgb(15 24 34 / 1) 37%, rgb(36 52 71 / 1) 63%);
	background-size: 200% 100%;
	border-radius: 0.4rem;
	height: 1.55rem;
	margin-top: 0.8rem;
	width: 8rem;
}

.boot__row {
	animation: boot-shimmer 1.4s ease-in-out infinite;
	background: linear-gradient(90deg, rgb(36 52 71 / 1) 25%, rgb(15 24 34 / 1) 37%, rgb(36 52 71 / 1) 63%);
	background-size: 200% 100%;
	border: 0.1rem solid rgb(36 52 71 / 1);
	border-radius: 1rem;
	height: 6.6rem;
}

:root[data-theme="light"] .boot {
	background: rgb(241 244 248 / 1);
}

:root[data-theme="light"] .boot__hd {
	background: rgb(241 244 248 / 0.8);
	border-bottom-color: rgb(214 222 232 / 1);
}

:root[data-theme="light"] .boot__brand {
	color: rgb(170 59 10 / 1);
}

:root[data-theme="light"] .boot__cap,
:root[data-theme="light"] .boot__row {
	background: linear-gradient(90deg, rgb(214 222 232 / 1) 25%, rgb(242 245 249 / 1) 37%, rgb(214 222 232 / 1) 63%);
	background-size: 200% 100%;
}

:root[data-theme="light"] .boot__row {
	border-color: rgb(214 222 232 / 1);
}

@media (prefers-reduced-motion: reduce) {
	.boot__cap,
	.boot__row {
		animation: none;
	}
}

@keyframes boot-shimmer {
	0% {
		background-position: 200% 0;
	}

	100% {
		background-position: -200% 0;
	}
}
