/* Shared layout for the game pages (/dinedaway/, /experimentalgalaxies/, ...).
   Each page sets its own title colour in a small <style> block. */

:root {
	--cream: #f3f1df;
	--ink: #231f1c;
	--text: #55514b;
	--red: #db5a3a;
	--teal: #5ec4c7;
}

* { box-sizing: border-box; }

body {
	margin: 0;
	min-height: 100vh;
	background: var(--cream);
	color: var(--text);
	font-family: "Josefin Sans", "Century Gothic", sans-serif;
	display: flex;
	flex-direction: column;
	justify-content: flex-end; /* keep the image + text at the bottom of the page */
	align-items: center;
	padding: 80px 16px 40px; /* top room keeps the back button clear of the image */
	text-align: center;
}

/* ---------- Back to menu button ---------- */
.back {
	position: absolute;
	top: 16px;
	left: 16px;
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	padding: 10px 16px 8px;
	background: var(--red);
	color: #fff;
	border: 2px solid var(--ink);
	border-radius: 8px;
	box-shadow: 0 4px 0 var(--ink);
	font-family: inherit;
	font-weight: 600;
	font-size: 15px;
	letter-spacing: 0.1em;
	text-decoration: none;
	transition: transform 0.1s, box-shadow 0.1s, background-color 0.15s;
}
.back .arrow {
	font-family: system-ui, sans-serif;
	font-size: 1.15em;
	line-height: 1;
	position: relative;
	top: -0.12em;
}
.back:hover { background: #c94c2d; }
.back:active {
	transform: translateY(3px);
	box-shadow: 0 1px 0 var(--ink);
}
.back:focus-visible {
	outline: 3px solid var(--teal);
	outline-offset: 3px;
}

/* ---------- Image ---------- */
.cover {
	display: block;
	width: auto;
	height: auto;
	max-width: min(760px, 100%);
	max-height: min(62vh, 530px);
	border: 3px solid var(--ink);
	border-radius: 10px;
	box-shadow: 0 6px 0 rgba(35, 31, 28, 0.15);
}

/* ---------- Title + description ---------- */
h1 {
	margin: 28px 0 12px;
	font-family: "Playfair Display", Georgia, serif;
	font-weight: 900;
	font-size: clamp(32px, 7vw, 52px);
	line-height: 1.15;
	letter-spacing: 0.03em;
}

p {
	margin: 0;
	max-width: 58ch;
	font-size: clamp(16px, 3.4vw, 19px);
	line-height: 1.6;
	letter-spacing: 0.04em;
}
