/* KS Game Studio site. One dark theme, to sit with the game's art. */

@font-face {
	font-family: "Cinzel";
	src: url("/fonts/Cinzel.ttf") format("truetype");
	font-weight: 400 900;
	font-display: swap;
}

:root {
	--bg: #0d0f12;
	--bg-raised: #161a1f;
	--line: #2a3038;
	--text: #d9d4c7;
	--text-dim: #9a968c;
	--gold: #d6a85a;
	--gold-bright: #f0c77a;
	--ember: #c8682e;
	--radius: 6px;
	--width: 1080px;
	color-scheme: dark;
}

* { box-sizing: border-box; }

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

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Open Sans", sans-serif;
}

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

a { color: var(--gold-bright); }

h1, h2, h3, .brand, .hero-note { margin: 12px 0 0; }

.button {
	font-family: "Cinzel", Georgia, serif;
	letter-spacing: 0.03em;
}

h1, h2, h3 { color: var(--gold-bright); line-height: 1.25; margin: 0 0 0.5em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); }
h3 { font-size: 1.15rem; }

.wrap { max-width: var(--width); margin: 0 auto; padding: 0 16px; }

/* Header */

.site-header {
	position: absolute; top: 0; left: 0; right: 0; z-index: 2;
	background: linear-gradient(rgba(0, 0, 0, 0.75), transparent);
}
.site-header.solid { position: static; background: var(--bg-raised); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.05rem; white-space: nowrap; }
.brand span { color: var(--gold); }
.site-header nav { display: flex; gap: 20px; }
.site-header nav a { color: var(--text); text-decoration: none; font-size: 0.95rem; white-space: nowrap; }
.site-header nav a:hover { color: var(--gold-bright); }

/* Hero: the title art already carries the logo, so it shows whole. */

.hero { position: relative; background: var(--bg); padding-top: 64px; }
/* Three quarters of the page wide, its sides fading into the page. */
.hero img {
	width: 75%; margin: 0 auto; aspect-ratio: 16 / 9; object-fit: cover;
	-webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
	mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.hero::after {
	content: ""; position: absolute; inset: auto 0 0 0; height: 30%;
	background: linear-gradient(transparent, var(--bg));
}
.hero-cta {
	position: absolute; left: 0; right: 0; bottom: 6%; z-index: 1;
	text-align: center; padding: 0 16px;
}

.hero-note { margin: 12px 0 0; }

.button {
	display: inline-block; padding: 12px 28px; border-radius: var(--radius);
	background: linear-gradient(#e2b466, #b8863c); color: #1b1408;
	font-weight: 700; text-decoration: none; border: 1px solid #f5d18e;
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
}
.button:hover { background: linear-gradient(#f0c77a, #c99446); }
.button.ghost { background: rgba(0, 0, 0, 0.45); color: var(--gold-bright); border-color: var(--gold); }
.badge {
	display: inline-block; padding: 4px 12px; border-radius: 99px;
	border: 1px solid var(--gold); color: var(--gold-bright);
	background: rgba(0, 0, 0, 0.55); font-size: 0.9rem;
}

/* Sections */

section { padding: 56px 0; }
section.alt { background: var(--bg-raised); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lead { font-size: 1.12rem; max-width: 46em; }
.dim { color: var(--text-dim); }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; margin-top: 28px; }
.feature { border-left: 2px solid var(--ember); padding-left: 16px; }
.feature p { margin: 0; color: var(--text-dim); }

.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 28px; }
.shots figure { margin: 0; }
.shots img { border-radius: var(--radius); border: 1px solid var(--line); }
.shots figcaption { color: var(--text-dim); font-size: 0.92rem; margin-top: 8px; }

/* Stop Killing Games */

section.skg { background: var(--bg-raised); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.skg-inner { display: grid; grid-template-columns: minmax(180px, 280px) 1fr; gap: 40px; align-items: center; }
.skg-logo img { width: 100%; }
.skg-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin: 24px 0; }
.skg-facts div { border: 1px solid var(--line); border-top: 3px solid var(--ember); border-radius: var(--radius); background: var(--bg); padding: 14px 16px; }
.skg-facts dt { font-family: "Cinzel", Georgia, serif; font-size: 1.45rem; font-weight: 700; color: var(--gold-bright); line-height: 1.2; }
.skg-facts dd { margin: 6px 0 0; color: var(--text-dim); font-size: 0.92rem; }
.small { font-size: 0.85rem; }
.narrow { display: none; }

/* Download page */

.page-banner {
	background: linear-gradient(rgba(13, 15, 18, 0.55), var(--bg)), url("/img/forest.jpg") center / cover;
	padding: 72px 0 8px;
}
.downloads { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin: 28px 0 8px; }
.download-card {
	background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius);
	padding: 22px;
}
.download-card h3 { margin-bottom: 4px; }
.download-card p { margin: 0 0 16px; color: var(--text-dim); font-size: 0.95rem; }
ol.steps { padding-left: 1.3em; }
ol.steps li { margin-bottom: 8px; }
kbd {
	font: 0.85em ui-monospace, monospace; padding: 1px 6px; border-radius: 4px;
	border: 1px solid var(--line); background: var(--bg-raised);
}

/* Footer */

footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--text-dim); font-size: 0.9rem; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

@media (max-width: 600px) {
	body { font-size: 16px; }
	.site-header nav { gap: 12px; }
	.site-header nav a { font-size: 0.85rem; }
	.brand { font-size: 0.92rem; }
	.site-header { position: static; background: var(--bg-raised); border-bottom: 1px solid var(--line); }
	.hero { padding-top: 0; }
	.hero img { width: 100%; -webkit-mask-image: none; mask-image: none; }
	.hero-cta { position: static; padding: 20px 16px 8px; background: var(--bg); }
	.hero::after { display: none; }
	section { padding: 40px 0; }
	.skg-inner { grid-template-columns: 1fr; gap: 20px; }
	.wide { display: none; }
	.narrow { display: inline; }
	.skg-logo { max-width: 220px; }
}

/* The smallest phones: four menu links and the name on one line. */
@media (max-width: 400px) {
	.site-header .wrap { gap: 8px; padding: 0 12px; }
	.site-header nav { gap: 9px; }
	.site-header nav a { font-size: 0.8rem; }
	.brand { font-size: 0.85rem; }
}

/* Narrower still: the menu goes under the name. */
@media (max-width: 340px) {
	.site-header .wrap { height: auto; flex-wrap: wrap; padding: 10px 12px; }
}
