/*
Theme Name: Ottcast
Theme URI: https://ottcast.be/
Author: Ottcast
Description: Donkere WordPress theme voor de Ottenburgse podcast Ottcast.
Version: 1.0.19
Text Domain: ottcast
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
*/

:root {
	--ink: #f6f2e9;
	--text: #d8d2c7;
	--muted: #958d82;
	--line: rgba(246, 242, 233, 0.14);
	--paper: #0d0d0e;
	--deep: #070708;
	--panel: rgba(246, 242, 233, 0.045);
	--panel-strong: rgba(246, 242, 233, 0.075);
	--cyan: #00c7f2;
	--magenta: #b421ff;
	--green: #78d7a6;
	--radius: 8px;
}

* {
	box-sizing: border-box;
}

html {
	min-height: 100%;
	background: var(--paper);
}

body {
	min-height: 100dvh;
	margin: 0;
	background:
		radial-gradient(circle at 84% 20%, rgba(180, 33, 255, 0.13), transparent 28%),
		radial-gradient(circle at 18% 82%, rgba(0, 199, 242, 0.09), transparent 25%),
		linear-gradient(135deg, #070708 0%, #0d0d0e 48%, #111113 100%);
	color: var(--text);
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 16px;
	line-height: 1.45;
	letter-spacing: 0;
}

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

a {
	color: inherit;
	text-decoration: none;
}

a:hover {
	color: var(--ink);
}

button,
input,
textarea {
	font: inherit;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 50;
	padding: 0.75rem 1rem;
	background: var(--ink);
	color: var(--deep);
}

.skip-link:focus {
	left: 0;
}

.is-hidden {
	display: none !important;
}

.page-shell {
	min-height: 100dvh;
	display: grid;
	grid-template-rows: auto 1fr auto;
}

.container {
	width: min(1120px, calc(100% - 40px));
	margin: 0 auto;
}

.narrow-container {
	width: min(780px, calc(100% - 40px));
}

.site-header {
	border-bottom: 1px solid var(--line);
	background: rgba(13, 13, 14, 0.82);
	backdrop-filter: blur(18px);
	position: relative;
	z-index: 100;
}

.site-header-inner {
	width: min(1180px, calc(100% - 40px));
	min-height: 92px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
}

.brand {
	display: inline-flex;
	align-items: center;
	color: var(--ink);
	font-weight: 900;
}

.brand img {
	width: clamp(240px, 15vw, 300px);
	height: auto;
	object-fit: contain;
}

.nav {
	display: flex;
	align-items: center;
	color: var(--text);
	font-size: 0.92rem;
	font-weight: 760;
}

.nav-panel {
	display: flex;
	align-items: center;
	gap: 1.05rem;
}

.nav .menu {
	display: flex;
	align-items: center;
	gap: 1.05rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nav a {
	position: relative;
	display: inline-flex;
	align-items: center;
	padding: 0.2rem 0;
}

.nav a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -0.12rem;
	height: 2px;
	background: var(--magenta);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 160ms ease;
}

.nav a:hover::after,
.nav .current-menu-item > a::after {
	transform: scaleX(1);
}

.nav .nav-button {
	padding: 0.62rem 0.86rem;
	border: 1px solid rgba(246, 242, 233, 0.24);
	border-radius: 999px;
	background: var(--ink);
	color: var(--deep);
	font-weight: 850;
}

.nav .nav-button::after {
	display: none;
}

.menu-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 0.56rem 0.82rem;
	border: 1px solid rgba(246, 242, 233, 0.24);
	border-radius: 999px;
	background: transparent;
	color: var(--ink);
	font-size: 0.9rem;
	font-weight: 850;
	cursor: pointer;
}

.site-main {
	min-width: 0;
}

.home-main {
	display: grid;
	align-items: center;
	padding: clamp(1.25rem, 3.5vh, 2.8rem) 0;
}

.home-hero {
	width: min(1120px, calc(100% - 40px));
	margin: 0 auto;
	display: grid;
	grid-template-columns: minmax(0, 1.04fr) minmax(280px, 0.72fr);
	gap: clamp(2rem, 6vw, 4.8rem);
	align-items: center;
}

.eyebrow {
	margin: 0 0 1rem;
	color: var(--muted);
	font-size: 0.76rem;
	font-weight: 850;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

h1,
h2,
h3 {
	margin: 0;
	color: var(--ink);
	line-height: 1.05;
	letter-spacing: 0;
}

.home-hero h1 {
	max-width: 740px;
	font-size: clamp(3.9rem, 8.8vw, 8.5rem);
	line-height: 0.88;
}

.subtitle {
	max-width: 650px;
	margin: 1.55rem 0 0;
	color: var(--ink);
	font-size: clamp(1.14rem, 1.8vw, 1.45rem);
	line-height: 1.45;
}

.hostline {
	margin: 1rem 0 0;
	color: var(--muted);
	font-size: 0.98rem;
}

.actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.8rem;
	margin-top: 2rem;
}

.actions-compact {
	margin-top: 1.1rem;
}

.button,
button.button,
.form-submit .submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 0.75rem 1rem;
	border: 1px solid rgba(246, 242, 233, 0.24);
	border-radius: 999px;
	background: transparent;
	color: var(--ink);
	font-size: 0.94rem;
	font-weight: 850;
	text-decoration: none;
	cursor: pointer;
	transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover,
button.button:hover,
.form-submit .submit:hover {
	transform: translateY(-1px);
	box-shadow: 0 18px 34px rgba(0, 0, 0, 0.34);
	color: var(--ink);
}

.button-primary,
button.button-primary,
.form-submit .submit {
	background: var(--ink);
	color: var(--deep);
}

.button-primary:hover,
button.button-primary:hover,
.form-submit .submit:hover {
	color: var(--deep);
}

.episode-strip {
	max-width: 700px;
	margin-top: 1.55rem;
	padding-top: 1rem;
	border-top: 1px solid var(--line);
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 0.45rem 0.95rem;
	align-items: start;
}

.episode-strip-content {
	min-width: 0;
}

.episode-label {
	grid-column: 1 / -1;
	margin: 0 0 1rem;
	color: var(--muted);
	font-size: 0.76rem;
	font-weight: 850;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.episode-number {
	display: inline-grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border: 1px solid rgba(246, 242, 233, 0.24);
	border-radius: 50%;
	color: var(--ink);
	font-weight: 900;
}

.episode-strip p {
	margin: 0;
}

.episode-strip strong {
	display: block;
	color: var(--ink);
	font-size: 1rem;
	line-height: 1.2;
}

.episode-strip span {
	color: var(--muted);
	font-size: 0.92rem;
}

.home-audio {
	max-width: 580px;
	margin-top: 0.72rem;
}

.home-visual {
	justify-self: center;
	width: min(330px, 100%);
	position: relative;
}

.logo-mark {
	position: relative;
	padding: 0;
}

.logo-mark img {
	width: 100%;
	max-height: min(58vh, 560px);
	object-fit: contain;
	filter: drop-shadow(0 28px 52px rgba(0, 0, 0, 0.44));
}

.caption {
	max-width: 300px;
	margin: 1rem auto 0;
	color: var(--muted);
	font-size: 0.83rem;
	text-align: center;
}

.site-footer {
	border-top: 1px solid var(--line);
}

.site-footer-inner {
	width: min(1180px, calc(100% - 40px));
	min-height: 58px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	color: var(--muted);
	font-size: 0.84rem;
}

.site-footer a {
	color: var(--ink);
	font-weight: 760;
}

.page-hero {
	padding: clamp(1rem, 2.2vw, 1.8rem) 0 clamp(0.9rem, 1.8vw, 1.4rem);
	border-bottom: 1px solid var(--line);
	background: rgba(7, 7, 8, 0.45);
}

.page-hero .eyebrow {
	margin-bottom: 0.32rem;
	font-size: 0.68rem;
}

.page-hero h1 {
	font-size: clamp(2rem, 3.8vw, 3.25rem);
	line-height: 1;
}

.page-hero p:not(.eyebrow) {
	max-width: 560px;
	margin: 0.48rem 0 0;
	color: var(--text);
	font-size: clamp(0.92rem, 1.05vw, 1rem);
	line-height: 1.45;
}

.content-section {
	padding: clamp(2.6rem, 6vw, 5rem) 0;
}

.episodes-module {
	display: grid;
	gap: clamp(2rem, 5vw, 4rem);
}

.episode-player {
	display: grid;
	grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
	gap: clamp(1.4rem, 4vw, 2.2rem);
	align-items: center;
	padding: clamp(1rem, 3vw, 1.6rem);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--panel);
}

.episode-cover {
	aspect-ratio: 1;
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--deep);
}

.episode-cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.episode-player h2,
.episodes-list-wrap h2,
.about-copy h2,
.presenter-card h2,
.contact-direct h2,
.comments-area h2 {
	font-size: clamp(1.9rem, 4vw, 3rem);
}

.episode-meta {
	margin: 0.8rem 0;
	color: var(--muted);
	font-size: 0.93rem;
	font-weight: 760;
}

audio {
	width: 100%;
	margin-top: 0.9rem;
	filter: invert(1) hue-rotate(180deg);
}

.episodes-list-wrap h2 {
	margin-bottom: 1rem;
}

.episodes-list {
	display: grid;
	gap: 0.7rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.episode-select {
	display: grid;
	gap: 0.3rem;
	width: 100%;
	min-height: 104px;
	padding: 1rem;
	border: 1px solid var(--line);
	border-left: 4px solid transparent;
	border-radius: var(--radius);
	background: var(--panel);
	color: var(--text);
	text-align: left;
	cursor: pointer;
}

.episode-list-item.is-active .episode-select {
	border-left-color: var(--magenta);
	background: var(--panel-strong);
}

.episode-select:hover {
	border-left-color: var(--cyan);
}

.episode-select:disabled {
	cursor: not-allowed;
	opacity: 0.65;
}

.episode-list-title {
	color: var(--ink);
	font-size: 1.08rem;
	font-weight: 850;
	line-height: 1.25;
}

.episode-list-meta {
	color: var(--green);
	font-size: 0.86rem;
	font-weight: 800;
}

.episode-list-summary {
	color: var(--muted);
}

.episode-notes-link {
	display: inline-flex;
	width: fit-content;
	margin: 0.55rem 0 0 1rem;
	color: var(--ink);
	font-size: 0.9rem;
	font-weight: 850;
	text-decoration: underline;
	text-decoration-color: var(--magenta);
	text-decoration-thickness: 2px;
	text-underline-offset: 0.2em;
}

.about-layout,
.contact-layout {
	display: grid;
	grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
	gap: clamp(2rem, 6vw, 4rem);
	align-items: start;
}

.host-photo {
	padding: 1rem;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--panel);
}

.host-photo img {
	width: 100%;
	max-height: 520px;
	object-fit: contain;
}

.about-copy p,
.contact-direct p {
	max-width: 680px;
	font-size: 1.07rem;
}

.about-intro-section {
	padding-bottom: clamp(1.4rem, 3vw, 2rem);
}

.presenters-section {
	padding-top: 0;
}

.credits-section {
	padding-top: 0;
}

.presenters-section > .container > .eyebrow {
	margin-bottom: 1rem;
}

.presenters-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
}

.presenter-card {
	display: grid;
	gap: 1rem;
	align-content: start;
	padding: 1rem;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--panel);
}

.presenter-photo {
	aspect-ratio: 1;
	display: grid;
	place-items: center;
	overflow: hidden;
	border-radius: var(--radius);
	background: rgba(7, 7, 8, 0.58);
}

.presenter-photo img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.presenter-copy p {
	margin-bottom: 0;
	color: var(--text);
}

.credits-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.4rem;
	padding-top: 1rem;
	border-top: 1px solid var(--line);
	color: var(--muted);
	font-size: 0.92rem;
}

.credits-list p {
	margin: 0;
}

.credits-list strong {
	margin-right: 0.35rem;
	color: var(--ink);
}

.entry-content {
	color: var(--text);
	font-size: 1.06rem;
}

.entry-content a,
.contact-direct a {
	color: var(--ink);
	text-decoration: underline;
	text-decoration-color: var(--magenta);
	text-decoration-thickness: 2px;
	text-underline-offset: 0.2em;
}

.entry-content > *:first-child {
	margin-top: 0;
}

.entry-content h2,
.entry-content h3 {
	margin-top: 2rem;
}

.links-content ul {
	display: grid;
	gap: 0.65rem;
	margin-left: 0;
	padding-left: 0;
	list-style: none;
}

.links-content li {
	padding: 0.85rem 1rem;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--panel);
}

.links-content li a {
	font-weight: 850;
}

.featured-image {
	margin-bottom: 2rem;
	border-radius: var(--radius);
}

.ottcast-form,
.comment-form {
	display: grid;
	gap: 1rem;
	padding: clamp(1rem, 3vw, 1.4rem);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--panel);
}

.form-row,
.comment-form p {
	margin: 0;
}

.ottcast-form label,
.comment-form label {
	display: block;
	margin-bottom: 0.35rem;
	color: var(--ink);
	font-weight: 800;
}

.ottcast-form input,
.ottcast-form textarea,
.comment-form input,
.comment-form textarea {
	width: 100%;
	min-height: 46px;
	padding: 0.75rem 0.85rem;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: rgba(7, 7, 8, 0.72);
	color: var(--ink);
}

.ottcast-form textarea,
.comment-form textarea {
	resize: vertical;
}

.required {
	color: var(--magenta);
}

.ottcast-honeypot {
	position: absolute;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.notice {
	padding: 0.9rem 1rem;
	border: 1px solid var(--line);
	border-left: 4px solid var(--magenta);
	border-radius: var(--radius);
	background: var(--panel);
	color: var(--ink);
}

.notice-success {
	border-left-color: var(--green);
}

.comments-area {
	padding: clamp(1rem, 3vw, 1.4rem);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--panel);
}

.comment-list {
	display: grid;
	gap: 1rem;
	margin: 1rem 0 2rem;
	padding: 0;
	list-style: none;
}

.comment-body {
	padding: 1rem;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: rgba(7, 7, 8, 0.4);
}

.comment-author,
.comment-metadata {
	color: var(--muted);
}

.posts-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
}

.post-card {
	padding: 1rem;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--panel);
}

.post-card img {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	border-radius: var(--radius);
}

.post-card h2 {
	font-size: 1.35rem;
}

@media (min-width: 901px) and (min-height: 660px) {
	body.home:not(.admin-bar) {
		overflow: hidden;
	}
}

@media (max-width: 900px) {
	.page-shell {
		min-height: auto;
	}

	.site-header-inner,
	.site-footer-inner,
	.container,
	.narrow-container,
	.home-hero {
		width: min(100% - 28px, 1120px);
	}

	.site-header-inner {
		min-height: auto;
		padding: 0.55rem 0;
		align-items: flex-start;
	}

	.nav,
	.nav .menu {
		flex-wrap: wrap;
		justify-content: flex-end;
		gap: 0.7rem;
	}

	.home-main {
		padding: 1.8rem 0 2.4rem;
	}

	.home-hero,
	.episode-player,
	.about-layout,
	.contact-layout,
	.presenters-grid {
		grid-template-columns: 1fr;
	}

	.home-visual {
		order: -1;
		width: min(220px, 64vw);
	}

	.home-hero h1 {
		font-size: clamp(3.5rem, 19vw, 6.4rem);
	}

	.episode-cover {
		width: min(260px, 100%);
	}

	.site-footer-inner {
		min-height: auto;
		padding: 1rem 0;
		display: grid;
	}

	.posts-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 560px) {
	.site-header-inner {
		position: relative;
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 0.8rem;
		padding: 0.45rem 0;
	}

	.brand img {
		width: min(210px, 58vw);
	}

	.nav {
		display: flex;
		justify-content: flex-end;
		width: auto;
		font-size: 0.86rem;
		line-height: 1.1;
	}

	.menu-toggle {
		display: inline-flex;
	}

	.nav-panel {
		position: absolute;
		right: 0;
		top: calc(100% + 1px);
		z-index: 200;
		display: none;
		grid-template-columns: 1fr;
		gap: 0.35rem;
		width: max-content;
		max-width: calc(100vw - 32px);
		padding: 0.5rem;
		border: 1px solid var(--line);
		border-radius: var(--radius);
		background: rgba(13, 13, 14, 0.98);
		box-shadow: 0 20px 46px rgba(0, 0, 0, 0.36);
	}

	.nav.is-open .nav-panel {
		display: grid;
	}

	.nav .menu {
		display: grid;
		gap: 0;
		width: 100%;
	}

	.nav .menu a {
		width: 100%;
		justify-content: flex-start;
		padding: 0.58rem 0.72rem;
		white-space: nowrap;
	}

	.nav .menu a::after {
		display: none;
	}

	.nav .nav-button {
		justify-content: center;
		border-radius: var(--radius);
		margin: 0;
		padding: 0.62rem 0.72rem;
		width: 100%;
	}

	.actions,
	.button,
	button.button,
	.form-submit .submit {
		width: 100%;
	}

	.episode-strip {
		grid-template-columns: 1fr;
	}
}
