:root {
	--bg: #0f1724;
	--card: #0b1220;
	--muted: #9aa4b2;
	--accent: #60a5fa;
	--accent-hover: #3b82f6;
	--text-primary: #e6eef8;
	--text-secondary: #94a3b8;
	--border: rgba(255, 255, 255, 0.08);
	--shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
	--shadow-hover: 0 12px 40px rgba(96, 165, 250, 0.15);
	--radius: 12px;
	--radius-card: 16px;
	--spacing-xs: 0.5rem;
	--spacing-sm: 1rem;
	--spacing-md: 1.5rem;
	--spacing-lg: 2rem;
	--transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html,
body {
	height: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
	background: radial-gradient(ellipse at top, #0f172a 0%, #020617 100%);
	color: var(--text-primary);
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.wrap {
	width: min(760px, 95%);
	max-width: 800px;
	padding: var(--spacing-lg);
	background: rgba(255, 255, 255, 0.02);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	backdrop-filter: blur(10px);
	border: 1px solid var(--border);
}

header {
	text-align: center;
	margin-bottom: var(--spacing-lg);
}

h1 {
	font-size: 2.5rem;
	font-weight: 700;
	margin-bottom: var(--spacing-xs);
	color: var(--text-primary);
	line-height: 1.2;
	letter-spacing: -0.5px;
}

.subtitle {
	color: var(--text-secondary);
	font-size: 1.125rem;
	max-width: 600px;
	margin: 0 auto;
}

ul.grid {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	gap: var(--spacing-md);
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

a.card {
	display: block;
	padding: var(--spacing-lg);
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
	border-radius: var(--radius-card);
	color: inherit;
	text-decoration: none;
	border: 1px solid var(--border);
	transition: var(--transition);
	position: relative;
	overflow: hidden;
	z-index: 1;
}

a.card:hover {
	transform: translateY(-5px);
	box-shadow: var(--shadow-hover);
	border-color: rgba(96, 165, 250, 0.3);
	background: linear-gradient(135deg, rgba(96, 165, 250, 0.08), rgba(96, 165, 250, 0.02));
}

a.card h3 {
	font-size: 1.25rem;
	font-weight: 600;
	margin-bottom: var(--spacing-xs);
	color: var(--text-primary);
	transition: color 0.3s ease;
}

a.card:hover h3 {
	color: var(--accent);
}

.muted {
	color: var(--text-secondary);
	font-size: 0.95rem;
	transition: color 0.3s ease;
}

a.card:hover .muted {
	color: var(--text-primary);
	opacity: 0.9;
}

.external-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	margin-left: var(--spacing-xs);
	opacity: 0.7;
	transition: opacity 0.3s ease, transform 0.3s ease;
}

a.card:hover .external-icon {
	opacity: 1;
	transform: translateX(2px);
}

footer {
	margin-top: var(--spacing-lg);
	padding-top: var(--spacing-md);
	color: var(--text-secondary);
	font-size: 0.875rem;
	text-align: center;
	border-top: 1px solid var(--border);
}

footer a {
	color: var(--accent);
	text-decoration: none;
	transition: var(--transition);
}

footer a:hover {
	color: var(--accent-hover);
}

/* Responsive adjustments */
@media (max-width: 768px) {
	h1 {
		font-size: 2rem;
	}
	
	.subtitle {
		font-size: 1rem;
	}
	
	.wrap {
		padding: var(--spacing-md);
	}
	
	a.card {
		padding: var(--spacing-md);
	}
}

@media (max-width: 480px) {
	h1 {
		font-size: 1.75rem;
	}
	
	ul.grid {
		grid-template-columns: 1fr;
	}
	
	a.card h3 {
		font-size: 1.125rem;
	}
}

@media (prefers-color-scheme: light) {
	:root {
		--bg: #f7fafc;
		--card: #ffffff;
		--muted: #64748b;
		--accent: #3b82f6;
		--accent-hover: #2563eb;
		--text-primary: #1e293b;
		--text-secondary: #64748b;
		--border: rgba(226, 232, 240, 0.8);
		--shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
		--shadow-hover: 0 12px 40px rgba(59, 130, 246, 0.1);
	}

	body {
		background: radial-gradient(ellipse at top, #f1f5f9 0%, #e2e8f0 100%);
	}

	.wrap {
		background: rgba(255, 255, 255, 0.9);
		backdrop-filter: blur(16px);
	}

	a.card {
		background: linear-gradient(135deg, rgba(248, 250, 252, 0.8), #ffffff);
		border-color: var(--border);
	}

	a.card:hover {
		background: linear-gradient(135deg, #f8fafc, #ffffff);
		box-shadow: 0 12px 40px rgba(59, 130, 246, 0.08);
	}
}