/* =========================================================
   Center Stage Magazine — 2026 public theme
   Light + dark via CSS custom properties.
   - Default follows the visitor's device (prefers-color-scheme)
   - <html data-theme="light|dark"> forces a theme (set by csm.js)
   ========================================================= */

:root {
  --bg: #FFFFFF;
  --surface: #F4F2F1;
  --ink: #18171A;
  --muted: #5E5A60;
  --line: #E4E1E2;
  --bar: #18171A;
  --bar-ink: #F2F0F1;
  --bar-line: #34313A;
  --accent: #96202A;
  --on-accent: #FFFFFF;
  --accent-text: #96202A;
  --chip: #F4F2F1;
  --ph: #E9E6E5;
  --ph-ink: #6F6A6E;
  --ad-bg: #F8F7F6;
  --logo-ink: #262425;
  --logo-accent: #96202A;
  --shadow: 0 1px 2px rgba(24, 23, 26, .06);

  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 10px;
  --wrap: 1240px;
  --gutter: 32px;
  color-scheme: light;
}

/* Dark tokens: defined once, applied two ways */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121113; --surface: #1B1A1D; --ink: #F2F0F1; --muted: #A9A5AB; --line: #2E2C31;
    --bar: #0A0A0B; --bar-ink: #E9E6E8; --bar-line: #2A282C;
    --accent: #C8323C; --on-accent: #FFFFFF; --accent-text: #F0626A;
    --chip: #232126; --ph: #2A282D; --ph-ink: #8E8A91; --ad-bg: #18171A;
    --logo-ink: #FFFFFF; --logo-accent: #E0474F; --shadow: none;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121113; --surface: #1B1A1D; --ink: #F2F0F1; --muted: #A9A5AB; --line: #2E2C31;
  --bar: #0A0A0B; --bar-ink: #E9E6E8; --bar-line: #2A282C;
  --accent: #C8323C; --on-accent: #FFFFFF; --accent-text: #F0626A;
  --chip: #232126; --ph: #2A282D; --ph-ink: #8E8A91; --ad-bg: #18171A;
  --logo-ink: #FFFFFF; --logo-accent: #E0474F; --shadow: none;
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background-color .2s ease, color .2s ease;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4, p { margin: 0; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--accent); color: var(--on-accent); padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- type helpers ---------- */
.kicker {
  display: inline-block; font-family: var(--sans); font-size: 11px; font-weight: 700;
  letter-spacing: .15em; text-transform: uppercase; font-stretch: 118%;
  color: var(--accent-text);
}
.meta { font-size: 13px; color: var(--muted); }
.serif { font-family: var(--serif); }
.h-serif { font-family: var(--serif); font-weight: 600; line-height: 1.2; letter-spacing: -.005em; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  border-bottom: 2px solid var(--ink); padding-bottom: 12px; margin-bottom: 28px;
}
.section-head h2 { font-size: 15px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; font-stretch: 122%; }
.section-head a { font-size: 13px; font-weight: 600; color: var(--accent-text); }
.section { margin-top: 72px; }

/* ---------- utility bar ---------- */
.utility { background: var(--bar); color: var(--bar-ink); font-size: 13px; }
.utility .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.utility .place { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-stretch: 118%; }
.utility nav { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- masthead ---------- */
.masthead { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.masthead .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 84px; }
.brand { display: flex; align-items: center; }
.brand svg { height: 46px; width: auto; display: block; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; }
.primary-nav a { font-size: 14px; font-weight: 600; letter-spacing: .02em; padding: 8px 0; }
.primary-nav a[aria-current="page"] { color: var(--accent-text); }
.mast-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 22px; border: 1px solid var(--line);
  background: transparent; color: var(--ink); display: inline-flex; align-items: center; justify-content: center;
}
.icon-btn:hover { background: var(--surface); }
.icon-btn svg { width: 18px; height: 18px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 20px;
  border-radius: 22px; background: var(--accent); color: var(--on-accent); border: 0;
  font-size: 14px; font-weight: 700; text-decoration: none;
}
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.menu-btn { display: none; }

/* theme toggle icons: show moon in light, sun in dark */
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .i-moon { display: none; }
}

/* search drawer */
.search-panel { display: none; border-top: 1px solid var(--line); background: var(--bg); }
.search-panel.open { display: block; }
.search-panel form { display: flex; gap: 10px; padding: 16px 0; }
.search-panel input {
  flex: 1; height: 48px; border-radius: 24px; border: 1px solid var(--line); background: var(--bg);
  color: var(--ink); padding: 0 20px; font-size: 16px;
}

/* topic rail */
.topic-rail { border-bottom: 1px solid var(--line); }
.topic-rail .wrap { display: flex; align-items: center; gap: 10px; min-height: 56px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.topic-rail .wrap::-webkit-scrollbar { display: none; }
.topic-rail .label { margin-right: 6px; }
.chip { display: inline-block; font-size: 13px; padding: 7px 14px; border-radius: 999px; background: var(--chip); color: var(--ink); }
.chip:hover { text-decoration: none; background: var(--line); }

/* ---------- media frames: work with the existing image sizes ---------- */
/* leadimage ~866x400, leadimage280 = 280x200, leadimage80 = 80x80 */
.frame { position: relative; overflow: hidden; border-radius: 8px; background: var(--ph); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame--lead { aspect-ratio: 866 / 400; border-radius: var(--radius); }
/* hero: artist name (from the story's social media profile) on a thin gradient band */
.frame-name { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 18px 10px; text-align: right;
  font-family: var(--sans, 'Archivo', sans-serif); font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; line-height: 1.2;
  color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.5); pointer-events: none;
  background: linear-gradient(to top, rgba(0,0,0,.72) 0%, rgba(0,0,0,.42) 45%, rgba(0,0,0,0) 100%);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frame-name::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(to right, rgba(150,32,42,0) 0%, var(--accent, #96202A) 60%, var(--accent, #96202A) 100%); }
@media (max-width: 600px) { .frame-name { font-size: 11px; padding: 22px 12px 8px; } }
.frame--card { aspect-ratio: 7 / 5; }
.frame--thumb { width: 112px; height: 80px; flex: 0 0 112px; border-radius: 6px; }
.frame--sq { width: 80px; height: 80px; flex: 0 0 80px; border-radius: 6px; }
.frame--avatar { width: 56px; height: 56px; flex: 0 0 56px; border-radius: 50%; }

/* ---------- home: hero ---------- */
main.wrap { padding-top: 36px; padding-bottom: 64px; }
.hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px; }
.hero-lead a { display: block; }
.hero-lead a:hover { text-decoration: none; }
.hero-lead a:hover h1 { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.hero-lead .copy { padding-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.hero-lead h1 { font-family: var(--serif); font-size: clamp(30px, 3.4vw, 46px); line-height: 1.08; font-weight: 600; letter-spacing: -.01em; }
.hero-side .label { display: block; padding-bottom: 12px; border-bottom: 2px solid var(--ink); color: var(--muted); }
.list-row { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.list-row:hover { text-decoration: none; }
.list-row:hover h3 { text-decoration: underline; text-underline-offset: 3px; }
.list-row .txt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.list-row h3 { font-family: var(--serif); font-size: 20px; line-height: 1.22; font-weight: 600; }

/* ---------- cards ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.card { display: flex; flex-direction: column; gap: 12px; }
.card:hover { text-decoration: none; }
.card:hover h3 { text-decoration: underline; text-underline-offset: 3px; }
.card h3 { font-family: var(--serif); font-size: 23px; line-height: 1.2; font-weight: 600; }
.grid-4 .card h3 { font-size: 18px; line-height: 1.25; }

.main-side { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 40px; }
.sidebar { display: flex; flex-direction: column; gap: 36px; }
.sidebar .sticky { position: sticky; top: 104px; }

.most-read { list-style: none; margin: 0; padding: 0; }
.most-read li { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.most-read .n { font-family: var(--serif); font-size: 34px; line-height: 1; font-weight: 600; color: var(--accent-text); width: 28px; flex: 0 0 28px; }
.most-read a { font-family: var(--serif); font-size: 17px; line-height: 1.3; font-weight: 600; }

/* columns band */
.columns-band { margin-top: 72px; padding: 40px; border-radius: 14px; background: var(--surface); }
.columns-band .top { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.columns-band h2 { font-family: var(--serif); font-size: 34px; font-weight: 600; }
.col-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.col-card .who { display: flex; align-items: center; gap: 14px; }
.col-card .name { font-family: var(--serif); font-size: 22px; font-weight: 600; line-height: 1.2; display: block; }
.col-card .item { font-family: var(--serif); font-size: 17px; line-height: 1.3; font-weight: 600; padding-top: 14px; border-top: 1px solid var(--line); }
.col-card .more { font-size: 13px; font-weight: 700; color: var(--accent-text); margin-top: auto; }

/* watch & listen */
.player {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0;
  border-radius: var(--radius); overflow: hidden; background: var(--bar); color: #FFFFFF; text-align: left;
}
.player img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.player .over { position: absolute; inset: auto 0 0 0; padding: 28px; display: flex; flex-direction: column; gap: 8px; background: linear-gradient(to top, rgba(10,10,11,.85), rgba(10,10,11,0)); }
.player .play { width: 64px; height: 64px; border-radius: 32px; background: var(--accent); display: flex; align-items: center; justify-content: center; }
.player .title { font-family: var(--serif); font-size: 32px; font-weight: 600; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.archive-card { display: flex; gap: 16px; align-items: center; padding: 16px; border-radius: var(--radius); border: 1px solid var(--line); }
.archive-card:hover { text-decoration: none; background: var(--surface); }
.archive-card .name { font-family: var(--serif); font-size: 19px; font-weight: 600; display: block; }

.news-row { display: flex; flex-direction: column; gap: 6px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.news-row h3 { font-family: var(--serif); font-size: 19px; line-height: 1.3; font-weight: 600; }

/* newsletter */
.newsletter { margin-top: 72px; border-radius: 14px; background: var(--accent); color: var(--on-accent); padding: 48px; display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: space-between; }
.newsletter.quiet { background: var(--surface); color: var(--ink); }
.newsletter h2 { font-family: var(--serif); font-size: 34px; font-weight: 600; line-height: 1.15; }
.newsletter .copy { display: flex; flex-direction: column; gap: 8px; flex: 1 1 380px; }
.newsletter form { display: flex; gap: 10px; flex: 1 1 380px; flex-wrap: wrap; }
.newsletter input[type=email] { flex: 1 1 220px; height: 52px; border-radius: 26px; border: 1px solid transparent; padding: 0 22px; font-size: 15px; background: #FFFFFF; color: #18171A; }
.newsletter.quiet input[type=email] { border-color: var(--line); background: var(--bg); color: var(--ink); }
.newsletter button { height: 52px; padding: 0 28px; border-radius: 26px; border: 2px solid var(--on-accent); background: transparent; color: var(--on-accent); font-weight: 700; font-size: 15px; }
.newsletter.quiet button { border: 0; background: var(--accent); }
.hp-field { position: absolute; left: -5000px; }

/* ---------- ads: reserved space, labelled ---------- */
.ad { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ad-label { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.ad-box { width: 100%; display: flex; align-items: center; justify-content: center; border-radius: 8px; background: var(--ad-bg); overflow: hidden; }
.ad-box ins { display: block; width: 100%; }
.ad--leader { margin: 48px 0; }
.ad--leader .ad-box { max-width: 970px; min-height: 100px; }
.ad--infeed { margin: 36px 0; }
.ad--infeed .ad-box { min-height: 120px; }
.ad--rect .ad-box { width: 300px; min-height: 250px; }
.ad--tower .ad-box { width: 300px; min-height: 600px; }
.ad--inarticle { margin: 8px 0 34px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ad--inarticle .ad-box { max-width: 336px; min-height: 280px; }
.ad-house a, .ad-house img { display: block; margin: 0 auto; }

/* ---------- article ---------- */
.progress { position: absolute; left: 0; bottom: -1px; height: 3px; width: 0; background: var(--accent); transition: width .1s linear; }
.crumbs { font-size: 13px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a.here { color: var(--accent-text); font-weight: 700; }
/* Header spans the full content width so the byline rules and share buttons line up with the video/photo edge;
   the headline itself is capped so long titles stay readable (about 35-40 characters per line at full size). */
.article-head { display: flex; flex-direction: column; gap: 18px; }
.article-head h1 { max-width: 980px; font-family: var(--serif); font-size: clamp(32px, 4vw, 52px); line-height: 1.08; font-weight: 600; letter-spacing: -.012em; text-wrap: balance; }
.byline { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.byline .who { display: flex; align-items: center; gap: 12px; }
.byline .who img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.byline .who strong { display: block; font-size: 15px; }
.share { display: flex; gap: 8px; flex-wrap: wrap; }
.share a, .share button { height: 40px; padding: 0 14px; border-radius: 20px; border: 1px solid var(--line); background: transparent; color: var(--ink); font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.share a:hover, .share button:hover { background: var(--surface); text-decoration: none; }
.lead-figure { margin: 32px 0 0; }
.lead-figure .frame { border-radius: 12px; aspect-ratio: auto; }
.lead-figure img { width: 100%; height: auto; max-height: 640px; object-fit: cover; }
.lead-figure figcaption { font-size: 13px; color: var(--muted); padding-top: 10px; }
.video-embed { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; margin-top: 32px; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 64px; margin-top: 48px; }
.article-body { max-width: 700px; font-family: var(--serif); font-size: 20px; line-height: 1.7; overflow-wrap: break-word; }
.article-body p { margin: 0 0 26px; }
.article-body a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.article-body img { height: auto !important; border-radius: 8px; margin: 8px 0; }
.article-body iframe { max-width: 100%; border: 0; }
.article-body h2, .article-body h3 { font-family: var(--serif); margin: 36px 0 14px; line-height: 1.25; }
.article-body blockquote { margin: 28px 0; padding-left: 20px; border-left: 3px solid var(--accent); font-style: italic; }
.article-body strong, .article-body b { font-weight: 700; }

.panel { margin-top: 40px; padding: 28px; border-radius: 12px; background: var(--surface); display: flex; flex-direction: column; gap: 18px; font-family: var(--sans); font-size: 16px; line-height: 1.5; }
.panel .top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.panel .big { font-family: var(--serif); font-size: 26px; font-weight: 600; line-height: 1.2; display: block; }
.pill { height: 40px; padding: 0 16px; border-radius: 20px; background: var(--bg); border: 1px solid var(--line); display: inline-flex; align-items: center; font-size: 13px; font-weight: 600; }
.pill:hover { text-decoration: none; background: var(--line); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.tour-row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; }
.tour-row a { color: var(--accent-text); font-weight: 700; white-space: nowrap; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.gallery a { display: block; aspect-ratio: 7 / 5; border-radius: 8px; overflow: hidden; background: var(--ph); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery a { position: relative; cursor: zoom-in; }
.gallery a::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: inset 0 0 0 2px transparent; transition: box-shadow .15s ease, background-color .15s ease;
}
.gallery a:hover::after, .gallery a:focus-visible::after { box-shadow: inset 0 0 0 2px var(--accent); background: rgba(0,0,0,.08); }
.gallery img { transition: transform .3s ease; }
.gallery a:hover img { transform: scale(1.03); }
.section-head .count { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .08em; margin-left: 6px; }

/* ---------- photo lightbox (always dark, both themes) ---------- */
html.lb-open { overflow: hidden; }
.lightbox {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: rgba(10, 10, 11, .96); color: #F2F0F1;
  font-family: var(--sans); overflow: hidden;
}
.lightbox::backdrop { background: rgba(10, 10, 11, .96); }
.lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); animation: lb-in .18s ease-out; }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.lb-bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; }
.lb-count { font-size: 13px; font-weight: 600; letter-spacing: .08em; color: #C9C5CB; padding-left: 8px; }
.lb-stage { margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 0 88px 24px; min-height: 0; }
.lb-img { max-width: 100%; max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px); width: auto; height: auto; object-fit: contain; border-radius: 6px; transition: opacity .15s ease; user-select: none; -webkit-user-drag: none; }
.lightbox.is-loading .lb-img { opacity: .25; }
.lightbox.is-loading .lb-stage { background: radial-gradient(circle at center, rgba(255,255,255,.06) 0 40px, transparent 41px); }
.lb-cap { max-width: 760px; text-align: center; font-size: 15px; line-height: 1.5; color: #E2DFE3; }
.lb-btn {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08); color: #FFFFFF; display: inline-flex; align-items: center; justify-content: center;
}
.lb-btn:hover { background: rgba(255,255,255,.18); }
.lb-btn svg { width: 22px; height: 22px; }
.lb-btn:focus-visible { outline: 2px solid #F0626A; outline-offset: 2px; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 56px; height: 56px; }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
.lb-nav[hidden] { display: none; }
@media (max-width: 700px) {
  .lb-stage { padding: 0 12px 88px; }
  .lb-img { max-height: calc(100vh - 220px); max-height: calc(100dvh - 220px); }
  .lb-nav { top: auto; bottom: 20px; transform: none; width: 52px; height: 52px; }
  .lb-prev { left: calc(50% - 64px); }
  .lb-next { right: calc(50% - 64px); }
}

.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.videos .video-embed { margin: 0; border-radius: 8px; }

.tags-inline { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--sans); }
.tags-inline a { font-size: 13px; padding: 7px 14px; border-radius: 999px; background: var(--chip); }
.author-box { margin-top: 40px; padding-top: 28px; border-top: 2px solid var(--ink); display: flex; gap: 20px; font-family: var(--sans); font-size: 15px; line-height: 1.6; }
.author-box img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; flex: 0 0 80px; }
.author-box .name { font-family: var(--serif); font-size: 24px; font-weight: 600; display: block; }
.author-box .bio { color: var(--muted); }
.side-list a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 17px; line-height: 1.3; font-weight: 600; }
.side-head { font-size: 13px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; font-stretch: 122%; border-bottom: 2px solid var(--ink); padding-bottom: 10px; }
.spotify iframe { width: 100%; border: 0; border-radius: 12px; }

/* ---------- listing pages: section, column, search, artists, team ---------- */
.page-head { display: flex; flex-direction: column; gap: 10px; padding-bottom: 28px; margin-bottom: 36px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-family: var(--serif); font-size: clamp(34px, 4.4vw, 56px); line-height: 1.05; font-weight: 600; letter-spacing: -.015em; max-width: 980px; text-wrap: balance; }
.page-head .meta { font-size: 15px; }
.page-head .dot { margin: 0 4px; }
.column-head { flex-direction: row; align-items: center; gap: 24px; }
.column-head > div:last-child { display: flex; flex-direction: column; gap: 8px; }
.column-avatar { width: 96px; height: 96px; flex: 0 0 96px; }
.error-head { border-bottom: 0; padding-top: 24px; }
.empty { font-size: 17px; color: var(--muted); padding: 24px 0; }

.section-lead { margin-bottom: 40px; padding-bottom: 36px; border-bottom: 1px solid var(--line); }
.section-lead h2 { font-family: var(--serif); font-size: clamp(28px, 3vw, 38px); line-height: 1.12; font-weight: 600; }
.section-lead .excerpt { font-family: var(--serif); font-size: 18px; line-height: 1.55; color: var(--muted); }
.section-lead a:hover h2 { text-decoration: underline; text-underline-offset: 4px; }

.pager { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); }
.pager-btn { height: 44px; padding: 0 20px; border-radius: 22px; border: 1px solid var(--line); display: inline-flex; align-items: center; font-weight: 700; font-size: 14px; }
.pager-btn:hover { background: var(--surface); text-decoration: none; }
.pager-btn.is-off { opacity: .4; }
.pager-info { font-size: 13px; color: var(--muted); }

.search-page-form { display: flex; gap: 10px; max-width: 640px; margin-top: 10px; }
.search-page-form input { flex: 1; height: 52px; border-radius: 26px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); padding: 0 22px; font-size: 16px; }
.search-page-form .btn { height: 52px; padding: 0 26px; border-radius: 26px; }
.result-block { margin-bottom: 44px; }
.result-block .side-head { margin-bottom: 8px; }
.artist-chips { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 12px; }
.artist-chip { display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px; border-radius: 999px; background: var(--chip); font-weight: 600; font-size: 14px; }
.artist-chip:hover { text-decoration: none; background: var(--line); }

.profile-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 40px; align-items: center; }
.profile-photo { aspect-ratio: 2 / 1; border-radius: 12px; }
.profile-copy { display: flex; flex-direction: column; gap: 14px; }
.profile-copy h1 { font-family: var(--serif); font-size: clamp(34px, 4.4vw, 56px); line-height: 1.05; font-weight: 600; letter-spacing: -.015em; }
.subnav { display: flex; gap: 20px; flex-wrap: wrap; padding-top: 8px; border-top: 1px solid var(--line); margin-top: 6px; }
.subnav a { font-size: 14px; font-weight: 700; padding: 8px 0; color: var(--accent-text); }
.embed-wrap { margin-bottom: 24px; }
.embed-wrap iframe { width: 100%; max-width: 100%; border: 0; border-radius: 12px; }
.embed-wrap iframe[src*="youtube"] { height: auto; aspect-ratio: 16 / 9; }

.az { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.az a, .az span { min-width: 36px; height: 36px; padding: 0 8px; border-radius: 18px; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.az a { background: var(--chip); }
.az a:hover { background: var(--accent); color: var(--on-accent); text-decoration: none; }
.az span { color: var(--line); }
.az-groups { columns: 4 240px; column-gap: 40px; }
.az-group { break-inside: avoid; margin-bottom: 32px; scroll-margin-top: 100px; }
.az-group h2 { font-family: var(--serif); font-size: 30px; font-weight: 600; color: var(--accent-text); border-bottom: 2px solid var(--ink); padding-bottom: 6px; margin-bottom: 10px; }
.az-group ul { list-style: none; margin: 0; padding: 0; }
.az-group li { padding: 5px 0; font-size: 15px; }
.az-group li .meta { font-size: 12px; margin-left: 4px; }

.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.team-card { background: var(--surface); border-radius: 14px; padding: 26px; display: flex; flex-direction: column; gap: 16px; }
.team-card .who { display: flex; align-items: center; gap: 16px; }
.team-photo { width: 80px; height: 80px; flex: 0 0 80px; }
.team-card h2 { font-family: var(--serif); font-size: 24px; font-weight: 600; line-height: 1.2; }
.team-card .bio { font-size: 15px; line-height: 1.6; color: var(--muted); }
.team-card .bio p { margin: 0 0 10px; }
.team-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }

@media (max-width: 960px) {
  .profile-head { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}
@media (max-width: 600px) {
  .column-head { flex-direction: column; align-items: flex-start; }
  .search-page-form { flex-direction: column; }
  .pager-info { display: none; }
}

/* initials placeholder for artists/people with no photo (csmAvatar) */
.avatar-initials {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%;
  font-family: var(--sans); font-weight: 700; font-stretch: 112%; letter-spacing: .02em; line-height: 1;
  color: #FFFFFF; user-select: none;
}
.av-1 { background: #96202A; }
.av-2 { background: #2E4A62; }
.av-3 { background: #4A3B6B; }
.av-4 { background: #2F5D50; }
.av-5 { background: #6B4A2B; }
.av-6 { background: #46434A; }

/* ---------- "stage lights" (dark theme only) ----------
   Two soft beams from the top corners crossing toward the middle, over a faint red spill,
   like lights over a stage. Enabled by class="fx-spotlight" on <html> (set in csm_header.cfm).
   Sits behind all content, fades out about one screen down and scrolls with the page.
   Strength: change the alpha in --beam / --spill below. */
:root { --beam: rgba(255, 236, 214, 0); --spill: rgba(200, 50, 60, 0); }
:root[data-theme="dark"] { --beam: rgba(255, 236, 214, .22); --spill: rgba(200, 50, 60, .22); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --beam: rgba(255, 236, 214, .22); --spill: rgba(200, 50, 60, .22); } }
html.fx-spotlight body { position: relative; z-index: 0; }
html.fx-spotlight body::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1100px; z-index: -1; pointer-events: none;
  background:
    conic-gradient(from 0deg at 12% -6%, transparent 130deg, var(--beam) 145deg, transparent 162deg, transparent 360deg),
    conic-gradient(from 0deg at 88% -6%, transparent 198deg, var(--beam) 215deg, transparent 230deg, transparent 360deg),
    radial-gradient(80% 800px at 50% -160px, var(--spill), transparent 80%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 35%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 0%, #000 35%, transparent 100%);
}
@media (max-width: 700px) { html.fx-spotlight body::before { height: 760px; } }
/* let the glow show through the sticky header in dark mode */
:root[data-theme="dark"].fx-spotlight .utility,
:root[data-theme="dark"].fx-spotlight .masthead,
:root[data-theme="dark"].fx-spotlight .search-panel { background: rgba(18, 17, 19, .72); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]).fx-spotlight .utility,
  :root:not([data-theme="light"]).fx-spotlight .masthead,
  :root:not([data-theme="light"]).fx-spotlight .search-panel { background: rgba(18, 17, 19, .72); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
}

/* ---------- footer ---------- */
.site-footer { background: var(--bar); color: var(--bar-ink); padding: 56px 0 32px; margin-top: 0; }
.site-footer .cols { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.site-footer .about { display: flex; flex-direction: column; gap: 16px; }
.site-footer .about p { font-size: 14px; line-height: 1.6; opacity: .8; max-width: 420px; }
.site-footer svg.logo { height: 40px; width: auto; --logo-ink: #FFFFFF; --logo-accent: #E0474F; }
.site-footer .col { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.site-footer .col .h { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; opacity: .6; font-stretch: 118%; }
.site-footer .legal { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--bar-line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; align-items: center; font-size: 13px; }
.site-footer .legal > span { opacity: .75; }
.site-footer .social { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.site-footer .follow-label { font-size: 13px; font-weight: 600; margin-right: 4px; }
.site-footer .social a { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .08); color: var(--bar-ink); transition: background-color .15s ease, color .15s ease; }
.site-footer .social a:hover, .site-footer .social a:focus-visible { background: var(--accent); color: #FFFFFF; text-decoration: none; }
.site-footer .social svg { width: 17px; height: 17px; display: block; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .primary-nav ul { gap: 18px; }
}
@media (max-width: 960px) {
  :root { --gutter: 16px; }
  .masthead .wrap { height: 64px; gap: 8px; }
  .brand svg { height: 34px; }
  .menu-btn { display: inline-flex; border: 0; }
  .mast-actions .btn { display: none; }
  .primary-nav { display: none; position: absolute; left: 0; right: 0; top: 64px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .primary-nav.open { display: block; }
  .primary-nav ul { flex-direction: column; gap: 0; padding: 8px var(--gutter) 16px; }
  .primary-nav a { display: block; padding: 14px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
  .utility nav { display: none; }
  .hero, .main-side, .grid-3, .article-grid, .site-footer .cols { grid-template-columns: minmax(0, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sidebar .sticky { position: static; }
  .ad--tower { display: none; }
  .columns-band { padding: 24px; }
  .newsletter { padding: 28px; }
  .article-body { font-size: 18px; }
}
@media (max-width: 600px) {
  .grid-2, .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .list-row h3 { font-size: 18px; }
  .columns-band h2, .newsletter h2 { font-size: 26px; }
  .section { margin-top: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
