:root {
	--water: #07080a;
	--lamp: #e0b13a;
	--steel: #8d969c;
	--ink: #f3eee4;
	--mist: #c9c0ae;
	--surface: #0e1014;
	--border: color-mix(in srgb, var(--steel) 28%, transparent);
}

* {
	box-sizing: border-box;
}

html {
	background: var(--water);
	color: var(--ink);
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: 'Chivo', system-ui, sans-serif;
	font-size: 1.05rem;
	line-height: 1.55;
	overflow-wrap: break-word;
}

main {
	max-width: 42rem;
	margin: 0 auto;
	padding: clamp(2.5rem, 8vh, 5rem) clamp(1.25rem, 5vw, 2rem) 3rem;
}

.brand {
	margin: 0 0 0.35rem;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--steel);
}

.brand a {
	display: inline-flex;
	align-items: center;
	min-height: 2.75rem;
	min-width: 2.75rem;
	color: inherit;
	text-decoration: none;
}

h1.brand {
	margin: 0;
	font-size: clamp(2rem, 6vw, 2.85rem);
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1.05;
	text-transform: none;
	color: var(--ink);
}

.mast {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.25rem 1.25rem;
	margin: 0 0 0.35rem;
}

.mast .brand {
	margin: 0;
}

.home-nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	column-gap: 0.85rem;
	margin: 0;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.home-nav a {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	min-height: 2.75rem;
	min-width: 2.75rem;
	color: var(--steel);
	text-decoration: none;
}

.home-nav a:hover,
.home-nav a:focus-visible {
	color: var(--lamp);
}

.brand a:hover,
.brand a:focus-visible {
	color: var(--lamp);
}

h1 {
	margin: 0;
	font-size: clamp(2rem, 6vw, 2.85rem);
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1.05;
}

.tagline {
	margin: 0.85rem 0 0;
	color: var(--lamp);
	font-size: 1.1rem;
	font-weight: 600;
}

a {
	color: var(--lamp);
}

a:hover {
	color: var(--ink);
}

a:focus-visible {
	outline: 2px solid var(--lamp);
	outline-offset: 3px;
}

.diagram {
	margin: 1.35rem 0 0;
}

.node {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0.15rem;
	min-height: 4.25rem;
	padding: 0.75rem 0.9rem;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 2px;
	color: inherit;
	text-decoration: none;
}

.node-core {
	align-items: center;
	text-align: center;
	border-color: color-mix(in srgb, var(--lamp) 35%, transparent);
	background: color-mix(in srgb, var(--lamp) 6%, var(--surface));
}

.node:hover {
	border-color: color-mix(in srgb, var(--lamp) 50%, transparent);
}

.node:hover .node-name,
.card:hover .card-title {
	color: var(--lamp);
}

.node-name {
	font-size: 0.98rem;
	font-weight: 600;
	color: var(--ink);
}

.node-role {
	font-size: 0.82rem;
	line-height: 1.35;
	color: var(--mist);
}

.joins-wrap {
	position: relative;
	height: 2.6rem;
	margin: 0.2rem 0;
}

.joins {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	color: var(--lamp);
}

.joins-label {
	position: absolute;
	left: 50%;
	top: 58%;
	transform: translate(-50%, -50%);
	padding: 0 0.45rem;
	background: var(--water);
	color: var(--steel);
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	white-space: nowrap;
}

.diagram-pair {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.65rem;
}

.face {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 0.75rem;
	min-height: 2.75rem;
	margin-top: 0.85rem;
	padding-top: 0.7rem;
	border-top: 1px solid var(--border);
	color: inherit;
	text-decoration: none;
}

.face:hover .node-name {
	color: var(--lamp);
}

.cards {
	display: grid;
	gap: 0.65rem;
	margin-top: 1.35rem;
}

@media (min-width: 32rem) {
	.cards {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.card {
	display: block;
	padding: 1.25rem 1.35rem;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 2px;
	color: inherit;
	text-decoration: none;
}

.card:hover {
	border-color: color-mix(in srgb, var(--lamp) 30%, transparent);
}

.card:focus-visible {
	outline: 2px solid var(--lamp);
	outline-offset: 2px;
}

.card:active {
	background: color-mix(in srgb, var(--lamp) 6%, var(--surface));
	border-color: color-mix(in srgb, var(--lamp) 35%, transparent);
}

.kicker {
	display: block;
	margin-bottom: 0.3rem;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--lamp);
}

.card-title {
	display: block;
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--ink);
}

.card-line {
	display: block;
	margin-top: 0.25rem;
	font-size: 0.92rem;
	line-height: 1.45;
	color: var(--mist);
}

.split {
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--border);
}

.split-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.92rem;
}

.split-table caption {
	margin: 0 0 0.85rem;
	text-align: left;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--lamp);
}

.split-table th,
.split-table td {
	padding: 0.7rem 0.75rem 0.7rem 0;
	vertical-align: top;
	text-align: left;
}

.split-table thead th {
	padding-bottom: 0.4rem;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--lamp);
}

.split-table tbody th {
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--ink);
}

.split-table tbody th a {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	min-height: 2.75rem;
	min-width: 2.75rem;
	color: inherit;
	text-decoration: none;
}

.split-table tbody th a:hover,
.split-table tbody tr:hover th a {
	color: var(--lamp);
}

.split-table tbody td {
	color: var(--mist);
	line-height: 1.4;
}

.split-table tbody tr {
	border-top: 1px solid var(--border);
}

.facts {
	margin: 1.5rem 0 0;
}

.facts div {
	margin-top: 1.15rem;
	padding-top: 1.15rem;
	border-top: 1px solid var(--border);
}

.facts dt {
	margin: 0 0 0.35rem;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--lamp);
}

.facts dd {
	margin: 0;
	color: var(--mist);
}

.links {
	margin: 0.35rem 0 0;
	padding: 0;
	list-style: none;
}

.links a {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	min-height: 2.75rem;
	min-width: 2.75rem;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
}

.links a:hover {
	text-decoration: underline;
}

footer {
	margin-top: 2rem;
	padding-top: 1.15rem;
	border-top: 1px solid var(--border);
	color: var(--steel);
	font-size: 0.82rem;
	letter-spacing: 0.04em;
}

footer a {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	min-height: 2.75rem;
	min-width: 2.75rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
}

@media (max-width: 42rem) {
	.split-table {
		font-size: 0.95rem;
	}

	.split-table thead {
		position: absolute;
		width: 1px;
		height: 1px;
		padding: 0;
		margin: -1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
		border: 0;
	}

	.split-table,
	.split-table tbody,
	.split-table tr,
	.split-table th,
	.split-table td {
		display: block;
		width: auto;
	}

	.split-table tbody tr {
		padding: 0.85rem 0 0.95rem;
	}

	.split-table th,
	.split-table td {
		padding: 0.12rem 0;
	}

	.split-table tbody th {
		padding-bottom: 0.35rem;
	}

	.split-table td::before {
		content: attr(data-label);
		display: block;
		margin-top: 0.45rem;
		font-size: 0.72rem;
		font-weight: 600;
		letter-spacing: 0.08em;
		text-transform: uppercase;
		color: var(--lamp);
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}
