/* Long Stick Studios and Egg Crusher: one stylesheet for every page of the site. The colours are the game's own
   (ink, cream, yolk, orange) and the font is the game's, Nunito (SIL Open Font License, fonts/OFL.txt). */

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

:root {
	--ink: #1f3a36;
	--ink-soft: #4b625e;
	--cream: #fbf3e4;
	--paper: #fffaf1;
	--line: #eadfca;
	--yolk: #ffc93c;
	--orange: #f28c28;
	--green: #17604f;
	--green-deep: #0e4236;
	--radius: 28px;
	--lift: 0 6px 0 rgba(31, 58, 54, 0.13);
	color-scheme: light;
}

* {
	box-sizing: border-box;
}

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

body {
	margin: 0;
	font-family: "Nunito", ui-rounded, "Segoe UI", system-ui, sans-serif;
	font-weight: 600;
	font-size: 18px;
	line-height: 1.6;
	color: var(--ink);
	background: var(--cream);
}

a {
	color: inherit;
	text-decoration-color: var(--orange);
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}

a:hover {
	color: #c4660c;
}

a:focus-visible,
.button:focus-visible {
	outline: 3px solid var(--orange);
	outline-offset: 3px;
	border-radius: 8px;
}

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

h1,
h2,
h3 {
	font-weight: 900;
	line-height: 1.15;
	letter-spacing: -0.01em;
	margin: 0 0 0.5em;
}

p {
	margin: 0 0 1em;
}

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

/* ------------------------------------------------------------------ the bar on top */

.top {
	padding: 20px 0;
}

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

.brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-weight: 900;
	font-size: 17px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
}

/* the long stick of the name */
.brand::before {
	content: "";
	width: 38px;
	height: 9px;
	border-radius: 99px;
	background: var(--orange);
	transform: rotate(-28deg);
	box-shadow: 0 3px 0 rgba(31, 58, 54, 0.18);
}

.top nav {
	display: flex;
	gap: 20px;
	font-weight: 800;
	font-size: 16px;
}

.top nav a {
	text-decoration: none;
}

.top nav a:hover {
	text-decoration: underline;
	text-decoration-color: var(--orange);
}

.on-green .top {
	color: var(--cream);
}

/* ------------------------------------------------------------------ buttons and chips */

.button {
	display: inline-block;
	padding: 14px 26px;
	border-radius: 99px;
	background: var(--yolk);
	color: var(--ink);
	font-weight: 900;
	font-size: 18px;
	text-decoration: none;
	box-shadow: 0 5px 0 #d99a00;
	transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.button:hover {
	color: var(--ink);
	transform: translateY(2px);
	box-shadow: 0 3px 0 #d99a00;
}

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

.chips li {
	padding: 4px 14px;
	border-radius: 99px;
	background: rgba(31, 58, 54, 0.08);
	font-size: 14px;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.soon {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 8px 18px;
	border-radius: 99px;
	background: rgba(255, 201, 60, 0.18);
	border: 2px solid var(--yolk);
	font-weight: 800;
	font-size: 16px;
}

.soon::before {
	content: "";
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--yolk);
}

/* ------------------------------------------------------------------ the studio's page */

.studio-hero {
	padding: 64px 0 40px;
}

.studio-hero h1 {
	font-size: clamp(52px, 10vw, 112px);
	letter-spacing: -0.03em;
	margin-bottom: 0.25em;
}

/* a long stick under the headline */
.studio-hero h1::after {
	content: "";
	display: block;
	width: min(560px, 80%);
	height: 16px;
	margin-top: 22px;
	border-radius: 99px;
	background: var(--orange);
	box-shadow: 0 6px 0 rgba(31, 58, 54, 0.14);
	transform: rotate(-1.5deg);
}

.studio-hero .lead {
	max-width: 620px;
	font-size: 21px;
	color: var(--ink-soft);
}

.section-title {
	font-size: 15px;
	font-weight: 900;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ink-soft);
	margin: 40px 0 18px;
}

.game-card {
	display: grid;
	grid-template-columns: 180px 1fr;
	gap: 32px;
	align-items: center;
	padding: 28px;
	border-radius: var(--radius);
	background: var(--paper);
	border: 2px solid var(--line);
	box-shadow: var(--lift);
}

.game-card img {
	width: 180px;
	border-radius: 40px;
	box-shadow: 0 6px 0 rgba(14, 66, 54, 0.35);
}

.game-card h2 {
	font-size: 36px;
	margin-bottom: 0.2em;
}

.game-card p {
	color: var(--ink-soft);
	max-width: 560px;
}

.game-card .actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
}

.more-soon {
	margin: 28px 0 72px;
	color: var(--ink-soft);
}

/* ------------------------------------------------------------------ Egg Crusher's page */

.on-green .hero-band {
	background:
		radial-gradient(circle at 72% 45%, rgba(255, 201, 60, 0.28), transparent 42%),
		radial-gradient(circle at 30% 20%, #23826b, transparent 60%),
		linear-gradient(160deg, var(--green) 0%, var(--green-deep) 100%);
	color: var(--cream);
	border-radius: 0 0 48px 48px;
	padding-bottom: 56px;
}

.game-hero {
	display: grid;
	grid-template-columns: 1.05fr 1fr;
	gap: 24px;
	align-items: center;
	padding-top: 24px;
}

.logo-type {
	margin: 0 0 18px;
	font-size: clamp(64px, 10vw, 118px);
	line-height: 0.92;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	text-shadow: 0 7px 0 rgba(0, 0, 0, 0.22);
}

.logo-type span {
	display: block;
}

.logo-type .egg {
	color: var(--yolk);
}

.logo-type .crusher {
	color: var(--cream);
	font-size: 0.74em;
}

.tagline {
	font-size: 26px;
	font-weight: 900;
	margin-bottom: 12px;
}

.game-hero p {
	max-width: 500px;
	font-size: 19px;
	color: rgba(251, 243, 228, 0.86);
}

.game-hero .soon {
	color: var(--cream);
	margin-top: 8px;
}

.hero-art img {
	width: min(500px, 100%);
	margin-inline: auto;
	filter: drop-shadow(0 26px 30px rgba(0, 0, 0, 0.3));
}

.block {
	padding: 72px 0 0;
}

.block h2 {
	font-size: clamp(32px, 5vw, 46px);
}

.block .intro {
	max-width: 640px;
	color: var(--ink-soft);
	font-size: 19px;
}

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

.steps li {
	padding: 26px 24px 22px;
	border-radius: var(--radius);
	background: var(--paper);
	border: 2px solid var(--line);
	box-shadow: var(--lift);
}

.steps img {
	width: 84px;
	margin: 0 0 12px;
}

.steps h3 {
	font-size: 23px;
	margin-bottom: 0.3em;
}

.steps p {
	margin: 0;
	color: var(--ink-soft);
	font-size: 17px;
}

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

.shots figure {
	margin: 0;
}

.shots img {
	width: 100%;
	aspect-ratio: 9 / 16;
	object-fit: cover;
	border-radius: 30px;
	border: 7px solid var(--ink);
	box-shadow: 0 10px 0 rgba(31, 58, 54, 0.16);
	background: var(--ink);
}

.shots figcaption {
	margin-top: 14px;
	font-weight: 800;
	font-size: 17px;
	text-align: center;
}

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

.features li {
	position: relative;
	padding-left: 34px;
	font-size: 18px;
}

/* a little egg for a bullet */
.features li::before {
	content: "";
	position: absolute;
	left: 4px;
	top: 6px;
	width: 16px;
	height: 20px;
	border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
	background: var(--yolk);
	box-shadow: inset -3px -3px 0 rgba(217, 154, 0, 0.55);
}

.closing {
	margin: 80px 0 0;
	padding: 44px 40px;
	border-radius: var(--radius);
	background: var(--ink);
	color: var(--cream);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
}

.closing h2 {
	font-size: 30px;
	margin: 0 0 6px;
}

.closing p {
	margin: 0;
	color: rgba(251, 243, 228, 0.78);
}

/* ------------------------------------------------------------------ the legal pages */

.doc {
	width: min(780px, 100% - 40px);
	margin: 16px auto 72px;
	padding: 48px clamp(22px, 5vw, 60px);
	border-radius: var(--radius);
	background: var(--paper);
	border: 2px solid var(--line);
	box-shadow: var(--lift);
}

.doc h1 {
	font-size: clamp(34px, 6vw, 48px);
	margin-bottom: 0.3em;
}

.doc .meta {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px 20px;
	color: var(--ink-soft);
	font-size: 16px;
	padding-bottom: 22px;
	margin-bottom: 30px;
	border-bottom: 2px solid var(--line);
}

.doc .meta a {
	font-weight: 800;
}

.doc h2 {
	font-size: 26px;
	margin-top: 1.8em;
}

.doc h3 {
	font-size: 19px;
	margin: 0 0 0.3em;
}

.doc ul,
.doc ol {
	padding-left: 1.3em;
	margin: 0 0 1em;
}

.doc li {
	margin-bottom: 0.45em;
}

.doc li::marker {
	color: var(--orange);
	font-weight: 900;
}

.doc .short {
	padding: 22px 26px 8px;
	border-radius: 22px;
	background: rgba(255, 201, 60, 0.16);
	border: 2px solid rgba(255, 201, 60, 0.7);
}

.doc .short h2 {
	margin-top: 0;
	font-size: 22px;
}

.items {
	display: grid;
	gap: 14px;
	margin: 0 0 1em;
}

.item {
	padding: 18px 22px 4px;
	border-radius: 20px;
	background: var(--cream);
	border: 2px solid var(--line);
}

.item p {
	font-size: 17px;
	margin-bottom: 0.8em;
}

.item .why {
	color: var(--ink-soft);
}

.doc .steps-list li {
	padding-left: 6px;
}

.doc .path {
	font-weight: 900;
	white-space: nowrap;
}

/* ------------------------------------------------------------------ the bottom of every page */

.foot {
	padding: 36px 0 44px;
	border-top: 2px solid var(--line);
	font-size: 15px;
	color: var(--ink-soft);
}

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

.foot ul {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.foot a {
	font-weight: 800;
}

.block + .foot,
.closing + .foot {
	margin-top: 72px;
}

/* ------------------------------------------------------------------ narrow screens */

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

	.game-hero p {
		margin-inline: auto;
	}

	.hero-art img {
		width: min(360px, 80%);
	}

	.steps {
		grid-template-columns: 1fr;
	}

	.shots {
		display: flex;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		gap: 18px;
		padding-bottom: 18px;
		margin-inline: -20px;
		padding-inline: 20px;
	}

	.shots li {
		flex: 0 0 62%;
		scroll-snap-align: center;
	}

	.features {
		grid-template-columns: 1fr;
	}
}

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

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

	.game-card .actions {
		justify-content: center;
	}

	.chips {
		justify-content: center;
	}

	.studio-hero {
		padding-top: 36px;
	}

	.closing {
		padding: 32px 26px;
	}
}

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