@font-face {
	font-family: "Inter";
	src: url("/assets/InterVariable.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

:root {
	--red: #E24B4A;
	--red-dark: #B93433;
	--ink: #1F2430;
	--ink-soft: #565D6E;
	--paper: #FFF7EC;
	--card: #FFFFFF;
	--line: #EADFCF;
	--gutter: 24px;
}

* { box-sizing: border-box; }

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

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	font-size: 18px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

.wrap {
	width: 100%;
	max-width: 1120px;
	margin: 0 auto;
	padding: 0 var(--gutter);
}

/* Header */

.top { padding: 24px 0; }

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

.brand img { height: 40px; width: auto; }

nav { display: flex; gap: 8px; }

nav a {
	text-decoration: none;
	font-weight: 600;
	font-size: 16px;
	padding: 8px 14px;
	border-radius: 10px;
}

nav a:hover { background: rgba(31, 36, 48, 0.07); }

/* Hero */

.hero { padding: 56px var(--gutter) 48px; }

.eyebrow, .tag {
	margin: 0 0 16px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--red-dark);
}

h1 {
	margin: 0 0 24px;
	max-width: 15ch;
	font-size: clamp(40px, 7.2vw, 84px);
	line-height: 1.02;
	font-weight: 800;
	letter-spacing: -0.035em;
	text-wrap: balance;
}

h2 {
	margin: 0 0 12px;
	font-size: clamp(30px, 4.4vw, 48px);
	line-height: 1.1;
	font-weight: 800;
	letter-spacing: -0.025em;
	text-wrap: balance;
}

h3 { margin: 0 0 6px; font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }

.lead {
	margin: 0 0 32px;
	max-width: 60ch;
	font-size: clamp(18px, 2vw, 21px);
	color: var(--ink-soft);
}

.button {
	display: inline-block;
	padding: 14px 26px;
	border-radius: 14px;
	background: var(--red);
	color: #fff;
	font-weight: 700;
	text-decoration: none;
	box-shadow: 0 5px 0 var(--red-dark);
	transition: transform 0.08s ease, box-shadow 0.08s ease;
}

.button:hover { transform: translateY(2px); box-shadow: 0 3px 0 var(--red-dark); }
.button:active { transform: translateY(5px); box-shadow: 0 0 0 var(--red-dark); }

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

/* The game's icon as a way in: a small card, like an app on a shelf */

.game-chip {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	padding: 10px 20px 10px 10px;
	background: var(--card);
	border: 2px solid var(--line);
	border-radius: 20px;
	text-decoration: none;
	transition: border-color 0.12s ease;
}

.game-chip:hover { border-color: var(--ink); }

.game-chip img { flex: none; width: 56px; height: 56px; }

.chip-text { display: flex; flex-direction: column; line-height: 1.3; }

.chip-text strong { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }

.chip-text span { font-size: 15px; color: var(--ink-soft); }

.chip-arrow { margin-left: 10px; font-size: 22px; font-weight: 600; transition: transform 0.12s ease; }

.game-chip:hover .chip-arrow { transform: translateX(3px); }

/* Framed screenshots: the game's paper cards */

.frame {
	margin: 0;
	background: var(--card);
	border: 2px solid var(--ink);
	border-radius: 20px;
	box-shadow: 0 8px 0 var(--ink);
	overflow: hidden;
}

.frame img { width: 100%; }

.frame figcaption {
	padding: 14px 18px 16px;
	border-top: 2px solid var(--ink);
	font-size: 16px;
	line-height: 1.45;
}

.hero-shot { margin-bottom: 8px; }

/* Screenshot viewer (site.js): the picture large over the page */

.shots a { display: block; cursor: zoom-in; }

.viewer {
	width: 100vw;
	height: 100vh;
	height: 100dvh;
	max-width: none;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: rgba(31, 36, 48, 0.94);
	color: #fff;
}

.viewer[open] { display: flex; align-items: center; justify-content: center; }

.viewer::backdrop { background: transparent; }

.viewer figure {
	margin: 0;
	flex: 1;
	min-width: 0;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 16px;
	padding: 64px 8px 24px;
}

.viewer img {
	max-width: 100%;
	max-height: calc(100dvh - 160px);
	width: auto;
	border-radius: 12px;
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.viewer figcaption { max-width: 60ch; padding: 0 12px; text-align: center; font-size: 16px; line-height: 1.45; color: #D8DCE6; }

.viewer button {
	flex: none;
	width: 48px;
	height: 48px;
	border: 0;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	font: inherit;
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
}

.viewer button:hover { background: rgba(255, 255, 255, 0.24); }

.viewer button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

.viewer-close { position: absolute; top: 12px; right: 12px; }

.viewer-nav { margin: 0 12px; }

@media (max-width: 700px) {
	.viewer-nav { position: absolute; bottom: 16px; margin: 0; }
	.viewer-prev { left: calc(50% - 60px); }
	.viewer-next { left: calc(50% + 12px); }
	.viewer figure { padding-bottom: 88px; }
	.viewer img { max-height: calc(100dvh - 240px); }
}
/* Game */

.game { padding-top: 112px; padding-bottom: 104px; }

.game-head .tag {
	display: inline-block;
	padding: 5px 12px;
	border-radius: 999px;
	background: var(--red);
	color: #fff;
}

.game-logo { height: 88px; width: auto; margin-bottom: 32px; }

.game-head h2 { margin-bottom: 20px; }

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

.steps li {
	padding: 24px;
	background: var(--card);
	border: 2px solid var(--line);
	border-radius: 18px;
}

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

.num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	margin-bottom: 14px;
	border-radius: 10px;
	background: var(--ink);
	color: #fff;
	font-weight: 800;
}

.shots {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin-bottom: 64px;
}

.shots .frame { border-radius: 16px; box-shadow: 0 6px 0 var(--ink); }

.facts {
	margin: 0;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	padding-top: 32px;
	border-top: 2px solid var(--line);
}

.facts dt {
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ink-soft);
}

.facts dd { margin: 4px 0 0; font-size: 20px; font-weight: 700; }

/* Studio */

.studio { background: var(--ink); color: #fff; padding: 96px 0; }

.studio-row { display: flex; gap: 40px; align-items: flex-start; }

.studio-row img { flex: none; width: 96px; height: 96px; }

.studio p { margin: 0 0 16px; max-width: 58ch; color: #C9CEDA; }

.studio p:last-child { margin-bottom: 0; }

/* Footer */

.foot { background: var(--ink); color: #9AA1B2; border-top: 1px solid #343B4B; padding: 32px 0 40px; }

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

.foot img { height: 32px; width: auto; }

.foot p { margin: 0; font-size: 15px; }

/* Small screens */

@media (max-width: 860px) {
	.steps, .shots, .facts { grid-template-columns: 1fr; }
	.facts { gap: 20px; }
	.game { padding-top: 80px; padding-bottom: 72px; }
	.studio { padding: 72px 0; }
}

@media (max-width: 560px) {
	:root { --gutter: 16px; }
	body { font-size: 17px; }
	.top { padding: 16px 0; }
	.brand img { height: 32px; }
	nav a { padding: 8px 10px; }
	.hero { padding-top: 32px; padding-bottom: 36px; }
	.frame { border-radius: 14px; box-shadow: 0 5px 0 var(--ink); }
	.game-logo { height: 60px; margin-bottom: 24px; }
	.studio-row { flex-direction: column; gap: 24px; }
	.studio-row img { width: 72px; height: 72px; }
}

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