/* The blog's pages share this sheet: the landing page's colours and pixel font, set for reading. */
@font-face {
	font-family: "Press Start 2P";
	src: url("../fonts/PressStart2P-Regular.woff2") format("woff2"), url("../fonts/PressStart2P-Regular.ttf") format("truetype");
	font-display: swap;
}

:root {
	--bg: #0b0e24;
	--bg-deep: #07040d;
	--panel: #1b1030;
	--line: #3a2a52;
	--ink: #f3e9d2;
	--bone: #e8dcc0;
	--dim: #a898c0;
	--red: #ff2a44;
	--blood: #9a0a1e;
	--green: #5dff84;
	--purple: #c592ff;
	--yellow: #ffd23c;
	--pixel: "Press Start 2P", ui-monospace, "SFMono-Regular", Menlo, monospace;
	--body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { background: var(--bg-deep); }

body {
	margin: 0;
	color: var(--ink);
	font: 17px/1.65 var(--body);
	background: linear-gradient(180deg, var(--bg) 0%, #140a24 55%, var(--bg-deep) 100%);
	background-attachment: fixed;
	-webkit-text-size-adjust: 100%;
}

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

.pixel { image-rendering: pixelated; }

a { color: var(--green); }

a:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

.wrap {
	max-width: 760px;
	margin: 0 auto;
	padding: 0 16px;
}

/* ------------------------------------------------------------ top bar */
.top {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 20px;
	padding: 20px 0;
	border-bottom: 3px dashed #2a1e3a;
}

.logo {
	font: 18px/1 var(--pixel);
	color: var(--bone);
	text-decoration: none;
}

.logo span { color: var(--red); }

.top nav {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	font: 10px/1.6 var(--pixel);
}

.top nav a { color: var(--dim); text-decoration: none; }

.top nav a:hover, .top nav a[aria-current] { color: var(--bone); }

/* ------------------------------------------------------------ article head */
.crumbs {
	margin: 24px 0 0;
	padding: 0;
	list-style: none;
	font-size: 14px;
	color: var(--dim);
}

.crumbs li { display: inline; }

.crumbs li + li::before { content: " / "; color: var(--line); }

.crumbs a { color: var(--dim); }

h1 {
	margin: 20px 0 16px;
	font: clamp(20px, 5.4vw, 30px)/1.45 var(--pixel);
	color: var(--bone);
	text-shadow: 0 3px 0 #1a0a14;
}

.byline {
	margin: 0 0 24px;
	font-size: 14px;
	color: var(--dim);
}

.lede { font-size: 19px; }

h2 {
	margin: 48px 0 16px;
	font: 15px/1.6 var(--pixel);
	color: var(--yellow);
	scroll-margin-top: 16px;
}

h2 .num { color: var(--red); }

h3 {
	margin: 28px 0 8px;
	font-size: 18px;
	color: var(--bone);
}

p, ul, ol { margin: 0 0 16px; }

li { margin: 0 0 6px; }

strong { color: var(--bone); }

/* ------------------------------------------------------------ quick picks and tables */
.picks {
	margin: 0 0 24px;
	padding: 18px 20px 6px;
	background: var(--panel);
	border: 3px solid var(--line);
	border-radius: 10px;
}

.picks h2 { margin: 0 0 12px; font-size: 11px; }

.table {
	margin: 0 0 24px;
	overflow-x: auto;
	border: 3px solid var(--line);
	border-radius: 10px;
}

table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
}

th, td {
	padding: 10px 12px;
	text-align: left;
	vertical-align: top;
	border-bottom: 1px solid var(--line);
}

thead th {
	font: 9px/1.6 var(--pixel);
	color: var(--dim);
	background: var(--panel);
	white-space: nowrap;
}

tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }

tbody th { color: var(--bone); white-space: nowrap; }

@media (max-width: 480px) {
	table { font-size: 14px; }
	th, td { padding: 8px; }
}

.yes { color: var(--green); }

.no { color: var(--red); }

/* ------------------------------------------------------------ a game on a list */
.game {
	display: grid;
	gap: 8px 24px;
	align-items: start;
}

@media (min-width: 640px) {
	.game { grid-template-columns: 240px 1fr; }
	.game.wide { grid-template-columns: 1fr; }
}

.game figure { margin: 0 0 8px; }

.game:not(.wide) figure { max-width: 300px; }

figure { margin: 0 0 24px; }

figure img {
	display: block;
	border: 3px solid var(--line);
	border-radius: 10px;
	background: #000;
}

figcaption {
	margin-top: 8px;
	font-size: 13px;
	line-height: 1.5;
	color: var(--dim);
}

.facts {
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: 2px 14px;
	margin: 0 0 16px;
	font-size: 15px;
}

.facts dt { color: var(--dim); }

.facts dd { margin: 0; }

.shots {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	max-width: 560px;
	margin: 0 0 24px;
}

.shots figure { margin: 0; }

/* ------------------------------------------------------------ the call to install */
.cta {
	margin: 32px 0;
	padding: 22px 20px;
	background: var(--panel);
	border: 3px solid var(--line);
	border-left: 6px solid var(--red);
	border-radius: 10px;
}

.cta p { margin: 0 0 14px; }

.cta .title { font: 12px/1.7 var(--pixel); color: var(--bone); }

.cta .buttons {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 20px;
	margin: 0;
}

.badge { display: inline-block; line-height: 0; }

.badge img { width: 188px; height: 56px; }

.cta .small { margin: 12px 0 0; font-size: 14px; color: var(--dim); }

.play-link { font-size: 15px; }

/* ------------------------------------------------------------ blog index cards */
.posts {
	display: grid;
	gap: 20px;
	margin: 0 0 40px;
	padding: 0;
	list-style: none;
}

.posts li { margin: 0; }

@media (min-width: 640px) {
	.posts { grid-template-columns: 1fr 1fr; }
}

.post {
	display: grid;
	gap: 0;
	overflow: hidden;
	color: var(--ink);
	text-decoration: none;
	background: var(--panel);
	border: 3px solid var(--line);
	border-radius: 10px;
}

.post:hover { border-color: #5a4a7a; }

.post img { display: block; width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; }

.post div { padding: 16px 18px 18px; }

.post h2 { margin: 0 0 10px; font-size: 13px; color: var(--bone); }

.post p { margin: 0; font-size: 16px; color: var(--ink); }

/* ------------------------------------------------------------ related and footer */
.related { margin: 48px 0 0; padding: 24px 0 0; border-top: 3px dashed #2a1e3a; }

.related h2 { margin-top: 0; }

footer {
	margin-top: 48px;
	padding: 28px 0 48px;
	border-top: 3px dashed #2a1e3a;
	font-size: 14px;
	color: var(--dim);
}

footer p { margin: 0 0 8px; }

footer a { color: var(--dim); }

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}
