:root
{
	--bg: #16151b;
	--bg-accent: #100e14;
	--surface: #1d1b24;
	--surface-raised: #232030;
	--accent: #7c3aed;
	--accent-strong: #6a00e6;
	--accent-soft: #ac95f7;
	--accent-glow: rgba(124, 58, 237, 0.35);
	--text: #efeaff;
	--text-dim: #8f8a9e;
	--text-faint: #575364;
	--hairline: rgba(172, 149, 247, 0.12);
	--font-mono: ui-monospace, "Cascadia Mono", Consolas, Menlo, monospace;
}

*
{
	box-sizing: border-box;
}

html
{
	margin: 0;
	padding: 0;
	background-color: var(--bg);
}

body
{
	margin: 0;
	padding: 0;
	min-height: 100vh;
	min-height: 100dvh;
	color: var(--text);
	background-color: var(--bg);
	font-family: var(--font-mono);
	font-size: 15px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

.bg
{
	position: fixed;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background-color: var(--bg);
}

.view
{
	position: relative;
	z-index: 1;
	min-height: 100vh;
	min-height: 100dvh;
}

.view[hidden]
{
	display: none;
}

a
{
	color: inherit;
}

.accent
{
	color: var(--accent-soft);
}

/* ---------- Logged out ---------- */

.view-out
{
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 2rem;
}

.hero
{
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.hero-logo
{
	width: 88px;
	height: auto;
	opacity: 0.92;
	margin-bottom: 3.5rem;
	filter: drop-shadow(0 0 28px rgba(124, 58, 237, 0.25));
}

.hero-title
{
	margin: 0 0 3rem;
	font-size: clamp(3.2rem, 10vw, 6.5rem);
	font-weight: 300;
	letter-spacing: -0.04em;
	line-height: 1.05;
	color: var(--text);
}

.hero-title .accent
{
	color: var(--accent);
}

.btn-primary
{
	display: inline-block;
	padding: 0.95rem 3.5rem;
	border-radius: 999px;
	background: var(--accent);
	color: #fff;
	font-family: var(--font-mono);
	font-size: 0.95rem;
	font-weight: 600;
	letter-spacing: 0.35em;
	text-transform: uppercase;
	text-decoration: none;
	text-indent: 0.35em;
	border: 1px solid rgba(172, 149, 247, 0.25);
	transition: background-color 0.25s ease, border-color 0.25s ease;
}

.btn-primary:hover,
.btn-primary:focus-visible
{
	background: #8b52f0;
	border-color: rgba(172, 149, 247, 0.45);
	outline: none;
}

/* ---------- Session bar (logged in) ---------- */

.session-bar
{
	position: fixed;
	top: 0;
	right: 0;
	display: flex;
	gap: 1.75rem;
	padding: 1.5rem 2rem;
	z-index: 10;
}

.session-link
{
	font-size: 0.8rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--text-dim);
	transition: color 0.25s ease;
}

.session-link:hover,
.session-link:focus-visible
{
	color: var(--accent-soft);
	outline: none;
}

.session-link-logout:hover,
.session-link-logout:focus-visible
{
	color: #e080d8;
}

/* ---------- Welcome ---------- */

.welcome
{
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 6.5rem 2rem 4rem;
}

.welcome-logo
{
	width: 52px;
	height: auto;
	opacity: 0.9;
	margin-bottom: 2rem;
}

.eyebrow
{
	margin: 0 0 0.75rem;
	font-size: 0.8rem;
	font-weight: 400;
	letter-spacing: 0.45em;
	text-indent: 0.45em;
	text-transform: uppercase;
	color: var(--text-faint);
}

.welcome-title
{
	margin: 0;
	font-size: clamp(2.2rem, 6vw, 3.6rem);
	font-weight: 300;
	letter-spacing: -0.03em;
	line-height: 1.1;
	color: var(--text);
}

/* ---------- Services ---------- */

.services
{
	max-width: 1080px;
	margin: 0 auto;
	padding: 0 2rem 7rem;
}

.group
{
	margin-bottom: 3.5rem;
}

.group:last-child
{
	margin-bottom: 0;
}

.group-title
{
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1.25rem;
	margin: 0 0 1.5rem;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.35em;
	text-transform: uppercase;
	color: var(--text-dim);
}

.group-title::before
{
	content: '';
	flex: 1;
	height: 1px;
	background: linear-gradient(270deg, var(--hairline), transparent);
}

.group-title::after
{
	content: '';
	flex: 1;
	height: 1px;
	background: linear-gradient(90deg, var(--hairline), transparent);
}

.cards
{
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1.5rem;
}

.card
{
	flex: 0 1 200px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	text-decoration: none;
	color: var(--text);
}

.card-img-frame
{
	width: 100%;
	max-width: 105px;
}

.card img
{
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	transition: transform 0.4s ease;
}

.card-name
{
	margin-top: 0.9rem;
	font-size: 0.85rem;
	letter-spacing: 0.12em;
	color: var(--text-dim);
	transition: color 0.3s ease;
}

.card:hover img,
.card:focus-visible img
{
	transform: scale(1.05);
}

.card:hover .card-name,
.card:focus-visible .card-name
{
	color: var(--accent-soft);
}

.card:focus-visible
{
	outline: none;
}

.card:focus-visible img
{
	transform: scale(1.05);
}

/* ---------- ASCII dog ---------- */

#ascii-dog
{
	position: fixed;
	right: 1.25rem;
	bottom: 0.75rem;
	z-index: 5;
	margin: 0;
	font-family: var(--font-mono);
	font-size: 5px;
	line-height: 5px;
	white-space: pre;
	color: var(--text-dim);
	opacity: 0.35;
	pointer-events: auto;
	cursor: default;
	user-select: none;
	transition: opacity 0.4s ease;
}

#ascii-dog:hover
{
	opacity: 0.9;
}

/* ---------- Responsive ---------- */

@media screen and (max-width: 900px)
{
	.card
	{
		flex-basis: 170px;
	}
}

@media screen and (max-width: 640px)
{
	.session-bar
	{
		position: static;
		justify-content: center;
		padding: 1.25rem 1rem 0;
	}

	.welcome
	{
		padding-top: 1.5rem;
	}

	.services
	{
		padding: 0 1.25rem 6rem;
	}

	.cards
	{
		gap: 1.25rem;
	}

	.card
	{
		flex-basis: 150px;
	}

	#ascii-dog
	{
		font-size: 4px;
		line-height: 4px;
	}
}

@media (prefers-reduced-motion: reduce)
{
	*
	{
		transition: none !important;
	}
}
