/*
Theme Name: Universe of Vivaan
Theme URI: https://universeofvivaan.in
Author: Vivaan & family
Author URI: https://universeofvivaan.in
Description: A playful, colorful blog theme for sharing a young creator's stories, photos, videos and podcasts. Built around bright "claymorphism" cards, content-type badges and easy social sharing. Galaxy Explorer palette.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: universe-of-vivaan
Tags: blog, one-column, two-columns, custom-logo, featured-images, post-formats, theme-options, translation-ready
*/

/* ==========================================================================
   1. DESIGN TOKENS — "Galaxy Explorer" palette
   Content-type colors are semantic: story / photo / video / podcast.
   ========================================================================== */
:root {
	/* Content-type colors */
	--color-story: #4F46E5;          /* Cosmic indigo  — Stories  */
	--color-story-light: #E0E7FF;
	--color-story-text: #4338CA;
	--color-photo: #DB2777;          /* Nebula pink    — Photos   */
	--color-photo-light: #FCE7F3;
	--color-photo-text: #BE185D;
	--color-video: #EA580C;          /* Rocket orange  — Videos   */
	--color-video-light: #FFEDD5;
	--color-video-text: #9A3412;
	--color-podcast: #0D9488;        /* Comet teal     — Podcast  */
	--color-podcast-light: #CCFBF1;
	--color-podcast-text: #0F766E;
	--color-green: #16A34A;

	/* Surfaces & text */
	--color-bg: #F5F4FF;             /* Soft lavender page */
	--color-surface: #FFFFFF;
	--color-foreground: #1E1B4B;     /* Deep-space indigo ink */
	--color-muted: #56537A;
	--color-border: #E3E0F5;
	--color-destructive: #DC2626;

	/* Aliases used across components */
	--color-primary: var(--color-story);
	--color-accent: var(--color-photo);
	--color-on-primary: #FFFFFF;

	/* Typography */
	--font-heading: 'Baloo 2', system-ui, sans-serif;
	--font-body: 'Nunito', system-ui, sans-serif;
	--text-xs: 0.8125rem;
	--text-sm: 0.9375rem;
	--text-base: 1rem;
	--text-lg: 1.125rem;
	--text-xl: 1.375rem;
	--text-2xl: 1.75rem;
	--text-3xl: 2.25rem;
	--text-4xl: 3rem;

	/* Spacing (4px / 8px rhythm) */
	--space-1: 4px;
	--space-2: 8px;
	--space-3: 12px;
	--space-4: 16px;
	--space-5: 24px;
	--space-6: 32px;
	--space-7: 48px;
	--space-8: 64px;

	/* Radius */
	--radius-sm: 12px;
	--radius-md: 20px;
	--radius-lg: 28px;
	--radius-full: 999px;

	/* Shadows (soft clay) */
	--shadow-card: 0 8px 24px rgba(30, 27, 75, 0.08);
	--shadow-card-hover: 0 14px 32px rgba(30, 27, 75, 0.14);
	--shadow-pop: 0 4px 0 rgba(30, 27, 75, 0.12);

	/* Motion */
	--ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
	--duration-fast: 150ms;
	--duration-base: 250ms;

	/* Layout */
	--container-width: 1180px;
	--header-height: 76px;
}

[data-theme="dark"] {
	--color-bg: #14112B;
	--color-surface: #1E1A3C;
	--color-foreground: #F2F0FF;
	--color-muted: #B6B1D8;
	--color-border: #332D58;
	--color-story-light: #28245C;
	--color-story-text: #A5B4FC;
	--color-photo-light: #3F1A31;
	--color-photo-text: #F9A8D4;
	--color-video-light: #3C2010;
	--color-video-text: #FDBA74;
	--color-podcast-light: #0F2E2B;
	--color-podcast-text: #5EEAD4;
	--shadow-card: 0 8px 24px rgba(0, 0, 0, 0.35);
	--shadow-card-hover: 0 14px 32px rgba(0, 0, 0, 0.45);
	--shadow-pop: 0 4px 0 rgba(0, 0, 0, 0.35);
}

/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

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

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: var(--text-base);
	line-height: 1.65;
	color: var(--color-foreground);
	background: var(--color-bg);
	-webkit-font-smoothing: antialiased;
	transition: background-color var(--duration-base) ease, color var(--duration-base) ease;
}

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

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-heading);
	font-weight: 700;
	line-height: 1.25;
	margin: 0 0 var(--space-3);
	color: var(--color-foreground);
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }

p { margin: 0 0 var(--space-4); }

a {
	color: var(--color-story);
	text-decoration: none;
	transition: color var(--duration-fast) ease;
}
a:hover { color: var(--color-photo); text-decoration: underline; }

ul, ol { padding-left: 1.25em; }

button { font-family: inherit; }

/* Focus visibility (WCAG) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
	outline: 3px solid var(--color-story);
	outline-offset: 2px;
	border-radius: var(--radius-sm);
}

/* Skip link */
.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--color-foreground);
	color: #fff;
	padding: var(--space-3) var(--space-5);
	border-radius: 0 0 var(--radius-sm) 0;
	z-index: 1000;
	font-weight: 700;
}
.skip-link:focus {
	left: 0;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

/* ==========================================================================
   3. LAYOUT
   ========================================================================== */
.container {
	width: 100%;
	max-width: var(--container-width);
	margin: 0 auto;
	padding: 0 var(--space-5);
}

.site {
	display: flex;
	flex-direction: column;
	min-height: 100dvh;
}

.site-main {
	flex: 1;
	padding-block: var(--space-7);
}

@media (max-width: 768px) {
	.container { padding: 0 var(--space-4); }
	.site-main { padding-block: var(--space-6); }
}

/* ==========================================================================
   4. HEADER & NAVIGATION
   ========================================================================== */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--color-surface);
	border-bottom: 3px solid var(--color-border);
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-4);
	min-height: var(--header-height);
}

.site-branding {
	display: flex;
	align-items: center;
	gap: var(--space-3);
	min-width: 0;
}

.site-branding img {
	border-radius: var(--radius-md);
}

.site-logo-mark {
	width: 44px;
	height: 44px;
	border-radius: var(--radius-md);
	background: linear-gradient(135deg, var(--color-story), var(--color-photo));
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	flex-shrink: 0;
	box-shadow: var(--shadow-pop);
}
.site-logo-mark svg { width: 24px; height: 24px; }

.site-title {
	font-family: var(--font-heading);
	font-size: var(--text-xl);
	font-weight: 800;
	margin: 0;
	color: var(--color-foreground);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.site-title a { color: inherit; text-decoration: none; }
.site-description {
	display: block;
	font-size: var(--text-xs);
	color: var(--color-muted);
	font-weight: 600;
}

.primary-navigation {
	display: flex;
	align-items: center;
	gap: var(--space-5);
}

.primary-menu {
	display: flex;
	align-items: center;
	gap: var(--space-2);
	list-style: none;
	margin: 0;
	padding: 0;
}

.primary-menu a {
	display: inline-flex;
	align-items: center;
	padding: var(--space-2) var(--space-4);
	border-radius: var(--radius-full);
	font-family: var(--font-heading);
	font-weight: 600;
	color: var(--color-foreground);
	text-decoration: none;
	transition: background-color var(--duration-fast) ease, color var(--duration-fast) ease, transform var(--duration-fast) var(--ease-bounce);
}
.primary-menu a:hover,
.primary-menu .current-menu-item > a {
	background: var(--color-story-light);
	color: var(--color-story-text);
	transform: translateY(-2px);
}

.header-actions {
	display: flex;
	align-items: center;
	gap: var(--space-2);
}

.icon-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: var(--radius-full);
	border: none;
	background: var(--color-bg);
	color: var(--color-foreground);
	cursor: pointer;
	transition: transform var(--duration-fast) var(--ease-bounce), background-color var(--duration-fast) ease;
}
.icon-button:hover { background: var(--color-story-light); color: var(--color-story-text); transform: scale(1.06); }
.icon-button svg { width: 22px; height: 22px; }

.menu-toggle {
	display: none;
}

@media (max-width: 900px) {
	.menu-toggle { display: inline-flex; }
	.primary-navigation {
		position: absolute;
		inset-inline: 0;
		top: 100%;
		flex-direction: column;
		align-items: stretch;
		background: var(--color-surface);
		border-bottom: 3px solid var(--color-border);
		padding: var(--space-4) var(--space-5) var(--space-5);
		gap: var(--space-4);
		display: none;
	}
	.primary-navigation.is-open { display: flex; }
	.primary-menu {
		flex-direction: column;
		align-items: stretch;
		gap: var(--space-1);
	}
	.primary-menu a { width: 100%; }
}

/* ==========================================================================
   5. BUTTONS
   ========================================================================== */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-2);
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: var(--text-base);
	padding: var(--space-3) var(--space-6);
	border-radius: var(--radius-full);
	border: none;
	cursor: pointer;
	text-decoration: none;
	transition: transform var(--duration-fast) var(--ease-bounce), box-shadow var(--duration-fast) ease, background-color var(--duration-fast) ease;
	min-height: 48px;
}
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }

.btn--primary {
	background: var(--color-story);
	color: #fff;
	box-shadow: var(--shadow-pop);
}
.btn--primary:hover {
	background: #4338CA;
	color: #fff;
	text-decoration: none;
	transform: translateY(-2px);
	box-shadow: 0 6px 0 rgba(30,27,75,0.12);
}
.btn--primary:active { transform: translateY(1px); box-shadow: 0 2px 0 rgba(30,27,75,0.12); }

.btn--ghost {
	background: var(--color-surface);
	color: var(--color-foreground);
	border: 2px solid var(--color-border);
}
.btn--ghost:hover { color: var(--color-story); border-color: var(--color-story); text-decoration: none; transform: translateY(-2px); }

/* ==========================================================================
   6. BADGES (content-type tags)
   ========================================================================== */
.badge {
	display: inline-flex;
	align-items: center;
	gap: var(--space-1);
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: var(--text-xs);
	letter-spacing: 0.02em;
	text-transform: uppercase;
	padding: var(--space-1) var(--space-3);
	border-radius: var(--radius-full);
}
.badge svg { width: 14px; height: 14px; }

.badge--story   { background: var(--color-story-light);   color: var(--color-story-text); }
.badge--photo   { background: var(--color-photo-light);   color: var(--color-photo-text); }
.badge--video   { background: var(--color-video-light);   color: var(--color-video-text); }
.badge--podcast { background: var(--color-podcast-light); color: var(--color-podcast-text); }

/* ==========================================================================
   7. FILTER PILLS
   ========================================================================== */
.filter-pills {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2);
	margin-bottom: var(--space-6);
}
.filter-pill {
	display: inline-flex;
	align-items: center;
	gap: var(--space-2);
	padding: var(--space-2) var(--space-5);
	border-radius: var(--radius-full);
	background: var(--color-surface);
	border: 2px solid var(--color-border);
	font-family: var(--font-heading);
	font-weight: 700;
	color: var(--color-foreground);
	text-decoration: none;
	transition: all var(--duration-fast) var(--ease-bounce);
}
.filter-pill svg { width: 18px; height: 18px; }
.filter-pill:hover,
.filter-pill.is-active {
	background: var(--color-foreground);
	border-color: var(--color-foreground);
	color: var(--color-bg);
	text-decoration: none;
	transform: translateY(-2px);
}

/* ==========================================================================
   8. HERO
   ========================================================================== */
.hero {
	position: relative;
	margin-bottom: var(--space-8);
}
.hero-card {
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: var(--space-6);
	align-items: center;
	background: var(--color-surface);
	border-radius: var(--radius-lg);
	padding: var(--space-6);
	box-shadow: var(--shadow-card);
	overflow: hidden;
}
.hero-media {
	border-radius: var(--radius-md);
	overflow: hidden;
	aspect-ratio: 4 / 3;
	background: var(--color-story-light);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-eyebrow { margin-bottom: var(--space-3); }
.hero-content h1,
.hero-content .hero-title {
	font-size: clamp(2rem, 4vw, var(--text-4xl));
	margin-bottom: var(--space-3);
}
.hero-content p { color: var(--color-muted); font-size: var(--text-lg); }
.hero-meta {
	display: flex;
	align-items: center;
	gap: var(--space-4);
	margin: var(--space-4) 0;
	color: var(--color-muted);
	font-size: var(--text-sm);
	font-weight: 600;
	flex-wrap: wrap;
}

@media (max-width: 860px) {
	.hero-card { grid-template-columns: 1fr; padding: var(--space-5); }
	.hero-media { aspect-ratio: 16/10; }
}

/* ==========================================================================
   9. CARD GRID
   ========================================================================== */
.section-heading {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--space-4);
	margin-bottom: var(--space-5);
	flex-wrap: wrap;
}
.section-heading h2 { margin: 0; }
.section-heading .see-all {
	font-family: var(--font-heading);
	font-weight: 700;
	white-space: nowrap;
}

.card-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--space-5);
	margin: 0 0 var(--space-8);
	list-style: none;
	padding: 0;
}
@media (max-width: 1024px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .card-grid { grid-template-columns: 1fr; } }

.card {
	display: flex;
	flex-direction: column;
	background: var(--color-surface);
	border-radius: var(--radius-lg);
	overflow: hidden;
	box-shadow: var(--shadow-card);
	transition: transform var(--duration-base) var(--ease-bounce), box-shadow var(--duration-base) ease;
	height: 100%;
}
.card:hover {
	transform: translateY(-6px) rotate(-0.5deg);
	box-shadow: var(--shadow-card-hover);
}
.card-media {
	display: block;
	position: relative;
	aspect-ratio: 4 / 3;
	background: var(--color-story-light);
	overflow: hidden;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--duration-base) ease; }
.card:hover .card-media img { transform: scale(1.05); }
.card-media .badge {
	position: absolute;
	top: var(--space-3);
	left: var(--space-3);
	background: var(--color-surface);
	box-shadow: var(--shadow-pop);
}
.card-media .play-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(30,27,75,0.18);
	color: #fff;
}
.card-media .play-overlay svg { width: 56px; height: 56px; }

.card-body {
	padding: var(--space-5);
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
	flex: 1;
}
.card-title {
	font-size: var(--text-lg);
	margin: 0;
}
.card-title a {
	color: var(--color-foreground);
	text-decoration: none;
}
.card-title a:hover { color: var(--color-story); }
.card-excerpt {
	color: var(--color-muted);
	font-size: var(--text-sm);
	margin: 0;
	flex: 1;
}
.card-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: var(--text-xs);
	color: var(--color-muted);
	font-weight: 700;
	margin-top: var(--space-2);
}

/* ==========================================================================
   10. SHARE BUTTONS
   ========================================================================== */
.share-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-2);
	padding: var(--space-4);
	background: var(--color-bg);
	border: 2px dashed var(--color-border);
	border-radius: var(--radius-md);
	margin: var(--space-6) 0;
}
.share-bar__label {
	font-family: var(--font-heading);
	font-weight: 700;
	margin-right: var(--space-2);
}
.share-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: var(--radius-full);
	background: var(--color-surface);
	color: var(--color-foreground);
	box-shadow: var(--shadow-card);
	transition: transform var(--duration-fast) var(--ease-bounce), color var(--duration-fast) ease;
	border: none;
	cursor: pointer;
}
.share-link:hover { transform: translateY(-3px) scale(1.05); text-decoration: none; }
.share-link svg { width: 20px; height: 20px; }
.share-link--whatsapp:hover { color: #25D366; }
.share-link--facebook:hover { color: #1877F2; }
.share-link--x:hover { color: var(--color-foreground); }
.share-link--email:hover { color: var(--color-video); }
.share-link--copy:hover { color: var(--color-podcast); }
.share-link--native { background: var(--color-foreground); color: #fff; }

.copy-toast {
	font-size: var(--text-xs);
	font-weight: 700;
	color: var(--color-green);
	opacity: 0;
	transition: opacity var(--duration-base) ease;
}
.copy-toast.is-visible { opacity: 1; }

/* card-level mini share/action row */
.card-actions {
	display: flex;
	align-items: center;
	gap: var(--space-2);
	margin-top: var(--space-2);
}
.card-actions .share-link { width: 36px; height: 36px; box-shadow: none; border: 2px solid var(--color-border); }
.card-actions .share-link svg { width: 16px; height: 16px; }

/* ==========================================================================
   11. SINGLE POST CONTENT
   ========================================================================== */
.post-header {
	max-width: 760px;
	margin: 0 auto var(--space-6);
	text-align: center;
}
.post-header .badge { margin-bottom: var(--space-3); }
.post-header h1 { font-size: clamp(2rem, 5vw, var(--text-4xl)); }
.post-meta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-4);
	flex-wrap: wrap;
	color: var(--color-muted);
	font-weight: 700;
	font-size: var(--text-sm);
	margin-top: var(--space-3);
}
.post-meta .author {
	display: inline-flex;
	align-items: center;
	gap: var(--space-2);
}
.post-meta .author img {
	width: 32px; height: 32px; border-radius: var(--radius-full);
}

.post-featured-media {
	max-width: 920px;
	margin: 0 auto var(--space-6);
	border-radius: var(--radius-lg);
	overflow: hidden;
	box-shadow: var(--shadow-card);
}
.post-featured-media img { width: 100%; }

.post-content {
	max-width: 720px;
	margin: 0 auto;
	font-size: var(--text-lg);
}
.post-content h2 { margin-top: var(--space-7); }
.post-content h3 { margin-top: var(--space-6); }
.post-content img,
.post-content video,
.post-content iframe {
	border-radius: var(--radius-md);
	margin: var(--space-5) 0;
}
.post-content blockquote {
	margin: var(--space-6) 0;
	padding: var(--space-4) var(--space-5);
	border-left: 6px solid var(--color-photo);
	background: var(--color-photo-light);
	border-radius: 0 var(--radius-md) var(--radius-md) 0;
	font-style: italic;
}
.post-content figcaption {
	font-size: var(--text-sm);
	color: var(--color-muted);
	text-align: center;
	margin-top: var(--space-2);
}
.post-content a { text-decoration: underline; }

.post-tags {
	max-width: 720px;
	margin: var(--space-6) auto 0;
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2);
}
.post-tags a {
	display: inline-flex;
	padding: var(--space-1) var(--space-4);
	border-radius: var(--radius-full);
	background: var(--color-story-light);
	color: var(--color-story-text);
	font-weight: 700;
	font-size: var(--text-sm);
	text-decoration: none;
}
.post-tags a:hover { background: var(--color-story); color: #fff; }

.share-bar.share-bar--single { max-width: 720px; margin-inline: auto; }

/* ==========================================================================
   12. AUTHOR / ABOUT BOX
   ========================================================================== */
.about-card {
	max-width: 720px;
	margin: var(--space-7) auto 0;
	display: flex;
	gap: var(--space-5);
	align-items: center;
	background: var(--color-video-light);
	border-radius: var(--radius-lg);
	padding: var(--space-5);
}
.about-card img {
	width: 88px; height: 88px; border-radius: var(--radius-full); object-fit: cover; flex-shrink: 0;
}
.about-card h3 { margin-bottom: var(--space-1); }
.about-card p { margin: 0; color: var(--color-muted); }

@media (max-width: 600px) {
	.about-card { flex-direction: column; text-align: center; }
}

/* ==========================================================================
   13. GALLERY (photo posts)
   ========================================================================== */
.post-gallery {
	max-width: 920px;
	margin: 0 auto var(--space-6);
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--space-3);
}
.post-gallery figure {
	margin: 0;
	border-radius: var(--radius-md);
	overflow: hidden;
	box-shadow: var(--shadow-card);
	aspect-ratio: 1;
}
.post-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--duration-base) ease; }
.post-gallery a:hover img { transform: scale(1.06); }
@media (max-width: 700px) { .post-gallery { grid-template-columns: repeat(2, 1fr); } }

/* ==========================================================================
   14. AUDIO / PODCAST PLAYER
   ========================================================================== */
.podcast-player {
	max-width: 720px;
	margin: 0 auto var(--space-6);
	background: var(--color-podcast-light);
	border-radius: var(--radius-lg);
	padding: var(--space-5);
	display: flex;
	gap: var(--space-5);
	align-items: center;
}
.podcast-player__art {
	width: 120px; height: 120px;
	border-radius: var(--radius-md);
	object-fit: cover;
	box-shadow: var(--shadow-pop);
	flex-shrink: 0;
}
.podcast-player__body { flex: 1; min-width: 0; }
.podcast-player__body audio { width: 100%; margin-top: var(--space-3); }
.podcast-player__eyebrow {
	font-family: var(--font-heading);
	font-weight: 700;
	color: var(--color-podcast-text);
	text-transform: uppercase;
	font-size: var(--text-xs);
	letter-spacing: 0.06em;
}
@media (max-width: 600px) {
	.podcast-player { flex-direction: column; text-align: center; }
}

/* ==========================================================================
   15. VIDEO EMBED
   ========================================================================== */
.video-embed {
	max-width: 920px;
	margin: 0 auto var(--space-6);
	border-radius: var(--radius-lg);
	overflow: hidden;
	box-shadow: var(--shadow-card);
}
.video-embed .wp-video,
.video-embed iframe,
.video-embed video {
	width: 100%;
	aspect-ratio: 16/9;
	height: auto;
}

/* ==========================================================================
   16. NEWSLETTER / SUBSCRIBE
   ========================================================================== */
.subscribe-card {
	background: linear-gradient(135deg, var(--color-story), var(--color-photo));
	color: #fff;
	border-radius: var(--radius-lg);
	padding: var(--space-7);
	text-align: center;
	margin-bottom: var(--space-8);
}
.subscribe-card h2,
.subscribe-card p { color: #fff; }
.subscribe-card p { opacity: 0.9; max-width: 520px; margin-inline: auto; }
.subscribe-form {
	display: flex;
	gap: var(--space-2);
	max-width: 420px;
	margin: var(--space-5) auto 0;
}
.subscribe-form input[type="email"] {
	flex: 1;
	padding: var(--space-3) var(--space-5);
	border-radius: var(--radius-full);
	border: none;
	font-size: var(--text-base);
	font-family: var(--font-body);
	min-height: 48px;
}
.subscribe-form .btn--primary { background: var(--color-foreground); }
@media (max-width: 540px) {
	.subscribe-form { flex-direction: column; }
}

/* ==========================================================================
   17. ABOUT / INTRO SECTION (homepage)
   ========================================================================== */
.intro-section {
	display: grid;
	grid-template-columns: 1fr 1.3fr;
	gap: var(--space-6);
	align-items: center;
	background: var(--color-surface);
	border-radius: var(--radius-lg);
	padding: var(--space-6);
	box-shadow: var(--shadow-card);
	margin-bottom: var(--space-8);
}
.intro-section img {
	border-radius: var(--radius-md);
	aspect-ratio: 1;
	object-fit: cover;
	object-position: 50% 35%;
	width: 100%;
	display: block;
}
.intro-portrait-frame {
	padding: 6px;
	border-radius: calc(var(--radius-md) + 6px);
	background: linear-gradient(135deg, var(--color-story), var(--color-photo));
	box-shadow: var(--shadow-card);
}
.intro-section .badge { margin-bottom: var(--space-3); }
@media (max-width: 800px) {
	.intro-section { grid-template-columns: 1fr; text-align: center; }
	.intro-portrait-frame { max-width: 280px; margin-inline: auto; }
}

/* ==========================================================================
   18. PAGINATION
   ========================================================================== */
.pagination {
	display: flex;
	justify-content: center;
	gap: var(--space-2);
	margin-top: var(--space-6);
	flex-wrap: wrap;
}
.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 var(--space-3);
	border-radius: var(--radius-full);
	background: var(--color-surface);
	border: 2px solid var(--color-border);
	font-weight: 700;
	color: var(--color-foreground);
	text-decoration: none;
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover {
	background: var(--color-story);
	border-color: var(--color-story);
	color: #fff;
}

/* ==========================================================================
   19. ARCHIVE / SEARCH HEADER
   ========================================================================== */
.archive-header {
	text-align: center;
	max-width: 700px;
	margin: 0 auto var(--space-7);
}
.archive-header .badge { margin-bottom: var(--space-3); }
.archive-header p { color: var(--color-muted); font-size: var(--text-lg); }

.search-form {
	display: flex;
	gap: var(--space-2);
	max-width: 480px;
	margin: var(--space-5) auto 0;
}
.search-form input[type="search"] {
	flex: 1;
	padding: var(--space-3) var(--space-5);
	border-radius: var(--radius-full);
	border: 2px solid var(--color-border);
	font-size: var(--text-base);
	font-family: var(--font-body);
	background: var(--color-surface);
	color: var(--color-foreground);
	min-height: 48px;
}

/* ==========================================================================
   20. EMPTY / 404 STATE
   ========================================================================== */
.empty-state {
	text-align: center;
	max-width: 560px;
	margin: var(--space-7) auto;
}
.empty-state .empty-illustration {
	width: 160px; height: 160px;
	margin: 0 auto var(--space-5);
	border-radius: var(--radius-full);
	background: linear-gradient(135deg, var(--color-video-light), var(--color-photo-light));
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--color-photo);
}
.empty-state .empty-illustration svg { width: 80px; height: 80px; }

/* ==========================================================================
   21. PAGE / GENERIC CONTENT
   ========================================================================== */
.page-content {
	max-width: 760px;
	margin: 0 auto;
	font-size: var(--text-lg);
}
.page-content img { border-radius: var(--radius-md); }

/* ==========================================================================
   22. FOOTER
   ========================================================================== */
.site-footer {
	background: var(--color-foreground);
	color: var(--color-bg);
	padding-block: var(--space-8) var(--space-6);
	margin-top: var(--space-7);
}
[data-theme="dark"] .site-footer {
	background: #0E0C20;
	color: var(--color-foreground);
}
.footer-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr;
	gap: var(--space-6);
	margin-bottom: var(--space-6);
}
.footer-brand {
	display: flex;
	align-items: center;
	gap: var(--space-3);
	margin-bottom: var(--space-3);
}
.site-footer p { color: rgba(245,243,255,0.75); }
.footer-widget-title {
	font-size: var(--text-base);
	color: #fff;
	margin-bottom: var(--space-3);
}
.footer-widget ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-2); }
.footer-widget a { color: rgba(245,243,255,0.75); }
.footer-widget a:hover { color: #fff; }

.social-links {
	display: flex;
	gap: var(--space-2);
	margin-top: var(--space-4);
}
.social-links a {
	width: 44px; height: 44px;
	border-radius: var(--radius-full);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: rgba(255,255,255,0.08);
	color: #fff;
}
.social-links a:hover { background: var(--color-photo); text-decoration: none; }
.social-links svg { width: 20px; height: 20px; }

.footer-bottom {
	border-top: 1px solid rgba(255,255,255,0.12);
	padding-top: var(--space-5);
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: var(--space-3);
	font-size: var(--text-sm);
	color: rgba(245,243,255,0.6);
}
.footer-bottom a { color: rgba(245,243,255,0.8); }

@media (max-width: 800px) {
	.footer-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   23. WORDPRESS CORE ALIGNMENT HELPERS
   ========================================================================== */
.alignleft { float: left; margin: var(--space-2) var(--space-5) var(--space-2) 0; }
.alignright { float: right; margin: var(--space-2) 0 var(--space-2) var(--space-5); }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: var(--text-sm); color: var(--color-muted); text-align: center; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
.gallery-item { margin: 0; }
.sticky { outline: 3px dashed var(--color-video); outline-offset: 4px; border-radius: var(--radius-lg); }
