@charset "UTF-8";

/* ==========================================================
Archives of Nethys Landing Page
========================================================== */
/* ---------- CSS Variables ---------- */
:root {
	--color-bg: #0f0f0f;
	--color-surface: #21252b;
	--color-surface-hover: #2a2f37;
	--color-border: #30363d;
	--color-text: #ededed;
	--color-text-muted: #b4b4b4;
	--color-accent: #2c9ab7;
	--color-accent-hover: #43b8d8;
	--max-width: 1200px;
	--radius: 12px;
	--shadow: 0 4px 12px rgba(0, 0, 0, .30);
	--transition: 180ms ease;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--color-bg);
	color: var(--color-text);
	font-family:
		"Segoe UI",
		Inter,
		Roboto,
		Helvetica,
		Arial,
		sans-serif;
	line-height: 1.6;
}

img {
	display: block;
	max-width: 100%;
}

a {
	color: inherit;
	text-decoration: none;
}

/* ---------- Typography ---------- */

h1,
h2 {
	font-family:
		"Georgia",
		Times New Roman,
		Times,
		serif;
	font-weight: 700;
}

/* ---------- Layout ---------- */
.container {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

/* ---------- Header ---------- */
header {
	background: var(--color-surface);
	border-bottom:
		1px solid var(--color-border);
	padding: 1rem 2rem;
}

.header-content {
	max-width: var(--max-width);
	margin: auto;
	display: flex;
	align-items: center;
}

.logo {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.logo img {
	width: 64px;
	height: 64px;
}

.logo h1 {
	margin: 0;
	font-size: 2rem;
	letter-spacing: .02em;
}

/* ---------- Main ---------- */
main {
	flex: 1;
	width: min(95%, var(--max-width));
	margin: auto;
	padding: 4rem 0;
}

/* ---------- Hero ---------- */
.hero {
	max-width: 850px;
	margin:
		0 auto 4rem;
	text-align: center;
}

.hero h2 {
	font-size:
		clamp(2rem, 5vw, 3rem);
	margin-bottom: .5rem;
}

.hero p {
	font-size: 1.2rem;
	color: var(--color-text-muted);
}

/* ---------- Game Cards ---------- */
.game-grid {
	display: grid;
	grid-template-columns:
		repeat(auto-fit, minmax(250px, 1fr));
	gap: 2rem;
}

.game-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 280px;
	padding: 2rem;
	text-align: center;
	background:
		var(--color-surface);
	border:
		1px solid var(--color-border);
	border-radius:
		var(--radius);
	box-shadow:
		var(--shadow);
	transition:
		transform var(--transition),
		border-color var(--transition),
		background var(--transition);
	cursor: pointer;
}

.game-card:hover {
	transform:
		translateY(-4px);
	border-color:
		var(--color-accent);
	background:
		var(--color-surface-hover);
}

.game-card img {
	width: 100%;
	max-width: 220px;
	height: 100px;
	object-fit: contain;
	margin-bottom: 1.5rem;
}

.game-card h3 {
	margin:
		0 0 .5rem;
}

.game-card p {
	margin: 0;
	color:
		var(--color-text-muted);
}

/* Keyboard accessibility */
.game-card:focus-visible,
.logo:focus-visible {
	outline:
		3px solid var(--color-accent);
	outline-offset:
		4px;
}

/* ---------- Footer ---------- */
footer {
	background:
		var(--color-surface);
	border-top:
		1px solid var(--color-border);
	padding:
		2rem;
}

.footer-content {
	max-width:
		var(--max-width);
	margin:
		auto;
	text-align:
		center;
	color:
		var(--color-text-muted);
	font-size:
		.9rem;
}

.footer-content a {
	text-decoration:
		underline;
}


.footer-content a:hover {
	color:
		var(--color-accent-hover);
}

/* ---------- Accessibility ---------- */
@media (prefers-reduced-motion: reduce) {

	*,
	*::before,
	*::after {
		transition:
			none !important;
		animation:
			none !important;
	}

}

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
	header {
		padding:
			1rem;
	}

	.header-content {
		justify-content:
			center;
	}

	.logo {
		flex-direction:
			column;
		text-align:
			center;
	}

	.logo h1 {
		font-size:
			1.7rem;
	}

	main {
		padding:
			2rem 0;
	}

	.game-grid {
		grid-template-columns:
			1fr;
	}

}