/* uladen.com – one stylesheet for every page. Light and plain; the games bring the colour. */

@font-face {
	font-family: "Nunito";
	src: url("/assets/fonts/nunito.ttf") format("truetype");
	font-weight: 200 1000;
	font-style: normal;
	font-display: swap;
}

:root {
	color-scheme: light;
	--bg: #ffffff;
	--surface: #f4f5f7;
	--line: #e3e5e9;
	--line-strong: #c9cdd4;
	--text: #14161b;
	--muted: #5a616d;
	--primary: #1b2236;
	--primary-hover: #2c3652;
	--link: #1a5fd0;
	--focus: #f2b705;
	--radius: 20px;
	--shadow: 0 1px 2px rgb(17 24 39 / 0.05), 0 10px 30px rgb(17 24 39 / 0.08);
	--max: 1100px;
	--gutter: clamp(16px, 4vw, 32px);
}

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	font-size: 17px;
	font-weight: 500;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

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

a {
	color: var(--link);
	text-underline-offset: 3px;
}

a:hover {
	text-decoration-thickness: 2px;
}

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

.wrap {
	max-width: var(--max);
	margin: 0 auto;
	padding: 0 var(--gutter);
}

.skip {
	position: absolute;
	left: -9999px;
}

.skip:focus {
	left: 16px;
	top: 12px;
	z-index: 100;
	padding: 8px 14px;
	border-radius: 8px;
	background: var(--bg);
	box-shadow: var(--shadow);
}

/* Header and footer */

.site-header {
	position: sticky;
	top: 0;
	z-index: 10;
	border-bottom: 1px solid var(--line);
	background: rgb(255 255 255 / 0.92);
	-webkit-backdrop-filter: saturate(1.4) blur(10px);
	backdrop-filter: saturate(1.4) blur(10px);
}

.site-header .wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 64px;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--text);
	font-size: 22px;
	font-weight: 900;
	letter-spacing: -0.01em;
	text-decoration: none;
}

.brand svg {
	width: 32px;
	height: 32px;
}

.nav a {
	padding: 8px 14px;
	border-radius: 999px;
	color: var(--text);
	font-weight: 700;
	text-decoration: none;
}

.nav a:hover {
	background: var(--surface);
}

.site-footer {
	border-top: 1px solid var(--line);
	padding: 28px 0 40px;
	color: var(--muted);
	font-size: 15px;
}

.site-footer .wrap {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px 24px;
}

.site-footer p {
	margin: 0;
}

.site-footer nav {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
}

.site-footer a {
	color: var(--muted);
	font-weight: 700;
	text-decoration: none;
}

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

/* Home */

.hero {
	padding-top: clamp(48px, 9vw, 104px);
	padding-bottom: clamp(32px, 6vw, 64px);
}

.hero h1 {
	max-width: 15ch;
	margin: 0 0 18px;
	font-size: clamp(38px, 6.4vw, 64px);
	font-weight: 900;
	line-height: 1.05;
	letter-spacing: -0.02em;
}

.hero p {
	max-width: 34em;
	margin: 0;
	color: var(--muted);
	font-size: clamp(18px, 2.2vw, 21px);
}

.section {
	padding-bottom: 72px;
}

.section-title {
	margin: 0 0 16px;
	color: var(--muted);
	font-size: 14px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.game-card {
	display: grid;
	grid-template-columns: 1.35fr 1fr;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
}

.game-card .media {
	display: block;
	background: #cdeefc;
}

.game-card .media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	/* The logo sits on the left of the feature graphic; crop the map on the right instead. */
	object-position: left center;
}

.game-card .body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: clamp(22px, 3.2vw, 36px);
}

.game-card h3 {
	margin: 0;
	font-size: 30px;
	font-weight: 900;
	line-height: 1.1;
}

.game-card h3 a {
	color: inherit;
	text-decoration: none;
}

.game-card p {
	margin: 0;
}

.tagline {
	margin: 4px 0 14px;
	color: var(--muted);
	font-weight: 700;
}

.game-card .tagline {
	margin: 4px 0 14px;
}

.chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 18px 0 22px;
	padding: 0;
	list-style: none;
}

.chips li {
	padding: 3px 12px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--bg);
	font-size: 14px;
	font-weight: 700;
}

.actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 46px;
	padding: 0 20px;
	border: 1px solid transparent;
	border-radius: 999px;
	font-size: 16px;
	font-weight: 800;
	text-decoration: none;
}

.btn svg {
	width: 18px;
	height: 18px;
}

.btn-primary {
	background: var(--primary);
	color: #fff;
}

.btn-primary:hover {
	background: var(--primary-hover);
}

.btn-secondary {
	border-color: var(--line-strong);
	background: var(--bg);
	color: var(--text);
}

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

.btn-soon {
	border: 1px dashed var(--line-strong);
	color: var(--muted);
	cursor: default;
}

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

/* Game page */

.crumb {
	display: inline-block;
	margin-top: 28px;
	color: var(--muted);
	font-weight: 700;
	text-decoration: none;
}

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

.game-hero {
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: center;
	gap: 32px;
	padding: 28px 0 48px;
}

.app-icon {
	width: 136px;
	height: 136px;
	border-radius: 30px;
	box-shadow: var(--shadow);
}

.game-hero h1 {
	margin: 0;
	font-size: clamp(38px, 6vw, 56px);
	font-weight: 900;
	line-height: 1.05;
	letter-spacing: -0.02em;
}

.game-hero .tagline {
	margin: 2px 0 12px;
	font-size: 20px;
}

.lead {
	max-width: 34em;
	margin: 0 0 22px;
	font-size: 19px;
}

.fineprint {
	margin: 14px 0 0;
	color: var(--muted);
	font-size: 15px;
}

.block {
	padding-bottom: 56px;
}

.block h2 {
	margin: 0 0 16px;
	font-size: 26px;
	font-weight: 900;
	letter-spacing: -0.01em;
}

.shots {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: 200px;
	gap: 16px;
	margin: 0 calc(-1 * var(--gutter));
	padding: 4px var(--gutter) 14px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-padding: 0 var(--gutter);
	list-style: none;
}

.shots li {
	scroll-snap-align: start;
}

.shots figure {
	margin: 0;
}

.shots img {
	width: 100%;
	aspect-ratio: 9 / 16;
	object-fit: cover;
	border: 1px solid var(--line);
	border-radius: 18px;
	background: var(--surface);
}

.shots figcaption {
	margin-top: 8px;
	color: var(--muted);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.35;
}

@media (min-width: 900px) {
	.shots {
		grid-auto-flow: row;
		grid-template-columns: repeat(4, 1fr);
		grid-auto-columns: auto;
		gap: 24px 20px;
		margin: 0;
		padding: 0;
		overflow: visible;
	}
}

.about p {
	max-width: 40em;
	margin: 0 0 14px;
}

.features {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
}

.feature {
	padding: 22px 24px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
}

.feature h3 {
	margin: 0 0 8px;
	font-size: 19px;
	font-weight: 900;
}

.feature ul {
	margin: 0;
	padding-left: 1.1em;
}

.feature li {
	margin: 5px 0;
}

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

.facts {
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: 10px 32px;
	margin: 0;
}

.facts dt {
	font-weight: 800;
}

.facts dd {
	margin: 0;
	color: var(--muted);
}

@media (max-width: 640px) {
	.game-hero {
		grid-template-columns: 1fr;
		gap: 18px;
	}

	.app-icon {
		width: 96px;
		height: 96px;
		border-radius: 22px;
	}

	.facts {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.facts dd {
		margin-bottom: 12px;
	}
}

/* Legal pages */

.prose {
	max-width: 760px;
	padding-top: 40px;
	padding-bottom: 72px;
}

.prose h1 {
	margin: 0 0 6px;
	font-size: clamp(32px, 5vw, 44px);
	font-weight: 900;
	line-height: 1.1;
	letter-spacing: -0.015em;
}

.prose h2 {
	margin: 2em 0 0.4em;
	font-size: 22px;
	font-weight: 900;
	line-height: 1.25;
}

.prose h3 {
	margin: 1.5em 0 0.3em;
	font-size: 18px;
	font-weight: 800;
}

.prose .meta {
	margin: 0 0 28px;
	color: var(--muted);
}

.prose ul {
	padding-left: 1.2em;
}

.prose li {
	margin: 4px 0;
}

.prose address {
	font-style: normal;
}

.todo {
	padding: 0 4px;
	border-radius: 4px;
	background: #fff0a8;
}
