/* ==========================================================================
   CSS Custom Properties (Variables)
   ========================================================================== */

:root {
	/* Colors */
	--color-background: #222;
	--color-surface: black;
	--color-accent: skyblue;
	--color-text-primary: white;
	--color-text-secondary: #bbb;
	--color-text-muted: #555;

	/* Spacing */
	--spacing-sm: 1rem;
	--spacing-md: 2rem;
	--spacing-lg: 5rem;

	/* Icon sizes */
	/* --icon-size: 48px; */
	--icon-size: 24;

	/* Typography */
	--font-body: 'Rajdhani', sans-serif;
	--font-heading: 'Saira Stencil One', sans-serif;
	--font-quote: 'Orbitron', sans-serif;
}

/* ==========================================================================
   Base Styles
   ========================================================================== */

html {
	background-color: var(--color-background);
	font-family: var(--font-body);
	font-size: large;
	margin: 0;
	padding: 0;
}

body {
	margin: 0 auto;
	line-height: 2;
}

/* ==========================================================================
   Typography
   ========================================================================== */

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

h1 {
	line-height: 1.2;
	font-family: var(--font-heading);
	color: var(--color-accent);
}

h2 {
	line-height: 1.2;
	font-family: var(--font-heading);
	color: var(--color-accent);
	font-size: 1.5em;
}

p {
	margin: var(--spacing-sm) 0;
	color: var(--color-text-secondary);
}

ul,
ol {
	color: var(--color-text-secondary);
	margin: 0;
}

em,
strong {
	color: var(--color-text-primary);
}

/* ==========================================================================
   Layout Components
   ========================================================================== */

header {
	background-color: var(--color-surface);
	margin-bottom: var(--spacing-md);
	text-align: center;
}

header div {
	background-image: url('img/man-silo.png'), url('img/woman-silo.png');
	background-position:
		left center,
		right center;
	background-repeat: no-repeat, no-repeat;
	background-size:
		auto 100%,
		auto 100%;
	image-rendering: pixelated;
	margin: 0 auto;
	max-width: 600px;
	padding: 75px 0;
}

header img {
	width: 400px;
	height: auto;
	image-rendering: pixelated;
}

main {
	margin: 0 auto;
	padding: 0 1.25rem;
	max-width: 850px;
}

main blockquote {
	font-family: var(--font-quote);
	margin: var(--spacing-lg) auto;
	max-width: 75%;
	letter-spacing: 1px;
}

main blockquote p {
	color: var(--color-text-primary);
	font-size: medium;
}

footer {
	background-color: var(--color-surface);
	line-height: 3;
	text-align: center;
}

footer p {
	margin: var(--spacing-sm) 0 0 0;
	color: var(--color-text-muted);
}

footer a {
	color: var(--color-text-muted);
}

/* ==========================================================================
   Content Layout
   ========================================================================== */

.content-layout {
	display: flex;
	gap: var(--spacing-sm);
	align-items: center;
}

.content-layout ul {
	flex: 3;
}

.content-layout img {
	width: 100%;
	flex: 1;
	image-rendering: pixelated;
}

/* ==========================================================================
   Buy Buttons
   ========================================================================== */

/* Buy button container */
ul.buy {
	display: flex;
	gap: var(--spacing-sm);
	flex-wrap: wrap;
	justify-content: center;
	list-style: none;
	padding: 0;
}

/* Buy button list items */
ul.buy li {
	display: flex;
	flex: 1;
	max-width: 150px;
}

/* Buy button styles */
ul.buy a {
	align-items: center;
	border-radius: 6px;
	border: 2px solid transparent;
	display: flex;
	flex: 1;
	justify-content: center;
	padding: var(--spacing-sm);
}

/* Buy button hover/focus states */
ul.buy a:hover,
ul.buy a:focus {
	outline: 2px solid var(--color-accent);
	outline-offset: 2px;
}

/* Buy button logos */
ul.buy a img {
	max-height: var(--icon-size);
	flex-shrink: 0;
	object-fit: contain;
}

/* Buy platform-specific colors */
ul.buy a.steam {
	background: #1b2838;
}

ul.buy a.itch {
	background: #fa5c5c;
}

ul.buy a.gog {
	background: #7b2d93;
}

ul.buy a.nintendo {
	background: #e60012;
}

/* Buy button logo color adjustments for dark backgrounds */
ul.buy a.steam img,
ul.buy a.gog img,
ul.buy a.nintendo img {
	filter: brightness(0) invert(1);
}

/* ==========================================================================
   Social Buttons
   ========================================================================== */

/* Social button container */
#social {
	display: flex;
	gap: var(--spacing-sm);
	flex-wrap: wrap;
	margin: var(--spacing-sm) auto;
	justify-content: center;
	list-style: none;
	padding: 0;
}

/* Social button list items */
#social li {
	display: flex;
	flex: 1;
	max-width: 150px;
}

/* Social button styles */
#social a {
	align-items: center;
	border-radius: 6px;
	border: 2px solid transparent;
	display: flex;
	flex: 1;
	font-weight: bold;
	gap: var(--spacing-sm);
	justify-content: center;
	padding: var(--spacing-sm);
}

/* Social button hover/focus states */
#social a:hover,
#social a:focus {
	outline: 2px solid var(--color-accent);
	outline-offset: 2px;
}

/* Social button logos */
#social a img {
	width: var(--icon-size);
	height: var(--icon-size);
	flex-shrink: 0;
	object-fit: contain;
}

/* Social platform-specific colors */
#social a.twitch {
	background: #9146ff;
}

#social a.mastodon {
	background: #6364ff;
}

#social a.x {
	background: #000;
}

#social a.bluesky {
	background: #0085ff;
}

/* Social button logo color adjustments for dark backgrounds */
#social a.bluesky img {
	filter: brightness(0) invert(1);
}

/* ==========================================================================
   Specific Components
   ========================================================================== */

p#connect {
	color: var(--color-text-primary);
	font-weight: bold;
	text-align: center;
}

p#release-info {
	color: var(--color-text-primary);
	font-size: xx-large;
	font-weight: bold;
	text-align: center;
	line-height: 4;
}

.final-cta {
	font-size: xx-large;
	line-height: 1.2;
	margin: var(--spacing-lg) auto;
	text-align: center;
}

figure {
	display: block;
	margin: var(--spacing-lg) auto;
	width: 600px;
}

figure img {
	width: 100%;
	image-rendering: pixelated;
}

figure figcaption {
	color: var(--color-text-secondary);
	line-height: 1.25;
	text-align: center;
}

figure figcaption strong {
	color: var(--color-text-primary);
	display: block;
	text-align: center;
	margin: var(--spacing-sm) auto 0 auto;
}
