@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=Space+Grotesk:wght@400;500;600;700&display=swap");

:root {
	color-scheme: dark;
	--fuel: #00db7d;
	--ink: #f4f7f5;
	--muted: #929a95;
	--line: #2d322f;
	--panel: #151816;
	--background: #0b0d0c;
	--track: #242925;
	font-family: "Space Grotesk", system-ui, sans-serif;
	color: var(--ink);
	background: var(--background);
}
:root[data-theme="light"] {
	color-scheme: light;
	--ink: #171717;
	--muted: #737373;
	--line: #e5e5e5;
	--panel: #fff;
	--background: #fafafa;
	--track: #e8ece9;
}
* {
	box-sizing: border-box;
}
body {
	margin: 0;
	min-width: 0;
	background: var(--background);
}
a {
	color: inherit;
}
header,
main,
footer {
	width: min(1200px, calc(100% - 48px));
	margin-inline: auto;
}
header {
	min-height: 66px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-bottom: 1px solid var(--line);
}
header p,
footer {
	color: var(--muted);
	font-size: 13px;
}
.brand {
	display: flex;
	align-items: center;
	gap: 9px;
	font-size: 25px;
	font-weight: 600;
	text-decoration: none;
}
.brand img {
	width: 22px;
	height: 22px;
}
nav {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	margin-left: auto;
	font-size: 13px;
}
.header-actions {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-left: 18px;
}
nav a {
	color: var(--muted);
	text-decoration: none;
}
nav a:hover {
	color: var(--fuel);
}
#theme-toggle {
	display: grid;
	width: 34px;
	height: 34px;
	padding: 0;
	place-items: center;
	border: 1px solid var(--line);
	border-radius: 50%;
	color: var(--ink);
	background: transparent;
	cursor: pointer;
}
#theme-toggle svg {
	width: 18px;
	height: 18px;
}
#theme-toggle .moon-icon,
:root[data-theme="light"] #theme-toggle .sun-icon {
	display: none;
}
:root[data-theme="light"] #theme-toggle .moon-icon {
	display: block;
}
#nav-toggle {
	display: none;
	width: 44px;
	height: 44px;
	padding: 10px;
	border: 0;
	color: var(--ink);
	background: transparent;
}
#nav-toggle span {
	display: block;
	width: 22px;
	height: 2px;
	margin: 4px 0;
	background: currentColor;
	transition:
		transform 160ms ease,
		opacity 160ms ease;
}
section[id] {
	scroll-margin-top: 20px;
}
.intro {
	padding: 76px 0 52px;
	border-bottom: 1px solid var(--line);
}
.eyebrow {
	margin: 0 0 10px;
	color: var(--fuel);
	font:
		500 12px "IBM Plex Mono",
		monospace;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
h1,
h2,
p {
	margin-top: 0;
}
h1 {
	max-width: 780px;
	margin-bottom: 16px;
	font-size: clamp(48px, 7vw, 92px);
	line-height: 0.96;
	letter-spacing: -0.055em;
}
.intro > p:last-child {
	max-width: 620px;
	margin: 0;
	color: var(--muted);
	font-size: 18px;
}
.summary {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	border-bottom: 1px solid var(--line);
}
.summary article {
	min-width: 0;
	padding: 24px 18px;
	border-right: 1px solid var(--line);
}
.summary article:first-child {
	padding-left: 0;
}
.summary article:last-child {
	border-right: 0;
}
.summary span,
.summary small {
	display: block;
	color: var(--muted);
	font-size: 12px;
}
.summary strong {
	display: block;
	margin: 6px 0;
	font:
		500 22px "IBM Plex Mono",
		monospace;
	overflow-wrap: anywhere;
}
.panel {
	padding: 48px 0;
	border-bottom: 1px solid var(--line);
}
.section-head {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 24px;
}
.section-head h2 {
	margin: 0;
	font-size: 34px;
	letter-spacing: -0.035em;
}
.section-head > p {
	max-width: 280px;
	margin: 0;
	color: var(--muted);
	text-align: right;
}
.distribution {
	display: grid;
	gap: 2px;
}
.tier {
	display: grid;
	grid-template-columns: 150px 1fr 100px 180px;
	gap: 16px;
	align-items: center;
	min-height: 48px;
	border-top: 1px solid var(--line);
}
.tier:last-child {
	border-bottom: 1px solid var(--line);
}
.tier-name {
	font-weight: 600;
}
.tier-bar {
	height: 8px;
	background: var(--track);
}
.tier-bar i {
	display: block;
	height: 100%;
	min-width: 2px;
	background: var(--fuel);
}
.tier-count,
.tier-balance {
	font:
		500 12px "IBM Plex Mono",
		monospace;
	text-align: right;
}
.tier-count {
	color: var(--muted);
}
.category > summary {
	cursor: pointer;
	list-style: none;
}
.category > summary::-webkit-details-marker {
	display: none;
}
.category > summary .tier-name::after {
	content: " +";
	color: var(--fuel);
}
.category[open] > summary .tier-name::after {
	content: " −";
}
.category-breakdown {
	padding: 8px 0 18px 150px;
	border-top: 1px solid var(--line);
}
.category-breakdown > p {
	margin: 8px 0 14px;
	color: var(--muted);
	font-size: 13px;
}
.category-breakdown > div {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 100px 220px;
	gap: 16px;
	padding: 9px 0;
	border-top: 1px solid var(--line);
	font-size: 13px;
}
.category-breakdown span {
	color: var(--muted);
	font-family: "IBM Plex Mono", monospace;
	text-align: right;
}
.methodology {
	max-width: 760px;
	margin: 18px 0 0;
	color: var(--muted);
	font-size: 13px;
	line-height: 1.5;
}
.holder-head label {
	display: grid;
	gap: 6px;
	color: var(--muted);
	font:
		500 11px "IBM Plex Mono",
		monospace;
	text-transform: uppercase;
}
input {
	width: min(320px, 40vw);
	padding: 11px 13px;
	border: 1px solid var(--line);
	border-radius: 0;
	outline: 0;
	color: var(--ink);
	background: var(--panel);
	font: inherit;
}
input:focus {
	border-color: var(--fuel);
}
.status {
	color: var(--muted);
}
.table-wrap {
	overflow-x: auto;
}
table {
	width: 100%;
	border-collapse: collapse;
}
th,
td {
	padding: 15px 12px;
	border-top: 1px solid var(--line);
	text-align: right;
}
th {
	color: var(--muted);
	font:
		500 11px "IBM Plex Mono",
		monospace;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}
th:first-child,
td:first-child {
	width: 65px;
	padding-left: 0;
	text-align: left;
}
th:nth-child(2),
td:nth-child(2) {
	text-align: left;
}
td {
	font:
		400 13px "IBM Plex Mono",
		monospace;
}
.holder-link {
	display: grid;
	gap: 3px;
	color: var(--ink);
	text-decoration: none;
}
.holder-link strong {
	color: var(--ink);
	font:
		600 15px "Space Grotesk",
		sans-serif;
}
.holder-link small {
	color: var(--muted);
}
.holder-link:hover strong {
	color: var(--fuel);
}
.balance {
	color: var(--fuel);
	font-weight: 500;
}
.staking-summary {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin: 24px 0 42px;
	border: 1px solid var(--line);
}
.staking-stat {
	min-width: 0;
	padding: 16px;
	border-right: 1px solid var(--line);
}
.staking-stat:nth-child(3n) {
	border-right: 0;
}
.staking-stat:nth-child(-n + 3) {
	border-bottom: 1px solid var(--line);
}
.staking-stat span,
.staking-stat small {
	display: block;
	color: var(--muted);
	font-size: 11px;
}
.staking-stat strong {
	display: block;
	margin: 6px 0;
	font:
		500 16px "IBM Plex Mono",
		monospace;
	overflow-wrap: anywhere;
}
.validator-head {
	margin-bottom: 12px;
}
.validator-head h3 {
	margin: 0;
	font-size: 25px;
}
.validator-name {
	display: grid;
	gap: 3px;
	max-width: 280px;
}
.validator-name strong,
.validator-name small {
	overflow-wrap: anywhere;
}
.validator-name small {
	color: var(--muted);
}
.validator-jailed {
	color: #ff8d7b;
}
.chain-backing {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin: 28px 0;
}
.chain-backing article {
	padding: 18px;
	border: 1px solid var(--line);
}
.chain-backing h3 {
	margin: 0 0 10px;
	font-size: 17px;
}
.chain-backing article > div {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 9px 0;
	border-top: 1px solid var(--line);
}
.chain-backing article > div > span:first-child,
.chain-backing small {
	color: var(--muted);
	font-size: 11px;
}
.chain-backing article > div > span:last-child,
.chain-backing strong,
.chain-backing small {
	display: block;
	text-align: right;
}
.chain-backing strong {
	font:
		500 13px "IBM Plex Mono",
		monospace;
}
.chain-layout {
	display: grid;
	grid-template-columns: minmax(220px, 320px) 1fr;
	align-items: center;
	gap: 48px;
	margin: 24px 0;
}
.chain-chart {
	width: 100%;
	max-width: 320px;
	aspect-ratio: 1;
	border-radius: 50%;
	box-shadow: inset 0 0 0 1px var(--line);
}
.chain-legend > div {
	display: grid;
	grid-template-columns: 10px minmax(0, 1fr) auto;
	align-items: center;
	gap: 12px;
	padding: 13px 0;
	border-top: 1px solid var(--line);
}
.chain-legend i {
	width: 10px;
	height: 10px;
	border-radius: 50%;
}
.chain-legend b,
.chain-legend small,
.chain-legend strong {
	display: block;
}
.chain-legend small {
	color: var(--muted);
	font-size: 11px;
}
.chain-legend > div > span:last-child {
	text-align: right;
}
.chain-legend strong {
	font:
		500 14px "IBM Plex Mono",
		monospace;
}
.flow-summary {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin-bottom: 24px;
	border: 1px solid var(--line);
}
.flow-summary-card {
	min-width: 0;
	padding: 16px;
	border-right: 1px solid var(--line);
}
.flow-summary-card:last-child {
	border-right: 0;
}
.flow-summary-card span,
.flow-summary-card small {
	display: block;
	color: var(--muted);
	font-size: 11px;
}
.flow-summary-card strong {
	display: block;
	margin: 6px 0;
	font:
		500 16px "IBM Plex Mono",
		monospace;
	overflow-wrap: anywhere;
}
.flow-summary-card.net-in strong {
	color: var(--fuel);
}
.flow-summary-card.net-out strong {
	color: #ff8d7b;
}
.flow-table th:first-child,
.flow-table td:first-child {
	width: auto;
}
.flow-value {
	display: grid;
	gap: 3px;
}
.flow-value strong,
.flow-value small,
.flow-value em {
	display: block;
}
.flow-value small,
.flow-value em {
	color: var(--muted);
	font-size: 11px;
	font-style: normal;
}
.flow-value.net-in strong,
.flow-value.net-in em {
	color: var(--fuel);
}
.flow-value.net-out strong,
.flow-value.net-out em {
	color: #ff8d7b;
}
footer {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding-block: 24px 40px;
}

@media (max-width: 760px) {
	header,
	main,
	footer {
		width: min(100% - 28px, 1200px);
	}
	body.nav-open {
		overflow: hidden;
	}
	header {
		position: sticky;
		top: 0;
		z-index: 50;
		min-height: 58px;
		padding: 7px 0;
		background: var(--background);
	}
	.brand,
	.header-actions {
		position: relative;
		z-index: 2;
	}
	.header-actions {
		margin-left: auto;
	}
	#nav-toggle {
		display: block;
	}
	#theme-toggle:focus-visible,
	#nav-toggle:focus-visible,
	#site-nav a:focus-visible {
		outline: 2px solid var(--fuel);
		outline-offset: 4px;
	}
	#site-nav {
		position: fixed;
		inset: 0;
		z-index: 1;
		display: none;
		width: 100%;
		min-height: 100vh;
		min-height: 100dvh;
		padding: 94px 24px 32px;
		overflow-y: auto;
		counter-reset: nav-item;
		background: var(--background);
	}
	#site-nav a {
		display: grid;
		grid-template-columns: 38px minmax(0, 1fr);
		padding: 17px 4px;
		border-top: 1px solid var(--line);
		color: var(--ink);
		font-size: clamp(26px, 8vw, 36px);
		font-weight: 600;
		line-height: 1.05;
		counter-increment: nav-item;
	}
	#site-nav a:last-child {
		border-bottom: 1px solid var(--line);
	}
	#site-nav a::before {
		grid-row: 1 / 3;
		padding-top: 4px;
		color: var(--fuel);
		font: 500 11px "IBM Plex Mono", monospace;
		content: "0" counter(nav-item);
	}
	#site-nav a::after {
		grid-column: 2;
		margin-top: 7px;
		color: var(--muted);
		font-size: 13px;
		font-weight: 400;
		content: attr(data-description);
	}
	header.nav-open #site-nav {
		display: grid;
		align-content: center;
		animation: nav-enter 180ms ease-out;
	}
	header.nav-open #nav-toggle span:first-child {
		transform: translateY(6px) rotate(45deg);
	}
	header.nav-open #nav-toggle span:nth-child(2) {
		opacity: 0;
	}
	header.nav-open #nav-toggle span:last-child {
		transform: translateY(-6px) rotate(-45deg);
	}
	.intro {
		padding: 48px 0 36px;
	}
	h1 {
		font-size: clamp(43px, 15vw, 64px);
	}
	.intro > p:last-child {
		font-size: 16px;
	}
	.summary {
		grid-template-columns: 1fr 1fr;
	}
	.summary article,
	.summary article:first-child {
		padding: 18px 10px 18px 0;
		border-bottom: 1px solid var(--line);
	}
	.summary article:nth-child(2n) {
		padding-left: 12px;
		border-right: 0;
	}
	.summary article:nth-last-child(-n + 2) {
		border-bottom: 0;
	}
	.summary strong {
		font-size: 16px;
	}
	.panel {
		padding: 36px 0;
	}
	.section-head {
		display: block;
	}
	.section-head > p {
		margin-top: 8px;
		text-align: left;
	}
	.tier {
		grid-template-columns: 120px 1fr 72px;
		gap: 9px;
		padding: 10px 0;
	}
	.tier-balance {
		grid-column: 2 / -1;
		grid-row: 2;
		text-align: left;
	}
	.staking-summary {
		grid-template-columns: 1fr 1fr;
	}
	.staking-stat:nth-child(3n) {
		border-right: 1px solid var(--line);
	}
	.staking-stat:nth-child(2n) {
		border-right: 0;
	}
	.staking-stat:nth-child(-n + 4) {
		border-bottom: 1px solid var(--line);
	}
	.chain-backing {
		grid-template-columns: 1fr;
	}
	.chain-layout {
		display: block;
	}
	.chain-chart {
		width: min(100%, 240px);
		margin: 0 auto 28px;
	}
	.chain-legend > div {
		grid-template-columns: 10px minmax(0, 1fr) auto;
		gap: 10px;
	}
	.flow-summary {
		grid-template-columns: 1fr 1fr;
	}
	.flow-summary-card:nth-child(2) {
		border-right: 0;
	}
	.flow-summary-card:nth-child(-n + 2) {
		border-bottom: 1px solid var(--line);
	}
	.category-breakdown {
		padding: 4px 0 18px;
	}
	.category-breakdown > div {
		grid-template-columns: minmax(0, 1fr) auto;
		gap: 5px 12px;
	}
	.category-breakdown > div span:last-child {
		grid-column: 1 / -1;
		text-align: left;
	}
	.holder-head label {
		margin-top: 20px;
	}
	input {
		width: 100%;
	}
	table,
	thead,
	tbody,
	tr,
	td {
		display: block;
		width: 100%;
	}
	thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
	}
	tbody {
		display: grid;
		gap: 10px;
	}
	tr {
		padding: 13px;
		border: 1px solid var(--line);
		background: var(--panel);
	}
	td,
	td:first-child,
	td:nth-child(2) {
		display: flex;
		justify-content: space-between;
		gap: 12px;
		width: 100%;
		padding: 8px 0;
		border: 0;
		border-bottom: 1px solid var(--line);
		text-align: right;
	}
	td:last-child {
		border-bottom: 0;
	}
	td::before {
		content: attr(data-label);
		color: var(--muted);
		font:
			500 10px "IBM Plex Mono",
			monospace;
		letter-spacing: 0.05em;
		text-transform: uppercase;
	}
	td:nth-child(2) {
		align-items: start;
	}
	.holder-link {
		max-width: calc(100% - 70px);
		text-align: right;
		overflow-wrap: anywhere;
	}
	footer {
		display: grid;
	}
}

@keyframes nav-enter {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}
}

@media (prefers-reduced-motion: reduce) {
	header.nav-open #site-nav {
		animation: none;
	}
}
