/* ==========================================================================
   Red Dirt — Ex-Pligkids Podcast
   The site is the mood board: a weathered workbench with paper, kraft,
   polaroids and tape pinned to it. Paper holds reading content; wood is
   the surface. Boldness lives in the home-page collage; everything else
   stays quiet.
   ========================================================================== */

:root {
	/* Mood board swatches */
	--red-dirt: #9C442A;
	--red-dirt-deep: #6E2E1C;
	--denim: #4E6585;
	--sage: #8C9580;
	--amber: #D07015;
	--amber-bright: #E9973A;
	--midnight: #262B2E;

	/* Materials */
	--wood: #3A2A20;
	--wood-dark: #2A1E17;
	--bone: #EFE6D3;
	--kraft: #BFA078;
	--polaroid: #F7F3EA;
	--tape: rgba(232, 221, 190, .78);
	--ink: #262B2E;
	--ink-soft: #4A4F52;

	/* Type */
	--font-display: 'Alfa Slab One', Rockwell, 'Roboto Slab', Georgia, serif;
	--font-body: 'Barlow', 'Helvetica Neue', Arial, sans-serif;
	--font-cond: 'Barlow Condensed', 'Arial Narrow', sans-serif;
	--font-note: 'Permanent Marker', 'Comic Sans MS', cursive;

	--step--1: .875rem;
	--step-0: 1.125rem;
	--step-1: 1.35rem;
	--step-2: clamp(1.7rem, 1.2rem + 1.9vw, 2.6rem);
	--step-3: clamp(2.3rem, 1.4rem + 3.8vw, 4.6rem);

	--wrap: 1200px;
	--gutter: clamp(1rem, 4vw, 2.5rem);
	--shadow-paper: 0 1px 1px rgba(0,0,0,.25), 0 10px 24px -8px rgba(0,0,0,.55);

	/* Grain, reused on paper + wood */
	--grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
	--grain-soft: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .25 0 0 0 0 .15 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: var(--step-0);
	line-height: 1.6;
	color: var(--bone);
	background-color: var(--wood);
	/* Weathered planks: grain + board seams + uneven tone */
	background-image:
		var(--grain),
		repeating-linear-gradient(90deg, transparent 0 238px, rgba(0,0,0,.35) 238px 241px, rgba(255,255,255,.03) 241px 242px),
		repeating-linear-gradient(0deg, rgba(0,0,0,.05) 0 3px, transparent 3px 11px),
		radial-gradient(120% 80% at 20% 0%, #4A3527 0%, var(--wood) 55%, var(--wood-dark) 100%);
	-webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--amber-bright); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--amber-bright); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.08; font-weight: 400; }
h1, h2 { font-family: var(--font-display); letter-spacing: .005em; }
h1 { font-size: var(--step-3); }
h2 { font-size: var(--step-2); }
h3, h4 { font-family: var(--font-cond); font-weight: 700; font-size: var(--step-1); letter-spacing: .01em; }
p { margin: 0 0 1em; }

.screen-reader-text, .sr-only {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px,1px,1px,1px); white-space: nowrap;
}
.skip-link:focus {
	position: fixed; top: 1rem; left: 1rem; z-index: 999; width: auto; height: auto; clip: auto;
	background: var(--bone); color: var(--ink); padding: .75rem 1rem; font-weight: 700;
}

.rd-wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.rd-narrow { max-width: 68ch; }

/* ----- Materials ------------------------------------------------------- */

.rd-paper {
	position: relative;
	background: var(--grain-soft), var(--bone);
	color: var(--ink);
	box-shadow: var(--shadow-paper);
	padding: clamp(1.5rem, 4vw, 3rem);
}
.rd-paper a { color: var(--red-dirt); }
.rd-kraft {
	position: relative;
	background: var(--grain-soft), var(--kraft);
	color: var(--ink);
	box-shadow: var(--shadow-paper);
	padding: clamp(1.25rem, 3vw, 2.25rem);
}
.rd-polaroid {
	position: relative;
	margin: 0;
	background: var(--polaroid);
	padding: 10px 10px 42px;
	box-shadow: var(--shadow-paper);
	color: var(--ink);
}
.rd-polaroid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.rd-polaroid figcaption {
	position: absolute; left: 12px; right: 12px; bottom: 8px;
	font-family: var(--font-note); font-size: 1rem; line-height: 1.2; color: var(--ink-soft);
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Tape strip. Add .rd-taped to any material. */
.rd-taped::before {
	content: ""; position: absolute; z-index: 2;
	top: -14px; left: 50%; width: 110px; height: 28px;
	transform: translateX(-50%) rotate(-3deg);
	background: var(--tape);
	box-shadow: 0 1px 2px rgba(0,0,0,.2);
	clip-path: polygon(2% 8%, 98% 0, 100% 92%, 0 100%);
}
.rd-taped--corner::before { left: auto; right: -30px; top: 10px; transform: rotate(38deg); width: 90px; }

/* Handwritten taped note (board labels like "Gritty & sarcastic") */
.rd-tape-note {
	display: inline-block; position: relative;
	margin: 0 0 1.25rem; padding: .35rem .9rem .3rem;
	font-family: var(--font-note); font-size: 1.05rem; line-height: 1.2;
	color: var(--ink); background: var(--polaroid);
	transform: rotate(-2deg);
	box-shadow: 0 2px 6px rgba(0,0,0,.35);
}

/* ----- Buttons ------------------------------------------------------ */

.rd-btn {
	display: inline-flex; align-items: center; gap: .55rem;
	padding: .8rem 1.35rem .75rem;
	font-family: var(--font-cond); font-weight: 700; font-size: 1.15rem; letter-spacing: .02em;
	line-height: 1; text-decoration: none; cursor: pointer;
	border: 2px solid transparent; border-radius: 3px;
	transition: transform .12s ease, background-color .15s ease;
}
.rd-btn:hover { text-decoration: none; transform: translateY(-1px); }
.rd-btn:active { transform: translateY(1px); }
.rd-btn .rd-icon { width: 1.1em; height: 1.1em; }
.rd-btn--fire { background: var(--amber-bright); color: var(--midnight); box-shadow: 0 3px 0 #9A4F0B; }
.rd-btn--fire:hover { background: #F2A650; color: var(--midnight); }
.rd-btn--ghost { border-color: currentColor; color: var(--bone); background: transparent; }
.rd-btn--ghost:hover { background: rgba(239,230,211,.1); color: var(--bone); }
.rd-btn--dirt { background: var(--red-dirt); color: var(--bone); box-shadow: 0 3px 0 var(--red-dirt-deep); }
.rd-btn--dirt:hover { background: #AE4E31; color: var(--bone); }
.rd-paper .rd-btn--ghost, .rd-kraft .rd-btn--ghost { color: var(--ink); }

/* ----- Header ------------------------------------------------------- */

.rd-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(38, 43, 46, .94);
	backdrop-filter: blur(6px);
	border-bottom: 3px solid var(--red-dirt);
}
.admin-bar .rd-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .rd-header { top: 0; position: relative; } }

.rd-header__inner { display: flex; align-items: center; gap: 1.5rem; min-height: 76px; }
.rd-logo { display: block; flex: 0 0 auto; color: var(--bone); }
.rd-logo--header .rd-logo__svg { width: 230px; height: auto; }
.rd-logo--header .rd-logo__img { max-height: 58px; width: auto; }
.rd-logo--footer .rd-logo__svg { width: 280px; }
.rd-logo--footer .rd-logo__img { max-height: 110px; width: auto; }

.rd-nav { margin-left: auto; }
.rd-nav ul, .rd-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; }
.rd-nav a {
	display: block; padding: .55rem .8rem;
	font-family: var(--font-cond); font-weight: 600; font-size: 1.15rem; letter-spacing: .02em;
	color: var(--bone); text-decoration: none; border-radius: 2px;
}
.rd-nav a:hover { color: var(--amber-bright); }
.rd-nav .current-menu-item > a, .rd-nav .current_page_item > a {
	color: var(--amber-bright);
	background: linear-gradient(transparent 82%, var(--red-dirt) 82% 92%, transparent 92%);
}
.rd-header__actions { display: flex; align-items: center; gap: 1rem; }
.rd-header .rd-btn { padding: .6rem 1rem .55rem; font-size: 1.05rem; }

.rd-nav-toggle {
	display: none; margin-left: auto;
	background: none; border: 2px solid var(--bone); color: var(--bone); border-radius: 3px;
	padding: .45rem .7rem; font-family: var(--font-cond); font-weight: 700; font-size: 1rem; cursor: pointer;
}

@media (max-width: 1080px) {
	.rd-social--header { display: none; }
}
@media (max-width: 900px) {
	.rd-header__inner { flex-wrap: wrap; gap: .75rem; padding-block: .6rem; }
	.rd-logo--header .rd-logo__svg { width: 190px; }
	.rd-nav-toggle { display: block; }
	.rd-nav { display: none; width: 100%; order: 3; margin: 0; }
	.rd-nav.is-open { display: block; }
	.rd-nav ul { flex-direction: column; padding-bottom: .75rem; }
	.rd-nav a { font-size: 1.3rem; padding: .7rem .25rem; border-bottom: 1px solid rgba(239,230,211,.12); }
	.rd-header__actions { order: 2; }
	.rd-social--header { display: none; }
	.rd-header__actions .rd-btn { display: none; }
}

/* ----- Social icons -------------------------------------------------- */

.rd-icon { width: 20px; height: 20px; }
.rd-social { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.rd-social a {
	display: grid; place-items: center; width: 40px; height: 40px;
	color: var(--bone); border-radius: 50%;
	transition: color .15s ease, background-color .15s ease;
}
.rd-social a:hover { color: var(--midnight); background: var(--amber-bright); }
.rd-social--footer a { width: 46px; height: 46px; background: rgba(239,230,211,.07); }
.rd-social--footer .rd-icon { width: 22px; height: 22px; }

/* ----- Home hero: the pinned collage ---------------------------------- */

.rd-hero { padding: clamp(2.5rem, 7vw, 6rem) 0 clamp(3rem, 7vw, 5.5rem); overflow: hidden; }
.rd-hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.rd-hero__title { font-size: var(--step-3); margin-bottom: .35em; text-wrap: balance; text-shadow: 0 3px 0 rgba(0,0,0,.35); }
.rd-hero__text { font-size: 1.25rem; max-width: 34ch; color: #E3D8C2; margin-bottom: 1.75rem; }
.rd-hero__ctas { display: flex; flex-wrap: wrap; gap: .85rem; }

.rd-collage { position: relative; min-height: 560px; }
.rd-collage .rd-polaroid { position: absolute; width: 58%; }
.rd-collage .p1 { top: 0; left: 0; transform: rotate(-4deg); }
.rd-collage .p2 { top: 6%; right: 0; width: 44%; transform: rotate(5deg); }
.rd-collage .p3 { bottom: -2%; right: -3%; width: 38%; transform: rotate(4deg); z-index: 2; }
.rd-collage .rd-latest {
	position: absolute; left: 0; bottom: 6%; width: 64%; z-index: 3;
	transform: rotate(1.2deg);
}
/* The one orchestrated moment: pieces get pinned down on load. */
@media (prefers-reduced-motion: no-preference) {
	.rd-collage > * { animation: rd-pin .55s cubic-bezier(.2,.9,.3,1.2) both; }
	.rd-collage .p1 { animation-delay: .05s; }
	.rd-collage .p2 { animation-delay: .18s; }
	.rd-collage .p3 { animation-delay: .3s; }
	.rd-collage .rd-latest { animation-delay: .45s; }
}
@keyframes rd-pin {
	from { opacity: 0; translate: 0 -18px; scale: 1.04; }
	to { opacity: 1; translate: 0 0; scale: 1; }
}

.rd-latest { padding: 1.4rem 1.5rem 1.5rem; }
.rd-latest__label { font-family: var(--font-note); color: var(--red-dirt); font-size: 1rem; margin: 0 0 .25rem; }
.rd-latest__title { font-family: var(--font-display); font-size: 1.55rem; line-height: 1.1; margin: 0 0 .5rem; }
.rd-latest__title a { color: var(--ink); text-decoration: none; }
.rd-latest__title a:hover { color: var(--red-dirt); }

@media (max-width: 900px) {
	.rd-hero__grid { grid-template-columns: 1fr; }
	.rd-collage { min-height: 0; display: grid; gap: 1.5rem; }
	.rd-collage .rd-polaroid { position: relative; width: 82%; inset: auto; }
	.rd-collage .p2 { justify-self: end; width: 70%; margin-top: -30%; }
	.rd-collage .p3 { display: none; }
	.rd-collage .rd-latest { position: relative; inset: auto; width: 100%; margin-top: -2rem; }
}

/* ----- Sections ------------------------------------------------------ */

.rd-section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.rd-section__head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.rd-section__head h2 { margin: 0; }
.rd-section__head a { font-family: var(--font-cond); font-weight: 700; font-size: 1.15rem; }

/* Listen band on sagebrush paper */
.rd-band {
	background: var(--grain-soft), var(--sage);
	color: var(--ink);
	padding-block: clamp(2.5rem, 5vw, 4rem);
	border-block: 3px solid rgba(0,0,0,.25);
}
.rd-band__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 2rem; align-items: center; }
.rd-band h2 { margin-bottom: .3em; }
.rd-band p { margin: 0; max-width: 36ch; }
.rd-band a:not(.rd-listen-btn) { color: var(--midnight); font-weight: 600; }
.rd-listen-btn.is-unset { background: transparent; }
@media (max-width: 800px) { .rd-band__grid { grid-template-columns: 1fr; } }

/* Listen buttons */
.rd-listen-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .75rem; }
.rd-listen-btn {
	display: flex; align-items: center; gap: .8rem;
	padding: .8rem 1rem; min-height: 64px;
	background: var(--midnight); color: var(--bone); text-decoration: none; border-radius: 4px;
	border: 2px solid var(--midnight);
	transition: background-color .15s ease, color .15s ease;
}
.rd-listen-btn .rd-icon { width: 28px; height: 28px; flex: none; }
.rd-listen-btn span { display: flex; flex-direction: column; font-family: var(--font-cond); font-weight: 700; font-size: 1.2rem; line-height: 1.05; }
.rd-listen-btn small { font-family: var(--font-body); font-weight: 500; font-size: .78rem; opacity: .75; letter-spacing: .02em; }
a.rd-listen-btn:hover { background: var(--amber-bright); border-color: var(--amber-bright); color: var(--midnight); text-decoration: none; }
.rd-listen-btn.is-unset { background: transparent; color: rgba(38,43,46,.55); border: 2px dashed rgba(38,43,46,.35); }

/* Episode cards */
.rd-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); }
.rd-card { display: flex; flex-direction: column; padding-bottom: 1.25rem; }
.rd-card:nth-child(3n+1) { transform: rotate(-.8deg); }
.rd-card:nth-child(3n+2) { transform: rotate(.6deg); }
.rd-card:nth-child(3n) { transform: rotate(-.3deg); }
.rd-card__img { display: block; margin-bottom: 1rem; }
.rd-card__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.rd-card__body { padding-inline: .35rem; display: flex; flex-direction: column; flex: 1; }
.rd-card__title { font-family: var(--font-display); font-size: 1.4rem; line-height: 1.12; margin: 0 0 .4rem; }
.rd-card__title a { color: var(--ink); text-decoration: none; }
.rd-card__title a:hover { color: var(--red-dirt); }
.rd-card__excerpt { font-size: 1rem; color: var(--ink-soft); margin: .25rem 0 1rem; }
.rd-card__cta { margin-top: auto; font-family: var(--font-cond); font-weight: 700; font-size: 1.1rem; color: var(--red-dirt); text-decoration: none; }
.rd-card__cta:hover { text-decoration: underline; }

/* Episode meta */
.rd-meta { display: flex; flex-wrap: wrap; gap: .35rem 1rem; margin: 0 0 .5rem; font-family: var(--font-cond); font-weight: 600; font-size: 1rem; color: var(--ink-soft); }
.rd-meta__num { color: var(--red-dirt); }
.rd-meta__e { display: inline-grid; place-items: center; width: 1.3em; height: 1.3em; font-size: .8rem; background: var(--ink-soft); color: var(--bone); border-radius: 2px; }

/* About teaser */
.rd-teaser { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.rd-teaser .rd-kraft p { font-size: 1.2rem; max-width: 46ch; }
.rd-teaser__notes { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; margin-top: 1.25rem; }
.rd-teaser__notes .rd-tape-note:nth-child(2) { transform: rotate(2deg); }
.rd-teaser .rd-polaroid { transform: rotate(3deg); }
@media (max-width: 800px) { .rd-teaser { grid-template-columns: 1fr; } }

/* Story CTA on denim */
.rd-story {
	background: var(--grain-soft), var(--denim);
	color: var(--bone); padding: clamp(2rem, 5vw, 3.5rem);
	box-shadow: var(--shadow-paper);
	display: grid; grid-template-columns: 1.5fr auto; gap: 2rem; align-items: center;
}
.rd-story h2 { margin-bottom: .3em; }
.rd-story p { margin: 0; max-width: 50ch; font-size: 1.15rem; }
@media (max-width: 700px) { .rd-story { grid-template-columns: 1fr; } }

/* ----- Interior pages --------------------------------------------------- */

.rd-page-hero { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(1.5rem, 3vw, 2.5rem); }
.rd-page-hero__title { margin-bottom: .2em; text-shadow: 0 3px 0 rgba(0,0,0,.35); }
.rd-page-hero__lede { font-size: 1.25rem; max-width: 52ch; color: #E3D8C2; margin: 0; }

.rd-content > * + * { margin-top: 0; }
.rd-content h2 { font-size: var(--step-2); margin-top: 1.5em; }
.rd-content h3 { margin-top: 1.4em; }
.rd-content img { height: auto; }
.rd-content ul, .rd-content ol { padding-left: 1.25em; }
.rd-content blockquote { margin: 1.5em 0; padding: .25em 0 .25em 1.25em; border-left: 4px solid var(--red-dirt); font-size: 1.2rem; }

/* Episodes page filters */
.rd-filters { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-bottom: 2.25rem; }
.rd-filters a {
	padding: .45rem .95rem .4rem; border-radius: 999px;
	border: 2px solid rgba(239,230,211,.35); color: var(--bone); text-decoration: none;
	font-family: var(--font-cond); font-weight: 600; font-size: 1.05rem;
}
.rd-filters a:hover { border-color: var(--bone); }
.rd-filters a[aria-current="page"] { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.rd-search { margin-left: auto; display: flex; }
.rd-search input {
	font: inherit; font-size: 1rem; padding: .55rem .9rem; min-width: 220px;
	border: 2px solid var(--bone); border-right: 0; border-radius: 3px 0 0 3px; background: var(--bone); color: var(--ink);
}
.rd-search button { border-radius: 0 3px 3px 0; }
@media (max-width: 700px) { .rd-search { margin-left: 0; width: 100%; } .rd-search input { flex: 1; min-width: 0; } }

.rd-pagination { margin-top: 3rem; display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap; }
.rd-pagination .page-numbers {
	display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 .75rem;
	background: rgba(239,230,211,.08); color: var(--bone); text-decoration: none; border-radius: 3px;
	font-family: var(--font-cond); font-weight: 700; font-size: 1.1rem;
}
.rd-pagination .current { background: var(--amber-bright); color: var(--midnight); }

.rd-empty { text-align: left; max-width: 560px; }

/* Single episode */
.rd-episode { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.rd-episode__aside { position: sticky; top: 100px; display: grid; gap: 1.5rem; }
.rd-episode__links { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.rd-episode__links .rd-listen-btn { min-height: 54px; }
@media (max-width: 960px) { .rd-episode { grid-template-columns: 1fr; } .rd-episode__aside { position: static; } }

.rd-video { position: relative; aspect-ratio: 16 / 9; background: #000; margin-bottom: 1.5rem; box-shadow: var(--shadow-paper); }
.rd-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.rd-episode-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2.5rem; }
.rd-episode-nav a { display: block; padding: 1rem 1.25rem; background: rgba(239,230,211,.07); color: var(--bone); text-decoration: none; border-radius: 3px; }
.rd-episode-nav a:hover { background: rgba(239,230,211,.14); }
.rd-episode-nav small { display: block; font-size: .85rem; opacity: .7; }
.rd-episode-nav strong { font-family: var(--font-cond); font-size: 1.2rem; }
.rd-episode-nav .next { text-align: right; grid-column: 2; }

/* Share */
.rd-share__label { display: block; font-family: var(--font-note); font-size: 1.05rem; margin-bottom: .5rem; }
.rd-share ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.rd-share a, .rd-share button {
	display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
	background: var(--midnight); color: var(--bone); border: 0; cursor: pointer;
}
.rd-share a:hover, .rd-share button:hover { background: var(--red-dirt); }
.rd-share .is-copied { background: var(--sage); color: var(--ink); }

/* Audio player */
.rd-player { margin: .75rem 0 0; }
.rd-player audio { width: 100%; }
.rd-player.is-enhanced audio { display: none; }
.rd-player__ui { display: flex; gap: .9rem; align-items: center; background: var(--midnight); color: var(--bone); padding: .8rem 1rem; border-radius: 4px; }
.rd-player__play {
	flex: none; width: 54px; height: 54px; border-radius: 50%; border: 0; cursor: pointer;
	display: grid; place-items: center; background: var(--amber-bright); color: var(--midnight);
}
.rd-player__play svg { width: 24px; height: 24px; }
.rd-player__play .i-pause, .rd-player.is-playing .i-play { display: none; }
.rd-player.is-playing .i-pause { display: block; }
.rd-player__body { flex: 1; min-width: 0; }
.rd-player__title { margin: 0 0 .2rem; font-family: var(--font-cond); font-weight: 700; font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd-player__seek { width: 100%; accent-color: var(--amber-bright); margin: .15rem 0; }
.rd-player__row { display: flex; align-items: center; justify-content: space-between; gap: .5rem; font-family: var(--font-cond); font-size: .95rem; font-variant-numeric: tabular-nums; }
.rd-player__controls { display: flex; gap: .3rem; }
.rd-player__controls button {
	background: rgba(239,230,211,.1); color: var(--bone); border: 0; border-radius: 3px;
	padding: .25rem .5rem; font: 600 .9rem var(--font-cond); cursor: pointer; min-width: 40px;
}
.rd-player__controls button:hover { background: rgba(239,230,211,.2); }

/* About page */
.rd-about { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.rd-about__photos { display: grid; gap: 1.75rem; }
.rd-about--solo { grid-template-columns: minmax(0, 1fr); max-width: 860px; }
.rd-about__photos .rd-polaroid:nth-child(odd) { transform: rotate(3deg); }
.rd-about__photos .rd-polaroid:nth-child(even) { transform: rotate(-2.5deg); width: 85%; justify-self: end; }
@media (max-width: 860px) { .rd-about { grid-template-columns: 1fr; } }

.rd-values { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.5rem; }
.rd-values li { padding: 1.5rem; }
.rd-values h3 { font-family: var(--font-note); font-weight: 400; font-size: 1.45rem; margin-bottom: .35em; }
.rd-values p { margin: 0; font-size: 1.02rem; }
.rd-values li:nth-child(1) { background: var(--red-dirt); color: var(--bone); }
.rd-values li:nth-child(2) { background: var(--sage); color: var(--ink); }
.rd-values li:nth-child(3) { background: var(--denim); color: var(--bone); }
.rd-values li:nth-child(4) { background: var(--amber-bright); color: var(--midnight); }

.rd-hosts { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 2rem; }
.rd-host .rd-polaroid img { aspect-ratio: 1; }
.rd-host__name { font-family: var(--font-display); font-size: 1.4rem; margin: 1rem 0 .1rem; }
.rd-host__role { font-family: var(--font-note); color: var(--amber-bright); margin: 0 0 .5rem; }
.rd-host p { font-size: 1.02rem; color: #E3D8C2; }

/* Listen page */
.rd-listen-page .rd-paper { padding: clamp(1.5rem, 4vw, 2.75rem); }
.rd-listen-page .rd-listen-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.rd-rss { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1rem; }
.rd-rss input { flex: 1; min-width: 220px; font: 1rem var(--font-body); padding: .65rem .8rem; border: 2px solid var(--ink); border-radius: 3px; background: #fff; color: var(--ink); }

/* ----- Footer --------------------------------------------------------- */

.rd-footer { margin-top: clamp(3rem, 6vw, 5rem); background: var(--midnight); border-top: 3px solid var(--red-dirt); padding: 3.5rem 0 2rem; color: #D8CFBD; }
.rd-footer__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2.5rem; align-items: start; }
.rd-footer__note { font-family: var(--font-note); font-size: 1.15rem; color: var(--amber-bright); margin: 1rem 0 0; max-width: 34ch; }
.rd-footer h2 { font-family: var(--font-cond); font-weight: 700; font-size: 1.2rem; margin-bottom: .75rem; color: var(--bone); }
.rd-footer__menu ul { list-style: none; margin: 0 0 1.5rem; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.rd-footer__menu a { color: var(--bone); text-decoration: none; font-family: var(--font-cond); font-weight: 600; font-size: 1.1rem; }
.rd-footer__menu a:hover { color: var(--amber-bright); }
.rd-footer__legal { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(239,230,211,.12); font-size: .9rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
.rd-footer__legal a { color: #D8CFBD; }
@media (max-width: 760px) { .rd-footer__grid { grid-template-columns: 1fr; } }

/* WordPress core bits */
.alignwide { margin-inline: calc(-1 * clamp(0rem, 5vw, 4rem)); }
.wp-block-image figcaption, .wp-caption-text { font-size: .9rem; color: var(--ink-soft); }
.rd-paper .wp-block-button__link { background: var(--red-dirt); color: var(--bone); border-radius: 3px; }

/* Home photo wall (Site Content → Home → Photo wall) */
.rd-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: clamp(1.25rem, 3vw, 2rem); margin-top: 1.5rem; }
.rd-wall .rd-polaroid:nth-child(4n+1) { transform: rotate(-2deg); }
.rd-wall .rd-polaroid:nth-child(4n+2) { transform: rotate(1.5deg); }
.rd-wall .rd-polaroid:nth-child(4n+3) { transform: rotate(-.8deg); }
.rd-wall .rd-polaroid:nth-child(4n) { transform: rotate(2.2deg); }
.rd-wall .rd-polaroid:not(:has(figcaption)) { padding-bottom: 10px; }

/* Episode page photo (when there's no YouTube video) */
.rd-ep-hero { margin-bottom: 1.5rem; box-shadow: var(--shadow-paper); }
.rd-ep-hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* Episode video file player */
.rd-video--file video { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; object-fit: contain; }
.rd-video__msg { position: absolute; left: 1rem; right: 1rem; bottom: 1rem; margin: 0; padding: .75rem 1rem; background: var(--red-dirt); color: var(--bone); border-radius: 3px; font-weight: 600; }

/* Episode photo gallery */
.rd-ep-gallery { margin-top: 2.5rem; padding-top: 1.75rem; border-top: 2px dashed rgba(38,43,46,.2); }
.rd-ep-gallery h2 { font-size: var(--step-2); }
.rd-ep-gallery__grid { list-style: none; padding: 0; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.rd-ep-gallery__grid .rd-polaroid { box-shadow: 0 1px 1px rgba(0,0,0,.2), 0 6px 14px -6px rgba(0,0,0,.45); }
.rd-lightbox-open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.rd-lightbox-open img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.rd-lightbox { width: min(1200px, 96vw); max-height: 94vh; padding: 0; border: 0; background: transparent; overflow: visible; }
.rd-lightbox::backdrop { background: rgba(20, 14, 10, .9); }
.rd-lightbox figure { margin: 0; background: var(--polaroid); padding: 12px 12px 14px; box-shadow: var(--shadow-paper); }
.rd-lightbox img { display: block; width: 100%; max-height: 80vh; object-fit: contain; background: #111; }
.rd-lightbox figcaption { font-family: var(--font-note); color: var(--ink); font-size: 1.15rem; padding-top: .6rem; }
.rd-lightbox button {
	position: absolute; z-index: 2; width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
	background: var(--amber-bright); color: var(--midnight); font-size: 1.6rem; line-height: 1; display: grid; place-items: center;
}
.rd-lightbox__close { top: -18px; right: -18px; font-size: 1.1rem !important; }
.rd-lightbox__prev { left: -24px; top: 50%; translate: 0 -50%; }
.rd-lightbox__next { right: -24px; top: 50%; translate: 0 -50%; }
@media (max-width: 700px) {
	.rd-lightbox__prev { left: 6px; } .rd-lightbox__next { right: 6px; } .rd-lightbox__close { top: 6px; right: 6px; }
}
.rd-ep-gallery__grid li:nth-child(4n+1) .rd-polaroid { transform: rotate(-1.6deg); }
.rd-ep-gallery__grid li:nth-child(4n+2) .rd-polaroid { transform: rotate(1.2deg); }
.rd-ep-gallery__grid li:nth-child(4n+3) .rd-polaroid { transform: rotate(-.6deg); }
.rd-ep-gallery__grid li:nth-child(4n) .rd-polaroid { transform: rotate(1.8deg); }
