/* Hungry Hole — minimal site styles */
@font-face {
	font-family: "Lilita One";
	src: url("/assets/LilitaOne-Regular.ttf") format("truetype");
	font-weight: 400;
	font-display: swap;
}

:root {
	--asphalt: #7b7b8f;
	--asphalt-dark: #63637a;
	--ink: #2e2a36;
	--muted: #6b6577;
	--gold: #f0a500;
	--paper: #faf9f7;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	background: var(--paper);
	color: var(--ink);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
		Helvetica, Arial, sans-serif;
	font-size: 1.0625rem;
	line-height: 1.65;
}

h1,
h2 {
	font-family: "Lilita One", -apple-system, sans-serif;
	font-weight: 400;
	line-height: 1.15;
}

a {
	color: var(--asphalt-dark);
}

/* hero (homepage) */
.hero {
	/* the game's sky: ProceduralSky top -> horizon colors */
	background: linear-gradient(#599eeb, #bfd9f2);
	text-align: center;
	padding: 4rem 1.5rem 0;
}

.hero img.wordmark {
	width: min(420px, 86%);
	height: auto;
}

.hero img.hole {
	width: min(240px, 55%);
	height: auto;
	margin-top: 2rem;
}

.badge {
	display: inline-block;
	margin-top: 2rem;
	background: linear-gradient(#ffe24d, #ffa81c);
	color: var(--ink);
	font-family: "Lilita One", sans-serif;
	font-size: 1.125rem;
	padding: 0.8rem 1.6rem;
	border-radius: 999px;
	border: 3px solid #fff;
	box-shadow: 0 5px 0 #b85f0a, 0 10px 18px rgba(0, 0, 0, 0.18);
	text-decoration: none;
	transition: transform 0.08s, box-shadow 0.08s;
}

a.badge:hover {
	transform: translateY(2px);
	box-shadow: 0 3px 0 #b85f0a, 0 6px 12px rgba(0, 0, 0, 0.18);
}

a.badge:active {
	transform: translateY(5px);
	box-shadow: 0 0 0 #b85f0a;
}

.badge-muted {
	margin-top: 0.9rem;
	background: rgba(255, 255, 255, 0.25);
	color: #fff;
	font-size: 0.9375rem;
	border-width: 2px;
	box-shadow: none;
	text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

.badge-store {
	margin-top: 0.9rem;
	background: var(--ink);
	color: #fff;
	font-size: 1rem;
	box-shadow: 0 5px 0 #15131a, 0 10px 18px rgba(0, 0, 0, 0.18);
}

/* app icon + pitch row (homepage) */
.app-row {
	display: flex;
	align-items: center;
	gap: 1.5rem;
}

.app-row .app-icon {
	width: 128px;
	height: 128px;
	flex-shrink: 0;
	border-radius: 28px;
	box-shadow: 0 8px 24px rgba(46, 42, 54, 0.25);
}

@media (max-width: 520px) {
	.app-row {
		flex-direction: column;
		text-align: center;
	}
}

/* city skyline strip at the base of the hero */
.hero img.skyline {
	display: block;
	width: 100%;
	max-width: 1100px;
	margin: 3rem auto 0;
}

/* content pages */
main {
	max-width: 40rem;
	margin: 0 auto;
	padding: 2.5rem 1.5rem 4rem;
}

main h1 {
	font-size: 2.25rem;
	margin-bottom: 0.5rem;
}

main h2 {
	font-size: 1.4rem;
	margin: 2rem 0 0.5rem;
}

main p,
main ul {
	margin-top: 0.75rem;
}

main ul {
	padding-left: 1.4rem;
}

main li {
	margin-top: 0.4rem;
}

p.updated {
	color: var(--muted);
	font-size: 0.9375rem;
}

/* small wordmark header on subpages */
header.mini {
	background: linear-gradient(#599eeb, #8fbceb);
	text-align: center;
	padding: 1.5rem;
}

header.mini img {
	width: 180px;
	height: auto;
	display: inline-block;
}

footer {
	text-align: center;
	color: var(--muted);
	font-size: 0.9375rem;
	padding: 2.5rem 1.5rem 3rem;
}

footer a {
	color: var(--muted);
}

footer .links {
	margin-bottom: 0.5rem;
}

/* ---- homepage sections ------------------------------------------------ */
.section-title {
	font-size: 2rem;
	text-align: center;
	margin: 3rem 0 1.25rem;
	color: var(--ink);
}

/* phone screenshots: a wide strip — four across on a desktop, scrolls
   sideways on a phone */
.gallery {
	max-width: 62rem;
	margin: 0 auto;
	padding: 0 1.5rem;
}

.gallery .section-title {
	margin-top: 0.5rem;
}

.shots {
	display: flex;
	gap: 1rem;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding: 0.5rem 0.25rem 1.25rem;
	-webkit-overflow-scrolling: touch;
}

@media (min-width: 960px) {
	.shots {
		justify-content: center;
	}
}

.shots img {
	flex: 0 0 auto;
	width: 210px;
	height: auto;
	border-radius: 22px;
	box-shadow: 0 10px 28px rgba(46, 42, 54, 0.28);
	scroll-snap-align: center;
}

/* level cards */
.worlds {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1rem;
}

.card {
	background: #fff;
	border-radius: 22px;
	padding: 1.25rem 1rem 1.4rem;
	text-align: center;
	box-shadow: 0 6px 20px rgba(46, 42, 54, 0.1);
}

.card img {
	width: 120px;
	height: 120px;
}

.card h3 {
	font-family: "Lilita One", sans-serif;
	font-weight: 400;
	font-size: 1.35rem;
	margin-top: 0.25rem;
}

.card p {
	margin-top: 0.35rem;
	font-size: 0.9375rem;
	color: var(--muted);
	line-height: 1.5;
}

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

/* the hole shop band, in the game's dialog purple */
.band {
	background: linear-gradient(#4b3c82, #2b2350);
	color: #fff;
	padding: 0.5rem 1.5rem 3rem;
	text-align: center;
}

.band .section-title {
	color: #ffe24d;
	text-shadow: 0 3px 0 rgba(0, 0, 0, 0.35);
}

.band-copy {
	max-width: 36rem;
	margin: 0 auto 1.75rem;
	color: rgba(255, 255, 255, 0.88);
}

.holes {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1rem 1.25rem;
	max-width: 54rem;
	margin: 0 auto;
}

.hole-card {
	width: 128px;
}

.hole-card img {
	width: 112px;
	height: 112px;
	transition: transform 0.15s;
}

.hole-card:hover img {
	transform: scale(1.08) rotate(-3deg);
}

.hole-card span {
	display: block;
	font-family: "Lilita One", sans-serif;
	font-size: 1.125rem;
	color: #ffe24d;
}

/* the promise list */
.promise {
	list-style: none;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.6rem 1.5rem;
}

.promise li {
	margin: 0;
	padding-left: 1.8rem;
	position: relative;
}

.promise li::before {
	content: "\2713";
	position: absolute;
	left: 0;
	top: 0;
	font-weight: 700;
	color: var(--gold);
}

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

footer .credits {
	margin-bottom: 0.5rem;
}
