@font-face {
	font-family: Fondamento;
	src: url("/signature/fondamento.ttf") format("truetype");
	font-style: normal;
	font-weight: 400;
	font-display: swap;
}

:root {
	color-scheme: light;
	--ink: #283928;
	--cream: #f7f0df;
	--muted: #57604c;
	font-family: "Trebuchet MS", Verdana, sans-serif;
	color: var(--ink);
	background: #dbb876;
	line-height: 1.65;
}
* {
	box-sizing: border-box;
}
body {
	margin: 0;
	isolation: isolate;
}
a {
	color: inherit;
	text-underline-offset: 0.3em;
}
button {
	font: inherit;
	cursor: pointer;
}
button:disabled {
	cursor: default;
}
:focus-visible {
	outline: 3px solid #b36b18;
	outline-offset: 6px;
}
::selection {
	color: var(--cream);
	background: var(--ink);
}
img {
	display: block;
	max-width: 100%;
}
h1,
h2,
p {
	margin: 0;
}
h2 {
	font-family: Fondamento, Georgia, serif;
	font-weight: 400;
	font-size: clamp(2.5rem, 5vw, 4.75rem);
	line-height: 1.15;
}
.skip-link {
	position: fixed;
	left: 1rem;
	top: -8rem;
	z-index: 20;
	padding: 0.75rem 1rem;
	background: var(--cream);
}
.skip-link:focus {
	top: 1rem;
}
.navigation {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 1rem;
	padding: 1.6rem clamp(1rem, 4vw, 4.5rem);
}
.navigation nav {
	display: flex;
	align-items: center;
	gap: clamp(1rem, 3vw, 2.8rem);
}
.navigation a {
	text-decoration: none;
	font-size: 0.9rem;
	font-weight: 600;
}
.navigation a {
	padding-block: 0.5rem;
}
.navigation a:hover {
	text-decoration: underline;
}
.navigation .nav-community {
	width: 7.75rem;
	min-height: 2.75rem;
	padding: 0.45rem 0.8rem 0.55rem;
	font-size: 0.95rem;
	text-decoration: none;
}
.navigation .nav-play {
	width: 10rem;
	min-height: 3.5rem;
	padding: 0.6rem 1.8rem 0.75rem;
	font-size: 1rem;
}
.hero {
	position: relative;
	min-height: max(850px, 100svh);
	padding-bottom: 9rem;
}
.landscape {
	position: fixed;
	inset: 0;
	z-index: -1;
	overflow: hidden;
	pointer-events: none;
}
.scene-layer {
	position: absolute;
	width: 100%;
	max-width: none;
	height: 125%;
	object-fit: cover;
	object-position: center;
}
.distant {
	inset: -5% 0 auto;
}
.farm {
	top: 18%;
}
.foreground {
	top: 3%;
}
.sunlight {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, #f4e7c94a, transparent 55%);
}
.hero-copy {
	text-align: center;
	padding: clamp(7rem, 12vh, 10rem) 1.5rem 0;
	max-width: 55rem;
	margin-inline: auto;
}
.eyebrow {
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	margin-bottom: 1rem;
}
.game-logo {
	width: min(100%, 38rem);
	height: auto;
	margin: 0 auto;
	filter: drop-shadow(0 8px 12px #52381120);
}
.hero-tagline {
	font:
		400 clamp(1.5rem, 2.7vw, 2.35rem) / 1.3 Fondamento,
		Georgia,
		serif;
	margin-top: 1.25rem;
}
.hero-description {
	margin-top: 0.6rem;
	font-size: 1rem;
}
.art-button {
	position: relative;
	display: inline-grid;
	place-items: center;
	width: 20rem;
	max-width: 100%;
	min-height: 6.25rem;
	border: 0;
	padding: 1.2rem 3rem 1.35rem;
	background: transparent;
	isolation: isolate;
	color: #fff4d6;
	font:
		400 1.5rem / 1.15 Fondamento,
		Georgia,
		serif;
	text-align: center;
	text-decoration: none;
	text-shadow:
		0 2px 3px #351800,
		0 0 2px #351800;
}
.art-button::before,
.play-button::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: url("/rodent-farm/art/play.webp") center / 100% 100% no-repeat;
	transition:
		opacity 160ms ease,
		filter 160ms ease;
}
.play-button::after {
	background-image: url("/rodent-farm/art/play-hover.webp");
	opacity: 0;
}
.play-button:hover:not(:disabled)::after,
.play-button:focus-visible::after {
	opacity: 1;
}
.play-button:active:not(:disabled)::after {
	background-image: url("/rodent-farm/art/play-pressed.webp");
	opacity: 1;
}
.art-button:disabled {
	filter: grayscale(0.8);
	opacity: 0.7;
}
.community-button::before {
	background-image: url("/rodent-farm/art/community.webp");
}
.community-button:hover::before {
	filter: brightness(1.15);
}
.community-button:active {
	transform: translateY(2px);
}
.hero-copy > .art-button {
	margin-top: 1.4rem;
}
.scroll-cue {
	position: absolute;
	bottom: 2.3rem;
	left: 50%;
	transform: translateX(-50%);
	display: grid;
	justify-items: center;
	gap: 0.5rem;
	color: #fff8e6;
	text-decoration: none;
	font-size: 0.85rem;
	text-shadow: 0 1px 4px #182c21;
}
.scroll-cue > span:last-child {
	font-size: 1.4rem;
}
.story {
	position: relative;
	display: grid;
	place-items: center;
	min-height: 90svh;
	padding: 8rem 1.5rem;
	text-align: center;
	background: radial-gradient(
		ellipse at center,
		#f7f0dff5 0%,
		#f7f0dfe8 28%,
		#f7f0dfb3 46%,
		#f7f0df00 72%
	);
}
.story-copy {
	width: 100%;
	max-width: 36rem;
	min-width: 0;
}
.story-copy > p:not(.eyebrow) {
	margin-top: 1.6rem;
	font-size: 1.1rem;
}
.story-copy > .art-button {
	display: grid;
	margin: 1rem auto 0;
}
dialog {
	width: min(36rem, calc(100% - 2rem));
	max-height: calc(100svh - 2rem);
	padding: 3.5rem 2.5rem 2.5rem;
	border: 1px solid #b39b66;
	border-radius: 1.25rem;
	background: var(--cream);
	color: var(--ink);
	text-align: center;
	box-shadow: 0 24px 100px #08160f80;
}
dialog::backdrop {
	background: #102018c7;
	backdrop-filter: blur(8px);
}
.launch-dialog h2 {
	font-size: clamp(1.75rem, 4vw, 2.5rem);
}
.launch-dialog > p:not(.eyebrow) {
	color: var(--muted);
	margin-top: 1.3rem;
}
.launch-dialog > .community-prompt,
.story-copy > .community-prompt {
	font-size: 0.9rem;
}
.dialog-close {
	position: absolute;
	right: 0.75rem;
	top: 0.6rem;
	width: 2.5rem;
	height: 2.5rem;
	border: 0;
	border-radius: 50%;
	background: transparent;
	font:
		2rem / 1 Arial,
		sans-serif;
	color: var(--ink);
}
.dialog-close:hover {
	background: #e5ddc9;
}
.dialog-community {
	width: 12rem;
	min-height: 4rem;
	margin-top: 0.4rem;
	font-size: 1.15rem;
	padding: 0.65rem 2rem 0.8rem;
}
.no-script {
	min-height: 60svh;
}
.no-script h2 {
	font-size: 1.8rem;
	margin-bottom: 1rem;
}
@media (min-width: 1600px) {
	.hero-copy {
		padding-top: 9rem;
	}
}
@media (max-width: 760px) {
	.navigation {
		padding: 1rem;
	}
	.navigation nav {
		gap: 0.6rem;
	}
	.navigation .nav-community {
		width: 7.5rem;
		font-size: 0.9rem;
	}
	.navigation .nav-play {
		display: none;
	}
	.hero {
		min-height: max(800px, 100svh);
	}
	.hero-copy {
		padding-top: 7.5rem;
		padding-inline: 1rem;
	}
	.hero-copy .eyebrow {
		font-size: 0.65rem;
	}
	.hero-description {
		max-width: 17rem;
		margin-inline: auto;
	}
	.farm {
		top: 26%;
		object-position: 40% center;
	}
	.foreground {
		top: -10%;
		object-fit: contain;
		object-position: center bottom;
		width: 170%;
		left: -35%;
		height: 135%;
	}
	.scroll-cue {
		bottom: 2.5rem;
		white-space: nowrap;
	}
	.story {
		padding: 7rem 1.5rem;
		background: radial-gradient(
			ellipse 100% 65% at center,
			#f7f0dff5 25%,
			#f7f0dfdb 55%,
			#f7f0df00 100%
		);
	}
	.story-copy > p:not(.eyebrow) {
		font-size: 1rem;
	}
	dialog {
		padding-inline: 1rem;
	}
	.dialog-community {
		padding-inline: 2rem;
		min-height: 4rem;
		font-size: 1.05rem;
	}
}
@media (prefers-reduced-motion: reduce) {
	.art-button::before,
	.play-button::after {
		transition: none;
	}
}
@media (forced-colors: active) {
	.art-button,
	.nav-play {
		background: ButtonFace;
		color: ButtonText;
		border: 2px solid ButtonText;
		text-shadow: none;
	}
	.art-button::before,
	.play-button::after {
		display: none;
	}
	dialog {
		border: 2px solid CanvasText;
	}
	.landscape {
		opacity: 0.2;
	}
	.story {
		background: transparent;
	}
}
