/*
Theme Name: TV Show Explain
Theme URI: https://tvshowexplain.com/
Author: King Solomon Production
Description: A custom theme built for TV Show Explain — trailer breakdowns and "ending explained" articles for readers who just want the story, fast. Every article reads like a ticket stub: watch the trailer, get your ticket, walk out understanding the plot.
Version: 1.8.0
Requires at least: 6.5
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tvshowexplain
*/

/* ==========================================================================
   0. DESIGN TOKENS
   ========================================================================== */

:root {
	/* Color */
	--ink:        #12141c;   /* primary dark — theatre navy */
	--ink-soft:   #565b6e;   /* muted secondary text on paper */
	--ink-2:      #1b1e29;   /* slightly lifted panel on dark */
	--paper:      #f7f4ec;   /* ticket / card paper */
	--paper-dim:  #ece7d9;   /* paper shadow / recessed */
	--marquee:    #e8a33d;   /* marquee gold — primary accent */
	--marquee-dim:#a86f22;
	--decoded:    #4fbfae;   /* "answered" teal — links, focus, badges */
	--decoded-dim:#357d72;
	--stamp:      #c2453a;   /* rubber-stamp crimson */
	--line:       rgba(18,20,28,0.12);
	--line-on-dark: rgba(247,244,236,0.16);

	/* Type */
	--font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
	--font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

	/* Rhythm */
	--radius: 3px;
	--container: 1180px;
	--gutter: clamp(1.25rem, 4vw, 2.5rem);
}

/* ==========================================================================
   1. 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.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--decoded-dim); text-decoration-color: transparent; text-underline-offset: 3px; transition: text-decoration-color .15s ease, color .15s ease; }
a:hover { text-decoration: underline; text-decoration-color: currentColor; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
	outline: 2px solid var(--decoded);
	outline-offset: 2px;
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; color: var(--ink); margin: 0 0 .5em; letter-spacing: -0.01em; }
p { margin: 0 0 1.2em; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.3em; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow {
	font-family: var(--font-mono);
	font-size: 0.72rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--marquee-dim);
}

/* ==========================================================================
   2. SITE HEADER — marquee bar
   ========================================================================== */

.site-header {
	background: var(--ink);
	color: var(--paper);
	position: relative;
	overflow: hidden;
}
.site-header::before {
	/* string of marquee bulbs along the bottom edge */
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: 0;
	height: 3px;
	background-image: radial-gradient(circle, var(--marquee) 1.5px, transparent 1.6px);
	background-size: 18px 3px;
	background-repeat: repeat-x;
	opacity: 0.85;
	animation: bulb-flicker 3.2s steps(2) infinite;
}
@keyframes bulb-flicker { 50% { opacity: 0.35; } }

.header-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: nowrap;
	gap: .6rem;
	padding: .8rem var(--gutter);
}
@media (min-width: 640px) { .header-row { gap: 1.5rem; padding: 1.1rem var(--gutter); } }

.site-brand { display: flex; align-items: baseline; gap: .5rem; text-decoration: none; min-width: 0; }
.site-brand:hover { text-decoration: none; }
.site-brand .mark {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: clamp(1.05rem, 5.2vw, 1.5rem);
	color: var(--paper);
	letter-spacing: -0.01em;
	white-space: nowrap;
}
.site-brand .mark em {
	font-style: normal;
	color: var(--marquee);
}
.site-brand .tagline {
	font-family: var(--font-mono);
	font-size: 0.68rem;
	color: var(--decoded);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	display: none;
}
@media (min-width: 640px) { .site-brand .tagline { display: inline; } }

.primary-nav { display: none; align-items: center; gap: 1.75rem; }
.primary-nav ul { list-style: none; display: flex; gap: 1.75rem; margin: 0; padding: 0; }
@media (min-width: 860px) { .primary-nav { display: flex; } }
.primary-nav a {
	color: var(--paper);
	font-family: var(--font-mono);
	font-size: 0.78rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	opacity: 0.82;
}
.primary-nav a:hover { opacity: 1; color: var(--marquee); text-decoration: none; }

.nav-toggle {
	display: inline-flex;
	flex: none;
	align-items: center;
	gap: .4rem;
	background: none;
	border: 1px solid var(--line-on-dark);
	color: var(--paper);
	font-family: var(--font-mono);
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	padding: .45rem .6rem;
	border-radius: var(--radius);
	cursor: pointer;
}
.nav-toggle-label { display: none; }
@media (min-width: 400px) { .nav-toggle-label { display: inline; } }
@media (min-width: 860px) { .nav-toggle { display: none; } }


.search-toggle {
	background: none;
	border: 1px solid var(--line-on-dark);
	color: var(--paper);
	font-size: 0.9rem;
	line-height: 1;
	flex: none;
	padding: .45rem .6rem;
	border-radius: var(--radius);
	cursor: pointer;
}
@media (min-width: 860px) { .search-toggle { display: none; } }

.header-search-inline { display: none; }
@media (min-width: 860px) {
	.header-search-inline { display: block; width: 220px; }
	.header-search-inline .search-form { display: flex; }
	.header-search-inline input[type="search"] {
		width: 100%;
		padding: .5rem .7rem;
		border: 1px solid var(--line-on-dark);
		border-radius: var(--radius) 0 0 var(--radius);
		background: var(--ink-2);
		color: var(--paper);
		font-family: var(--font-body);
		font-size: .85rem;
	}
	.header-search-inline input[type="search"]::placeholder { color: rgba(247,244,236,0.5); }
	.header-search-inline button {
		background: var(--marquee);
		color: var(--ink);
		border: none;
		padding: .5rem .7rem;
		border-radius: 0 var(--radius) var(--radius) 0;
		cursor: pointer;
		font-size: .8rem;
	}
}

.site-search {
	display: none;
	background: var(--ink-2);
	border-top: 1px solid var(--line-on-dark);
	padding: 1.1rem 0;
}
.site-search.is-open { display: block; }
.site-search .search-form { display: flex; gap: .5rem; }
.site-search input[type="search"] {
	flex: 1;
	padding: .65rem .9rem;
	border: 1px solid var(--line-on-dark);
	border-radius: var(--radius);
	background: var(--ink);
	color: var(--paper);
	font-family: var(--font-body);
}
.site-search input[type="search"]::placeholder { color: rgba(247,244,236,0.5); }
.site-search button {
	background: var(--marquee);
	color: var(--ink);
	border: none;
	padding: .65rem 1.1rem;
	border-radius: var(--radius);
	font-family: var(--font-mono);
	text-transform: uppercase;
	font-size: .78rem;
	cursor: pointer;
}

.mobile-nav {
	display: none;
	background: var(--ink-2);
	border-top: 1px solid var(--line-on-dark);
}
.mobile-nav.is-open { display: block; }
.mobile-nav ul { list-style: none; margin: 0; padding: .5rem var(--gutter) 1rem; }
.mobile-nav a {
	display: block;
	padding: .65rem 0;
	color: var(--paper);
	font-family: var(--font-mono);
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	text-decoration: none;
	border-bottom: 1px solid var(--line-on-dark);
}

/* ==========================================================================
   3. HERO — "Now Showing" marquee
   ========================================================================== */

.hero {
	background: var(--ink);
	color: var(--paper);
	padding: clamp(1.5rem, 6vw, 5rem) var(--gutter) clamp(1.8rem, 6vw, 5.5rem);
	position: relative;
}
.hero-grid {
	display: flex;
	flex-direction: column-reverse;
	gap: 1.2rem;
}
@media (min-width: 780px) {
	.hero-grid { flex-direction: row; align-items: center; gap: 2.5rem; }
	.hero-copy { flex: 1.3; }
}
.hero-poster {
	display: block;
	border-radius: var(--radius);
	overflow: hidden;
	aspect-ratio: 16 / 9;
	box-shadow: 0 12px 28px -16px rgba(0,0,0,0.6);
}
@media (min-width: 780px) { .hero-poster { flex: 1; aspect-ratio: 4 / 3; } }
.hero-poster img { width: 100%; height: 100%; object-fit: cover; }
.hero .eyebrow { color: var(--decoded); margin-bottom: .6rem; display: inline-block; }
.hero .eyebrow::before { content: "● "; color: var(--stamp); }
.hero h1 {
	color: var(--paper);
	font-size: clamp(1.6rem, 6.5vw, 4rem);
	line-height: 1.08;
	max-width: 18ch;
}
.hero h1 a { color: inherit; text-decoration: none; }
.hero h1 em { font-style: italic; color: var(--marquee); }
.hero .lede {
	font-family: var(--font-body);
	font-size: 0.98rem;
	color: rgba(247,244,236,0.78);
	max-width: 46ch;
	margin-top: .7rem;
}
.lede-clamp {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
@media (min-width: 640px) {
	.hero .lede { font-size: 1.1rem; }
	.lede-clamp { -webkit-line-clamp: unset; overflow: visible; }
}
.hero .hero-cta {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	margin-top: 1rem;
	color: var(--marquee);
	font-family: var(--font-mono);
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	text-decoration: none;
}
.hero .hero-cta:hover { text-decoration: underline; }

/* ==========================================================================
   3.5 MISSION STRIP + VIEW ALL CTA
   ========================================================================== */

.hero-divider {
	height: 8px;
	background-color: var(--paper-dim);
	background-image: radial-gradient(circle, var(--ink) 1.8px, transparent 1.9px);
	background-size: 14px 14px;
	background-position: 0 -3px;
	background-repeat: repeat-x;
}

.mission-strip {
	background: var(--paper-dim);
	border-bottom: 1px solid var(--line);
}
.mission-strip p {
	margin: 0;
	padding: .9rem 0 0;
	font-size: 0.94rem;
	color: var(--ink-soft);
	max-width: 68ch;
}
.mission-strip strong { color: var(--ink); display: block; margin-bottom: .2rem; font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; }
.mission-detail { display: none; }
@media (min-width: 640px) { .mission-detail { display: inline; } }

.trust-strip {
	list-style: none;
	margin: 0;
	padding: .7rem 0 .9rem;
	display: flex;
	flex-wrap: wrap;
	gap: .5rem .9rem;
}
.trust-strip li {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	font-family: var(--font-mono);
	font-size: .68rem;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--decoded-dim);
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: 999px;
	padding: .35rem .7rem;
}
.trust-icon { font-size: .85rem; }

.view-all-row { text-align: center; padding: 1rem 0 3rem; }
.view-all-btn {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	background: var(--ink);
	color: var(--paper);
	text-decoration: none;
	padding: .85rem 1.6rem;
	border-radius: var(--radius);
	font-family: var(--font-mono);
	font-size: 0.82rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}
.view-all-btn:hover { background: var(--decoded-dim); text-decoration: none; }

.category-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: .8rem;
	padding: 1.5rem 0 2rem;
}
@media (min-width: 640px) { .category-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .category-grid { grid-template-columns: repeat(6, 1fr); } }
.category-chip {
	display: flex;
	flex-direction: column;
	gap: .3rem;
	padding: 1rem .9rem;
	background: var(--ink);
	color: var(--paper);
	border-radius: var(--radius);
	text-decoration: none;
	position: relative;
	overflow: hidden;
}
.category-chip::before {
	content: "";
	position: absolute;
	left: 0; top: 0; bottom: 0;
	width: 3px;
	background: var(--marquee);
}
.category-chip-name { font-family: var(--font-display); font-weight: 600; font-size: 1rem; }
.category-chip-count { font-family: var(--font-mono); font-size: .68rem; color: var(--decoded); text-transform: uppercase; letter-spacing: .04em; }
.category-chip:hover { background: var(--ink-2); text-decoration: none; }

/* ==========================================================================
   4. TICKET-STUB CARDS — the signature element
   ========================================================================== */

.ticket-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.25rem 1.75rem;
	padding: clamp(2.5rem, 6vw, 4rem) 0;
}
@media (min-width: 640px) { .ticket-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .ticket-grid { grid-template-columns: repeat(3, 1fr); } }

.ticket {
	position: relative;
	background: var(--paper);
	border-radius: var(--radius);
	box-shadow: 0 1px 0 var(--line), 0 10px 24px -18px rgba(18,20,28,0.4);
	display: flex;
	flex-direction: column;
	overflow: visible;
}
.ticket-media {
	position: relative;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: linear-gradient(135deg, var(--ink-2), var(--ink));
	border-radius: var(--radius) var(--radius) 0 0;
}
.ticket-media img { width: 100%; height: 100%; object-fit: cover; }
.ticket-media .no-poster {
	width: 100%; height: 100%;
	display: flex; align-items: center; justify-content: center;
	font-family: var(--font-display);
	font-size: 3rem;
	color: var(--marquee);
	opacity: .5;
}
.ticket-media .stamp {
	position: absolute;
	top: .7rem;
	right: -.3rem;
	background: transparent;
	color: var(--stamp);
	border: 2px solid var(--stamp);
	font-family: var(--font-mono);
	font-size: 0.62rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	padding: .2rem .5rem;
	transform: rotate(-8deg);
	border-radius: 2px;
	background: rgba(247,244,236,0.92);
}

/* perforated tear between media and body — literal ticket edge */
.ticket-perf {
	height: 14px;
	background-color: var(--paper);
	background-image: radial-gradient(circle, var(--ink) 2.6px, transparent 2.7px);
	background-size: 16px 16px;
	background-position: -2px -8px;
	background-repeat: repeat-x;
	position: relative;
}
.ticket-perf::before, .ticket-perf::after {
	content: "";
	position: absolute;
	top: 0;
	width: 14px; height: 14px;
	background: var(--body-bg, var(--paper));
	border-radius: 50%;
}
.ticket-perf::before { left: -7px; }
.ticket-perf::after { right: -7px; }

.ticket-body { padding: 1.1rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.ticket-meta {
	font-family: var(--font-mono);
	font-size: 0.68rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ink-soft);
	display: flex;
	gap: .6rem;
	align-items: center;
}
.ticket-meta .dot, .compact-foot .dot { width: 3px; height: 3px; background: var(--ink-soft); border-radius: 50%; }
.ticket-title { font-size: 1.28rem; margin: 0; }
.ticket-title a { color: var(--ink); text-decoration: none; }
.ticket-title a:hover { color: var(--decoded-dim); }
.ticket-excerpt { color: var(--ink-soft); font-size: 0.94rem; margin: 0; }
.ticket-foot {
	margin-top: auto;
	padding-top: .6rem;
	font-family: var(--font-mono);
	font-size: 0.72rem;
	color: var(--decoded-dim);
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

/* section headers used above ticket grids */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-top: clamp(1rem,4vw,2.5rem); border-top: 1px solid var(--line); }
.section-head h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0; }
.section-head .eyebrow { margin-bottom: .35rem; display: block; }

.compact-list {
	display: flex;
	flex-direction: column;
	padding: 1rem 0 3rem;
}
.compact-row {
	display: flex;
	gap: 1rem;
	padding: 1rem 0;
	border-bottom: 1px solid var(--line);
	align-items: flex-start;
}
.compact-thumb {
	flex: none;
	width: 96px;
	aspect-ratio: 4 / 3;
	border-radius: var(--radius);
	overflow: hidden;
	background: linear-gradient(135deg, var(--ink-2), var(--ink));
	display: block;
}
.compact-thumb img { width: 100%; height: 100%; object-fit: cover; }
.compact-thumb .no-poster {
	width: 100%; height: 100%;
	display: flex; align-items: center; justify-content: center;
	font-family: var(--font-display);
	color: var(--marquee);
	opacity: .5;
	font-size: 1.4rem;
}
.compact-body { flex: 1; min-width: 0; }
.compact-time {
	font-family: var(--font-mono);
	font-size: .66rem;
	text-transform: uppercase;
	letter-spacing: .05em;
	color: var(--marquee-dim);
}
.compact-title { font-size: 1.02rem; margin: .25rem 0 .35rem; line-height: 1.3; }
.compact-title a { color: var(--ink); text-decoration: none; }
.compact-title a:hover { color: var(--decoded-dim); }
.compact-foot {
	font-family: var(--font-mono);
	font-size: .68rem;
	color: var(--ink-soft);
	display: flex;
	align-items: center;
	gap: .5rem;
	text-transform: uppercase;
	letter-spacing: .03em;
}

/* ==========================================================================
   5. SINGLE ARTICLE — "the answer sheet"
   ========================================================================== */

.article-header {
	background: var(--ink);
	color: var(--paper);
	padding: clamp(2rem, 6vw, 3.5rem) var(--gutter) clamp(2.5rem, 6vw, 4rem);
}
.article-header .breadcrumb { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--decoded); margin-bottom: 1rem; }
.article-header .breadcrumb a { color: var(--decoded); text-decoration: none; }
.article-header h1 { color: var(--paper); font-size: clamp(1.9rem, 5vw, 3.1rem); max-width: 24ch; }
.article-header .dek { color: rgba(247,244,236,0.75); font-size: 1.05rem; max-width: 60ch; margin-top: .75rem; }
.article-meta-strip {
	margin-top: 1.5rem;
	display: flex;
	flex-wrap: wrap;
	gap: .5rem 1.3rem;
	font-family: var(--font-mono);
	font-size: 0.74rem;
	letter-spacing: 0.04em;
	color: var(--marquee);
	text-transform: uppercase;
	border-top: 1px solid var(--line-on-dark);
	padding-top: 1rem;
}

.article-media { max-width: var(--container); margin: -2.25rem auto 0; padding-inline: var(--gutter); }
.article-media img { border-radius: var(--radius); box-shadow: 0 20px 40px -24px rgba(18,20,28,0.55); }

.article-wrap { max-width: 720px; margin: 0 auto; padding: clamp(2.5rem,6vw,3.5rem) var(--gutter) 4rem; }

.article-body { font-size: 1.08rem; }
.article-body h2 {
	font-size: 1.55rem;
	margin-top: 2.2em;
	padding-top: .1em;
}
.article-body h3 { font-size: 1.2rem; margin-top: 1.6em; }
.article-body p { color: #262a38; }
.article-body a { font-weight: 600; }
.article-body ul li, .article-body ol li { margin-bottom: .4em; }
.article-body blockquote {
	margin: 1.6em 0;
	padding: .2em 0 .2em 1.1em;
	border-left: 3px solid var(--marquee);
	font-style: italic;
	color: var(--ink-soft);
}

/* Key Takeaways block — styled like the ticket-stub summary slip.
   Matches the H2 the AI plugin generates ("Key Takeaways"). */
.article-body h2:has(+ ul) {
	background: var(--paper-dim);
	display: inline-block;
	padding: .1em .1em;
}
.article-body h2 + ul {
	list-style: none;
	margin: 0 0 2em;
	padding: 1.1em 1.3em;
	background: var(--paper-dim);
	border: 1px dashed var(--ink-soft);
	border-radius: var(--radius);
	position: relative;
}
.article-body h2 + ul li { padding-left: 1.4em; position: relative; }
.article-body h2 + ul li::before {
	content: "✓";
	position: absolute; left: 0; top: 0;
	color: var(--decoded-dim);
	font-family: var(--font-mono);
	font-weight: 700;
}

/* FAQ block — subtitle / timecode styling.
   The plugin outputs <h2>FAQ heading</h2> then repeating <h3>Q</h3><p>A</p>. */
.faq-block { margin-top: 2.4em; border-top: 1px solid var(--line); padding-top: 1.6em; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
	cursor: pointer;
	list-style: none;
	display: flex;
	gap: .8em;
	align-items: baseline;
	padding: 1em 0;
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 1.08rem;
	color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
	content: "Q";
	font-family: var(--font-mono);
	font-size: 0.72rem;
	color: var(--paper);
	background: var(--decoded-dim);
	border-radius: 50%;
	width: 1.4em; height: 1.4em;
	flex: none;
	display: inline-flex; align-items: center; justify-content: center;
}
.faq-item summary::after {
	content: "+";
	margin-left: auto;
	font-family: var(--font-mono);
	color: var(--ink-soft);
}
.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-answer { display: flex; gap: .8em; padding: 0 0 1.2em; }
.faq-item .faq-answer::before {
	content: "A";
	font-family: var(--font-mono);
	font-size: 0.72rem;
	color: var(--ink);
	background: var(--marquee);
	border-radius: 50%;
	width: 1.4em; height: 1.4em;
	flex: none;
	display: inline-flex; align-items: center; justify-content: center;
}
.faq-item .faq-answer p { margin: 0; color: var(--ink-soft); }

/* Related Reads — printed by the plugin as <aside class="vlogify-related-reads"> */
.vlogify-related-reads {
	margin-top: 3rem;
	padding-top: 1.6rem;
	border-top: 1px dashed var(--ink-soft);
}
.vlogify-related-reads h2 {
	font-size: 1rem;
	font-family: var(--font-mono);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--marquee-dim);
}
.vlogify-related-reads ul { list-style: none; padding: 0; display: grid; gap: .6rem; }
.vlogify-related-reads a {
	display: block;
	padding: .8rem 1rem;
	background: var(--paper-dim);
	border-radius: var(--radius);
	color: var(--ink);
	font-weight: 600;
	text-decoration: none;
}
.vlogify-related-reads a:hover { background: var(--decoded); color: var(--ink); }

/* ==========================================================================
   6. PAGES / SEARCH / 404
   ========================================================================== */

.plain-page { max-width: 720px; margin: 0 auto; padding: clamp(2.5rem,6vw,4rem) var(--gutter) 4rem; }
.plain-page h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }

.empty-state {
	max-width: 640px;
	margin: 0 auto;
	padding: clamp(3rem,8vw,5rem) var(--gutter);
	text-align: center;
}
.empty-state .eyebrow { display: block; margin-bottom: 1rem; }
.empty-state h1 { font-size: clamp(1.8rem,5vw,2.6rem); }
.empty-state form { margin-top: 1.5rem; display: flex; gap: .5rem; max-width: 420px; margin-inline: auto; }
.empty-state input[type="search"] {
	flex: 1;
	padding: .7rem .9rem;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	font-family: var(--font-body);
}
.empty-state button {
	background: var(--ink);
	color: var(--paper);
	border: none;
	padding: .7rem 1.1rem;
	border-radius: var(--radius);
	font-family: var(--font-mono);
	text-transform: uppercase;
	font-size: .78rem;
	cursor: pointer;
}

/* ==========================================================================
   7. PAGINATION, COMMENTS
   ========================================================================== */

.pagination { display: flex; justify-content: center; gap: .5rem; padding: 1rem 0 3rem; font-family: var(--font-mono); font-size: .82rem; }
.pagination a, .pagination span {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 2.2rem; height: 2.2rem;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	text-decoration: none;
	color: var(--ink);
}
.pagination .current { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.comments-area { max-width: 720px; margin: 0 auto; padding: 0 var(--gutter) 4rem; }
.comments-area .comment-list { list-style: none; padding: 0; }
.comments-area .comment-body { border-top: 1px solid var(--line); padding: 1.2rem 0; }
.comments-area textarea, .comments-area input[type="text"], .comments-area input[type="email"], .comments-area input[type="url"] {
	width: 100%;
	padding: .6rem .8rem;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	font-family: var(--font-body);
	margin-bottom: .8rem;
}
.comments-area .form-submit input {
	background: var(--ink);
	color: var(--paper);
	border: none;
	padding: .7rem 1.2rem;
	border-radius: var(--radius);
	font-family: var(--font-mono);
	text-transform: uppercase;
	font-size: .78rem;
	cursor: pointer;
}

/* ==========================================================================
   9. ENGAGEMENT: progress bar, TOC, share, back-to-top
   ========================================================================== */

.reading-progress {
	position: sticky;
	top: 0;
	z-index: 40;
	height: 3px;
	background: transparent;
}
.reading-progress-bar {
	height: 100%;
	width: 0%;
	background: linear-gradient(90deg, var(--marquee), var(--decoded));
	transition: width .08s linear;
}

.toc {
	background: var(--paper-dim);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 1rem 1.2rem;
	margin-bottom: 2rem;
}
.toc-label { display: block; margin-bottom: .5rem; }
.toc ol { list-style: decimal; margin: 0; padding-left: 1.2em; }
.toc a { color: var(--ink); font-size: .92rem; text-decoration: none; }
.toc a:hover { color: var(--decoded-dim); text-decoration: underline; }

.share-row {
	display: flex;
	align-items: center;
	gap: .9rem;
	flex-wrap: wrap;
	margin-top: 2.2rem;
	padding-top: 1.2rem;
	border-top: 1px solid var(--line);
}
.share-row .eyebrow { margin-right: .2rem; }
.share-row a {
	font-family: var(--font-mono);
	font-size: .74rem;
	text-transform: uppercase;
	letter-spacing: .05em;
	text-decoration: none;
	padding: .4rem .7rem;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	color: var(--ink);
}
.share-row a:hover { background: var(--ink); color: var(--paper); text-decoration: none; }

.back-to-top {
	position: fixed;
	right: 1.2rem;
	bottom: 1.2rem;
	width: 2.6rem;
	height: 2.6rem;
	border-radius: 50%;
	background: var(--ink);
	color: var(--marquee);
	border: none;
	font-size: 1.1rem;
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity .2s ease, transform .2s ease, visibility .2s;
	z-index: 40;
	box-shadow: 0 8px 20px -8px rgba(18,20,28,0.5);
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }


.site-footer {
	background: var(--ink);
	color: rgba(247,244,236,0.7);
	margin-top: 3rem;
	padding: 2.5rem var(--gutter) 2rem;
}
.footer-row { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; align-items: center; }
.footer-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 1.2rem; margin: 0; padding: 0; }
.footer-nav a { color: rgba(247,244,236,0.7); text-decoration: none; font-family: var(--font-mono); font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; }
.footer-nav a:hover { color: var(--marquee); }
.footer-fine { font-family: var(--font-mono); font-size: .72rem; color: rgba(247,244,236,0.45); margin-top: 1.5rem; }
