/* The game's colours: the store screenshots' sky, the navy that outlines their captions,
   the dialogs' ink and the light inside of their cards. */
:root {
	--sky-top: #22c4e8;
	--sky-mid: #209fdb;
	--sky-bottom: #1e69cc;
	--navy: #0e3470;
	--ink: #1f4e5e;
	--card: #f0fcfe;
	--card-line: #c9eaf1;
	--orange: #f2a93b;
	--radius: 18px;
}

* {
	box-sizing: border-box;
}

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

/* A column as tall as the window, so the footer sits at the bottom of a short page. */
body {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	margin: 0;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 18px;
	line-height: 1.6;
	color: var(--ink);
	background: var(--card);
}

a {
	color: var(--sky-bottom);
}

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

.wrap {
	width: min(1120px, 100% - 40px);
	margin: 0 auto;
}

.sky {
	color: #fff;
	background: linear-gradient(180deg, var(--sky-top), var(--sky-mid) 55%, var(--sky-bottom));
}

/* White letters ringed in navy, the way the game sets its titles. */
.outlined {
	color: #fff;
	font-weight: 800;
	letter-spacing: 0.01em;
	text-shadow:
		3px 0 0 var(--navy), -3px 0 0 var(--navy), 0 3px 0 var(--navy), 0 -3px 0 var(--navy),
		2px 2px 0 var(--navy), -2px 2px 0 var(--navy), 2px -2px 0 var(--navy), -2px -2px 0 var(--navy),
		0 6px 0 var(--navy);
}

/* Header */

.top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 0;
}

.brand {
	color: #fff;
	font-weight: 800;
	font-size: 20px;
	text-decoration: none;
}

.top nav {
	display: flex;
	gap: 22px;
}

.top nav a {
	color: #fff;
	font-weight: 600;
	text-decoration: none;
}

.top nav a:hover,
.brand:hover {
	text-decoration: underline;
}

/* Store page */

.hero {
	padding: 24px 0 64px;
	text-align: center;
}

.app-icon {
	width: 120px;
	height: 120px;
	margin: 0 auto 18px;
	border: 4px solid #fff;
	border-radius: 28px;
	box-shadow: 0 8px 24px rgb(14 52 112 / 0.35);
}

.hero h1 {
	margin: 0;
	font-size: clamp(52px, 9vw, 96px);
	line-height: 1.05;
}

.tagline {
	margin: 14px 0 0;
	font-size: clamp(24px, 3.4vw, 36px);
	line-height: 1.2;
}

.intro {
	max-width: 680px;
	margin: 22px auto 0;
	font-size: 20px;
}

.soon {
	display: inline-block;
	margin: 26px 0 0;
	padding: 12px 24px;
	border-radius: 999px;
	color: var(--navy);
	background: #fff;
	font-weight: 700;
	box-shadow: 0 6px 0 rgb(14 52 112 / 0.25);
}

/* A sky that grows to meet the footer, on a page with nothing under it. */
.fill {
	flex: 1;
}

/* Home page */

.home {
	padding: 40px 0 72px;
	text-align: center;
}

.home h1 {
	margin: 0;
	font-size: clamp(44px, 8vw, 84px);
	line-height: 1.1;
}

.home .lead {
	margin: 18px 0 0;
	font-size: 22px;
}

.home a {
	color: #fff;
}

.games {
	padding: 56px 0 72px;
}

.games h2,
.doc h2 {
	color: var(--navy);
}

.game-card {
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: center;
	gap: 32px;
	padding: 28px;
	border: 2px solid var(--card-line);
	border-radius: var(--radius);
	background: #fff;
	color: inherit;
	text-decoration: none;
}

.game-card .app-icon {
	margin: 0;
}

.game-card h3 {
	margin: 0;
	color: var(--navy);
	font-size: 32px;
}

.game-card p {
	margin: 8px 0 0;
}

.button {
	display: inline-block;
	margin-top: 18px;
	padding: 10px 26px;
	border-radius: 999px;
	color: #fff;
	background: var(--orange);
	font-weight: 700;
	box-shadow: 0 5px 0 #c0651a;
}

.game-card:hover .button {
	filter: brightness(1.06);
}

/* Support and privacy */

.page-title {
	padding: 20px 0 44px;
}

.page-title h1 {
	margin: 0;
	font-size: clamp(36px, 6vw, 56px);
	line-height: 1.15;
}

.doc {
	max-width: 820px;
	margin: 40px auto 64px;
	padding: 8px 40px 32px;
	border: 2px solid var(--card-line);
	border-radius: var(--radius);
	background: #fff;
}

.doc h2 {
	margin: 36px 0 8px;
	font-size: 24px;
	line-height: 1.3;
}

.doc h2 + p {
	margin-top: 0;
}

.doc ul {
	padding-left: 22px;
}

.updated {
	color: #5b7c88;
	font-size: 16px;
}

/* Footer */

.foot {
	margin-top: auto;
	padding: 28px 0;
	color: #cfe6f7;
	background: var(--navy);
	font-size: 16px;
}

.foot .wrap {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px 28px;
}

.foot nav {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 22px;
}

.foot a {
	color: #fff;
}

@media (max-width: 760px) {
	body {
		font-size: 17px;
	}

	.game-card {
		grid-template-columns: 1fr;
		justify-items: center;
		gap: 20px;
		padding: 20px;
		text-align: center;
	}

	.doc {
		padding: 4px 22px 24px;
		border-radius: 0;
		border-width: 2px 0;
	}

	.top nav {
		gap: 16px;
	}
}
