:root {
	font-family:
		Inter,
		"IBM Plex Sans JP",
		"Helvetica Neue",
		Arial,
		sans-serif;
	color: #1d1d1f;
	background: #f5f5f7;
	font-synthesis: none;
	--surface: rgba(255, 255, 255, 0.82);
	--surface-strong: #ffffff;
	--border: rgba(0, 0, 0, 0.08);
	--muted: #6e6e73;
	--green: #248a3d;
	--yellow: #a05a00;
	--red: #d70015;
	--gray: #86868b;
	--shadow: 0 18px 50px rgba(0, 0, 0, 0.07);
}

* {
	box-sizing: border-box;
}

html {
	min-height: 100%;
}

body {
	min-height: 100vh;
	margin: 0;
	background:
		radial-gradient(circle at 50% -20%, rgba(255, 255, 255, 0.95), transparent 42rem),
		#f5f5f7;
}

button,
a {
	font: inherit;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 64px;
	padding: 0 32px;
	border-bottom: 1px solid var(--border);
	background: rgba(245, 245, 247, 0.76);
	backdrop-filter: blur(24px) saturate(180%);
	-webkit-backdrop-filter: blur(24px) saturate(180%);
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: inherit;
	font-size: 15px;
	font-weight: 650;
	text-decoration: none;
	letter-spacing: -0.01em;
}

.brand-mark {
	display: grid;
	width: 28px;
	height: 28px;
	place-items: center;
	border-radius: 9px;
	background: #1d1d1f;
	color: #ffffff;
	font-size: 17px;
	font-weight: 700;
}

.refresh-button {
	min-height: 36px;
	padding: 0 15px;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: var(--surface-strong);
	color: inherit;
	cursor: pointer;
	transition:
		transform 140ms ease,
		background 140ms ease;
}

.refresh-button:hover {
	background: #eeeeef;
}

.refresh-button:active {
	transform: scale(0.97);
}

.refresh-button:disabled {
	cursor: wait;
	opacity: 0.58;
}

.container {
	width: min(920px, calc(100% - 40px));
	margin: 0 auto;
	padding: 72px 0 48px;
}

.hero {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 22px;
	align-items: center;
	margin-bottom: 36px;
	padding: 0 8px;
}

.overall-indicator {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--gray);
	box-shadow: 0 0 0 7px rgba(134, 134, 139, 0.12);
}

.overall-indicator.operational {
	background: var(--green);
	box-shadow: 0 0 0 7px rgba(36, 138, 61, 0.12);
}

.overall-indicator.degraded {
	background: var(--yellow);
	box-shadow: 0 0 0 7px rgba(160, 90, 0, 0.12);
}

.overall-indicator.outage {
	background: var(--red);
	box-shadow: 0 0 0 7px rgba(215, 0, 21, 0.12);
}

.overall-indicator.checking {
	animation: pulse 1.25s ease-in-out infinite;
}

.eyebrow {
	margin: 0 0 7px;
	color: var(--muted);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.13em;
}

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

h1 {
	margin-bottom: 9px;
	font-size: clamp(30px, 5vw, 48px);
	font-weight: 680;
	line-height: 1.08;
	letter-spacing: -0.045em;
}

h2 {
	margin-bottom: 0;
	font-size: 24px;
	font-weight: 650;
	letter-spacing: -0.025em;
}

.overall-description {
	margin-bottom: 0;
	color: var(--muted);
	line-height: 1.65;
}

.status-panel {
	overflow: hidden;
	border: 1px solid var(--border);
	border-radius: 24px;
	background: var(--surface);
	box-shadow: var(--shadow);
	backdrop-filter: blur(24px);
	-webkit-backdrop-filter: blur(24px);
}

.section-header {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 24px;
	padding: 26px 28px 20px;
	border-bottom: 1px solid var(--border);
}

.last-checked {
	margin-bottom: 2px;
	color: var(--muted);
	font-size: 13px;
	white-space: nowrap;
}

.service-list {
	display: grid;
}

.service-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 20px;
	align-items: center;
	min-height: 92px;
	padding: 18px 28px;
	border-bottom: 1px solid var(--border);
}

.service-row:last-child {
	border-bottom: 0;
}

.service-name {
	margin-bottom: 5px;
	font-size: 16px;
	font-weight: 620;
	letter-spacing: -0.012em;
}

.service-url {
	overflow: hidden;
	margin: 0;
	color: var(--muted);
	font-family:
		"SFMono-Regular",
		Consolas,
		"Liberation Mono",
		monospace;
	font-size: 12px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.service-result {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 126px;
	justify-content: flex-end;
}

.status-dot {
	width: 9px;
	height: 9px;
	flex: 0 0 auto;
	border-radius: 50%;
	background: var(--gray);
}

.status-dot.operational {
	background: var(--green);
}

.status-dot.degraded {
	background: var(--yellow);
}

.status-dot.outage {
	background: var(--red);
}

.status-dot.checking {
	animation: pulse 1.25s ease-in-out infinite;
}

.status-text {
	font-size: 14px;
	font-weight: 560;
}

.latency {
	margin-top: 4px;
	color: var(--muted);
	font-size: 12px;
	text-align: right;
}

.empty-state {
	padding: 34px 28px;
	color: var(--muted);
	line-height: 1.7;
}

.information {
	padding: 18px 8px 0;
	color: var(--muted);
	font-size: 13px;
	line-height: 1.7;
}

.information p {
	margin-bottom: 0;
}

.site-footer {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	width: min(920px, calc(100% - 40px));
	margin: 0 auto;
	padding: 0 8px 40px;
	color: var(--muted);
	font-size: 12px;
}

@keyframes pulse {
	0%,
	100% {
		opacity: 0.45;
	}

	50% {
		opacity: 1;
	}
}

@media (max-width: 640px) {
	.site-header {
		padding: 0 20px;
	}

	.container {
		width: min(100% - 24px, 920px);
		padding-top: 48px;
	}

	.hero {
		gap: 17px;
	}

	.section-header {
		align-items: flex-start;
		flex-direction: column;
		gap: 10px;
		padding: 22px 20px 17px;
	}

	.service-row {
		grid-template-columns: 1fr;
		gap: 14px;
		padding: 18px 20px;
	}

	.service-result {
		justify-content: flex-start;
		min-width: 0;
	}

	.latency {
		text-align: left;
	}

	.site-footer {
		width: min(100% - 24px, 920px);
		padding-bottom: 28px;
	}
}

@media (prefers-color-scheme: dark) {
	:root {
		color: #f5f5f7;
		background: #0b0b0c;
		--surface: rgba(28, 28, 30, 0.82);
		--surface-strong: #252527;
		--border: rgba(255, 255, 255, 0.1);
		--muted: #a1a1a6;
		--green: #30d158;
		--yellow: #ffd60a;
		--red: #ff453a;
		--gray: #98989d;
		--shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
	}

	body {
		background:
			radial-gradient(circle at 50% -20%, rgba(60, 60, 67, 0.42), transparent 42rem),
			#0b0b0c;
	}

	.site-header {
		background: rgba(11, 11, 12, 0.76);
	}

	.brand-mark {
		background: #f5f5f7;
		color: #1d1d1f;
	}

	.refresh-button:hover {
		background: #303033;
	}
}
