/*
Theme Name: Stacks N Scribes
Theme URI: https://stacksnscribes.com/
Author: Stacks N Scribes
Description: Custom theme for Stacks N Scribes, a literary media and creator collective. Shows and episodes import from podcast feeds, a docked player keeps playing between pages, and the Local page lists bookshop events from the LA Lit Events feed.
Version: 1.1.0
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: stacks-n-scribes
*/

/* Layout: a dark podcast-network stage (matching the current site's feel): bold Poppins headings ending in a colored dot,
   gradient play buttons, a hero slider of the newest episodes, and a player docked to the bottom. Deliberately single dark theme. */
:root {
  --bg: #0a0b0c; --bg-2: #121417; --bg-3: #1a1d22; --line: #262a31;
  --text: #f2f3f5; --text-2: #b7bcc6; --text-3: #8a909b;
  --violet: #5b2be0; --blue: #1a8cff; --dot: #26b8ff;
  --grad: linear-gradient(120deg, var(--violet), var(--blue));
  --margins: #c96a3b; --ttt: #2a9d8f;
  --f-head: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Lato", "Helvetica Neue", Arial, sans-serif;
  --max: 74rem;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { background: var(--bg); }
body { margin: 0; color: var(--text-2); font-family: var(--f-body); font-size: 16px; line-height: 1.6; padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
:focus-visible { outline: 2px solid var(--dot); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
h1, h2, h3, h4 { font-family: var(--f-head); color: var(--text); margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; line-height: 1.08; }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 700; line-height: 1.2; }
h3 { font-size: 1.05rem; font-weight: 600; line-height: 1.35; }
.dot::after { content: "."; color: var(--dot); }
.kicker { font-family: var(--f-head); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }

/* Header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--bg); }
header.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(10, 11, 12, 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 18px; height: 68px; }
.logo { font-family: var(--f-head); font-weight: 700; font-size: 1.3rem; color: var(--text); white-space: nowrap; margin-right: auto; display: flex; align-items: center; gap: 10px; }
.logo i { width: 30px; height: 30px; border-radius: 8px; background: var(--grad); display: grid; place-items: center; font-style: normal; font-size: 0.9rem; color: #fff; }
nav.main { display: flex; gap: 6px; }
nav.main a { font-family: var(--f-head); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text); padding: 8px 12px; border-radius: 99px; transition: color .2s, background-color .2s; }
nav.main a:hover { background: var(--bg-3); }
nav.main a[aria-current="page"] { color: var(--dot); }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid #5a606a; display: grid; place-items: center; color: var(--text); transition: border-color .2s, transform .15s; }
.icon-btn:hover { border-color: var(--dot); }
.icon-btn:active { transform: scale(.94); }
.icon-btn svg { width: 16px; height: 16px; fill: currentColor; }
.btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-head); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase; color: #fff; background: var(--grad); padding: 11px 20px; border-radius: 99px; transition: transform .2s, box-shadow .2s, filter .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -12px rgba(26, 140, 255, 0.7); }
.btn:active { transform: scale(.97); }
.btn.ghost { background: transparent; border: 1.5px solid #5a606a; }
.btn.ghost:hover { border-color: var(--dot); box-shadow: none; }
.btn.small { padding: 7px 14px; font-size: 0.72rem; }
.menu-btn { display: none; }
@media (max-width: 900px) {
  nav.main { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px max(16px, env(safe-area-inset-right, 0px)) 16px max(16px, env(safe-area-inset-left, 0px)); }
  header.open nav.main { display: flex; }
  nav.main a { padding: 12px 6px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .menu-btn { display: grid; }
  .bar .btn { display: none; }
}
@media (max-width: 420px) { .logo span { display: none; } }

/* Pages */
.block { padding-block: 56px; }
.block + .block { padding-top: 8px; }
.head-row { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.head-row p { margin: 6px 0 0; color: var(--text-3); max-width: 38rem; }

/* Hero slider */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero::before { content: ""; position: absolute; inset: -40% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px; background: radial-gradient(closest-side, rgba(91, 43, 224, 0.28), transparent 70%); pointer-events: none; }
.hero::after { content: ""; position: absolute; inset: auto auto -50% -20%; width: 60vw; height: 60vw; max-width: 760px; max-height: 760px; background: radial-gradient(closest-side, rgba(26, 140, 255, 0.16), transparent 70%); pointer-events: none; }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 28px minmax(0, 1fr) 48px; gap: 32px; align-items: center; padding-block: 72px 80px; }
.slides { grid-column: 2; min-width: 0; }
.arrows { grid-column: 3; }
.dots { display: grid; gap: 12px; }
.dots button { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid #8a909b; transition: background-color .2s, border-color .2s; }
.dots button[aria-selected="true"] { background: var(--text); border-color: var(--text); }
.slide { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 32px; align-items: center; min-width: 0; animation: fade .45s ease both; }
.slide-txt { display: grid; gap: 18px; min-width: 0; }
.slide h1 a, .slide .h1 a { color: inherit; }
.slide h1 a:hover, .slide .h1 a:hover { color: var(--text-2); }
.eyebrow { font-family: var(--f-head); font-weight: 600; font-size: 1.05rem; color: var(--text); margin: 0; }
.h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; line-height: 1.08; }
.meta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; font-family: var(--f-head); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.meta .show { color: var(--text-2); display: inline-flex; gap: 8px; align-items: center; }
.meta .show::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.slide p { margin: 0; max-width: 34rem; color: var(--text-2); }
.playrow { display: flex; align-items: center; gap: 16px; margin-top: 6px; }
.bigplay { width: 60px; height: 60px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; color: #fff; box-shadow: 0 14px 30px -14px rgba(26, 140, 255, 0.9); transition: transform .2s; }
.bigplay:hover { transform: scale(1.06); }
.bigplay:active { transform: scale(.95); }
.bigplay svg { width: 22px; height: 22px; fill: #fff; margin-left: 3px; }
.bigplay.playing svg { margin-left: 0; }
.playrow span { font-family: var(--f-head); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text); }
.arrows { display: grid; gap: 12px; }
.fade { animation: fade .45s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } }
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-block: 40px 48px; }
  .slides, .arrows { grid-column: auto; }
  .slide { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .dots { grid-auto-flow: column; justify-content: start; order: 3; }
  .arrows { display: none; }
  .hero-art { max-width: 280px; }
}

/* Cover art (generated, per show) */
.cover { aspect-ratio: 1 / 1; max-width: 100%; border-radius: 14px; position: relative; overflow: hidden; background: var(--bg-3); display: grid; align-content: space-between; padding: 14px; isolation: isolate; }
.cover::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 90% at 100% 0%, var(--c), transparent 60%), linear-gradient(160deg, #1d2026, #0e1013); opacity: .95; }
.cover::after { content: ""; position: absolute; inset: auto -20% -35% auto; width: 80%; height: 80%; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.14); z-index: -1; }
.cover b { white-space: pre-line; font-family: var(--f-head); font-weight: 800; color: #fff; font-size: clamp(0.9rem, 1.6vw, 1.15rem); line-height: 1.1; letter-spacing: -0.01em; }
.cover small { font-family: var(--f-head); font-weight: 600; font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,.75); }
.hero-art .cover { border-radius: 22px; padding: 26px; box-shadow: 0 40px 80px -40px rgba(0,0,0,.9); }
.hero-art .cover b { font-size: clamp(1.4rem, 3vw, 2.2rem); }

/* Show cards */
.shows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 760px) { .shows { grid-template-columns: minmax(0, 1fr); } }
.show-card { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 20px; padding: 18px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 18px; transition: transform .25s, border-color .25s; }
.show-card:hover { transform: translateY(-4px); border-color: #3a4049; }
.show-card .body { display: grid; gap: 8px; align-content: start; min-width: 0; }
.show-card p { margin: 0; font-size: 0.94rem; }
.show-card .stats { font-family: var(--f-head); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
@media (max-width: 460px) { .show-card { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; } }

/* Episode grid / list */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }
.ep { display: grid; gap: 10px; align-content: start; }
.ep .art { position: relative; }
.ep .art .cover { transition: transform .3s; }
.ep:hover .art .cover { transform: scale(1.03); }
.ep .play { position: absolute; right: 10px; bottom: 10px; width: 42px; height: 42px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s; box-shadow: 0 10px 20px -10px rgba(0,0,0,.8); }
.ep:hover .play, .ep .play:focus-visible, .ep .play.playing { opacity: 1; transform: none; }
@media (hover: none) { .ep .play { opacity: 1; transform: none; } }
.ep .play svg { width: 15px; height: 15px; fill: #fff; margin-left: 2px; }
.ep h3 { font-size: 0.96rem; }
.ep .m { font-size: 0.8rem; color: var(--text-3); display: flex; gap: 8px; flex-wrap: wrap; }
.ep .m .s { color: var(--text-2); }

.rows { display: grid; gap: 10px; }
.row { display: grid; grid-template-columns: 52px 72px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 12px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); transition: border-color .2s, background-color .2s; }
.row:hover { border-color: #3a4049; background: var(--bg-3); }
.row .num { font-family: var(--f-head); font-weight: 700; color: var(--text-3); text-align: center; font-size: 0.85rem; }
.row .cover { border-radius: 10px; padding: 8px; }
.row .cover b { font-size: 0.6rem; }
.row .cover small { display: none; }
.row .txt { display: grid; gap: 4px; min-width: 0; }
.row .txt p { margin: 0; font-size: 0.88rem; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .rp { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid #5a606a; display: grid; place-items: center; transition: border-color .2s, background-color .2s; }
.row .rp:hover, .row .rp.playing { border-color: transparent; background: var(--grad); }
.row .rp svg { width: 14px; height: 14px; fill: #fff; margin-left: 2px; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: 0.7rem; font-family: var(--f-head); font-weight: 600; letter-spacing: 0.05em; padding: 2px 9px; border-radius: 99px; background: var(--bg-3); border: 1px solid var(--line); color: var(--text-2); }
@media (max-width: 640px) { .row { grid-template-columns: 60px minmax(0, 1fr) auto; } .row .num { display: none; } .row .txt p { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; } }

/* Filters */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.chip { font-family: var(--f-head); font-weight: 600; font-size: 0.76rem; letter-spacing: 0.04em; padding: 7px 14px; border-radius: 99px; border: 1.5px solid var(--line); color: var(--text-2); transition: border-color .2s, color .2s, background-color .2s; display: inline-flex; gap: 8px; align-items: center; }
.chip:hover { border-color: #5a606a; color: var(--text); }
.chip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip em { font-style: normal; color: var(--text-3); font-size: 0.7rem; }
.chip[aria-pressed="true"] em { color: #555; }

/* Topics */
.topics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 900px) { .topics, #whoFor { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (max-width: 480px) { #whoFor { grid-template-columns: minmax(0, 1fr) !important; } }
.spot .checks { align-self: center; }
@media (max-width: 760px) { .spot[style] { grid-template-columns: minmax(0, 1fr) !important; } }
.topic { padding: 18px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line); display: grid; gap: 8px; min-height: 120px; align-content: space-between; transition: transform .25s, border-color .25s; text-align: left; }
.topic:hover { transform: translateY(-3px); border-color: var(--dot); }
.topic b { font-family: var(--f-head); font-weight: 600; color: var(--text); font-size: 1rem; line-height: 1.25; }
.topic span { font-size: 0.8rem; color: var(--text-3); }

/* Spotlight + suggestion cards */
.spot > .cover { max-width: 300px; width: 100%; }
.spot { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 32px; align-items: center; background: var(--bg-2); border: 1px solid var(--line); border-radius: 22px; padding: 28px; }
.spot p { margin: 0; }
.spot .stack { display: grid; gap: 14px; }
@media (max-width: 760px) { .spot { grid-template-columns: minmax(0, 1fr); padding: 20px; } }
.cards3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 860px) { .cards3 { grid-template-columns: minmax(0, 1fr); } }
.sugg { display: grid; gap: 12px; padding: 22px; border-radius: 18px; background: var(--bg-2); border: 1px solid var(--line); align-content: start; transition: border-color .2s, transform .25s; }
.sugg:hover { border-color: #3a4049; transform: translateY(-3px); }
.sugg p { margin: 0; font-size: 0.94rem; }
.sugg .btn { justify-self: start; }

/* Join band */
.band { border-radius: 24px; padding: 40px; background: radial-gradient(120% 140% at 0% 0%, rgba(91, 43, 224, 0.45), transparent 55%), radial-gradient(120% 140% at 100% 100%, rgba(26, 140, 255, 0.35), transparent 55%), var(--bg-2); border: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; }
.band p { margin: 8px 0 0; max-width: 36rem; color: var(--text-2); }
@media (max-width: 760px) { .band { grid-template-columns: minmax(0, 1fr); padding: 26px; } }

/* Page heads + show detail */
.page-head { padding-block: 56px 28px; display: grid; gap: 12px; }
.page-head p { margin: 0; max-width: 40rem; }
.show-head { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; align-items: end; padding-block: 48px 32px; }
.show-head .stack { display: grid; gap: 12px; }
.show-head p { margin: 0; max-width: 42rem; }
.listen { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 640px) { .show-head { grid-template-columns: minmax(0, 1fr); } .show-head .cover { max-width: 200px; } }

/* Forms */
.formwrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 40px; align-items: start; padding-bottom: 56px; }
@media (max-width: 860px) { .formwrap { grid-template-columns: minmax(0, 1fr); } }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checks li { padding-left: 28px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--grad); }
.checks li::after { content: ""; position: absolute; left: 5px; top: 9px; width: 5px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
form.card { background: var(--bg-2); border: 1px solid var(--line); border-radius: 20px; padding: 24px; display: grid; gap: 16px; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 560px) { .two { grid-template-columns: minmax(0, 1fr); } form.card { padding: 18px; } }
.field { display: grid; gap: 6px; }
label { font-family: var(--f-head); font-weight: 600; font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-2); }
label .req { color: var(--dot); }
input, select, textarea { font: inherit; color: var(--text); background: var(--bg); border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 13px; width: 100%; transition: border-color .2s; }
input:hover, select:hover, textarea:hover { border-color: #3a4049; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--dot); }
textarea { min-height: 110px; resize: vertical; }
.note { font-size: 0.86rem; color: var(--text-3); }
.note.err { color: #ff8a80; }
.done { display: none; background: var(--bg-2); border: 1px solid var(--line); border-radius: 20px; padding: 28px; gap: 8px; }
.done.on { display: grid; }

/* Events + shops */
.evrow { display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 14px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); transition: border-color .2s, background-color .2s; }
.evrow:hover { border-color: #3a4049; background: var(--bg-3); }
.evdate { border-radius: 12px; background: var(--bg); border: 1px solid var(--line); text-align: center; padding: 8px 4px; font-family: var(--f-head); }
.evdate small { display: block; font-size: 0.66rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dot); }
.evdate b { display: block; font-size: 1.5rem; color: var(--text); line-height: 1.1; }
.evdate span { display: block; font-size: 0.66rem; color: var(--text-3); }
.evrow .txt { display: grid; gap: 4px; min-width: 0; }
.evrow .txt p { margin: 0; font-size: 0.88rem; color: var(--text-3); }
.tag.ex { border-style: dashed; color: var(--text-3); }
.tag.type { color: var(--text); }
@media (max-width: 640px) { .evrow { grid-template-columns: 62px minmax(0, 1fr); } .evrow .btn { grid-column: 2; justify-self: start; } }
.shops { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1000px) { .shops { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .shops { grid-template-columns: minmax(0, 1fr); } }
.shop { padding: 18px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line); display: grid; gap: 6px; align-content: start; transition: transform .25s, border-color .25s; }
.shop:hover { transform: translateY(-3px); border-color: var(--dot); }
.shop b { font-family: var(--f-head); font-weight: 600; color: var(--text); font-size: 1rem; }
.shop .hood { font-family: var(--f-head); font-weight: 600; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dot); }
.shop p { margin: 0; font-size: 0.86rem; }
.news { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1000px) { .news { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .news { grid-template-columns: minmax(0, 1fr); } }
.nitem { display: grid; gap: 8px; align-content: start; padding: 18px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line); text-decoration: none; transition: transform .25s, border-color .25s; }
.nitem:hover { transform: translateY(-3px); border-color: var(--dot); }
.nitem .src { font-family: var(--f-head); font-weight: 600; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dot); }
.nitem b { font-family: var(--f-head); font-weight: 600; color: var(--text); font-size: 1rem; line-height: 1.35; }
.nitem span.meta { font-size: 0.8rem; color: var(--text-3); }
.empty { padding: 32px; border: 1.5px dashed var(--line); border-radius: 18px; color: var(--text-3); text-align: center; }

/* Footer */
footer.site { border-top: 1px solid var(--line); margin-top: 32px; padding-block: 40px; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.foot .fh { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text); margin-bottom: 10px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot a:hover { color: var(--dot); }
.foot p { margin: 8px 0 0; max-width: 26rem; }
.fine { margin-top: 28px; font-size: 0.82rem; color: var(--text-3); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
@media (max-width: 760px) { .foot { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .foot > div:first-child { grid-column: 1 / -1; } }

/* Docked player */
.player { position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; background: #000; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0px); }
.player-in { display: grid; grid-template-columns: 56px minmax(0, 280px) auto minmax(0, 1fr) 48px; align-items: center; height: 68px; padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px); }
.player .pp { height: 68px; display: grid; place-items: center; border-right: 1px solid var(--line); color: var(--text); }
.player .pp svg { width: 22px; height: 22px; fill: currentColor; }
.player .now { padding: 0 16px; display: grid; min-width: 0; border-right: 1px solid var(--line); height: 68px; align-content: center; }
.player .now b { font-family: var(--f-head); font-weight: 600; font-size: 0.82rem; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player .now small { font-size: 0.72rem; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player .skip { display: flex; gap: 4px; padding: 0 14px; border-right: 1px solid var(--line); height: 68px; align-items: center; }
.player .skip button { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: var(--text-2); }
.player .skip button:hover { color: var(--text); background: var(--bg-3); }
.player .skip svg { width: 14px; height: 14px; fill: currentColor; }
.player .prog { padding: 0 18px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; font-size: 0.72rem; color: var(--text-3); font-variant-numeric: tabular-nums; }
.player .track { height: 4px; background: var(--bg-3); border-radius: 4px; position: relative; cursor: pointer; }
.player .fill { position: absolute; inset: 0 auto 0 0; width: 0%; background: var(--grad); border-radius: 4px; }
.player .vol { height: 68px; display: grid; place-items: center; border-left: 1px solid var(--line); color: var(--text-2); }
.player .vol svg { width: 18px; height: 18px; fill: currentColor; }
@media (max-width: 760px) { .player-in { grid-template-columns: 56px minmax(0, 1fr) auto; } .player .prog, .player .vol { display: none; } .player .now { border-right: 0; } .player::after { content: ""; position: absolute; top: -1px; left: 0; height: 2px; width: var(--p, 0%); background: var(--grad); } }

.toast { position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--bg-3); color: var(--text); border: 1px solid var(--line); padding: 10px 16px; border-radius: 12px; font-size: 0.86rem; z-index: 70; max-width: calc(100% - 32px); text-align: center; }
.toast[hidden] { display: none; }

/* Search */
.search { position: fixed; inset: 0; z-index: 80; background: rgba(5, 6, 7, 0.94); backdrop-filter: blur(6px); padding-top: calc(80px + env(safe-area-inset-top, 0px)); }
.search-row { display: flex; gap: 10px; }
.search-row .icon-btn { flex: none; width: 56px; height: 56px; }
.search input { font-size: 1.3rem; padding: 16px 18px; border-radius: 16px; }
.search .res { margin-top: 18px; display: grid; gap: 10px; max-height: 60vh; overflow: auto; }

/* ===== WordPress additions ===== */
[hidden] { display: none !important; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--text); color: var(--bg); padding: 10px 14px; border-radius: 10px; font-family: var(--f-head); font-weight: 600; }
.skip-link:focus { top: 12px; }
main:focus { outline: none; }
body.admin-bar header.top { top: 32px; }
@media (max-width: 782px) { body.admin-bar header.top { top: 46px; } }
@media (max-width: 600px) { body.admin-bar header.top { top: 0; } }
.logo img { max-height: 44px; width: auto; display: block; }
.pad-b { padding-bottom: 56px; }
.head-row.tight { margin-bottom: 14px; }
h3.big { font-size: 1.5rem; }
h3.mid, h2.mid { font-size: 1.15rem; }
.ep h3 a, .row h3 a, .sugg h3 a, .sugg h2 a, .txt h3 a { color: inherit; transition: color .2s; }
.ep h3 a:hover, .row h3 a:hover, .sugg h3 a:hover, .sugg h2 a:hover { color: var(--dot); }

/* Covers with real artwork */
.cover.has-img { padding: 0; background: var(--bg-3); }
.cover.has-img::before, .cover.has-img::after { display: none; }
.cover.has-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-art .cover.has-img { padding: 0; }

/* Shows */
.show-card h3 { font-size: 1.25rem; }
.show-card .line, .show-head .line { color: var(--text); }
.show-head .line { font-size: 1.1rem; margin: 0; }
.show-desc p { margin: 0 0 10px; }
.show-desc p:last-child { margin-bottom: 0; }
.show-card.invite, .sugg.invite { border-style: dashed; grid-template-columns: minmax(0, 1fr); }
.show-card.invite .btn { justify-self: start; margin-top: 4px; }

/* Rows */
.row > a { display: block; }
.row.nonum { grid-template-columns: 72px minmax(0, 1fr) auto; }
.row.plain { grid-template-columns: minmax(0, 1fr); }
a.tag { transition: border-color .2s, color .2s; }
a.tag:hover { border-color: var(--dot); color: var(--text); }
@media (max-width: 640px) { .row.nonum { grid-template-columns: 60px minmax(0, 1fr) auto; } }
.rp[disabled], .play[disabled], .bigplay[disabled] { opacity: .35; cursor: not-allowed; }

/* Filters as links */
a.chip { text-decoration: none; }
.chip i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }

/* Episode page */
.ep-page .show-head { align-items: center; }
.ep-page .show-head h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.ep-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 320px); gap: 40px; padding-bottom: 32px; }
@media (max-width: 860px) { .ep-body { grid-template-columns: minmax(0, 1fr); } }
.ep-side { display: grid; gap: 14px; align-content: start; }

/* Readable text */
.prose { max-width: 46rem; }
.prose > * { margin-top: 0; margin-bottom: 1em; }
.prose h2 { margin-top: 1.6em; margin-bottom: .6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.4em; margin-bottom: .5em; }
.prose a { color: var(--dot); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .35em; }
.prose img { max-width: 100%; height: auto; border-radius: 12px; }
.prose strong, .prose b { color: var(--text); }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--dot); color: var(--text); }

/* Theme pages built with blocks (About, Join, Contact, Local intro) */
.entry > .page-head { padding-block: 56px 28px; }
.entry .page-head > * { margin: 0; }
.entry .wp-block-group.block > .wp-block-group.head-row { margin-bottom: 24px; }
.entry p { margin: 0; }
.entry .stack, .entry .sugg, .entry .spot .stack { display: grid; gap: 14px; align-content: start; }
.entry .spot.two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 760px) { .entry .spot.two { grid-template-columns: minmax(0, 1fr); } }
.topics.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .topics.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .topics.four { grid-template-columns: minmax(0, 1fr); } }
.topic h3 { font-size: 1rem; }
.topic p { font-size: 0.8rem; color: var(--text-3); }
.lede, .is-style-lede { font-size: 1.1rem; color: var(--text); }
.is-style-kicker { font-family: var(--f-head); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }
.is-style-dot::after { content: "."; color: var(--dot); }
.kicker.blue, .entry .sugg .kicker { color: var(--dot); }
.is-style-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.is-style-checks li { padding-left: 28px; position: relative; }
.is-style-checks li::before { content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--grad); }
.is-style-checks li::after { content: ""; position: absolute; left: 5px; top: 9px; width: 5px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.entry .formwrap > .wp-block-group { display: grid; gap: 28px; align-content: start; }
.entry .formwrap .wp-block-group.stack h3 { font-size: 1.2rem; }
.entry .narrow { max-width: 46rem; }
.entry a:not(.wp-block-button__link):not(.btn) { color: var(--dot); }
.wp-block-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.wp-block-button { margin: 0; }
.wp-block-button .wp-block-button__link, .entry .wp-block-button__link { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-head); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase; color: #fff; background: var(--grad); padding: 11px 20px; border-radius: 99px; border: 0; transition: transform .2s, box-shadow .2s; white-space: nowrap; text-decoration: none; }
.wp-block-button .wp-block-button__link:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -12px rgba(26, 140, 255, 0.7); color: #fff; }
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent; border: 1.5px solid #5a606a; color: var(--text); }
.wp-block-button.is-style-outline .wp-block-button__link:hover { border-color: var(--dot); box-shadow: none; }
.band .wp-block-buttons { justify-content: flex-start; }

/* Events and shops */
h3.month { font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); margin: 18px 0 0; }
h3.month:first-child { margin-top: 0; }
.shop .links { display: flex; gap: 14px; flex-wrap: wrap; font-family: var(--f-head); font-weight: 600; font-size: 0.74rem; letter-spacing: 0.04em; margin-top: 4px; }
.shop .links a { color: var(--dot); }
.shop .links a:hover { color: var(--text); }
[data-events] > .note { margin-top: 14px; }

/* Forms */
.sns-form .field { min-width: 0; }
input[type="checkbox"] { width: auto; }
.consent { display: flex; gap: 10px; align-items: flex-start; text-transform: none; letter-spacing: 0; font-family: var(--f-body); font-weight: 400; font-size: 0.9rem; color: var(--text-2); }
.consent input { margin-top: 5px; accent-color: var(--blue); width: 16px; height: 16px; flex: none; }
.consent a { color: var(--dot); text-decoration: underline; }
.form-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sns-alert { margin: 0 0 14px; background: rgba(255, 138, 128, 0.08); border: 1px solid #ff8a80; color: #ffc4bd; padding: 12px 14px; border-radius: 12px; }
.done h3 { font-size: 1.3rem; }
.done p { margin: 0; }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: #ff8a80; }
.formwrap .stack { display: grid; gap: 14px; align-content: start; }
.formwrap .stack p { margin: 0; }

/* Player */
.player .now { text-decoration: none; }
.player .now:hover b { color: var(--dot); }
.player .skip .speed { width: auto; min-width: 34px; padding: 0 6px; border-radius: 99px; font-family: var(--f-head); font-weight: 600; font-size: 0.72rem; }
.player[data-empty] .prog, .player[data-empty] .skip { opacity: .4; pointer-events: none; }
.player .vol { width: 48px; }
.player .vol:hover { color: var(--text); }
.player.loading .pp svg { animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
@media (max-width: 760px) { .player .skip #back15, .player .skip .speed { display: none; } }

/* Pager */
.pager { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 24px; }
.pager .page-numbers { font-family: var(--f-head); font-weight: 600; font-size: 0.8rem; padding: 8px 14px; border-radius: 99px; border: 1.5px solid var(--line); color: var(--text-2); }
.pager a.page-numbers:hover { border-color: var(--dot); color: var(--text); }
.pager .current { background: var(--text); color: var(--bg); border-color: var(--text); }

/* Page loading bar (seamless navigation) */
.loadbar { position: fixed; top: 0; left: 0; height: 2px; width: 0; background: var(--grad); z-index: 120; transition: width .4s ease, opacity .3s; opacity: 0; }
.loadbar.on { opacity: 1; }
@media (max-width: 460px) { .show-card .cover:not(.has-img) small { display: none; } .show-card .cover:not(.has-img) { align-content: end; } .show-card .cover b { font-size: 0.82rem; } }

/* ===== 1.1 ===== */
/* Mission band */
.mission { border-bottom: 1px solid var(--line); background: linear-gradient(180deg, rgba(91, 43, 224, 0.10), transparent); }
.mission-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: end; padding-block: 36px 32px; }
.mission h1 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin: 6px 0 10px; }
.mission p { margin: 0; max-width: 46rem; }
.mission .kicker { color: var(--dot); }
@media (max-width: 760px) { .mission-in { grid-template-columns: minmax(0, 1fr); gap: 18px; padding-block: 28px; } }
.hero-inner { padding-block: 56px 64px; }

/* Who we spotlight */
.spotlight { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 900px) { .spotlight { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .spotlight { grid-template-columns: minmax(0, 1fr); } }
.spotlight .topic { min-height: 0; align-content: start; gap: 6px; }
.spotlight .topic span { font-size: 0.86rem; color: var(--text-2); }
.topic em { font-style: normal; font-family: var(--f-head); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--dot); margin-top: 6px; }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 6px; justify-self: start; font-family: var(--f-head); font-weight: 600; font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 10px; border-radius: 99px; border: 1px solid var(--line); color: var(--text-2); }
.badge.member { border-color: rgba(38, 184, 255, 0.5); color: var(--dot); }
.badge.featured { border-color: rgba(201, 106, 59, 0.55); color: #e59a6e; }
.sugg.creator .avatar .cover { max-width: 120px; }

/* Embeds */
.embeds { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 18px; align-items: start; }
.embed { margin: 0; display: grid; gap: 8px; min-width: 0; }
.embed figcaption { display: flex; gap: 10px; justify-content: space-between; font-size: 0.84rem; color: var(--text-3); }
.embed figcaption span { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.embed figcaption a { color: var(--dot); flex: none; }
.facade, .embed iframe.player-frame { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: var(--bg-3); border: 1px solid var(--line); padding: 0; }
.embed.tall .facade, .embed.tall iframe.player-frame { aspect-ratio: 9 / 16; max-width: 280px; }
.facade img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.facade:hover img { transform: scale(1.03); }
.fplay { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 64px; height: 64px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .9); transition: transform .2s; }
.facade:hover .fplay { transform: translate(-50%, -50%) scale(1.06); }
.fplay svg { width: 24px; height: 24px; fill: #fff; margin-left: 3px; }
.embed.tt .facade { background: radial-gradient(120% 80% at 100% 0%, rgba(37, 244, 238, .25), transparent 60%), radial-gradient(120% 80% at 0% 100%, rgba(254, 44, 85, .25), transparent 60%), #111; }
.tt-mark { position: absolute; top: 16px; left: 16px; font-family: var(--f-head); font-weight: 700; color: #fff; }
.tt-title { position: absolute; left: 16px; right: 16px; bottom: 16px; color: #fff; font-size: 0.9rem; text-align: left; }
.embed.sp iframe { width: 100%; height: 152px; border: 0; border-radius: 14px; }
.embed iframe.player-frame { border: 0; }
.tight-top { padding-top: 0; }

/* Books */
.books-block { margin-top: 32px; display: grid; gap: 16px; }
.books { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.book { display: grid; gap: 10px; align-content: start; text-decoration: none !important; color: inherit !important; }
.bcover { position: relative; aspect-ratio: 2 / 3; border-radius: 10px; overflow: hidden; background: linear-gradient(160deg, #1d2026, #0e1013); border: 1px solid var(--line); display: grid; align-content: end; padding: 12px; transition: transform .25s; }
.bcover b { font-family: var(--f-head); font-weight: 700; color: #fff; font-size: 0.86rem; line-height: 1.2; }
.bcover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.book:hover .bcover { transform: translateY(-3px); border-color: var(--dot); }
.btxt { display: grid; gap: 2px; font-size: 0.84rem; color: var(--text-3); }
.btxt b { font-family: var(--f-head); font-weight: 600; color: var(--text); font-size: 0.9rem; line-height: 1.3; }
.btxt em { font-style: normal; color: var(--dot); font-family: var(--f-head); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase; margin-top: 4px; }

/* Chapters */
.row.chapter { grid-template-columns: 52px minmax(0, 1fr) auto; }
.row.chapter .txt p { white-space: normal; }
@media (max-width: 640px) { .row.chapter { grid-template-columns: minmax(0, 1fr) auto; } }
.credit { margin-top: 18px; }
.credit a { color: var(--dot); }
