/* Layout & base */
:root {
	--fg: #eaeaea;
	--bg: #09111e;
	--teal: #56b3a2;
	--yellow: #f2c14e;
	--muted: #9aa2b1;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--fg);
}

.hero {
	display: flex;
	flex-direction: column;
	align-items: center; /* ← ensure horizontal centering */
	justify-content: flex-start; /* ← move toward the top */
	min-height: 100vh;
	text-align: center;
	padding-top: clamp(48px, 18vh, 200px);
	padding-bottom: clamp(16px, 4vh, 64px);
}

.hero h1,
.hero .menu {
	margin-left: auto;
	margin-right: auto;
}

h1 {
	margin: 0;
	font-weight: 600;
	font-family: "Kumbh Sans", sans-serif;
	font-size: clamp(36px, 7.5vw, 96px);
	line-height: 1.1;
	color: var(--teal);
}

.typed-cursor {
	display: inline-block;
	width: 3px;
	height: 1.1em; /* a bit taller so it dips below */
	background: var(--teal);
	margin-left: 0;
	position: relative;
	top: 0.1em; /* nudges it down slightly */
	animation: blinkTyping 0.9s steps(1) infinite;
}

/* Idle blink after typing finishes */
.typed-cursor-blink {
	animation: blinkIdle 1s steps(1) infinite;
}

/* Animations */
@keyframes blinkTyping {
	0%,
	100% {
		opacity: 1;
	}
	50% {
		opacity: 0;
	}
}
@keyframes blinkIdle {
	0%,
	100% {
		opacity: 1;
	}
	50% {
		opacity: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.typed-cursor,
	.typed-cursor-blink {
		animation: none;
		opacity: 1;
	}
}

.menu {
	opacity: 0;
	transform: translateY(8px);
	pointer-events: none;

	display: flex; /* side by side */
	justify-content: center;
	gap: clamp(12px, 3vw, 28px);

	margin-top: 32px;
	transition: opacity 900ms ease, transform 900ms ease;
	font-family: "Kumbh Sans", sans-serif;
	font-weight: 200;
	font-size: clamp(16px, 1.6vw, 22px);
}

.menu.show {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

.menu-link {
	color: var(--fg);
	text-decoration: none;
	letter-spacing: 0.02em;
	position: relative;
	transition: color 200ms ease;
}

.menu-link::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -3px;
	height: 2px;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 800ms ease;
	background: var(--yellow);
}

.menu-link:hover,
.menu-link:focus-visible {
	color: var(--yellow);
}

.menu-link:hover::after,
.menu-link:focus-visible::after {
	transform: scaleX(1);
}

.menu-link:focus-visible {
	outline: 2px solid var(--yellow);
	outline-offset: 3px;
}
