/* Pod Digger's website: the game's own look (sea blue, navy text, white cards, orange buttons). */

@font-face {
	font-family: "Ubuntu";
	font-weight: 700;
	font-display: swap;
	src: url("fonts/Ubuntu-B.ttf") format("truetype");
}

:root {
	--sky: #5ec3f5;
	--sea: #1386d6;
	--deep: #0a1434;
	--navy: #14234f;
	--soft: #55628a;
	--card: #ffffff;
	--line: #dbe6f5;
	--orange: #ff8a1f;
	--orange-dark: #d9620a;
	--cyan: #39d8f0;
	--radius: 28px;
}

* {
	box-sizing: border-box;
}

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

body {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
	font-size: 18px;
	line-height: 1.6;
	color: var(--navy);
	background: linear-gradient(180deg, var(--sky) 0, var(--sea) 420px, var(--deep) 1500px) var(--deep);
}

h1,
h2,
h3,
.button,
.brand,
.pill {
	font-family: "Ubuntu", system-ui, sans-serif;
	font-weight: 700;
}

h1,
h2,
h3 {
	line-height: 1.15;
	margin: 0;
	text-wrap: balance;
}

p {
	margin: 0;
}

a {
	color: #0b6fc0;
	text-underline-offset: 3px;
}

a:focus-visible,
.button:focus-visible {
	outline: 4px solid var(--cyan);
	outline-offset: 3px;
}

.wrap {
	width: 100%;
	max-width: 1040px;
	margin: 0 auto;
	padding: 0 16px;
}

main {
	flex: 1;
}

/* The top bar: the game's icon and name, and the way back from the other pages. */

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

.brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-size: 22px;
	color: #fff;
	text-decoration: none;
	text-shadow: 0 2px 0 rgba(10, 20, 52, 0.35);
}

.brand img {
	width: 48px;
	height: 48px;
	border-radius: 12px;
	box-shadow: 0 4px 12px rgba(10, 20, 52, 0.3);
}

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

/* The hero: title, pitch and the store button beside a phone screenshot. */

.hero {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
	align-items: center;
	gap: 48px;
	padding-top: 24px;
	padding-bottom: 72px;
	color: #fff;
}

.hero h1 {
	font-size: clamp(44px, 8vw, 84px);
	letter-spacing: 0.01em;
	text-shadow: 0 4px 0 rgba(10, 20, 52, 0.4);
}

.pill {
	display: inline-block;
	margin-top: 14px;
	padding: 6px 18px;
	border-radius: 999px;
	font-size: 18px;
	letter-spacing: 0.08em;
	color: var(--cyan);
	background: var(--deep);
}

.hero .lead {
	margin-top: 24px;
	max-width: 30em;
	font-size: 21px;
	text-shadow: 0 1px 0 rgba(10, 20, 52, 0.35);
}

.hero .actions {
	margin-top: 32px;
}

.hero .note {
	margin-top: 14px;
	font-size: 16px;
	opacity: 0.92;
}

.button {
	display: inline-block;
	padding: 16px 32px;
	border-radius: 20px;
	font-size: 22px;
	color: #fff;
	text-decoration: none;
	background: linear-gradient(180deg, #ffa53d, var(--orange));
	border: 3px solid var(--orange-dark);
	box-shadow: 0 6px 0 var(--orange-dark), 0 14px 24px rgba(10, 20, 52, 0.3);
	transition: transform 0.08s ease, box-shadow 0.08s ease;
}

.button:hover {
	transform: translateY(-1px);
}

.button:active {
	transform: translateY(4px);
	box-shadow: 0 2px 0 var(--orange-dark), 0 6px 12px rgba(10, 20, 52, 0.3);
}

.phone {
	justify-self: center;
	width: min(100%, 320px);
	padding: 10px;
	border-radius: 40px;
	background: var(--deep);
	box-shadow: 0 24px 60px rgba(10, 20, 52, 0.45);
	transform: rotate(3deg);
}

.phone img,
.shots img {
	display: block;
	width: 100%;
	height: auto;
}

.phone img {
	border-radius: 30px;
}

/* White cards, as in the game's sheets. */

.card {
	background: var(--card);
	border-radius: var(--radius);
	padding: 40px;
	box-shadow: 0 12px 40px rgba(10, 20, 52, 0.25);
}

.card + .card {
	margin-top: 32px;
}

.card h2 {
	font-size: 32px;
	margin-bottom: 16px;
}

.card p + p {
	margin-top: 14px;
}

.features {
	list-style: none;
	margin: 24px 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px 32px;
}

.features li {
	position: relative;
	padding-left: 30px;
}

.features li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.42em;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--orange);
	border: 3px solid var(--orange-dark);
}

.shots {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

.shots figure {
	margin: 0;
}

.shots img {
	border-radius: 20px;
	border: 4px solid var(--deep);
}

.shots figcaption {
	margin-top: 10px;
	text-align: center;
	font-size: 16px;
	color: var(--soft);
}

/* Long text: the privacy policy and the support page. */

.prose {
	max-width: 760px;
	margin: 0 auto 72px;
}

.prose h1 {
	font-size: clamp(32px, 6vw, 44px);
	margin-bottom: 8px;
}

.prose h2 {
	font-size: 24px;
	margin: 32px 0 10px;
}

.prose .soft {
	color: var(--soft);
	font-size: 16px;
}

.prose ul {
	margin: 12px 0 0;
	padding-left: 22px;
}

.prose li + li {
	margin-top: 6px;
}

.prose .actions {
	margin: 28px 0 10px;
}

/* The footer, down in the deep. */

footer {
	margin-top: 72px;
	padding: 32px 0 40px;
	color: #c5d2f0;
	font-size: 16px;
}

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

footer a {
	color: #fff;
}

footer nav {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
}

@media (max-width: 760px) {
	.hero {
		grid-template-columns: minmax(0, 1fr);
		gap: 40px;
		padding-bottom: 56px;
		text-align: center;
	}

	.hero .lead {
		margin-left: auto;
		margin-right: auto;
		font-size: 19px;
	}

	.phone {
		width: min(78%, 300px);
	}

	.card {
		padding: 28px 22px;
	}

	.card h2 {
		font-size: 27px;
	}

	.features {
		grid-template-columns: minmax(0, 1fr);
	}

	.shots {
		grid-template-columns: minmax(0, 1fr);
		max-width: 320px;
		margin: 0 auto;
	}
}

@media (prefers-reduced-motion: reduce) {
	.button {
		transition: none;
	}
}
