:root {
	color-scheme: light;
	--bg: #f7f8fa;
	--panel: #ffffff;
	--text: #1b2430;
	--muted: #667085;
	--border: #d9dee7;
	--accent: #246bfe;
	--healthy: #14804a;
	--healthy-bg: #e8f7ef;
	--unhealthy: #b42318;
	--unhealthy-bg: #feeceb;
	--unknown: #6b7280;
	--unknown-bg: #f0f2f5;
	--shadow: 0 18px 50px rgb(27 36 48 / 8%);
	font-family:
		Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
	box-sizing: border-box;
}

body {
	min-height: 100vh;
	margin: 0;
	background:
		linear-gradient(180deg, rgb(255 255 255 / 92%), rgb(247 248 250 / 92%)),
		radial-gradient(circle at top left, rgb(36 107 254 / 14%), transparent 34rem);
	color: var(--text);
}

a {
	color: inherit;
}

.shell {
	width: min(1120px, calc(100% - 32px));
	margin: 0 auto;
	padding: 56px 0;
}

.page-header {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 28px;
}

.eyebrow {
	margin: 0 0 8px;
	color: var(--accent);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0;
	text-transform: uppercase;
}

h1,
h2,
p {
	margin-top: 0;
}

h1 {
	margin-bottom: 0;
	font-size: clamp(2rem, 4vw, 3.8rem);
	line-height: 1;
	letter-spacing: 0;
}

.timestamp {
	margin-bottom: 6px;
	color: var(--muted);
	font-size: 0.92rem;
	white-space: nowrap;
}

.project-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 18px;
}

.project-card {
	display: flex;
	min-height: 220px;
	flex-direction: column;
	padding: 20px;
	border: 1px solid var(--border);
	border-radius: 8px;
	background: var(--panel);
	box-shadow: var(--shadow);
}

.project-card__header {
	display: flex;
	align-items: start;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 14px;
}

.project-card h2 {
	margin-bottom: 0;
	font-size: 1.18rem;
	line-height: 1.25;
}

.status-pill {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 7px;
	min-height: 28px;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 0.78rem;
	font-weight: 700;
}

.status-pill span {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: currentcolor;
}

.status-pill--healthy {
	background: var(--healthy-bg);
	color: var(--healthy);
}

.status-pill--unhealthy {
	background: var(--unhealthy-bg);
	color: var(--unhealthy);
}

.status-pill--unknown {
	background: var(--unknown-bg);
	color: var(--unknown);
}

.project-url {
	overflow-wrap: anywhere;
	margin-bottom: 18px;
	color: var(--muted);
	font-size: 0.95rem;
	line-height: 1.45;
}

.project-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: auto;
	color: var(--muted);
	font-size: 0.82rem;
}

.project-meta span {
	padding: 5px 8px;
	border: 1px solid var(--border);
	border-radius: 6px;
	background: #fbfcfe;
}

.project-error {
	margin: 0 0 12px 0;
	color: var(--unhealthy);
	font-size: 0.86rem;
	line-height: 1.4;
}

.project-link {
	display: inline-flex;
	align-self: flex-start;
	margin-top: 18px;
	padding: 9px 12px;
	border-radius: 6px;
	background: var(--text);
	color: #ffffff;
	font-size: 0.9rem;
	font-weight: 700;
	text-decoration: none;
}

.project-link:not(.project-link--disabled):hover {
	background: var(--accent);
}

.project-link--disabled {
	background: #eef1f6;
	color: var(--muted);
}

.empty-state {
	padding: 32px;
	border: 1px dashed var(--border);
	border-radius: 8px;
	background: rgb(255 255 255 / 70%);
}

.empty-state h2 {
	margin-bottom: 8px;
}

.empty-state p {
	margin-bottom: 0;
	color: var(--muted);
}

@media (max-width: 640px) {
	.shell {
		width: min(100% - 24px, 1120px);
		padding: 32px 0;
	}

	.page-header {
		display: block;
	}

	.timestamp {
		margin-top: 14px;
		white-space: normal;
	}

	.project-grid {
		grid-template-columns: 1fr;
	}
}
