:root {
	color-scheme: dark;
	--forest: #0b1b14;
	--pine: #10251b;
	--cream: #f6ead2;
	--sage: #bac8b5;
	--line: #415545;
}

* { box-sizing: border-box; }
body {
	margin: 0;
	isolation: isolate;
	min-height: 100svh;
	background: var(--forest);
	color: var(--cream);
	font: 1rem/1.6 system-ui, sans-serif;
}

body::before {
	/* Use the unlettered, topographic corner of the channel artwork. */
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 19rem;
	z-index: -1;
	background: linear-gradient(transparent, var(--forest)),
		url("assets/weald-games-youtube-banner.jpg") left top / auto 80rem no-repeat;
}

a { color: inherit; }
a:focus-visible { outline: 2px solid var(--cream); outline-offset: 5px; }
h1, h2, p, figure { margin: 0; }
.shell { width: min(100% - clamp(2rem, 9vw, 9rem), 83rem); margin-inline: auto; }

.masthead {
	display: flex;
	justify-content: space-between;
	align-items: center;
	min-height: 5.75rem;
	gap: 1rem;
	border-bottom: 1px solid var(--line);
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: .6rem;
	text-decoration: none;
	text-transform: uppercase;
	font-size: 1.35rem;
	line-height: 1;
	letter-spacing: .04em;
	font-weight: 900;
}

.brand-mark {
	display: grid;
	place-items: center;
	width: 3rem;
	height: 3rem;
	overflow: hidden;
	border-radius: .25rem;
}

.brand-mark img { width: 100%; height: auto; }
.brand small { color: var(--sage); font-size: .875rem; font-weight: 600; letter-spacing: .12em; }
nav a { text-underline-offset: .28em; font-weight: 650; }

main { padding-block: clamp(1.75rem, 5vw, 4.75rem) clamp(2.5rem, 6vw, 5.5rem); }
h1 {
	margin-bottom: 1.1rem;
	font-size: .875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .16em;
	color: var(--sage);
}

.games { display: grid; gap: 1.5rem; }
.game {
	display: grid;
	grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
	border: 1px solid var(--line);
	background: var(--pine);
}

.game-copy { align-self: center; padding: clamp(1.4rem, 4vw, 4rem); }
.genre { color: var(--sage); font-size: .875rem; font-weight: 650; }
.game h2 { margin-block: 1rem 1.5rem; }
.game h2 img { display: block; width: min(100%, 24rem); height: auto; }
.tagline { font-size: clamp(1.55rem, 3vw, 2.6rem); line-height: 1.1; font-weight: 750; letter-spacing: -.045em; }
.description { margin-top: .75rem; max-width: 36ch; color: var(--sage); }
.button {
	display: inline-block;
	margin-top: 1.75rem;
	padding: .72rem 1.05rem;
	background: var(--cream);
	color: var(--forest);
	font-weight: 700;
	text-decoration: none;
}

.button:hover { background: #fff6e5; }
nav a:hover { color: var(--sage); }

.game-art { position: relative; min-height: 30rem; }
.game-art img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: 54% center; }
.game-art figcaption {
	position: absolute;
	inset: auto 0 0;
	padding: 1.5rem 1rem .85rem;
	background: linear-gradient(transparent, #08100cdb);
	color: var(--cream);
	font-size: .875rem;
	text-align: right;
}

footer { border-top: 1px solid var(--line); padding-block: 1.35rem; color: var(--sage); font-size: .875rem; }

@media (max-width: 55rem) {
	.game { grid-template-columns: 1fr; }
	.game-art { grid-row: 1; min-height: 0; aspect-ratio: 16 / 9; }
}
