:root {
	color-scheme: light;
	--color-primary: oklch(0 0 360);
	--color-background: oklch(1 0 360);
	--color-border: oklch(0.8529 0 266);
	--color-muted: oklch(0.4133 0 268.41);

	--font-inter: 'Inter', sans-serif;
	--font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
}

html[data-theme='dark'] {
	color-scheme: dark;
	--color-primary: oklch(1 0 360);
	--color-background: oklch(0.16 0 360);
	--color-border: oklch(0.37 0.01 258);
	--color-muted: oklch(0.74 0.01 258);
}

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

body {
	background-color: var(--color-background);
	color: var(--color-primary);
	font-family: var(--font-inter);
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	overflow: hidden;
}

::selection {
	background-color: var(--color-primary);
	color: var(--color-background);
}

a {
	color: inherit;
	text-decoration: none;
}

.container {
	width: 100%;
	margin-inline: auto;
	padding-inline: 1rem;
}

@media (min-width: 640px) { .container { max-width: 640px; } }
@media (min-width: 768px) { .container { max-width: 768px; } }
@media (min-width: 1024px) { .container { max-width: 1024px; } }
@media (min-width: 1280px) { .container { max-width: 1280px; } }
@media (min-width: 1536px) { .container { max-width: 1536px; } }

/* Header */

.header {
	position: fixed;
	top: 0;
	width: 100%;
	background-color: var(--color-background);
	z-index: 10;
}

.header-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-block: 1rem;
}

.logo {
	display: inline-flex;
	align-items: baseline;
	padding-block: 0.5rem;
	font-family: var(--font-mono);
	font-size: 0.875rem;
	font-weight: 900;
}

.logo::after {
	content: '';
	width: 0.25rem;
	height: 0.25rem;
	background-color: var(--color-primary);
}

.label {
	font-family: var(--font-mono);
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--color-muted);
}

/* Hero */

.hero {
	height: 100vh;
	height: 100svh;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding-bottom: 2rem;
}

.hero-top {
	position: relative;
	flex: 1;
	display: flex;
	align-items: flex-end;
	isolation: isolate;
}

.dots {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	z-index: -1;
	touch-action: none;
}

.headline {
	padding: 0 1.5rem 2rem 0;
	background-color: var(--color-background);
}

.title {
	font-family: var(--font-inter);
	font-size: clamp(3rem, 12vw, 8rem);
	font-weight: 900;
	line-height: 1;
	letter-spacing: -0.05em;
	text-transform: uppercase;
	overflow-wrap: anywhere;
}

.divider {
	border: 0;
	border-top: 1px solid var(--color-border);
	margin-bottom: 2rem;
}

.hero-bottom {
	display: flex;
	justify-content: flex-end;
}

.lead {
	margin-top: 0.75rem;
	font-size: clamp(1.75rem, 5.5vw, 4rem);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.04em;
	color: var(--color-muted);
}

.lead .cursor {
	display: inline-block;
	width: 1px;
	height: 0.9em;
	margin-left: 0.25rem;
	vertical-align: -0.1em;
	background-color: var(--color-primary);
	animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
	50% { opacity: 0.5; }
}

/* Link */

.link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--font-mono);
	color: var(--color-muted);
	transition: color 150ms;
}

.link svg {
	transition: transform 150ms;
}

.link:hover {
	color: var(--color-primary);
}

.link:hover svg {
	transform: translate(0.125rem, -0.125rem);
}

/* Theme toggle */

.theme-toggle {
	position: fixed;
	right: 1rem;
	bottom: 1rem;
	z-index: 50;
	display: inline-flex;
	width: 2.5rem;
	height: 2.5rem;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--color-border);
	background-color: var(--color-background);
	color: var(--color-primary);
	cursor: pointer;
	transition: transform 150ms;
}

.theme-toggle:hover {
	transform: scale(1.05);
}

.icon-sun { display: none; }
html[data-theme='dark'] .icon-sun { display: block; }
html[data-theme='dark'] .icon-moon { display: none; }

@media (min-width: 768px) {
	.hero {
		padding-bottom: 8rem;
	}

	.headline {
		padding-bottom: 4rem;
	}

	.divider {
		margin-bottom: 4rem;
	}

	.link {
		letter-spacing: 0.1em;
	}
}

@media (prefers-reduced-motion: reduce) {
	.lead .cursor { animation: none; }
}
