:root {
	--ink: #111513;
	--ink-soft: #191f1c;
	--panel: #222925;
	--paper: #edf0e7;
	--muted: #a9b1a6;
	--line: #4d5850;
	--copper: #d4864d;
	--copper-dark: #77452f;
	--beacon: #83e2d3;
	--signal: #eecc61;
	--danger: #d85d4f;
	--shell: min(1180px, calc(100% - 48px));
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: 78px;
}

body {
	margin: 0;
	background: var(--ink);
	color: var(--paper);
	font-family: "Microsoft YaHei UI", "Microsoft YaHei", system-ui, sans-serif;
	font-size: 16px;
	line-height: 1.75;
	letter-spacing: 0;
}

img {
	display: block;
	max-width: 100%;
}

.pixel-art {
	image-rendering: crisp-edges;
	image-rendering: pixelated;
}

a {
	color: inherit;
}

button,
a {
	-webkit-tap-highlight-color: transparent;
}

:focus-visible {
	outline: 3px solid var(--beacon);
	outline-offset: 4px;
}

.skip-link {
	position: fixed;
	top: 10px;
	left: 10px;
	z-index: 1000;
	padding: 10px 14px;
	background: var(--paper);
	color: var(--ink);
	transform: translateY(-160%);
}

.skip-link:focus {
	transform: translateY(0);
}

.section-shell {
	width: var(--shell);
	margin-inline: auto;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(17, 21, 19, 0.96);
	border-bottom: 1px solid var(--line);
}

.header-inner {
	width: var(--shell);
	min-height: 72px;
	margin-inline: auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	min-height: 44px;
	text-decoration: none;
	line-height: 1.1;
}

.brand-mark {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border: 2px solid var(--copper);
	box-shadow: inset 0 0 0 3px var(--ink), inset 0 0 0 4px var(--copper-dark);
	color: var(--signal);
	font: 800 12px/1 Consolas, monospace;
}

.brand strong,
.brand small {
	display: block;
}

.brand strong {
	font-size: 16px;
}

.brand small {
	margin-top: 4px;
	color: var(--muted);
	font: 700 10px/1 Consolas, monospace;
}

.primary-nav {
	display: flex;
	align-items: center;
	gap: 6px;
}

.primary-nav a {
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	padding: 0 14px;
	color: var(--muted);
	font-size: 14px;
	text-decoration: none;
	border-bottom: 2px solid transparent;
}

.primary-nav a:hover {
	color: var(--paper);
	border-bottom-color: var(--copper);
}

.primary-nav .portal-link {
	color: var(--copper);
}

.primary-nav .nav-join {
	border: 1px solid var(--copper);
	color: var(--paper);
}

.hero {
	position: relative;
	min-height: min(760px, calc(100svh - 120px));
	overflow: hidden;
	display: flex;
	align-items: center;
	border-bottom: 1px solid var(--line);
}

.hero-image,
.hero-shade {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.hero-image {
	object-fit: cover;
	object-position: center 44%;
}

.hero-shade {
	background: rgba(8, 10, 9, 0.66);
}

.hero-shade::after {
	content: "";
	position: absolute;
	inset: 20px;
	border: 1px solid rgba(237, 240, 231, 0.25);
	pointer-events: none;
}

.hero-content {
	position: relative;
	z-index: 1;
	padding-block: 76px;
}

.eyebrow,
.section-index {
	margin: 0 0 18px;
	color: var(--beacon);
	font: 700 12px/1.4 Consolas, monospace;
	text-transform: uppercase;
}

.hero h1 {
	max-width: 790px;
	margin: 0;
	font-size: 64px;
	line-height: 1.05;
	font-weight: 800;
	text-shadow: 0 3px 0 #000;
}

.hero h1 span {
	display: block;
	margin-top: 8px;
	color: var(--signal);
	font: 800 24px/1.2 Consolas, monospace;
}

.hero-copy {
	max-width: 620px;
	margin: 28px 0 0;
	font-size: 19px;
	color: #dce1d8;
}

.hero-actions,
.join-actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 32px;
}

.button {
	min-height: 48px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 18px;
	border: 1px solid var(--line);
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	box-shadow: 4px 4px 0 #000;
}

.button:hover {
	transform: translate(2px, 2px);
	box-shadow: 2px 2px 0 #000;
}

.button-primary {
	background: var(--copper);
	border-color: #f0aa75;
	color: #17100b;
}

.button-quiet {
	background: rgba(17, 21, 19, 0.82);
	color: var(--paper);
}

.hero-facts {
	max-width: 720px;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	margin: 52px 0 0;
	border-top: 1px solid rgba(237, 240, 231, 0.38);
	border-bottom: 1px solid rgba(237, 240, 231, 0.38);
}

.hero-facts div {
	padding: 14px 18px;
	border-left: 1px solid rgba(237, 240, 231, 0.24);
}

.hero-facts div:first-child {
	border-left: 0;
	padding-left: 0;
}

.hero-facts dt {
	color: var(--muted);
	font: 700 11px/1.3 Consolas, monospace;
}

.hero-facts dd {
	margin: 5px 0 0;
	font-weight: 700;
}

.section-band {
	padding: 104px 0;
	border-bottom: 1px solid var(--line);
}

.story {
	background: var(--ink-soft);
}

.story-grid {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
	gap: 68px;
	align-items: center;
}

.story h2,
.section-heading h2,
.plans h2,
.join h2 {
	margin: 0;
	font-size: 38px;
	line-height: 1.25;
}

.section-lead {
	margin: 14px 0 30px;
	color: var(--signal);
	font-weight: 700;
}

.story-copy > p:not(.section-index):not(.section-lead) {
	color: #c8cec5;
}

.world-frame {
	margin: 0;
	background: var(--panel);
	border: 1px solid var(--line);
	box-shadow: 12px 12px 0 #0a0d0b;
}

.world-frame img {
	width: 100%;
	aspect-ratio: 16 / 10.5;
	object-fit: cover;
}

.world-frame figcaption {
	padding: 12px 16px;
	border-top: 1px solid var(--line);
	color: var(--muted);
	font: 700 11px/1.4 Consolas, monospace;
}

.districts {
	background: #151a17;
}

.section-heading {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 48px;
	margin-bottom: 50px;
}

.section-heading > p {
	max-width: 360px;
	margin: 0;
	color: var(--muted);
}

.district-list {
	display: grid;
	gap: 32px;
}

.district {
	display: grid;
	grid-template-columns: 1.35fr 0.65fr;
	min-height: 430px;
	background: var(--panel);
	border: 1px solid var(--line);
}

.district-reverse {
	grid-template-columns: 0.65fr 1.35fr;
}

.district-reverse .district-image {
	order: 2;
}

.district-image {
	min-height: 360px;
	overflow: hidden;
}

.district-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.district:hover .district-image img {
	transform: scale(1.025);
}

.district-copy {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 42px;
	border-left: 1px solid var(--line);
}

.district-reverse .district-copy {
	border-left: 0;
	border-right: 1px solid var(--line);
}

.district-copy span,
.feature-grid span,
.plan-grid h3 span {
	color: var(--copper);
	font: 700 11px/1.4 Consolas, monospace;
}

.district-copy h3 {
	margin: 14px 0 20px;
	font-size: 25px;
	line-height: 1.35;
}

.district-copy p {
	margin: 0;
	color: #c3cac0;
}

.features {
	background: #202721;
}

.feature-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	border-top: 1px solid var(--line);
	border-left: 1px solid var(--line);
}

.feature-grid article {
	min-height: 260px;
	padding: 32px;
	border-right: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}

.feature-grid article:nth-child(2),
.feature-grid article:nth-child(5) {
	background: #272d25;
}

.feature-grid h3 {
	margin: 22px 0 14px;
	font-size: 20px;
	line-height: 1.35;
}

.feature-grid p {
	margin: 0;
	color: var(--muted);
}

.plans {
	background: var(--ink);
}

.plan-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
	margin-top: 44px;
}

.plan-grid section {
	padding: 34px;
	background: var(--ink-soft);
	border: 1px solid var(--line);
	border-top: 5px solid var(--copper);
}

.plan-grid section:last-child {
	border-top-color: var(--beacon);
}

.plan-grid h3 {
	margin: 0 0 24px;
	font-size: 22px;
}

.plan-grid h3 span {
	display: inline-block;
	margin-right: 10px;
}

.plan-grid ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.plan-grid li {
	position: relative;
	padding: 14px 0 14px 27px;
	border-top: 1px solid #303a34;
	color: #cbd1c8;
}

.plan-grid li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 24px;
	width: 9px;
	height: 9px;
	background: var(--signal);
	box-shadow: 3px 3px 0 #000;
}

.join {
	background: var(--paper);
	color: var(--ink);
}

.join .section-index {
	color: var(--copper-dark);
}

.join-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 60px;
}

.join-actions {
	justify-content: flex-end;
	margin-top: 0;
}

.join .button-quiet {
	background: var(--ink);
}

.text-link {
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	font-weight: 700;
	text-underline-offset: 4px;
}

.site-footer {
	padding: 46px 0;
	background: #0b0e0c;
	color: #8f9990;
	font-size: 12px;
}

.footer-inner {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 12px 36px;
	align-items: center;
}

.footer-inner p {
	margin: 0;
}

.social-links {
	grid-row: span 2;
	display: flex;
	gap: 8px;
}

.social-links a {
	min-width: 44px;
	height: 44px;
	display: grid;
	place-items: center;
	border: 1px solid #3b443e;
	font: 700 10px/1 Consolas, monospace;
	text-decoration: none;
}

.social-links a:hover {
	border-color: var(--copper);
	color: var(--paper);
}

@media (max-width: 900px) {
	:root {
		--shell: min(100% - 36px, 760px);
	}

	.desktop-only {
		display: none !important;
	}

	.story-grid {
		grid-template-columns: 1fr;
		gap: 42px;
	}

	.world-frame {
		max-width: 720px;
	}

	.district,
	.district-reverse {
		grid-template-columns: 1fr;
	}

	.district-reverse .district-image {
		order: 0;
	}

	.district-copy,
	.district-reverse .district-copy {
		border: 0;
		border-top: 1px solid var(--line);
	}

	.feature-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.join-inner {
		align-items: flex-start;
		flex-direction: column;
		gap: 30px;
	}

	.join-actions {
		justify-content: flex-start;
	}
}

@media (max-width: 680px) {
	:root {
		--shell: calc(100% - 28px);
	}

	html {
		scroll-padding-top: 112px;
	}

	.header-inner {
		min-height: 106px;
		display: block;
		padding-top: 10px;
	}

	.brand {
		display: flex;
		width: max-content;
		margin-inline: auto;
	}

	.brand-mark {
		width: 36px;
		height: 36px;
	}

	.primary-nav {
		display: grid;
		grid-template-columns: repeat(5, 1fr);
		gap: 0;
		margin-top: 7px;
		border-top: 1px solid #303934;
	}

	.primary-nav a {
		justify-content: center;
		min-height: 48px;
		padding: 0 6px;
		font-size: 13px;
	}

	.primary-nav .nav-join {
		border: 0;
		border-bottom: 2px solid var(--copper);
	}

	.hero {
		min-height: calc(100svh - 150px);
		align-items: end;
	}

	.hero-shade {
		background: rgba(8, 10, 9, 0.7);
	}

	.hero-shade::after {
		inset: 10px;
	}

	.hero-content {
		padding-block: 70px 44px;
	}

	.hero h1 {
		font-size: 42px;
	}

	.hero h1 span {
		font-size: 18px;
	}

	.hero-copy {
		font-size: 16px;
	}

	.hero-actions .button {
		flex: 1 1 150px;
	}

	.hero-facts {
		margin-top: 34px;
	}

	.hero-facts div {
		padding: 11px 8px;
	}

	.hero-facts dd {
		font-size: 12px;
	}

	.section-band {
		padding: 72px 0;
	}

	.story h2,
	.section-heading h2,
	.plans h2,
	.join h2 {
		font-size: 30px;
	}

	.section-heading {
		align-items: flex-start;
		flex-direction: column;
		gap: 20px;
		margin-bottom: 32px;
	}

	.district-image {
		min-height: 240px;
	}

	.district-copy {
		padding: 26px 22px;
	}

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

	.feature-grid article {
		min-height: 0;
		padding: 26px 22px;
	}

	.feature-grid article:nth-child(2),
	.feature-grid article:nth-child(5) {
		background: transparent;
	}

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

	.plan-grid section {
		padding: 26px 22px;
	}

	.join-actions {
		width: 100%;
	}

	.join-actions .button {
		width: 100%;
	}

	.footer-inner {
		grid-template-columns: 1fr;
	}

	.social-links {
		grid-row: auto;
		margin-bottom: 8px;
	}
}

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

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}
