/* ==========================================================================
   StillEmo — Main Stylesheet
   Mobile-first, dark editorial theme for emo/alternative music news.
   ========================================================================== */


/* ==========================================================================
   1. CSS DESIGN TOKENS
   ========================================================================== */

:root {
	/* Colors */
	--color-bg:            #0e0e0e;
	--color-surface:       #161616;
	--color-surface-2:     #1f1f1f;
	--color-surface-hover: #232323;
	--color-border:        #282828;
	--color-border-light:  #333333;

	--color-text:           #e8e8e8;
	--color-text-secondary: #888888;
	--color-text-muted:     #555555;

	--color-accent:       #c23b22;  /* deep crimson */
	--color-accent-hover: #d94a30;
	--color-accent-dim:   rgba(194, 59, 34, 0.15);

	--color-white: #ffffff;
	--color-black: #000000;

	/* Typography */
	--font-sans:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--font-heading: 'Barlow Condensed', 'Inter', -apple-system, sans-serif;

	--text-xs:   0.75rem;   /* 12px */
	--text-sm:   0.875rem;  /* 14px */
	--text-base: 1rem;      /* 16px */
	--text-lg:   1.125rem;  /* 18px */
	--text-xl:   1.25rem;   /* 20px */
	--text-2xl:  1.5rem;    /* 24px */
	--text-3xl:  1.875rem;  /* 30px */
	--text-4xl:  2.25rem;   /* 36px */
	--text-5xl:  3rem;      /* 48px */

	/* Spacing */
	--space-1:  0.25rem;
	--space-2:  0.5rem;
	--space-3:  0.75rem;
	--space-4:  1rem;
	--space-5:  1.25rem;
	--space-6:  1.5rem;
	--space-8:  2rem;
	--space-10: 2.5rem;
	--space-12: 3rem;
	--space-16: 4rem;
	--space-20: 5rem;
	--space-24: 6rem;

	/* Layout */
	--container-max: 1200px;
	--container-pad: 1rem;
	--header-height: 56px;

	/* Borders */
	--radius-sm: 3px;
	--radius:    6px;
	--radius-lg: 10px;

	/* Transitions */
	--transition-fast:   150ms ease;
	--transition-base:   250ms ease;
	--transition-slow:   400ms ease;

	/* Shadows */
	--shadow-card: 0 2px 12px rgba(0,0,0,0.45);
	--shadow-header: 0 1px 0 var(--color-border);
	--shadow-menu: -4px 0 24px rgba(0,0,0,0.6);
}


/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */

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

html {
	font-size: 16px;
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	background-color: var(--color-bg);
	color: var(--color-text);
	font-family: var(--font-sans);
	font-size: var(--text-base);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* Prevent scroll when mobile menu is open */
body.menu-open {
	overflow: hidden;
}

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

a {
	color: var(--color-text);
	text-decoration: none;
	transition: color var(--transition-fast);
}

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

a:focus-visible {
	outline: 2px solid var(--color-accent);
	outline-offset: 3px;
	border-radius: var(--radius-sm);
}

button {
	cursor: pointer;
	background: none;
	border: none;
	font-family: inherit;
	color: inherit;
}

ul, ol {
	list-style: none;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-heading);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.01em;
	color: var(--color-text);
}

/* Skip link */
.skip-link {
	position: absolute;
	top: -100%;
	left: 0;
	z-index: 9999;
	padding: var(--space-3) var(--space-4);
	background: var(--color-accent);
	color: var(--color-white);
	font-weight: 600;
	border-radius: 0 0 var(--radius) 0;
}

.skip-link:focus {
	top: 0;
	color: var(--color-white);
}

/* Screen reader only */
.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	overflow: hidden;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}


/* ==========================================================================
   3. LAYOUT
   ========================================================================== */

.container {
	width: 100%;
	max-width: var(--container-max);
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--container-pad);
	padding-right: var(--container-pad);
}

.site-main {
	padding-top: var(--header-height); /* compensate for fixed header */
	min-height: 60vh;
}


/* ==========================================================================
   4. SITE HEADER
   ========================================================================== */

.site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 500;
	height: var(--header-height);
	background-color: var(--color-bg);
	border-bottom: 1px solid var(--color-border);
	transition: background-color var(--transition-base), box-shadow var(--transition-base);
}

/* Compact scrolled state */
.site-header.scrolled {
	background-color: rgba(14, 14, 14, 0.96);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	box-shadow: 0 1px 16px rgba(0,0,0,0.5);
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: var(--space-8);
	height: 100%;
	max-width: var(--container-max);
	margin: 0 auto;
	padding: 0 var(--container-pad);
}

/* Logo */
.header-logo {
	display: flex;
	align-items: center;
}

/* On mobile, center the logo and push hamburger to the right */
@media (max-width: 767px) {
	.header-logo {
		position: absolute;
		left: 50%;
		transform: translateX(-50%);
		flex: none;
	}

	.hamburger {
		margin-left: auto;
	}
}

.header-logo .custom-logo {
	max-height: 36px;
	width: auto;
}

.header-logo .custom-logo-link {
	display: flex;
	align-items: center;
}

.site-name-link {
	font-family: var(--font-heading);
	font-size: var(--text-2xl);
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--color-text);
}

.site-name-link:hover {
	color: var(--color-accent);
}

/* Desktop Navigation */
.desktop-nav {
	display: none;
}

.desktop-nav .nav-menu {
	display: flex;
	align-items: center;
	gap: var(--space-6);
}

.desktop-nav .nav-menu a {
	font-size: var(--text-xs);
	font-weight: 500;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--color-text-secondary);
	padding: var(--space-2) 0;
	border-bottom: 2px solid transparent;
	transition: color var(--transition-fast), border-color var(--transition-fast);
}

.desktop-nav .nav-menu a:hover,
.desktop-nav .nav-menu .current-menu-item > a,
.desktop-nav .nav-menu .current-menu-ancestor > a {
	color: var(--color-text);
	border-bottom-color: var(--color-accent);
}

/* Desktop Sub-menus */
.desktop-nav .nav-menu .sub-menu {
	display: none;
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	min-width: 180px;
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	padding: var(--space-2) 0;
	box-shadow: var(--shadow-card);
}

.desktop-nav .nav-menu li {
	position: relative;
}

.desktop-nav .nav-menu li:hover > .sub-menu {
	display: block;
}

.desktop-nav .nav-menu .sub-menu a {
	display: block;
	padding: var(--space-2) var(--space-4);
	font-size: var(--text-sm);
	border-bottom: none;
}

/* Desktop Shop Link */
.header-shop-link {
	display: none;
	margin-left: auto;
}

.btn-shop {
	display: inline-flex;
	align-items: center;
	padding: var(--space-2) var(--space-4);
	background: transparent;
	border: 1px solid var(--color-accent);
	border-radius: var(--radius);
	color: var(--color-accent);
	font-size: var(--text-xs);
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	transition: background-color var(--transition-fast), color var(--transition-fast);
	white-space: nowrap;
}

.btn-shop:hover {
	background: var(--color-accent);
	color: var(--color-white);
}

/* Hamburger Button (mobile only) */
.hamburger {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	padding: var(--space-2);
	z-index: 10;
	flex-shrink: 0;
}

.hamburger-bar {
	display: block;
	width: 22px;
	height: 2px;
	background-color: var(--color-text);
	border-radius: 2px;
	transition: transform var(--transition-base), opacity var(--transition-base);
}

.hamburger.is-open .hamburger-bar:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.hamburger.is-open .hamburger-bar:nth-child(2) {
	opacity: 0;
}

.hamburger.is-open .hamburger-bar:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}


/* ==========================================================================
   5. MOBILE MENU
   ========================================================================== */

/* Overlay */
.menu-overlay {
	position: fixed;
	inset: 0;
	z-index: 600;
	background: rgba(0, 0, 0, 0.65);
	opacity: 0;
	pointer-events: none;
	transition: opacity var(--transition-slow);
	backdrop-filter: blur(2px);
}

.menu-overlay.is-visible {
	opacity: 1;
	pointer-events: auto;
}

/* Slide-in panel */
.mobile-menu {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	z-index: 700;
	width: min(320px, 88vw);
	background: var(--color-surface);
	border-left: 1px solid var(--color-border);
	display: flex;
	flex-direction: column;
	overflow-y: auto;
	overflow-x: hidden;
	-webkit-overflow-scrolling: touch;
	transform: translateX(100%);
	transition: transform var(--transition-slow) cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: var(--shadow-menu);
}

.mobile-menu.is-open {
	transform: translateX(0);
}

/* Remove hidden attr without animation flash */
.mobile-menu[hidden] {
	display: flex;
}

/* Close button */
.menu-close {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	align-self: flex-end;
	margin: var(--space-3) var(--space-3) 0;
	color: var(--color-text-secondary);
	transition: color var(--transition-fast);
}

.menu-close:hover {
	color: var(--color-text);
}

/* Nav links */
.mobile-nav-links {
	flex: 1;
	padding: var(--space-4) 0;
}

.mobile-nav-menu {
	display: flex;
	flex-direction: column;
}

.mobile-nav-menu a {
	display: block;
	padding: var(--space-4) var(--space-6);
	font-family: var(--font-heading);
	font-size: var(--text-2xl);
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--color-text);
	border-bottom: 1px solid var(--color-border);
	transition: color var(--transition-fast), padding-left var(--transition-fast);
}

.mobile-nav-menu > li:first-child > a {
	border-top: 1px solid var(--color-border);
}

.mobile-nav-menu a:hover,
.mobile-nav-menu .current-menu-item > a {
	color: var(--color-accent);
	padding-left: calc(var(--space-6) + var(--space-2));
}

/* Sub-menu in mobile */
.mobile-nav-menu .sub-menu a {
	font-size: var(--text-lg);
	font-weight: 600;
	padding-left: calc(var(--space-6) + var(--space-4));
	color: var(--color-text-secondary);
}

/* Promo area at bottom of mobile menu */
.mobile-menu-promo {
	padding: var(--space-6);
	border-top: 1px solid var(--color-border);
	margin-top: auto;
	background: var(--color-surface-2);
}

.promo-images {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--space-3);
	margin-bottom: var(--space-4);
}

.promo-image {
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--color-border);
}

.promo-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--transition-slow);
}

.promo-image:hover img {
	transform: scale(1.04);
}

.btn-mobile-shop {
	display: block;
	width: 100%;
	padding: var(--space-4);
	background: var(--color-accent);
	color: var(--color-white);
	text-align: center;
	font-family: var(--font-heading);
	font-size: var(--text-lg);
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	border-radius: var(--radius);
	transition: background-color var(--transition-fast);
}

.btn-mobile-shop:hover {
	background: var(--color-accent-hover);
	color: var(--color-white);
}


/* ==========================================================================
   6. FOOTER
   ========================================================================== */

.site-footer {
	background: var(--color-surface);
	border-top: 1px solid var(--color-border);
	margin-top: var(--space-20);
	padding: var(--space-12) 0 var(--space-8);
}

.footer-top {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-8);
	margin-bottom: var(--space-10);
}

.footer-brand .custom-logo {
	max-height: 36px;
	max-width: 160px;
	width: auto;
	height: auto;
	margin-bottom: var(--space-3);
}

.footer-brand .site-name-link {
	display: inline-block;
	margin-bottom: var(--space-3);
}

.footer-tagline {
	color: var(--color-text-secondary);
	font-size: var(--text-sm);
	font-style: italic;
}

.footer-col-heading {
	font-size: var(--text-xs);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--color-text-muted);
	margin-bottom: var(--space-4);
}

.footer-nav-menu {
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
}

.footer-nav-menu a {
	font-size: var(--text-sm);
	color: var(--color-text-secondary);
}

.footer-nav-menu a:hover {
	color: var(--color-text);
}

.footer-social-links {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-4);
}

.footer-social-link {
	color: var(--color-text-muted);
	transition: color var(--transition-fast);
}

.footer-social-link:hover {
	color: var(--color-accent);
}

.footer-bottom {
	border-top: 1px solid var(--color-border);
	padding-top: var(--space-6);
}

.footer-copy {
	font-size: var(--text-xs);
	color: var(--color-text-muted);
}

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

.footer-copy a:hover {
	color: var(--color-text-secondary);
}


/* ==========================================================================
   7. BUTTONS & SHARED UI
   ========================================================================== */

.btn-read-more {
	display: inline-flex;
	align-items: center;
	gap: var(--space-2);
	padding: var(--space-3) var(--space-5);
	border: 1px solid var(--color-accent);
	border-radius: var(--radius);
	color: var(--color-accent);
	font-size: var(--text-sm);
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	transition: background-color var(--transition-fast), color var(--transition-fast);
}

.btn-read-more:hover {
	background: var(--color-accent);
	color: var(--color-white);
}

/* Category badge */
.category-badge {
	display: inline-block;
	padding: 3px var(--space-2);
	background: var(--color-accent);
	color: var(--color-white);
	font-size: var(--text-xs);
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	border-radius: var(--radius-sm);
	transition: background-color var(--transition-fast);
}

.category-badge:hover {
	background: var(--color-accent-hover);
	color: var(--color-white);
}

.podcast-type-badge {
	background: var(--color-surface-2);
	color: var(--color-text-secondary);
	cursor: default;
}

.podcast-type-badge:hover {
	background: var(--color-surface-2);
	color: var(--color-text-secondary);
}

/* Post meta */
.post-meta {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: var(--space-1);
	font-size: var(--text-xs);
	color: var(--color-text-muted);
}

.post-meta .sep {
	color: var(--color-border-light);
	margin: 0 var(--space-1);
}

.post-meta .author-link {
	color: var(--color-text-muted);
}

.post-meta .author-link:hover {
	color: var(--color-accent);
}


/* ==========================================================================
   8. SECTION LAYOUT (categories)
   ========================================================================== */

.section-category,
.section-video {
	padding: var(--space-12) 0;
	border-bottom: 1px solid var(--color-border);
}

.section-header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: var(--space-6);
}

.section-title {
	font-family: var(--font-heading);
	font-size: var(--text-3xl);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	line-height: 1;
	position: relative;
	padding-bottom: var(--space-3);
}

.section-title::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 2.5rem;
	height: 3px;
	background: var(--color-accent);
	border-radius: 2px;
}

.section-title a {
	color: var(--color-text);
}

.section-title a:hover {
	color: var(--color-accent);
}

.section-all-link {
	font-size: var(--text-xs);
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--color-text-muted);
	white-space: nowrap;
}

.section-all-link:hover {
	color: var(--color-accent);
}


/* ==========================================================================
   9. POST GRID & CARDS
   ========================================================================== */

.post-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--space-4);
}

.post-card {
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	overflow: hidden;
	transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}

.post-card:hover {
	transform: translateY(-2px);
	border-color: var(--color-border-light);
	box-shadow: var(--shadow-card);
}

.post-card-link {
	display: block;
}

.post-card-image {
	width: 100%;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--color-surface-2);
}

.post-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--transition-slow);
}

.post-card:hover .post-card-image img {
	transform: scale(1.04);
}

.post-card-no-image {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, var(--color-surface-2), var(--color-surface));
}

.post-card-sponsored-badge,
.single-sponsored-badge {
	display: inline-block;
	padding: 2px 7px;
	border: 1px solid var(--color-border);
	border-radius: 3px;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--color-text-muted);
	line-height: 1.4;
}

.post-card-sponsored-badge {
	margin-top: var(--space-3);
}

.post-card-body {
	padding: var(--space-4);
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
}

.post-card-title {
	font-family: var(--font-heading);
	font-size: var(--text-lg);
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -0.01em;
}

.post-card-title a {
	color: var(--color-text);
}

.post-card-title a:hover {
	color: var(--color-accent);
}


/* ==========================================================================
   10. FEATURED POST HERO
   ========================================================================== */

.section-featured {
	position: relative;
	width: 100%;
	background: var(--color-surface);
}

.featured-post {
	display: flex;
	flex-direction: column;
}

.featured-post-link {
	display: block;
	position: relative;
}

.featured-image {
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	position: relative;
}

@media (min-width: 768px) {
	.featured-image {
		aspect-ratio: 21 / 9;
	}
}

.featured-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.featured-image-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to bottom,
		rgba(0,0,0,0) 0%,
		rgba(0,0,0,0.1) 50%,
		rgba(0,0,0,0.65) 100%
	);
}

.featured-content {
	padding: var(--space-6) var(--space-4);
	max-width: 800px;
}

.featured-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: var(--space-3);
	margin-bottom: var(--space-4);
}

.featured-title {
	font-family: var(--font-heading);
	font-size: var(--text-4xl);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.02em;
	margin-bottom: var(--space-4);
}

.featured-title a {
	color: var(--color-text);
}

.featured-title a:hover {
	color: var(--color-accent);
}

.featured-excerpt {
	font-size: var(--text-base);
	color: var(--color-text-secondary);
	line-height: 1.65;
	margin-bottom: var(--space-5);
	max-width: 600px;
}


/* ==========================================================================
   11. VIDEO CAROUSEL
   ========================================================================== */

.video-carousel-outer {
	overflow: hidden;
	padding-bottom: var(--space-2);
}

.video-carousel-container {
	overflow-x: auto;
	overflow-y: visible;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	scrollbar-color: var(--color-border-light) transparent;
	cursor: grab;
}

.video-carousel-container:active {
	cursor: grabbing;
}

.video-carousel-container::-webkit-scrollbar {
	height: 4px;
}

.video-carousel-container::-webkit-scrollbar-track {
	background: var(--color-surface);
}

.video-carousel-container::-webkit-scrollbar-thumb {
	background: var(--color-border-light);
	border-radius: 4px;
}

.video-track {
	display: flex;
	gap: var(--space-4);
	padding-bottom: var(--space-4);
	/* Extend slightly beyond container for visual bleed */
	width: max-content;
}

.video-card {
	flex: 0 0 260px;
	width: 260px;
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	overflow: hidden;
	transition: transform var(--transition-base), border-color var(--transition-base);
}

.video-card:hover {
	transform: translateY(-2px);
	border-color: var(--color-border-light);
}

.video-card-link {
	display: block;
}

.video-card-thumb {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--color-surface-2);
}

.video-card-thumb img,
.video-card-thumb video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--transition-slow);
}

.video-card:hover .video-card-thumb img {
	transform: scale(1.04);
}

.video-card-no-thumb {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--color-text-muted);
	background: var(--color-surface-2);
}

.video-play-icon {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	opacity: 0;
	transition: opacity var(--transition-fast);
	pointer-events: none;
}

.video-card:hover .video-play-icon {
	opacity: 1;
}

.video-card-no-thumb .video-play-icon {
	opacity: 0.6;
}

.video-card-body {
	padding: var(--space-3) var(--space-4);
}

.video-card-title {
	font-family: var(--font-heading);
	font-size: var(--text-base);
	font-weight: 700;
	line-height: 1.3;
	margin-bottom: var(--space-2);
	color: var(--color-text);
	/* 2-line clamp */
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.video-card-link:hover .video-card-title {
	color: var(--color-accent);
}


/* ==========================================================================
   12. SINGLE POST
   ========================================================================== */

.single-post-page {
	padding-bottom: var(--space-20);
}

.single-header {
	padding: var(--space-10) 0 var(--space-8);
	background: var(--color-surface);
	border-bottom: 1px solid var(--color-border);
}

.single-meta-top {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: var(--space-3);
	margin-bottom: var(--space-5);
}

.reading-time {
	font-size: var(--text-xs);
	color: var(--color-text-muted);
}

.single-title {
	font-family: var(--font-heading);
	font-size: var(--text-4xl);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.02em;
	max-width: 850px;
}

.single-excerpt {
	margin-top: var(--space-4);
	font-size: var(--text-lg);
	color: var(--color-text-secondary);
	line-height: 1.6;
	max-width: 700px;
}

.single-featured-image {
	width: 100%;
	max-height: 520px;
	overflow: hidden;
	background: var(--color-surface-2);
}

.single-featured-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.single-content {
	padding: var(--space-10) 0;
}

/* Post body typography */
.post-body {
	max-width: 760px;
	font-size: var(--text-base);
	line-height: 1.8;
	color: var(--color-text);
}

.post-body h2,
.post-body h3,
.post-body h4 {
	margin-top: var(--space-8);
	margin-bottom: var(--space-4);
}

.post-body h2 { font-size: var(--text-3xl); }
.post-body h3 { font-size: var(--text-2xl); }
.post-body h4 { font-size: var(--text-xl); }

.post-body p {
	margin-bottom: var(--space-5);
}

.post-body a {
	color: var(--color-accent);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.post-body a:hover {
	color: var(--color-accent-hover);
}

.post-body ul,
.post-body ol {
	list-style: revert;
	padding-left: var(--space-6);
	margin-bottom: var(--space-5);
}

.post-body li {
	margin-bottom: var(--space-2);
}

.post-body blockquote {
	border-left: 3px solid var(--color-accent);
	padding: var(--space-4) var(--space-6);
	margin: var(--space-8) 0;
	background: var(--color-surface);
	border-radius: 0 var(--radius) var(--radius) 0;
}

.post-body blockquote p {
	font-size: var(--text-lg);
	font-style: italic;
	color: var(--color-text-secondary);
	margin: 0;
}

.post-body figure {
	margin: var(--space-8) 0;
}

.post-body figcaption {
	text-align: center;
	font-size: var(--text-xs);
	color: var(--color-text-muted);
	margin-top: var(--space-2);
}

.post-body img {
	border-radius: var(--radius);
	max-width: 100%;
}

.post-body pre {
	background: var(--color-surface);
	padding: var(--space-5);
	border-radius: var(--radius);
	overflow-x: auto;
	font-size: var(--text-sm);
	margin-bottom: var(--space-5);
	border: 1px solid var(--color-border);
}

.post-body code {
	font-size: 0.9em;
	background: var(--color-surface);
	padding: 1px 5px;
	border-radius: var(--radius-sm);
}

.post-body pre code {
	background: none;
	padding: 0;
}

/* Responsive embeds (YouTube, Vimeo, etc.) */

/* Bare iframes generated by [embed] shortcode / autoembed */
.post-body iframe[src*="youtube"],
.post-body iframe[src*="vimeo"] {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	border-radius: var(--radius);
	margin: var(--space-8) 0;
}

/* Gutenberg wp:embed block wrapper */
.post-body .wp-block-embed,
.post-body .embed-responsive {
	position: relative;
	padding-bottom: 56.25%;
	height: 0;
	overflow: hidden;
	border-radius: var(--radius);
	margin: var(--space-8) 0;
}

.post-body .wp-block-embed iframe,
.post-body .embed-responsive iframe,
.post-body .wp-block-embed__wrapper iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

/* WordPress core embed block */
.wp-block-embed {
	margin: var(--space-8) 0;
}

.wp-block-embed.is-type-video .wp-block-embed__wrapper {
	position: relative;
	padding-bottom: 56.25%;
	height: 0;
}

.wp-block-embed.is-type-video .wp-block-embed__wrapper iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border-radius: var(--radius);
}

/* Post footer */
.single-footer {
	border-top: 1px solid var(--color-border);
	padding-top: var(--space-8);
}

/* Tags */
.post-tags {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2);
	margin-bottom: var(--space-8);
}

.tag-link {
	padding: var(--space-1) var(--space-3);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	font-size: var(--text-xs);
	font-weight: 600;
	letter-spacing: 0.04em;
	color: var(--color-text-muted);
	text-transform: uppercase;
	transition: border-color var(--transition-fast), color var(--transition-fast);
}

.tag-link:hover {
	border-color: var(--color-accent);
	color: var(--color-accent);
}

/* Author card */
.author-card {
	display: flex;
	gap: var(--space-4);
	align-items: flex-start;
	padding: var(--space-6);
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	margin-bottom: var(--space-8);
}

.author-avatar img.avatar {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	flex-shrink: 0;
}

.author-label {
	font-size: var(--text-xs);
	color: var(--color-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin-bottom: var(--space-1);
}

.author-name {
	font-family: var(--font-heading);
	font-size: var(--text-xl);
	font-weight: 700;
	display: block;
	margin-bottom: var(--space-2);
}

.author-bio {
	font-size: var(--text-sm);
	color: var(--color-text-secondary);
	line-height: 1.6;
}

/* Post navigation */
.post-navigation .nav-links {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--space-4);
}

.nav-previous,
.nav-next {
	padding: var(--space-4);
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	transition: border-color var(--transition-fast);
}

.nav-previous:hover,
.nav-next:hover {
	border-color: var(--color-border-light);
}

.nav-next {
	text-align: right;
}

.nav-dir {
	display: block;
	font-size: var(--text-xs);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--color-text-muted);
	margin-bottom: var(--space-1);
}

.nav-title {
	display: block;
	font-family: var(--font-heading);
	font-size: var(--text-base);
	font-weight: 700;
	color: var(--color-text);
	line-height: 1.3;
}

.nav-previous a,
.nav-next a {
	display: block;
}

.nav-previous a:hover .nav-title,
.nav-next a:hover .nav-title {
	color: var(--color-accent);
}


/* ==========================================================================
   13. ARCHIVE PAGE
   ========================================================================== */

.archive-page,
.search-page {
	padding-bottom: var(--space-20);
}

.archive-header {
	padding: var(--space-10) 0 var(--space-8);
	background: var(--color-surface);
	border-bottom: 1px solid var(--color-border);
	margin-bottom: var(--space-8);
}

.archive-title {
	font-family: var(--font-heading);
	font-size: var(--text-4xl);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.archive-title span { /* From the_archive_title */
	color: var(--color-accent);
}

.archive-description {
	margin-top: var(--space-4);
	font-size: var(--text-base);
	color: var(--color-text-secondary);
	max-width: 600px;
	line-height: 1.6;
}

.search-result-count {
	margin-top: var(--space-3);
	font-size: var(--text-sm);
	color: var(--color-text-muted);
}

.search-form-wrap {
	margin-bottom: var(--space-8);
}

/* WordPress search form */
.search-form {
	display: flex;
	max-width: 500px;
}

.search-field {
	flex: 1;
	padding: var(--space-3) var(--space-4);
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-right: none;
	border-radius: var(--radius) 0 0 var(--radius);
	color: var(--color-text);
	font-family: var(--font-sans);
	font-size: var(--text-base);
}

.search-field:focus {
	outline: none;
	border-color: var(--color-accent);
}

.search-submit {
	padding: var(--space-3) var(--space-5);
	background: var(--color-accent);
	border: 1px solid var(--color-accent);
	border-radius: 0 var(--radius) var(--radius) 0;
	color: var(--color-white);
	font-family: var(--font-sans);
	font-size: var(--text-sm);
	font-weight: 600;
	cursor: pointer;
	transition: background-color var(--transition-fast);
}

.search-submit:hover {
	background: var(--color-accent-hover);
}


/* ==========================================================================
   14. PAGINATION
   ========================================================================== */

.pagination {
	margin-top: var(--space-10);
}

.pagination .page-numbers {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2);
	padding: 0;
}

.pagination .page-numbers li {
	list-style: none;
}

.pagination .page-numbers a,
.pagination .page-numbers span {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 var(--space-3);
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	font-size: var(--text-sm);
	font-weight: 600;
	color: var(--color-text-secondary);
	transition: border-color var(--transition-fast), color var(--transition-fast), background-color var(--transition-fast);
}

.pagination .page-numbers a:hover {
	border-color: var(--color-accent);
	color: var(--color-accent);
}

.pagination .page-numbers .current {
	background: var(--color-accent);
	border-color: var(--color-accent);
	color: var(--color-white);
}


/* ==========================================================================
   15. 404 PAGE
   ========================================================================== */

.error-404-page {
	display: flex;
	align-items: center;
	min-height: calc(80vh - var(--header-height));
}

.error-404-content {
	padding: var(--space-16) 0;
}

.error-404-code {
	font-family: var(--font-heading);
	font-size: 8rem;
	font-weight: 700;
	line-height: 1;
	color: var(--color-border);
	margin-bottom: var(--space-4);
}

.error-404-title {
	font-size: var(--text-3xl);
	margin-bottom: var(--space-4);
}

.error-404-text {
	color: var(--color-text-secondary);
	margin-bottom: var(--space-8);
}

.error-404-actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-4);
	align-items: center;
}


/* ==========================================================================
   16. NO RESULTS
   ========================================================================== */

.no-results {
	padding: var(--space-16) 0;
	text-align: center;
}

.no-results h2 {
	font-size: var(--text-3xl);
	margin-bottom: var(--space-4);
}

.no-results p {
	color: var(--color-text-secondary);
	margin-bottom: var(--space-6);
}


/* ==========================================================================
   17. REVEAL ANIMATIONS (IntersectionObserver)
   ========================================================================== */

.reveal-item {
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 0.45s ease, transform 0.45s ease;
}

.reveal-item.is-visible {
	opacity: 1;
	transform: none;
}

/* Stagger cards in a grid */
.post-grid .reveal-item:nth-child(2) { transition-delay: 60ms; }
.post-grid .reveal-item:nth-child(3) { transition-delay: 120ms; }
.post-grid .reveal-item:nth-child(4) { transition-delay: 180ms; }
.post-grid .reveal-item:nth-child(5) { transition-delay: 240ms; }

/* Full sections fade in */
.reveal-section {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-section.is-visible {
	opacity: 1;
	transform: none;
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
	.reveal-item,
	.reveal-section {
		opacity: 1;
		transform: none;
		transition: none;
	}
}


.section-divider {
	border: none;
	border-top: 1px solid var(--color-border);
	margin: 0 auto;
	max-width: var(--container-max);
	padding: 0 var(--container-pad);
}


/* ==========================================================================
   18. WORDPRESS ADMIN BAR ADJUSTMENT
   ========================================================================== */

.admin-bar .site-header {
	top: 32px;
}

@media screen and (max-width: 782px) {
	.admin-bar .site-header {
		top: 46px;
	}
}


/* ==========================================================================
   20. TABLET BREAKPOINT  (≥768px)
   ========================================================================== */

@media (min-width: 768px) {

	:root {
		--container-pad: 1.5rem;
		--header-height: 64px;
	}

	/* Post grid: 3 columns on tablet */
	.post-grid {
		grid-template-columns: repeat(3, 1fr);
	}

	/* Featured post: image + content side by side on larger screens */
	.featured-title {
		font-size: var(--text-5xl);
	}

	.featured-content {
		padding: var(--space-10) var(--space-8);
	}

	/* Video card wider */
	.video-card {
		flex: 0 0 300px;
		width: 300px;
	}

	/* Single post */
	.single-title {
		font-size: var(--text-5xl);
	}

	/* Footer: 3 columns */
	.footer-top {
		grid-template-columns: 1fr 1fr 1fr;
	}
}


/* ==========================================================================
   20a. PODCAST TYPE ARCHIVE HEADER
   ========================================================================== */

.podcast-type-header-inner {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-6);
	align-items: flex-start;
	max-width: 100%;
}

.podcast-type-logo {
	flex-shrink: 0;
}

.podcast-type-logo-img {
	width: 100px;
	height: 100px;
	object-fit: cover;
	border-radius: var(--radius-lg);
	display: block;
}

.podcast-type-info {
	min-width: 0;
	flex: 1 1 0;
}

.podcast-type-description {
	margin-top: var(--space-3);
	font-size: var(--text-base);
	color: var(--color-text-secondary);
	max-width: min(640px, 100%);
	line-height: 1.7;
	word-break: break-word;
}

.podcast-type-blurb {
	margin-top: var(--space-2);
	font-size: var(--text-sm);
	color: var(--color-text-muted);
	max-width: min(640px, 100%);
	line-height: 1.6;
	font-style: italic;
	word-break: break-word;
}

.podcast-type-url {
	display: inline-block;
	margin-top: var(--space-4);
	max-width: 100%;
	overflow-wrap: break-word;
}


/* ==========================================================================
   20b. PODCAST BLURB
   ========================================================================== */

.podcast-blurb {
	display: flex;
	gap: var(--space-4);
	align-items: flex-start;
	padding: var(--space-6);
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-left: 3px solid var(--color-accent);
	border-radius: var(--radius);
	margin-bottom: var(--space-8);
}

.podcast-blurb-logo {
	flex-shrink: 0;
}

.podcast-blurb-logo .podcast-logo-img {
	width: 64px;
	height: 64px;
	object-fit: cover;
	border-radius: var(--radius);
	display: block;
}

.podcast-blurb-body {
	min-width: 0;
}

.podcast-blurb-label {
	font-size: var(--text-xs);
	color: var(--color-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin-bottom: var(--space-1);
}

.podcast-blurb-name {
	font-family: var(--font-heading);
	font-size: var(--text-xl);
	font-weight: 700;
	color: var(--color-text);
	display: block;
	margin-bottom: var(--space-2);
}

.podcast-blurb-name:hover {
	color: var(--color-accent);
}

.podcast-blurb-text {
	font-size: var(--text-sm);
	color: var(--color-text-secondary);
	line-height: 1.6;
	margin: 0;
}


/* ==========================================================================
   21. DESKTOP BREAKPOINT  (≥1024px)
   ========================================================================== */

@media (min-width: 1024px) {

	:root {
		--container-pad: 2rem;
		--header-height: 68px;
	}

	/* Show desktop nav, hide hamburger */
	.desktop-nav {
		display: block;
	}

	.hamburger {
		display: none;
	}

	/* Show desktop shop link */
	.header-shop-link {
		display: flex;
	}

	/* Post grid: 5 columns on desktop */
	.post-grid {
		grid-template-columns: repeat(5, 1fr);
	}

	/* For the first card in a section, span 2 cols and show a larger image */
	.post-grid .post-card:first-child {
		grid-column: span 2;
		grid-row: span 1;
	}

	/* Video card even wider on desktop */
	.video-card {
		flex: 0 0 340px;
		width: 340px;
	}

	/* Featured post: true overlay layout on wide screens (thumbnail required) */
	.section-featured {
		overflow: hidden;
	}

	.featured-has-thumbnail {
		position: relative;
	}

	.featured-has-thumbnail .featured-image {
		aspect-ratio: 21 / 9;
	}

	.featured-has-thumbnail .featured-content {
		position: absolute;
		bottom: 0;
		left: 0;
		right: 0;
		padding: var(--space-12) var(--space-10);
		background: linear-gradient(
			to top,
			rgba(0,0,0,0.9) 0%,
			rgba(0,0,0,0.5) 60%,
			transparent 100%
		);
		max-width: none;
	}

	.featured-has-thumbnail .featured-content .featured-title,
	.featured-has-thumbnail .featured-content .featured-excerpt,
	.featured-has-thumbnail .featured-content .featured-meta {
		max-width: 800px;
	}

	/* No thumbnail: content in a padded container */
	.featured-post:not(.featured-has-thumbnail) .featured-content {
		padding: var(--space-12) var(--space-10);
	}

	/* Footer: 3 columns on wide desktop */
	.footer-top {
		grid-template-columns: 2fr 1fr 1fr;
	}

	/* Bigger section title */
	.section-title {
		font-size: var(--text-4xl);
	}
}


/* ==========================================================================
   22. LARGE DESKTOP  (≥1280px)
   ========================================================================== */

@media (min-width: 1280px) {
	:root {
		--container-pad: 2rem;
	}

	.featured-title {
		font-size: 3.5rem;
	}

	.featured-has-thumbnail .featured-content {
		padding: var(--space-16) var(--space-12);
	}

	.featured-post:not(.featured-has-thumbnail) .featured-content {
		padding: var(--space-16) var(--space-12);
	}
}
