/* Evil Mouse Studios */

:root {
	--bg: #0d0d11;
	--surface: #16161d;
	--surface-2: #1f1f28;
	--text: #ece9e6;
	--muted: #9c9aa6;
	--border: #2a2a35;
	--accent: #e0a48c;
	--accent-hot: #f2b9a1;
	--accent-dim: rgba(224, 164, 140, 0.14);

	--maxw: 1120px;
	--radius: 14px;
	--gap: clamp(1rem, 3vw, 2rem);
	--section-y: clamp(3.5rem, 9vw, 7rem);

	--font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
		"Helvetica Neue", Arial, sans-serif;

	color-scheme: dark;
}

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

html {
	scroll-behavior: smooth;
	scroll-padding-top: 5rem;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font);
	font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
	line-height: 1.65;
	overflow-x: hidden;
}

/* a soft glow behind the top of the page */
body::before {
	content: "";
	position: fixed;
	inset: -30vh 0 auto 0;
	height: 70vh;
	background: radial-gradient(60% 60% at 50% 40%, var(--accent-dim), transparent 70%);
	pointer-events: none;
	z-index: 0;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

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

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

h1,
h2,
h3 {
	line-height: 1.1;
	letter-spacing: -0.02em;
	margin: 0;
	font-weight: 800;
}

p {
	margin: 0;
}

:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
	border-radius: 4px;
}

.icon {
	width: 1em;
	height: 1em;
	flex: none;
	vertical-align: -0.125em;
}

.icon-sprite {
	position: absolute;
	width: 0;
	height: 0;
	overflow: hidden;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 100;
	padding: 0.75rem 1rem;
	background: var(--accent);
	color: #17130f;
	font-weight: 700;
}

.skip-link:focus {
	left: 1rem;
	top: 1rem;
}

/* ---------- top bar ---------- */

.site-bar {
	position: sticky;
	top: 0;
	z-index: 50;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 1rem;
	padding: 0.75rem clamp(1rem, 4vw, 2.5rem);
	background: rgba(13, 13, 17, 0.78);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--border);
}

.brand {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	margin-right: auto;
	color: var(--text);
	font-weight: 800;
	letter-spacing: -0.01em;
}

.brand:hover {
	color: var(--text);
}

.brand-mark {
	width: 32px;
	height: auto;
}

.nav-toggle,
.nav-toggle-label {
	display: none;
}

.site-nav {
	display: flex;
	align-items: center;
	gap: clamp(0.75rem, 2vw, 1.75rem);
}

.site-nav a {
	color: var(--muted);
	font-weight: 600;
	font-size: 0.95rem;
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
}

.site-nav a:hover {
	color: var(--text);
}

.nav-icon-text {
	display: none;
}

/* ---------- hero ---------- */

.hero {
	position: relative;
	z-index: 1;
	padding: clamp(3rem, 10vw, 7rem) clamp(1rem, 4vw, 2.5rem) var(--section-y);
	text-align: center;
}

.hero-inner {
	max-width: 44rem;
	margin: 0 auto;
	display: grid;
	justify-items: center;
	gap: 1rem;
}

.hero-logo {
	width: clamp(96px, 16vw, 140px);
	filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.6));
}

.eyebrow {
	text-transform: uppercase;
	letter-spacing: 0.18em;
	font-size: 0.75rem;
	font-weight: 700;
	color: var(--accent);
}

.hero-title {
	font-size: clamp(2.5rem, 7vw, 4.5rem);
}

.hero-tagline {
	font-size: clamp(1.05rem, 2.2vw, 1.3rem);
	font-weight: 600;
	color: var(--text);
}

.hero-blurb {
	color: var(--muted);
	max-width: 38rem;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.75rem;
	margin-top: 0.75rem;
}

/* ---------- buttons ---------- */

.btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.7rem 1.35rem;
	border-radius: 999px;
	border: 1px solid transparent;
	font-weight: 700;
	font-size: 0.95rem;
	transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
	transform: translateY(-2px);
}

.btn-primary {
	background: var(--accent);
	color: #17130f;
}

.btn-primary:hover {
	background: var(--accent-hot);
	color: #17130f;
}

.btn-ghost {
	border-color: var(--border);
	background: var(--surface);
	color: var(--text);
}

.btn-ghost:hover {
	border-color: var(--accent);
	color: var(--text);
}

/* ---------- sections ---------- */

.section {
	position: relative;
	z-index: 1;
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 0 clamp(1rem, 4vw, 2.5rem) var(--section-y);
}

.section-head {
	margin-bottom: clamp(2rem, 5vw, 3.5rem);
	text-align: center;
}

.section-title {
	font-size: clamp(1.85rem, 4vw, 2.6rem);
}

.section-sub {
	color: var(--muted);
	margin-top: 0.5rem;
}

/* ---------- game rows ---------- */

.game {
	display: grid;
	grid-template-columns: 1.05fr 1fr;
	align-items: center;
	gap: clamp(1.5rem, 5vw, 4rem);
	padding: clamp(1.5rem, 4vw, 2.5rem) 0;
}

.game + .game {
	border-top: 1px solid var(--border);
}

.game:nth-child(even) .game-art {
	order: 2;
}

.game-art {
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--surface);
	overflow: hidden;
	aspect-ratio: 16 / 10;
	box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45);
	transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.game-art:hover {
	transform: translateY(-4px);
	border-color: var(--accent);
	box-shadow: 0 28px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px var(--accent-dim);
}

.game-art img {
	width: 100%;
	height: 100%;
	/* art ranges from portrait to ultrawide, so never crop it */
	object-fit: contain;
	background: var(--surface-2);
}

.game-art-empty {
	display: grid;
	place-items: center;
	height: 100%;
	font-size: 2.5rem;
	color: var(--border);
	background: var(--surface-2);
}

.pill {
	display: inline-block;
	padding: 0.2rem 0.7rem;
	border-radius: 999px;
	background: var(--accent-dim);
	color: var(--accent);
	font-size: 0.7rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.game-title {
	font-size: clamp(1.6rem, 3.5vw, 2.2rem);
	margin-top: 0.75rem;
}

.game-tagline {
	color: var(--text);
	font-weight: 600;
	margin-top: 0.4rem;
}

.game-blurb {
	color: var(--muted);
	margin-top: 0.75rem;
}

.tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	list-style: none;
	padding: 0;
	margin: 1rem 0 0;
}

.tags li {
	padding: 0.2rem 0.65rem;
	border: 1px solid var(--border);
	border-radius: 999px;
	font-size: 0.75rem;
	color: var(--muted);
}

.shots {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	list-style: none;
	padding: 0;
	margin: 1rem 0 0;
}

.shots img {
	width: 110px;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	border: 1px solid var(--border);
	border-radius: 8px;
}

.game-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.7rem;
	margin-top: 1.5rem;
}

/* ---------- other projects ---------- */

.project-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: var(--gap);
}

.project-card {
	display: block;
	padding: clamp(1.25rem, 3vw, 1.75rem);
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	color: var(--text);
	transition: transform 0.2s ease, border-color 0.2s ease;
}

.project-card:hover {
	transform: translateY(-4px);
	border-color: var(--accent);
	color: var(--text);
}

.project-title {
	font-size: 1.2rem;
}

.project-blurb {
	color: var(--muted);
	font-size: 0.95rem;
	margin-top: 0.6rem;
}

.project-link {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	margin-top: 1rem;
	color: var(--accent);
	font-weight: 700;
	font-size: 0.9rem;
}

/* ---------- error page ---------- */

.error-page {
	text-align: center;
	padding-top: var(--section-y);
	display: grid;
	justify-items: center;
	gap: 0.75rem;
}

.error-code {
	font-size: clamp(3.5rem, 12vw, 6rem);
	font-weight: 900;
	line-height: 1;
	color: var(--accent);
}

.error-title {
	font-size: clamp(1.5rem, 4vw, 2.2rem);
}

.error-message {
	color: var(--muted);
}

.error-page .btn {
	margin-top: 1rem;
}

/* ---------- footer ---------- */

.site-footer {
	position: relative;
	z-index: 1;
	border-top: 1px solid var(--border);
	background: var(--surface);
	padding: clamp(2rem, 5vw, 3rem) clamp(1rem, 4vw, 2.5rem) 1.5rem;
}

.footer-inner {
	max-width: var(--maxw);
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--gap);
}

.footer-brand {
	display: flex;
	align-items: center;
	gap: 0.85rem;
}

.footer-name {
	font-weight: 800;
}

.footer-tagline {
	color: var(--muted);
	font-size: 0.9rem;
}

.footer-links {
	display: flex;
	flex-wrap: wrap;
	gap: 1.25rem;
}

.footer-links a {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	color: var(--muted);
	font-size: 0.9rem;
	font-weight: 600;
}

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

.copyright {
	max-width: var(--maxw);
	margin: 2rem auto 0;
	color: var(--muted);
	font-size: 0.8rem;
}

/* ---------- responsive ---------- */

@media (max-width: 860px) {
	.game {
		grid-template-columns: 1fr;
	}

	.game:nth-child(even) .game-art {
		order: 0;
	}
}

@media (max-width: 620px) {
	.nav-toggle-label {
		display: flex;
		flex-direction: column;
		justify-content: center;
		gap: 5px;
		width: 40px;
		height: 40px;
		padding: 9px;
		border: 1px solid var(--border);
		border-radius: 10px;
		cursor: pointer;
	}

	.nav-toggle-label span {
		display: block;
		height: 2px;
		background: var(--text);
		border-radius: 2px;
	}

	.site-nav {
		display: none;
		flex-basis: 100%;
		flex-direction: column;
		align-items: flex-start;
		gap: 0.85rem;
		padding: 0.5rem 0 0.25rem;
	}

	.nav-toggle:checked ~ .site-nav {
		display: flex;
	}

	.nav-icon-text {
		display: inline;
	}

	.footer-inner {
		flex-direction: column;
		align-items: flex-start;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}

	.btn:hover,
	.game-art:hover,
	.project-card:hover {
		transform: none;
	}
}
