/* =============================================================================
   C.L. Stegall — clstegall.com
   Interior page components. Loads AFTER css/site.css and reuses its tokens,
   so changing the five brand hexes in site.css restyles these pages too.
   ========================================================================== */

/* ---- Page hero (compact banner used on every interior page) -------------- */
.page-hero {
  position: relative;
  background-size: cover;
  background-position: center;
  background-color: var(--ink);
  border-bottom: 1px solid rgba(159,194,204,.2);
}
.page-hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(100deg,
    var(--ink) 4%,
    rgba(35,44,45,.93) 42%,
    rgba(35,44,45,.62) 78%,
    rgba(35,44,45,.82) 100%);
}
.page-hero-inner { position: relative; padding: 74px 0 64px; max-width: 780px; }
.page-hero h1 {
  font-size: clamp(36px, 5.2vw, 62px);
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--frozen-water);
  text-shadow: 0 4px 34px rgba(20,26,27,.8);
}
.page-lead {
  margin-top: 22px;
  font-family: var(--serif); font-style: italic;
  font-size: clamp(19px, 2.1vw, 23px); line-height: 1.4;
  color: var(--almond-silk); max-width: 34ch;
}
.page-sub { margin-top: 20px; max-width: 62ch; }
.page-hero .buy-row { margin-top: 30px; }

/* ---- Small buttons and one extra tone ----------------------------------- */
.btn-sm { padding: 10px 18px; font-size: 11px; letter-spacing: .12em; }
.btn-ghost { border-color: rgba(159,194,204,.32); color: var(--light-blue); }
.btn-ghost:hover { border-color: var(--frozen-water); color: var(--frozen-water); }
.btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }

/* ---- Section helpers ----------------------------------------------------- */
.section-tight { padding: 66px 0 60px; }
.series-note { color: var(--muted); font-size: 15px; margin-bottom: 46px; max-width: 72ch; }
.anchor-offset { scroll-margin-top: calc(var(--topbar-h) + var(--header-h) + 24px); }

/* ---- Title rows (Books page) -------------------------------------------- */
.title-list { display: grid; gap: 0; }
.title {
  display: grid; grid-template-columns: 186px minmax(0,1fr);
  gap: 38px; align-items: start;
  padding: 40px 0;
  border-top: 1px solid rgba(159,194,204,.16);
}
.title:first-child { border-top: 0; padding-top: 4px; }
.title-cover { margin: 0; }
.title-cover img {
  width: 100%; aspect-ratio: 5 / 8; object-fit: cover;
  border: 1px solid rgba(223,187,177,.22);
  box-shadow: 0 20px 44px rgba(15,20,21,.55);
}
.title-kicker {
  font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase;
  color: var(--light-blue);
}
.title h3 {
  margin: 8px 0 0;
  font-family: var(--serif); font-weight: 600; line-height: 1.05;
  font-size: clamp(27px, 3.2vw, 36px); letter-spacing: .05em; text-transform: uppercase;
  color: var(--frozen-water);
}
.title-hook {
  margin-top: 14px;
  font-family: var(--serif); font-style: italic; font-size: 18px; line-height: 1.4;
  color: var(--almond-silk); max-width: 40ch;
}
.title-blurb { margin-top: 14px; max-width: 62ch; font-size: 15.5px; }
.title-buy { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 24px; }

/* ---- In development ------------------------------------------------------ */
.dev-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 26px; }
.dev { border: 1px solid rgba(159,194,204,.22); padding: 30px 26px 32px; }
.dev h3 {
  margin: 10px 0 0;
  font-family: var(--serif); font-size: 24px; letter-spacing: .05em; text-transform: uppercase;
  color: var(--almond-silk);
}
.dev p { margin-top: 12px; font-size: 14.5px; color: var(--muted); }

/* ---- Serial gate --------------------------------------------------------- */
.gate {
  max-width: 620px; margin: 0 auto;
  border: 1px solid rgba(223,187,177,.26);
  background: var(--surface);
  padding: 44px 40px 40px;
  text-align: center;
}
.gate-mark { width: 34px; height: 34px; margin: 0 auto 22px; color: var(--light-blue); }
.gate h2 { font-size: 28px; color: var(--almond-silk); }
.gate p { margin-top: 16px; font-size: 15px; }
.gate .signup-form { margin-top: 26px; }
.gate .form-note { text-align: center; }
.gate-open { display: none; }
.gate.is-open .gate-locked { display: none; }
.gate.is-open .gate-open { display: block; }
.gate-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 26px; }

/* ---- Episode list -------------------------------------------------------- */
.season { border-top: 1px solid rgba(159,194,204,.18); }
.ep {
  display: grid; grid-template-columns: 62px minmax(0,1fr) 130px;
  gap: 22px; align-items: baseline;
  padding: 24px 0;
  border-bottom: 1px solid rgba(159,194,204,.14);
}
.ep-num {
  font-family: var(--serif); font-size: 24px; color: var(--light-blue);
  font-variant-numeric: tabular-nums;
}
.ep h3 {
  margin: 0;
  font-family: var(--serif); font-size: 21px; color: var(--almond-silk);
}
.ep p { margin-top: 8px; font-size: 14.5px; color: var(--muted); max-width: 68ch; }
.ep-status {
  font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--frozen-water); text-align: right;
}
.ep.is-upcoming { opacity: .58; }
.ep.is-upcoming .ep-status { color: var(--muted); }

/* ---- Freebie / perk cards ------------------------------------------------ */
.perk-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 26px; }
.perk {
  display: flex; flex-direction: column;
  border: 1px solid rgba(223,187,177,.2);
  background: var(--surface);
}
.perk-art {
  height: 216px; padding: 24px;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink);
  border-bottom: 1px solid rgba(159,194,204,.16);
}
.perk-art img {
  height: 100%; width: auto; max-width: 100%; object-fit: contain;
  box-shadow: 0 16px 34px rgba(15,20,21,.6);
}
.perk-art svg { width: 66px; height: 66px; color: var(--light-blue); }
.perk-body { padding: 26px 26px 30px; display: flex; flex-direction: column; flex-grow: 1; }
.perk-body .eyebrow { margin-bottom: 12px; }
.perk-body h3 {
  margin: 0;
  font-family: var(--serif); font-size: 24px; letter-spacing: .04em;
  color: var(--almond-silk);
}
.perk-body p { margin-top: 12px; font-size: 14.5px; }
.perk-body .text-link { margin-top: auto; padding-top: 20px; align-self: flex-start; }

/* ---- Signup panel (full width band) -------------------------------------- */
.signup-panel {
  background: var(--dark-walnut);
  padding: 52px 46px;
  display: grid; grid-template-columns: minmax(0,1fr) 380px;
  gap: 46px; align-items: center;
}
.signup-panel h2 { font-size: clamp(28px, 3.4vw, 38px); color: var(--almond-silk); }
.signup-panel p { color: var(--walnut-text); margin-top: 14px; max-width: 52ch; }
.signup-panel .signup-form { flex-direction: column; gap: 12px; }
.signup-panel .signup-form input,
.signup-panel .signup-form button { width: 100%; }

/* ---- FAQ ----------------------------------------------------------------- */
.faq { border-top: 1px solid rgba(159,194,204,.18); max-width: 820px; }
.faq details { border-bottom: 1px solid rgba(159,194,204,.14); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; gap: 24px;
  padding: 20px 0;
  font-size: 16px; color: var(--almond-silk);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--light-blue); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { padding-bottom: 22px; max-width: 70ch; font-size: 15px; }

/* ---- About --------------------------------------------------------------- */
.about-grid { display: grid; grid-template-columns: 300px minmax(0,1fr); gap: 56px; align-items: start; }
.about-portrait { margin: 0; position: sticky; top: calc(var(--topbar-h) + var(--header-h) + 28px); }
.about-portrait img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 18%;
  border: 1px solid rgba(223,187,177,.22); filter: grayscale(.3);
}
.about-portrait figcaption {
  margin-top: 12px; font-size: 11.5px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--muted);
}
.prose { font-size: 16.5px; max-width: 66ch; }
.prose p + p { margin-top: 18px; }
.prose em { color: var(--almond-silk); }

.facts {
  display: grid; grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 1px; background: rgba(159,194,204,.18);
  border: 1px solid rgba(159,194,204,.18);
}
.fact { background: var(--iron-grey); padding: 30px 28px 32px; }
.fact-num { font-family: var(--serif); font-size: 19px; color: var(--light-blue); }
.fact h3 {
  margin: 8px 0 0;
  font-family: var(--serif); font-size: 22px; color: var(--almond-silk);
}
.fact p { margin-top: 10px; font-size: 14.5px; color: var(--muted); }

.photo-strip { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; }
.photo-strip figure { margin: 0; }
.photo-strip img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 22%;
  filter: grayscale(.4); border: 1px solid rgba(223,187,177,.16);
}
.photo-strip figcaption {
  margin-top: 12px; font-size: 11px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--muted);
}

.pull { text-align: center; max-width: 900px; margin: 0 auto; }
.pull blockquote {
  margin: 0;
  font-family: var(--serif); font-style: italic; line-height: 1.35;
  font-size: clamp(23px, 3.2vw, 34px); color: var(--almond-silk);
}
.pull .text-link { margin-top: 28px; }

/* ---- Music: track list and player ---------------------------------------- */
.tracks { border: 1px solid rgba(159,194,204,.2); background: var(--surface); }
.trk {
  display: flex; align-items: center; gap: 18px; width: 100%;
  padding: 13px 20px; margin: 0;
  background: none; border: 0; border-bottom: 1px solid rgba(159,194,204,.12);
  color: inherit; font: inherit; text-align: left; cursor: pointer;
  transition: background-color .18s ease;
}
.trk:last-child { border-bottom: 0; }
.trk:hover { background: rgba(159,194,204,.07); }
.trk-num { width: 20px; flex: none; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.trk-thumb { width: 46px; height: 46px; flex: none; object-fit: cover; }
.trk-title { flex-grow: 1; min-width: 0; font-size: 15px; color: var(--almond-silk); }
.trk-time { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.trk.is-active { background: rgba(159,194,204,.09); }
.trk.is-active .trk-title { color: var(--frozen-water); }
.trk.is-active .trk-num { color: var(--frozen-water); }

.player {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  background: var(--ink);
  border-top: 1px solid rgba(159,194,204,.26);
  transform: translateY(105%);
  transition: transform .25s ease;
}
.player.is-visible { transform: none; }
.player-inner {
  max-width: var(--wrap); margin: 0 auto;
  padding: 11px var(--gutter);
  display: flex; align-items: center; gap: 16px;
}
.player-art { width: 46px; height: 46px; flex: none; object-fit: cover; }
.player-meta { width: 190px; flex: none; min-width: 0; }
.player-title {
  font-size: 14px; color: var(--almond-silk);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.player-sub { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.player-btn {
  width: 40px; height: 40px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: none; border: 1px solid rgba(159,194,204,.3);
  color: var(--almond-silk); cursor: pointer; padding: 0;
  transition: border-color .18s ease, color .18s ease;
}
.player-btn:hover { border-color: var(--frozen-water); color: var(--frozen-water); }
.player-btn svg { width: 16px; height: 16px; fill: currentColor; }
.player-btn-main { background: var(--dark-walnut); border-color: var(--dark-walnut); }
.player-btn-main:hover { background: #6e2109; border-color: #6e2109; }
.player-seek { flex-grow: 1; display: flex; align-items: center; gap: 12px; min-width: 0; }
.player-time { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.player-seek input[type="range"] {
  flex-grow: 1; min-width: 0; height: 3px; -webkit-appearance: none; appearance: none;
  background: rgba(159,194,204,.28); cursor: pointer;
}
.player-seek input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 12px; height: 12px; border-radius: 50%; background: var(--frozen-water); border: 0;
}
.player-seek input[type="range"]::-moz-range-thumb {
  width: 12px; height: 12px; border-radius: 50%; background: var(--frozen-water); border: 0;
}
body.has-player { padding-bottom: 70px; }

.music-note {
  margin-top: 30px; padding: 26px 28px;
  border-left: 2px solid var(--dark-walnut); background: var(--surface);
  font-size: 15px; max-width: 70ch;
}
.music-note p + p { margin-top: 12px; }

/* =============================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .signup-panel { grid-template-columns: minmax(0,1fr) 320px; gap: 34px; padding: 44px 34px; }
  .about-grid { grid-template-columns: 250px minmax(0,1fr); gap: 40px; }
  .title { grid-template-columns: 160px minmax(0,1fr); gap: 30px; }
}

@media (max-width: 900px) {
  .dev-grid, .perk-grid { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 34px; }
  .about-portrait { position: static; max-width: 300px; }
  .signup-panel { grid-template-columns: 1fr; }
  .ep { grid-template-columns: 46px minmax(0,1fr); }
  .ep-status { grid-column: 2; text-align: left; margin-top: 10px; }
  .player-meta { width: 130px; }
}

@media (max-width: 760px) {
  .page-hero-inner { padding: 52px 0 46px; }
  .title { grid-template-columns: 1fr; gap: 22px; }
  .title-cover { max-width: 190px; }
  .photo-strip { grid-template-columns: 1fr; max-width: 320px; }
  .gate { padding: 34px 24px 30px; }
  .signup-panel { padding: 36px 26px; }
  .perk-art { height: 190px; }
  .player-meta, .player-time { display: none; }
  .player-inner { padding: 10px var(--gutter); gap: 10px; }
  body.has-player { padding-bottom: 66px; }
  .title-buy .btn { flex-grow: 1; text-align: center; }
}

/* ---- Prose beside a narrow supporting column ----------------------------- */
.split { display: grid; grid-template-columns: minmax(0,1fr) 400px; gap: 52px; align-items: start; }
.split .facts { grid-template-columns: 1fr; }

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 34px; }
}

/* ---- Square cover art (music) -------------------------------------------- */
.about-portrait-square img { aspect-ratio: 1 / 1; object-position: center; filter: none; }

/* =============================================================================
   Music: album blocks, lineup, and the two-band track lists
   ========================================================================== */
.album {
  display: grid; grid-template-columns: 300px minmax(0,1fr);
  gap: 46px; align-items: start;
  margin-bottom: 48px;
}
.album-art { margin: 0; }
.album-art img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  border: 1px solid rgba(223,187,177,.22);
  box-shadow: 0 26px 56px rgba(15,20,21,.6);
}
.album h3 {
  margin: 10px 0 0;
  font-family: var(--serif); font-weight: 600; line-height: 1.05;
  font-size: clamp(30px, 3.6vw, 42px); letter-spacing: .05em; text-transform: uppercase;
  color: var(--frozen-water);
}
.album-hook {
  margin-top: 16px;
  font-family: var(--serif); font-style: italic; font-size: 19px; line-height: 1.4;
  color: var(--almond-silk); max-width: 40ch;
}
.album p { margin-top: 14px; max-width: 62ch; font-size: 15.5px; }
.album .buy-row { margin-top: 26px; }

/* Track rows carrying a lyric line under the title */
.trk-main { flex-grow: 1; min-width: 0; }
.trk-main .trk-title { display: block; }
.trk-lyric {
  display: block; margin-top: 2px;
  font-family: var(--serif); font-style: italic; font-size: 13.5px;
  color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.trk.is-active .trk-lyric { color: var(--light-blue); }

/* The lineup */
.lineup { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 28px; }
.member { margin: 0; }
.member img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 18%;
  border: 1px solid rgba(223,187,177,.18);
  filter: grayscale(.25);
}
.member-role {
  display: block; margin-top: 14px;
  font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--light-blue);
}
.member h4 {
  margin: 5px 0 0;
  font-family: var(--serif); font-weight: 600; font-size: 22px;
  color: var(--almond-silk);
}
.member p { margin-top: 9px; font-size: 14px; color: var(--muted); }

/* Band photo, full bleed inside the wrap */
.band-shot { margin: 0; }
.band-shot img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  border: 1px solid rgba(223,187,177,.18);
}
.band-shot figcaption {
  margin-top: 12px; font-size: 11px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--muted);
}

/* The in-world note */
.canon-note {
  border: 1px solid rgba(159,194,204,.24);
  background: var(--surface);
  padding: 34px 34px 36px;
}
.canon-note h3 {
  margin: 10px 0 0;
  font-family: var(--serif); font-size: 26px; color: var(--almond-silk);
}
.canon-note p { margin-top: 14px; max-width: 66ch; font-size: 15.5px; }
.canon-note p + p { margin-top: 14px; }

@media (max-width: 1080px) {
  .album { grid-template-columns: 250px minmax(0,1fr); gap: 34px; }
}
@media (max-width: 900px) {
  .lineup { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 22px; }
}
@media (max-width: 760px) {
  .album { grid-template-columns: 1fr; gap: 26px; }
  .album-art { max-width: 260px; }
  .lineup { grid-template-columns: 1fr; max-width: 320px; }
  .canon-note { padding: 26px 22px 28px; }
  .trk-lyric { display: none; }
}
