/* Project: Souls Requiem — shared site styles
   Palette pulled directly from the launcher's own code (scripts/launcher.gd
   _COL_* constants) so the website matches the game's actual UI, not a
   reinvented one. */

:root {
	--ink: #DCE8FF;
	--ink-dim: #8FA3CC;
	--accent: #19E3FF;
	--accent-2: #FF2EC4;
	--good: #3DF58C;
	--bg-top: #0F1C38;
	--bg-bottom: #05070F;
	--card-bg: rgba(10, 16, 32, 0.72);
	--card-border: rgba(25, 227, 255, 0.35);
	--max-width: 1100px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--ink);
	background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%) fixed;
	min-height: 100vh;
	line-height: 1.6;
}

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

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

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

/* ---------- Top nav ---------- */
header.site-nav {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(5, 7, 15, 0.85);
	backdrop-filter: blur(6px);
	border-bottom: 1px solid rgba(25, 227, 255, 0.25);
}

.site-nav .wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 64px;
}

.site-nav .brand {
	font-weight: 800;
	letter-spacing: 0.08em;
	color: var(--ink);
	text-decoration: none;
	font-size: 1.05rem;
	text-transform: uppercase;
	text-shadow: 0 0 10px rgba(25, 227, 255, 0.6);
}

.site-nav nav {
	display: flex;
	gap: 28px;
	flex-wrap: wrap;
}

.site-nav nav a {
	color: var(--ink-dim);
	text-decoration: none;
	font-size: 0.92rem;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	transition: color 0.15s ease;
}

.site-nav nav a:hover,
.site-nav nav a.active {
	color: var(--accent);
}

/* ---------- Hero ---------- */
.hero {
	position: relative;
	padding: 40px 0;
	text-align: center;
	overflow: hidden;
	min-height: min(78vh, 700px);
	display: flex;
	align-items: center;
	justify-content: center;
}

.hero-bg {
	position: absolute;
	inset: 0;
	background-image: var(--hero-image, none);
	background-size: contain;
	background-position: center center;
	background-repeat: no-repeat;
	opacity: 0.5;
	filter: saturate(1.1);
	-webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.9) 0%, transparent 100%);
	mask-image: linear-gradient(180deg, rgba(0,0,0,0.9) 0%, transparent 100%);
}

.hero > .wrap { position: relative; width: 100%; }

.hero h1 {
	font-size: clamp(2rem, 5vw, 3.4rem);
	margin: 0 0 12px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #fff;
	text-shadow: 0 0 18px rgba(25, 227, 255, 0.75), 0 0 48px rgba(255, 46, 196, 0.25);
}

.hero p.tagline {
	color: var(--ink-dim);
	font-size: 1.1rem;
	max-width: 560px;
	margin: 0 auto 32px;
}

/* ---------- Buttons ---------- */
.btn {
	display: inline-block;
	padding: 14px 36px;
	border-radius: 10px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	text-decoration: none;
	font-size: 0.95rem;
	border: 1px solid var(--card-border);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
	background: linear-gradient(180deg, rgba(25,227,255,0.25), rgba(25,227,255,0.08));
	color: #fff;
	box-shadow: 0 0 24px rgba(25, 227, 255, 0.35);
	border-color: rgba(25, 227, 255, 0.6);
}

.btn-primary:hover {
	color: #fff;
	box-shadow: 0 0 36px rgba(25, 227, 255, 0.6);
}

.btn-ghost {
	background: rgba(255,255,255,0.03);
	color: var(--ink);
}

.btn-row {
	display: flex;
	gap: 16px;
	justify-content: center;
	flex-wrap: wrap;
}

.btn-row .btn-ghost:hover { color: var(--accent); }

/* ---------- Sections ---------- */
section { padding: 56px 0; }

section.alt { background: rgba(255,255,255,0.02); }

section h2 {
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-size: 1.6rem;
	margin: 0 0 8px;
	color: #fff;
	text-shadow: 0 0 12px rgba(25, 227, 255, 0.4);
}

section .section-sub {
	color: var(--ink-dim);
	margin: 0 0 32px;
	max-width: 640px;
}

/* ---------- Cards / grid ---------- */
.grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 20px;
}

.card {
	background: var(--card-bg);
	border: 1px solid var(--card-border);
	border-radius: 12px;
	overflow: hidden;
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.card:hover {
	box-shadow: 0 0 24px rgba(25, 227, 255, 0.25);
	transform: translateY(-3px);
}

.card img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; background: rgba(0,0,0,0.35); }

.card .card-body { padding: 14px 16px 18px; }

.card h3 {
	margin: 0 0 4px;
	font-size: 1rem;
	color: var(--accent);
	letter-spacing: 0.02em;
}

.card .card-role {
	margin: 0 0 8px;
	font-size: 0.78rem;
	color: var(--ink-dim);
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.card p {
	margin: 0;
	font-size: 0.88rem;
	color: var(--ink-dim);
}

.card.placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--ink-dim);
	font-size: 0.85rem;
	text-align: center;
	padding: 40px 16px;
	min-height: 220px;
}

/* ---------- Screenshot strip ---------- */
.shot-strip {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 16px;
}

.shot-strip img,
.shot-strip .shot-placeholder {
	border-radius: 10px;
	border: 1px solid var(--card-border);
}

.shot-placeholder {
	aspect-ratio: 3 / 2;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--card-bg);
	color: var(--ink-dim);
	font-size: 0.85rem;
	text-align: center;
	padding: 20px;
}

/* ---------- Prose (design notes) ---------- */
.prose {
	max-width: 760px;
	margin: 0 auto;
}

.prose h2 {
	margin-top: 48px;
}

.prose h2:first-child { margin-top: 0; }

.prose p { color: var(--ink); }

.prose .meta {
	color: var(--ink-dim);
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-bottom: 40px;
}

.prose ul { color: var(--ink); }

/* ---------- Footer ---------- */
footer.site-footer {
	border-top: 1px solid rgba(25, 227, 255, 0.2);
	padding: 32px 0;
	text-align: center;
	color: var(--ink-dim);
	font-size: 0.85rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
	.site-nav .wrap { flex-direction: column; height: auto; padding: 12px 20px; gap: 10px; }
	.site-nav nav { gap: 16px; justify-content: center; }
	.hero { padding: 48px 0 40px; }
}
