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

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

a {
	text-decoration: none;
	color: #ccc;
	transition: color 0.15s;
}

a:hover {
	color: #fff;
	text-decoration: none;
}

a:active {
	color: #fff;
	text-decoration: none;
}

::selection {
	background: #00ff00;
	color: #000;
}

html,
body {
	height: auto;
}

body {
	background: #0c0c0c;
	color: #ccc;
	font-family: "IBM Plex Mono", "Courier New", monospace;
	padding: 3rem 2rem;
	position: relative;
}

main {
	max-width: 100%;
	position: relative;
	z-index: 1;
}

h1 {
	font-size: 1rem;
	font-weight: 400;
	color: #eee;
	margin-bottom: 1rem;
	letter-spacing: 0.02em;
}

.name-glitch {
	position: relative;
	cursor: default;
	display: inline-block;
}

.name-glitch::before {
	content: attr(data-text);
	position: absolute;
	top: 0;
	left: 0;
	color: #0f0;
	opacity: 0;
}

.name-glitch::after {
	content: "or simply call;";
	position: absolute;
	top: -1.2em;
	left: 0;
	font-size: 0.6rem;
	color: #555;
	opacity: 0;
	white-space: nowrap;
}

.name-glitch:hover {
	color: transparent;
}

.name-glitch:hover::before {
	opacity: 1;
	animation: glitch-loop 0.5s steps(1) infinite;
}

.name-glitch:hover::after {
	opacity: 1;
}

@keyframes glitch-loop {
	0% {
		transform: translate(0);
		clip-path: inset(0 0 0 0);
	}
	10% {
		transform: translate(-2px, 1px);
		clip-path: inset(5% 0 85% 0);
	}
	20% {
		transform: translate(2px, -1px);
		clip-path: inset(0 0 0 0);
	}
	30% {
		transform: translate(-1px, -1px);
		clip-path: inset(85% 0 5% 0);
	}
	40% {
		transform: translate(1px, 1px);
		clip-path: inset(0 0 0 0);
	}
	50% {
		transform: translate(0);
		clip-path: inset(0 0 0 0);
	}
	60% {
		transform: translate(-1px, 2px);
		clip-path: inset(45% 0 45% 0);
	}
	70% {
		transform: translate(1px, -2px);
		clip-path: inset(0 0 0 0);
	}
	80% {
		transform: translate(0);
		clip-path: inset(0 0 0 0);
	}
	90% {
		transform: translate(2px, 0);
		clip-path: inset(0 0 0 0);
	}
	100% {
		transform: translate(0);
		clip-path: inset(0 0 0 0);
	}
}

.bio {
	font-size: 0.85rem;
	line-height: 1.7;
	color: #ccc;
}

a.bio-link,
a.bio-link:link,
a.bio-link:visited {
	color: #ccc;
	text-decoration: none;
	position: relative;
	transition: color 0.15s;
}

a.bio-link:hover,
a.bio-link:active {
	color: #fff;
	text-decoration: none;
}

.hover-img {
	position: fixed;
	width: 200px;
	height: auto;
	max-height: 200px;
	object-fit: contain;
	pointer-events: none;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.15s, visibility 0.15s;
	z-index: 9999;
	left: 0;
	top: 0;
}

.hover-img.show {
	opacity: 1;
	visibility: visible;
}

section {
	margin-top: 2rem;
}

h2 {
	font-size: 0.75rem;
	font-weight: 400;
	color: #555;
	margin-bottom: 0.6rem;
	text-transform: lowercase;
}

.links {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
}

.item {
	display: flex;
	flex-direction: column;
}

.item-header {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.item-header a {
	color: #aaa;
	text-decoration: none;
	font-size: 0.85rem;
	transition: color 0.15s;
}

.item-header a:hover {
	color: #fff;
}

.item-link {
	font-size: 0.7rem;
	color: #555;
}

.item-link:hover {
	color: #0f0;
}

.toggle {
	background: none;
	border: none;
	color: #555;
	font-family: inherit;
	font-size: 0.75rem;
	cursor: pointer;
	padding: 0;
	transition: color 0.15s;
	flex-shrink: 0;
}

.toggle:hover {
	color: #0f0;
}

.toggle.active {
	color: #0f0;
}

.item-desc {
	display: none;
	font-size: 0.8rem;
	color: #888;
	line-height: 1.6;
	padding: 0.4rem 0 0.6rem 2.2rem;
	max-width: 50ch;
}

.item-desc.show {
	display: block;
}

.desc-link {
	color: #555;
	font-size: 0.75rem;
}

.desc-link:hover {
	color: #0f0;
}

/* items without toggle get the > prefix */
.item-header:not(:has(.toggle)) a::before {
	content: "> ";
	color: #444;
	transition: color 0.15s;
}

.item-header:not(:has(.toggle)) a:hover::before {
	color: #0f0;
}

.noise {
	position: fixed;
	inset: 0;
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
	opacity: 0.025;
	pointer-events: none;
	z-index: 0;
}

@media (max-width: 600px) {
	body {
		padding: 2rem 1.5rem;
	}
}
