/* The House That Shadows Built — static rebuild
   Matches the original Next.js site: black, Inter, monospace tagline,
   red accent (#dc2626 / red-600), section background gifs, radial atmosphere. */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,100..900;1,100..900&family=IBM+Plex+Mono:wght@400;600&display=swap');

:root {
	--fg: #fff;
	--muted: #9ca3af;
	--red: #dc2626;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
	background: #000;
	color: var(--fg);
	font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	/* layered radial atmosphere (dark red + dark blue blooms), from the original */
	background-image:
		radial-gradient(at 11% 87%, #000 0, transparent 50%),
		radial-gradient(at 58% 13%, #420000 0, transparent 50%),
		radial-gradient(at 0 50%, #00002e 0, transparent 50%),
		radial-gradient(at 26% 98%, #000 0, transparent 50%),
		radial-gradient(at 0 70%, #420000 0, transparent 50%),
		radial-gradient(at 67% 33%, #00002e 0, transparent 50%),
		radial-gradient(at 6% 5%, #000 0, transparent 50%);
	background-attachment: fixed;
}

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

/* ---------- top nav ---------- */
.topnav {
	position: absolute;
	top: 0; left: 0; right: 0;
	z-index: 20;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 28px;
	height: 80px;
}

.topnav .brand img { width: 48px; }

.mainnav {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 64px;
}

.mainnav a {
	text-decoration: none;
	font-size: 0.95rem;
	letter-spacing: 0.28em;
	color: var(--fg);
	transition: color 0.15s;
}

.mainnav a:hover { color: var(--red); }

.topnav .social { display: flex; gap: 6px; }
.topnav .social a { display: inline-flex; padding: 4px; }
.sicon {
	width: 22px; height: 22px;
	fill: var(--fg);
	transition: fill 0.15s;
}
.topnav .social a:hover .sicon { fill: var(--red); }

/* ---------- hero ---------- */
.hero {
	min-height: 100vh;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: flex-end;
	gap: 24px;
	padding: 80px 40px;
	background: #000;
}

.hero-image {
	position: relative;
	flex: 0 0 auto;
	display: flex;
}

.hero-image .cinema-photo {
	min-width: 400px;
	max-width: 46vw;
	filter: brightness(0.5);
}

.hero-image .hero-logo {
	position: absolute;
	top: 50%; left: 50%;
	transform: translate(-50%, -50%);
	min-width: 200px;
	width: 60%;
	z-index: 10;
}

.hero-text {
	flex: 0 1 46%;
	padding-right: 40px;
	padding-left: 24px;
}

.tagline {
	font-family: "IBM Plex Mono", ui-monospace, monospace;
	font-size: 1.9rem;
	line-height: 1.35;
	margin-bottom: 40px;
}

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

.credits {
	font-size: 0.9rem;
	margin-bottom: 40px;
}

.credits a { text-decoration: none; }
.credits a:hover { color: var(--red); }

/* platform badges */
.badges {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 24px;
}

.badges img { height: 44px; width: auto; }

/* ---------- generic section ---------- */
section:not(.hero) {
	position: relative;
	min-height: 100vh;
	display: flex;
	align-items: center;
	overflow: hidden;
}

.section-bg {
	position: absolute;
	inset: 0;
	width: 100%; height: 100%;
	object-fit: cover;
	z-index: -1;
	opacity: 0.9;
}

.section-title {
	font-size: 0.85rem;
	letter-spacing: 0.3em;
	color: var(--red);
	text-transform: uppercase;
	margin-bottom: 28px;
}

/* ---------- about ---------- */
.about-inner {
	max-width: 640px;
	margin: 0 auto;
	padding: 48px;
	background: rgba(0,0,0,0.6);
	backdrop-filter: blur(2px);
	border-radius: 8px;
}

.about-inner p { font-size: 1.15rem; margin-bottom: 1.2em; }

/* ---------- episodes / read ---------- */
.episodes {
	justify-content: center;
	gap: 48px;
	padding: 80px 40px;
}

.episodes .cinema-side { width: 33%; max-width: 420px; }

.episodes-inner { flex: 0 1 520px; }

.episodes ul { list-style: none; }
.episodes li { border-bottom: 1px solid #2a2a2a; }

.episodes a {
	display: flex;
	align-items: baseline;
	gap: 16px;
	padding: 18px 4px;
	text-decoration: none;
	font-size: 1.15rem;
	transition: color 0.15s, padding-left 0.15s;
}
.episodes a:hover { color: var(--red); padding-left: 12px; }

.episodes .num {
	color: var(--muted);
	font-size: 0.78rem;
	letter-spacing: 0.15em;
	min-width: 92px;
}
.episodes a::after {
	content: "PDF";
	margin-left: auto;
	font-size: 0.7rem;
	letter-spacing: 0.15em;
	color: var(--muted);
}

/* ---------- listen ---------- */
.listen { justify-content: center; }

.listen-inner {
	max-width: 640px;
	width: 100%;
	margin: 0 auto;
	padding: 48px;
	background: rgba(0,0,0,0.6);
	border-radius: 8px;
}

.listen .player { margin-bottom: 28px; }
.listen .player iframe { width: 100%; border: 0; border-radius: 12px; }

/* ---------- footer ---------- */
.site-footer {
	padding: 48px 40px 72px;
	border-top: 1px solid #1a1a1a;
	color: var(--muted);
	font-size: 0.85rem;
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
}
.site-footer .back a { color: var(--muted); text-decoration: none; }
.site-footer .back a:hover { color: var(--fg); }

/* ---------- mobile ---------- */
@media (max-width: 820px) {
	.mainnav { gap: 24px; }
	.mainnav a { font-size: 0.75rem; letter-spacing: 0.15em; }
	.hero { flex-direction: column; justify-content: center; }
	.hero-image .cinema-photo { min-width: 0; max-width: 90vw; }
	.hero-text { flex: none; padding: 24px 0 0; text-align: center; }
	.tagline { font-size: 1.4rem; }
	.badges { justify-content: center; }
	.episodes { flex-direction: column; }
	.episodes .cinema-side { width: 90%; }
}
