@font-face {
	font-family: Switzer;
	src: url('/fonts/Switzer-400.woff2') format('woff2');
	font-weight: 400;
	font-display: swap;
}

@font-face {
	font-family: Switzer;
	src: url('/fonts/Switzer-500.woff2') format('woff2');
	font-weight: 500;
	font-display: swap;
}

@font-face {
	font-family: Switzer;
	src: url('/fonts/Switzer-600.woff2') format('woff2');
	font-weight: 600;
	font-display: swap;
}

/* Base tokens come from the platform's design-system/tokens.css. Status colors use Radix
   palette steps 9 for fills, 11 for text, 3 for badges, and 2 and 6 for the headline. */
:root {
	color-scheme: light dark;
	/* Keep light and dark canvas colors in sync with theme-color in src/page.ts. */
	--canvas: #ffffff;
	--surface: #ffffff;
	--subtle: #f4f4f6;
	--border: rgb(14 15 17 / 0.12);
	--border-strong: rgb(14 15 17 / 0.16);
	--text: #0e0f11;
	--text-secondary: #55575d;
	--text-muted: #6b6d73;
	--link: #2340d3;
	--info-soft: #eceffc;
	--green: #30a46c;
	--green-text: #1d7850;
	--green-soft: #e6f6eb;
	--green-wash: #f4fbf6;
	--green-line: #adddc0;
	--amber: #ffc53d;
	--amber-hover: #e2a336;
	--amber-text: #995900;
	--amber-soft: #fff7c2;
	--amber-wash: #fefbe9;
	--amber-line: #f3d673;
	--red: #e5484d;
	--red-text: #ce2c31;
	--red-soft: #feebec;
	--red-wash: #fff7f7;
	--red-line: #fdbdbe;
	--chart-none: rgb(14 15 17 / 0.12);
	--chart-none-strong: rgb(14 15 17 / 0.24);
	--raised: #ffffff;
	--shadow-pane: 0 1px 2px rgb(14 15 17 / 0.04);
	--shadow-pop:
		0 0 0 1px rgb(14 15 17 / 0.1), 0 4px 10px -4px rgb(14 15 17 / 0.12),
		0 16px 32px -12px rgb(14 15 17 / 0.2);
	--duration: 140ms;
}

@media (prefers-color-scheme: dark) {
	:root {
		--canvas: #0a0b0d;
		--surface: #131417;
		--subtle: #1a1b1f;
		--border: rgb(255 255 255 / 0.09);
		--border-strong: rgb(255 255 255 / 0.17);
		--text: #ededf0;
		--text-secondary: #b7b9bf;
		--text-muted: #92949b;
		--link: #9db0ff;
		--info-soft: #1b2145;
		--green-text: #3dd68c;
		--green-soft: #132d21;
		--green-wash: #121b17;
		--green-line: #20573e;
		--amber-hover: #ffe7b3;
		--amber-text: #ffca16;
		--amber-soft: #302008;
		--amber-wash: #1d180f;
		--amber-line: #5c3d05;
		--red-text: #ff9592;
		--red-soft: #3b1219;
		--red-wash: #201314;
		--red-line: #72232d;
		--chart-none: rgb(255 255 255 / 0.14);
		--chart-none-strong: rgb(255 255 255 / 0.28);
		--raised: #1f2025;
		--shadow-pane: 0 1px 2px rgb(0 0 0 / 0.3);
		--shadow-pop:
			0 0 0 1px rgb(255 255 255 / 0.14), 0 4px 10px -4px rgb(0 0 0 / 0.5),
			0 16px 32px -12px rgb(0 0 0 / 0.7);
	}
}

@media (prefers-reduced-motion: reduce) {
	:root {
		--duration: 0ms;
	}
}

.operational {
	--tone: var(--green);
	--tone-hover: var(--green-text);
	--tone-text: var(--green-text);
	--tone-soft: var(--green-soft);
	--tone-wash: var(--green-wash);
	--tone-line: var(--green-line);
	--on-tone: #ffffff;
}

.degraded {
	--tone: var(--amber);
	--tone-hover: var(--amber-hover);
	--tone-text: var(--amber-text);
	--tone-soft: var(--amber-soft);
	--tone-wash: var(--amber-wash);
	--tone-line: var(--amber-line);
	--on-tone: #17181b;
}

.outage {
	--tone: var(--red);
	--tone-hover: var(--red-text);
	--tone-text: var(--red-text);
	--tone-soft: var(--red-soft);
	--tone-wash: var(--red-wash);
	--tone-line: var(--red-line);
	--on-tone: #ffffff;
}

.maintenance,
.unknown,
.done {
	--tone: var(--text-muted);
	--tone-text: var(--text-secondary);
	--tone-soft: var(--subtle);
	--tone-wash: var(--subtle);
	--tone-line: var(--border-strong);
	--on-tone: var(--surface);
}

.info {
	--tone-text: var(--link);
	--tone-soft: var(--info-soft);
}

.none {
	--tone: var(--chart-none);
	--tone-hover: var(--chart-none-strong);
}

* {
	box-sizing: border-box;
}

body {
	margin: 0 auto;
	max-width: 44rem;
	padding: 2rem 1rem 4rem;
	background: var(--canvas);
	color: var(--text);
	font-family:
		Switzer,
		-apple-system,
		BlinkMacSystemFont,
		'Segoe UI',
		system-ui,
		sans-serif;
	font-size: 0.875rem;
	line-height: 1.25rem;
	-webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ul {
	margin: 0;
	padding: 0;
}

a {
	color: var(--link);
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

a:focus-visible {
	border-radius: 0.25rem;
	outline: 2px solid var(--link);
	outline-offset: 2px;
}

h2 {
	padding-bottom: 0.75rem;
	color: var(--text-secondary);
	font-size: 0.875rem;
	font-weight: 500;
}

.meta,
.summary,
.empty,
.badge,
.card > span,
.card small,
footer {
	font-size: 0.75rem;
	letter-spacing: 0.01em;
	line-height: 1rem;
}

.meta,
.summary,
.overall p,
.card,
.body {
	font-variant-numeric: tabular-nums;
}

.top {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding-bottom: 2rem;
}

.label {
	border-left: 1px solid var(--border-strong);
	padding-left: 0.75rem;
}

.wordmark {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	color: var(--text);
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: -0.02em;
	line-height: 1.5rem;
	white-space: nowrap;
}

.wordmark:hover {
	text-decoration: none;
}

.wordmark svg {
	width: 1.2em;
	height: 1.2em;
}

main {
	display: grid;
	gap: 2.5rem;
}

.overall {
	display: flex;
	align-items: center;
	gap: 1rem;
	border: 1px solid var(--tone-line);
	border-radius: 0.75rem;
	padding: 1rem 1.25rem;
	background: var(--tone-wash);
}

.icon {
	flex: none;
	width: 1.5rem;
	height: 1.5rem;
}

.icon circle {
	fill: var(--tone);
}

.icon path {
	fill: none;
	stroke: var(--on-tone);
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.5;
}

h1 {
	font-size: 1.25rem;
	font-weight: 600;
	line-height: 1.75rem;
	text-wrap: balance;
}

.overall p {
	color: var(--text-secondary);
}

h3 {
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.5rem;
}

.components,
.notice,
.empty {
	border: 1px solid var(--border);
	border-radius: 0.75rem;
	background: var(--surface);
	box-shadow: var(--shadow-pane);
}

.components {
	list-style: none;
}

.component,
.notice,
.empty {
	padding: 1.25rem;
}

.component + .component {
	border-top: 1px solid var(--border);
}

.row,
.notice header,
.summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.label,
.meta,
.summary,
.empty,
.card > span {
	color: var(--text-muted);
}

.badge {
	display: inline-flex;
	flex: none;
	align-items: center;
	gap: 0.375rem;
	border-radius: 999px;
	padding: 0.1875rem 0.5rem;
	background: var(--tone-soft);
	color: var(--tone-text);
	font-weight: 500;
	white-space: nowrap;
}

.badge::before {
	width: 0.3125rem;
	height: 0.3125rem;
	border-radius: 50%;
	background: currentColor;
	content: '';
}

.bars {
	display: flex;
	position: relative;
	height: 1.75rem;
	margin: 0.75rem -1px 0;
}

/* Padding separates the bars visually while keeping their hover areas adjacent. */
.bars i {
	flex: 1;
	border-radius: 3px;
	padding: 0 1px;
	background: var(--tone) content-box;
	transition: background-color var(--duration) cubic-bezier(0.2, 0.7, 0.2, 1);
}

.bars i:hover {
	background-color: var(--tone-hover);
	transition-duration: 0ms;
}

.card {
	display: none;
	position: absolute;
	z-index: 1;
	top: calc(100% + 0.5rem);
	right: 0;
	left: 0;
	border-radius: 0.625rem;
	padding: 0.75rem 1rem;
	background: var(--raised);
	box-shadow: var(--shadow-pop);
	font-style: normal;
}

/* Bridge the hover gap between the bar and its card. */
.card::before {
	position: absolute;
	right: 0;
	bottom: 100%;
	left: 0;
	height: 0.5rem;
	content: '';
}

.bars i:hover .card {
	display: block;
}

/* Center cards over their bars, and align cards near the ends to keep them within the page. */
@media (width > 40rem) {
	.bars i {
		position: relative;
	}

	.card {
		right: auto;
		left: 50%;
		translate: -50% 0;
		width: 18.75rem;
	}

	.bars i:nth-child(-n + 30) .card {
		left: 0;
		translate: none;
	}

	.bars i:nth-last-child(-n + 30) .card {
		right: 0;
		left: auto;
		translate: none;
	}
}

.card > span {
	display: block;
	padding-bottom: 0.5rem;
}

.card b {
	display: block;
	position: relative;
	padding-left: 1rem;
	font-weight: 500;
}

.card b + b {
	margin-top: 0.5rem;
}

/* Give the small no-data dot more contrast than its bar. */
.card .none {
	--tone: var(--chart-none-strong);
}

.card b::before {
	position: absolute;
	top: 0.375rem;
	left: 0;
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 50%;
	background: var(--tone);
	content: '';
}

.card small {
	display: block;
	color: var(--text-secondary);
	font-weight: 400;
}

.summary {
	padding-top: 0.5rem;
}

.notice + .notice {
	margin-top: 0.75rem;
}

.meta {
	padding: 0.125rem 0 0.75rem;
}

.body {
	color: var(--text-secondary);
	text-wrap: pretty;
}

.body p + p {
	padding-top: 0.5rem;
}

.body strong {
	color: var(--text);
	font-weight: 500;
}

footer {
	padding-top: 2.5rem;
	text-align: center;
}

@media (max-width: 30rem) {
	.bars {
		margin-inline: -0.5px;
	}

	.bars i {
		padding: 0 0.5px;
	}

	.overall {
		padding: 1rem;
	}
}
