*,
*::before,
*::after {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}
:root {
	--bg: oklch(8% 0.018 270);
	--surface: oklch(14% 0.022 270);
	--fg: oklch(90% 0.008 270);
	--muted: oklch(50% 0.02 280);
	--border: oklch(58% 0.18 280);
	--accent: oklch(68% 0.2 280);
	--accent2: oklch(65% 0.18 340);
	--accent3: oklch(72% 0.18 310);
	--font-display: "Press Start 2P", "Courier New", monospace;
	--font-body: "Courier New", "Consolas", "Lucida Console", monospace;
}
html {
	scroll-behavior: smooth;
}
body {
	background: var(--bg);
	color: var(--fg);
	font-family: var(--font-body);
	font-size: 14px;
	line-height: 1.7;
	min-height: 100vh;
	overflow-x: hidden;
	position: relative;
	display: flex;
	flex-direction: column;
}
main {
	flex: 1;
	display: flex;
	flex-direction: column;
}
a {
	color: var(--accent);
	text-decoration: none;
}
a:hover {
	color: var(--accent3);
	text-shadow: 0 0 8px var(--accent);
}

body::after {
	content: "";
	position: fixed;
	inset: 0;
	background: repeating-linear-gradient(
		0deg,
		transparent 0px,
		transparent 2px,
		rgba(0, 0, 0, 0.06) 2px,
		rgba(0, 0, 0, 0.06) 4px
	);
	pointer-events: none;
	z-index: 9999;
}
body::before {
	content: "";
	position: fixed;
	inset: 0;
	background: radial-gradient(
		ellipse at center,
		transparent 55%,
		rgba(0, 0, 0, 0.7) 100%
	);
	pointer-events: none;
	z-index: 9998;
}

nav {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	background: var(--bg);
	padding: 14px 28px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-bottom: 2px solid var(--border);
}
.nav-logo {
	font-family: var(--font-display);
	font-size: 9px;
	color: var(--fg);
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.nav-logo .sub {
	font-size: 7px;
	color: var(--muted);
	letter-spacing: 0.15em;
}
.menu-btn {
	display: none;
	background: none;
	border: none;
	color: var(--fg);
	font-family: var(--font-body);
	font-size: 20px;
	padding: 4px 8px;
	cursor: pointer;
	transition: color 0.2s;
	line-height: 1;
}
.menu-btn:hover {
	color: var(--accent);
}
.drawer-overlay {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 99;
	background: rgba(0, 0, 0, 0.7);
}
.drawer-overlay.open {
	display: block;
}
.drawer {
	position: fixed;
	top: 0;
	right: -260px;
	width: 240px;
	height: 100vh;
	z-index: 101;
	background: rgb(10, 8, 16);
	border-left: 1px solid rgba(255, 255, 255, 0.06);
	padding: 80px 20px 20px;
	transition: right 0.3s ease;
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.drawer.open {
	right: 0;
}
.drawer .nav-link {
	display: block;
	font-family: var(--font-display);
	font-size: 8px;
	padding: 12px 14px;
}

.nav-links {
	display: flex;
	gap: 4px;
	flex-wrap: wrap;
}
.nav-link {
	font-family: var(--font-display);
	font-size: 8px;
	padding: 6px 12px;
	color: var(--muted);
	transition: all 0.2s;
	letter-spacing: 0.05em;
}
.nav-link:hover,
.nav-link.active {
	color: var(--accent);
	text-shadow: 0 0 8px var(--accent);
}

.content {
	padding: 60px 24px;
	max-width: 960px;
	margin: 0 auto;
}
main > .content {
	flex: 1;
}
.section-title {
	font-family: var(--font-display);
	font-size: 14px;
	color: var(--accent);
	margin-bottom: 32px;
	display: flex;
	align-items: center;
	gap: 12px;
}
.section-title::after {
	content: "";
	flex: 1;
	height: 2px;
	background: var(--border);
}

.page-bg {
	position: fixed;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background: url("https://i.imgur.com/L5xrLha.gif") center/cover no-repeat;
	filter: blur(12px) brightness(0.25);
	transform: scale(1.1);
}
footer {
	position: relative;
	z-index: 2;
	padding: 24px;
	text-align: center;
	font-size: 11px;
	color: var(--muted);
	background: rgb(10, 8, 16);
}
footer .cursor-blink {
	animation: blink 1s step-end infinite;
}
@keyframes blink {
	50% {
		opacity: 0;
	}
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (max-width: 768px) {
	nav {
		flex-direction: row;
		padding: 10px 16px;
	}
	.menu-btn {
		display: block;
	}
	.nav-links {
		display: none;
	}
	.content {
		padding: 40px 16px;
	}
	.section-title {
		font-size: 12px;
	}
}
@media (max-width: 480px) {
	.nav-links {
		justify-content: center;
	}
	.nav-link {
		font-size: 7px;
		padding: 4px 6px;
	}
	.content {
		padding: 24px 12px;
	}
}
