/* ==========================================================================
   Charlie Bernhaut - Jewish Music Programs
   Design system: floating sheets on warm paper, deep petrol + brass,
   full-bleed parallax bands, duotone tiles, Fraunces display + Karla text.
   Photography is optional everywhere: every image slot has a designed
   fallback, so the page looks finished before a single photo is added.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,600;9..144,700&family=Frank+Ruhl+Libre:wght@500;700&family=Karla:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,900;1,400&family=Special+Elite&display=swap');

:root {
  /* ---- ground + ink ---- */
  --paper:      #EDE8DE;
  --paper-warm: #E4DCCC;
  --sheet:      #FFFDF9;
  --ink:        #1A1D24;
  --ink-soft:   #565C6B;
  --muted:      #857F72;

  /* ---- brand ---- */
  --deep:       #0F3A44;   /* deep petrol: primary */
  --deep-2:     #17505C;
  --deep-3:     #0A272E;
  --brass:      #A8762C;
  --brass-lite: #C89B4A;

  /* ---- card tints (rotating, ITMA-style) ---- */
  --t-wheat:    #E8DCB8;
  --t-sky:      #C3D3DC;
  --t-rose:     #E5C1B7;
  --t-sage:     #C8D0BC;
  --t-teal:     #A7C7C4;

  /* ---- lines + shadow ---- */
  --line:       #DCD4C4;
  --shadow-sm:  0 2px 10px rgba(15,58,68,.06);
  --shadow:     0 10px 40px rgba(15,58,68,.10);
  --shadow-lg:  0 26px 70px rgba(15,58,68,.16);

  /* ---- type ---- */
  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --text:    'Karla', 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;

  /* ---- geometry ---- */
  --r-sheet: 34px;
  --r-card:  20px;
  --r-pill:  999px;
  --maxw:    1520px;
  --gutter:  clamp(1.2rem, 4.5vw, 6.2rem);
  --edge:    clamp(0.7rem, 2.2vw, 2rem);   /* gap from the viewport edge */
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.62;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  font-variation-settings: 'SOFT' 20, 'WONK' 0;
  line-height: 1.08;
  letter-spacing: -.012em;
  margin: 0 0 .55em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 1.7vw, 1.45rem); line-height: 1.2; }

p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }

a { color: var(--deep); text-decoration-color: rgba(168,118,44,.55); text-underline-offset: 3px; }
a:hover { color: var(--brass); }

img { max-width: 100%; height: auto; display: block; }

.muted { color: var(--muted); }

::selection { background: var(--brass); color: #fff; }

:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ==========================================================================
   Layout primitives
   ========================================================================== */

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

/* A sheet is a white rounded panel floating on the paper ground. Sheets are
   what the full-bleed bands scroll behind. */
.sheet {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(2.2rem, 4.5vw, 4.2rem) var(--gutter);
  background: var(--sheet);
  border-radius: var(--r-sheet);
  box-shadow: var(--shadow);
}
.sheet + .sheet { margin-top: 1.1rem; }

/* Sheets that bite into the band above or below them */
.sheet.pull-up   { margin-top: clamp(-4rem, -5vw, -2.4rem); }
.sheet.pull-down { margin-bottom: clamp(-4rem, -5vw, -2.4rem); }

/* Full-bleed band: a colour or image stripe the sheets ride over. */
.band {
  position: relative;
  z-index: 1;
  overflow: hidden;
  background: var(--deep);
  isolation: isolate;
}
.band-media {
  position: absolute;
  inset: -14% 0 -14% 0;   /* extra height so parallax never reveals an edge */
  z-index: 0;
  will-change: transform;
}
.band-media > img,
.band-media > .band-fill {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.band-inner {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(4rem, 11vw, 9rem) var(--gutter);
}

/* Section head shared by every page */
.section-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: .55rem 2rem;
  margin-bottom: 1.9rem;
}
.section-head h2 { grid-column: 1; color: var(--deep); margin: 0; }
.section-head .view-all { grid-column: 2; justify-self: end; }
.section-head .lede {
  grid-column: 1 / -1;
  max-width: 54ch;
  color: var(--ink-soft);
  margin: .2rem 0 0;
}
.section-head .view-all {
  font-size: .95rem;
  color: var(--deep);
  text-decoration: none;
  border-bottom: 1px solid rgba(168,118,44,.5);
  padding-bottom: 2px;
  white-space: nowrap;
}
.section-head .view-all:hover { color: var(--brass); border-bottom-color: var(--brass); }

.page-head { margin-bottom: 2rem; }
.page-head h1 { color: var(--deep); }
.page-head p { max-width: 56ch; color: var(--ink-soft); font-size: 1.1rem; }

.kicker {
  font-family: var(--text);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .19em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 1rem;
}

/* ==========================================================================
   Textures - designed stand-ins so no slot ever looks like a missing image
   ========================================================================== */

.tex-grooves {
  background-color: var(--deep);
  background-image:
    repeating-radial-gradient(circle at 50% 50%,
      rgba(255,255,255,.055) 0 1px,
      rgba(255,255,255,0) 1px 9px);
}
.tex-halftone {
  background-color: var(--deep-2);
  background-image: radial-gradient(rgba(255,255,255,.10) 1px, transparent 1.4px);
  background-size: 9px 9px;
}
.tex-grain {
  background-color: var(--paper-warm);
  background-image:
    radial-gradient(rgba(15,58,68,.055) 1px, transparent 1.3px),
    radial-gradient(rgba(168,118,44,.05) 1px, transparent 1.3px);
  background-size: 13px 13px, 21px 21px;
  background-position: 0 0, 7px 9px;
}
.tex-vignette::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 50% 40%, transparent 30%, rgba(10,39,46,.55) 100%);
  pointer-events: none;
}

/* ==========================================================================
   Duotone - unifies mismatched, low-res, vintage photography
   ========================================================================== */

.duo { position: relative; overflow: hidden; background: var(--duo-dark, var(--deep)); }
.duo > img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.06);
  mix-blend-mode: screen;
}
.duo::after {
  content: '';
  position: absolute; inset: 0;
  background: var(--duo-light, #DCEAE6);
  mix-blend-mode: multiply;
  pointer-events: none;
}
.duo-deep  { --duo-dark: #0B2F38; --duo-light: #CFE2DE; }
.duo-brass { --duo-dark: #4A3212; --duo-light: #F0DEBC; }
.duo-rose  { --duo-dark: #4A2222; --duo-light: #F0CDC4; }
.duo-sage  { --duo-dark: #26331F; --duo-light: #D8E0C9; }
.duo-sky   { --duo-dark: #16303F; --duo-light: #D0DFE8; }

/* ==========================================================================
   Buttons, pills, chips
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  background: var(--brass);
  color: #fff;
  border: 1px solid var(--brass);
  padding: .78rem 1.7rem;
  border-radius: var(--r-pill);
  font-family: var(--text);
  font-size: .97rem;
  font-weight: 600;
  letter-spacing: .012em;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.btn:hover {
  background: var(--brass-lite);
  border-color: var(--brass-lite);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(168,118,44,.3);
}
.btn svg { width: 15px; height: 15px; flex: none; }

.btn.ghost { background: transparent; color: var(--deep); border-color: rgba(15,58,68,.3); }
.btn.ghost:hover { background: var(--deep); border-color: var(--deep); color: #fff; box-shadow: var(--shadow-sm); }

.btn.on-dark { background: #fff; border-color: #fff; color: var(--deep); }
.btn.on-dark:hover { background: var(--brass); border-color: var(--brass); color: #fff; }

.btn.ghost.on-dark { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn.ghost.on-dark:hover { background: #fff; color: var(--deep); border-color: #fff; }

.cta { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.8rem 0 0; }

.pill {
  display: inline-block;
  background: rgba(255,255,255,.92);
  color: var(--deep);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  padding: .34rem .72rem;
  border-radius: var(--r-pill);
  white-space: nowrap;
}

.more {
  display: inline-block;
  margin-top: .9rem;
  font-weight: 600;
  font-size: .96rem;
  color: var(--deep);
  text-decoration: none;
  border-bottom: 1px solid rgba(168,118,44,.5);
  padding-bottom: 2px;
}
.more:hover { color: var(--brass); border-bottom-color: var(--brass); }

/* ==========================================================================
   Navigation - floating white pill
   ========================================================================== */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: .7rem var(--gutter) 0;
  transition: padding .3s ease;
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: .72rem 1.5rem;
  background: rgba(255,253,249,.93);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .3s ease;
}
.nav.stuck { padding-top: .45rem; }
.nav.stuck .nav-inner { box-shadow: var(--shadow); }

.nav-brand {
  display: flex;
  flex-direction: column;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.14rem;
  line-height: 1.05;
  color: var(--deep);
  text-decoration: none;
  white-space: nowrap;
}
.nav-brand b { font-weight: 400; color: var(--brass); }
.nav-brand .brand-sub {
  font-family: var(--text);
  font-size: .63rem;
  font-weight: 600;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.55rem;
  margin-left: auto;
}
.nav-links a {
  position: relative;
  font-size: .93rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  padding: .3rem 0;
  white-space: nowrap;
  transition: color .18s ease;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .24s cubic-bezier(.2,.7,.2,1);
}
.nav-links a:hover { color: var(--deep); }
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links a[aria-current="page"] { color: var(--deep); font-weight: 600; }

.nav-links .btn { padding: .5rem 1.15rem; font-size: .87rem; color: #fff; }
.nav-links .btn::after { display: none; }
.nav-links .btn:hover { color: #fff; }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  display: block; position: relative;
  width: 17px; height: 1.8px; background: var(--deep); border-radius: 2px;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: ''; position: absolute; left: 0;
  width: 17px; height: 1.8px; background: var(--deep); border-radius: 2px;
  transition: transform .24s ease;
}
.nav-toggle span::before { top: -5.5px; }
.nav-toggle span::after  { top: 5.5px; }
.nav.open .nav-toggle span { background: transparent; }
.nav.open .nav-toggle span::before { transform: translateY(5.5px) rotate(45deg); }
.nav.open .nav-toggle span::after  { transform: translateY(-5.5px) rotate(-45deg); }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  position: relative;
  z-index: 2;
  margin-top: 1.1rem;
  background: var(--deep-3);
  color: rgba(255,255,255,.74);
  border-radius: var(--r-sheet) var(--r-sheet) 0 0;
  padding: clamp(2.8rem, 5vw, 4.5rem) 0 2.2rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 2.4rem;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.site-footer h4 {
  font-family: var(--text);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--brass-lite);
  margin: 0 0 1rem;
}
.site-footer a { color: rgba(255,255,255,.82); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--brass); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .55rem; font-size: .95rem; }
.footer-brand {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.45rem;
  line-height: 1.14;
  color: #fff;
  margin: 0 0 .7rem;
}
.footer-note { font-size: .95rem; max-width: 36ch; color: rgba(255,255,255,.65); }
.memorial { color: #fff; font-family: var(--display); font-size: 1.02rem; }
.footer-bottom {
  max-width: var(--maxw);
  margin: 2.6rem auto 0;
  padding: 1.4rem var(--gutter) 0;
  border-top: 1px solid rgba(255,255,255,.13);
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.6rem;
  justify-content: space-between;
  align-items: center;
  font-size: .88rem;
  color: rgba(255,255,255,.55);
}

/* ==========================================================================
   Inner page header band
   ========================================================================== */

.page-band .band-inner {
  padding: clamp(3rem, 7vw, 5.4rem) var(--gutter) clamp(4.6rem, 9vw, 7rem);
}
.band h1 { color: #fff; max-width: 20ch; }
.band h2 { color: #fff; }
.band .lede {
  color: rgba(255,255,255,.82);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  max-width: 58ch;
  margin: 0;
}
.band .kicker { color: var(--brass-lite); }
.band-inner.centered { text-align: center; }
.band-inner.centered h1,
.band-inner.centered h2 { margin-inline: auto; }
.band-inner.centered .lede { margin-inline: auto; }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero { position: relative; z-index: 1; overflow: hidden; background: var(--deep); }
.hero-inner {
  position: relative;
  z-index: 3;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(4.5rem, 13vw, 10rem) var(--gutter) clamp(5.5rem, 12vw, 9rem);
  text-align: center;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.5rem, 6.4vw, 5.2rem);
  max-width: 17ch;
  margin: 0 auto .9rem;
}
.hero .lede {
  color: rgba(255,255,255,.84);
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  max-width: 56ch;
  margin: 0 auto;
}
.hero .cta { justify-content: center; }
.hero .kicker { color: var(--brass-lite); }

/* portrait strip drifting behind the hero headline */
.hero-strip {
  position: absolute;
  inset: -12% -6% -12% -6%;
  z-index: 0;
  display: flex;
  gap: 1.4rem;
  opacity: .3;
  will-change: transform;
  pointer-events: none;
}
.hero-strip .strip-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  will-change: transform;
}
.hero-strip .strip-cell {
  flex: 1;
  min-height: 180px;
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--deep-2);
}
.hero-strip .strip-cell img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  mix-blend-mode: screen;
}
.hero::after {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(10,39,46,.55) 0%, rgba(10,39,46,.82) 55%, rgba(10,39,46,.95) 100%);
  pointer-events: none;
}

/* subscribe row */
.subscribe {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  margin-top: 2.2rem;
}
.subscribe .sub-label {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  margin-right: .3rem;
}
.sub-link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .55rem 1.15rem;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: var(--r-pill);
  color: #fff;
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.sub-link:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.55); color: #fff; transform: translateY(-2px); }
.sub-link svg { width: 16px; height: 16px; flex: none; }

/* ==========================================================================
   Latest episode feature
   ========================================================================== */

.latest {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: clamp(1.6rem, 3.5vw, 3rem);
  align-items: center;
}
.latest-art {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.latest-art .art-num {
  position: relative;
  z-index: 2;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(3rem, 6vw, 4.6rem);
  color: #fff;
  line-height: 1;
  text-shadow: 0 3px 20px rgba(0,0,0,.4);
}
.latest-art .art-cap {
  position: absolute;
  z-index: 2;
  bottom: 1.1rem; left: 0; right: 0;
  text-align: center;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.72);
}
.latest-meta .kicker { margin-bottom: .7rem; }
.latest-meta h2 { color: var(--deep); margin-bottom: .5rem; }
.latest-meta .latest-note { color: var(--ink-soft); max-width: 58ch; }
.latest-meta .latest-facts {
  display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem;
  margin: 1.1rem 0 0;
  font-size: .9rem;
  color: var(--muted);
}
.latest-meta .latest-facts span + span::before {
  content: '\00B7';
  margin-right: 1rem;
  color: var(--line);
}

/* ==========================================================================
   Episode cards
   ========================================================================== */

.card-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.3rem;
}
.ep-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--t-wheat);
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform .28s cubic-bezier(.2,.7,.2,1), box-shadow .28s ease;
}
.ep-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); color: var(--ink); }
.ep-card:nth-child(5n+1) { background: var(--t-sage); }
.ep-card:nth-child(5n+2) { background: var(--t-wheat); }
.ep-card:nth-child(5n+3) { background: var(--t-rose); }
.ep-card:nth-child(5n+4) { background: var(--t-sky); }
.ep-card:nth-child(5n+5) { background: var(--t-teal); }

.ep-card-top {
  position: relative;
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.ep-card-top .ep-num {
  position: relative; z-index: 2;
  font-family: var(--display);
  font-weight: 700;
  font-size: 2.6rem;
  color: #fff;
  text-shadow: 0 2px 14px rgba(0,0,0,.35);
}
.ep-card-top .pill { position: absolute; z-index: 3; top: .8rem; left: .8rem; }
.ep-card-top .ep-play {
  position: absolute; z-index: 3;
  right: .8rem; bottom: .8rem;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.94);
  color: var(--deep);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, background .2s ease;
}
.ep-card:hover .ep-play { transform: scale(1.1); background: #fff; }
.ep-card-top .ep-play svg { width: 14px; height: 14px; }

.ep-card-body { padding: 1.15rem 1.25rem 1.4rem; }
.ep-card-body h3 { margin: 0 0 .35rem; color: var(--ink); }
.ep-card-body .ep-sub {
  font-size: .9rem;
  color: rgba(26,29,36,.66);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

/* ==========================================================================
   Browse tiles (duotone, big serif word)
   ========================================================================== */

.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.3rem;
}
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  padding: 2rem 1.5rem;
  border-radius: var(--r-card);
  overflow: hidden;
  text-align: center;
  text-decoration: none;
  color: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease;
}
.tile:hover { transform: translateY(-6px); box-shadow: var(--shadow); color: #fff; }
.tile > * { position: relative; z-index: 2; }
.tile > .tile-bg { position: absolute; inset: 0; z-index: 0; }
.tile > .tile-bg > img { width: 100%; height: 100%; object-fit: cover; }
.tile::before {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(10,39,46,.15) 0%, rgba(10,39,46,.72) 100%);
  pointer-events: none;
}
.tile h3 {
  font-size: clamp(1.7rem, 2.6vw, 2.3rem);
  color: #fff;
  margin: 0 0 .3rem;
  text-shadow: 0 2px 18px rgba(0,0,0,.35);
}
.tile p { font-size: .92rem; color: rgba(255,255,255,.85); max-width: 26ch; margin: 0; }
.tile .tile-count {
  margin-top: .9rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
}

/* ==========================================================================
   Story strip (light-touch Charlie section)
   ========================================================================== */

.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.8rem, 4vw, 3.5rem);
  align-items: center;
}
.story-media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.story h2 { color: var(--deep); }
.story p { color: var(--ink-soft); }

.person-card {
  padding: clamp(1.5rem, 2.6vw, 2.2rem);
  border-radius: var(--r-card);
  background: var(--paper);
  border: 1px solid var(--line);
  height: 100%;
}
.person-card .kicker { margin-bottom: .55rem; }
.person-card h3 { color: var(--deep); font-size: clamp(1.4rem, 2.1vw, 1.8rem); margin-bottom: .5rem; }
.person-card p { color: var(--ink-soft); margin-bottom: 0; }

/* ==========================================================================
   Archive: tools, chips, rows
   ========================================================================== */

.archive-tools { margin-bottom: 1.4rem; }
#search {
  width: 100%;
  font: inherit;
  font-size: 1.02rem;
  padding: .95rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--sheet);
  color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}
#search::placeholder { color: var(--muted); }
#search:focus {
  outline: none;
  border-color: var(--brass);
  box-shadow: 0 0 0 4px rgba(168,118,44,.14);
}
#archive-count { margin: .9rem 0 0; font-size: .92rem; }
.search-hint { margin: .25rem 0 0; font-size: .85rem; }

.range-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.6rem; }
.chip {
  font: inherit;
  font-size: .87rem;
  font-weight: 600;
  padding: .45rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all .18s ease;
}
.chip:hover { border-color: var(--brass); color: var(--deep); }
.chip.active { background: var(--deep); border-color: var(--deep); color: #fff; }

.show-list { list-style: none; margin: 0; padding: 0; }

.show-row {
  border-bottom: 1px solid var(--line);
  transition: background .2s ease;
}
.show-row:first-child { border-top: 1px solid var(--line); }
.show-row:hover { background: rgba(15,58,68,.025); }
.show-row.open { background: rgba(15,58,68,.04); }
.show-row.now-playing { background: rgba(168,118,44,.08); }

.show-row-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem .5rem;
  cursor: pointer;
}
.play-circle {
  flex: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--sheet);
  color: var(--deep);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all .2s ease;
}
.play-circle svg { width: 14px; height: 14px; margin-left: 2px; }
.play-circle:hover { background: var(--brass); border-color: var(--brass); color: #fff; transform: scale(1.06); }
.show-row.now-playing .play-circle { background: var(--brass); border-color: var(--brass); color: #fff; }

.show-num {
  flex: none;
  min-width: 3.6rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--brass);
}
.show-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .12rem; }
.show-title { font-weight: 600; color: var(--ink); line-height: 1.3; }
.show-sub {
  font-size: .88rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.now-tag { display: none; color: var(--brass); font-size: 1.1rem; flex: none; }
.show-row.now-playing .now-tag { display: inline; }
.show-info { flex: none; font-size: .85rem; color: var(--muted); white-space: nowrap; }
.chev { flex: none; color: var(--muted); transition: transform .24s ease; }
.show-row.open .chev { transform: rotate(180deg); }

.show-detail { padding: .2rem .5rem 1.6rem 3.6rem; }
.detail-desc { color: var(--ink-soft); max-width: 72ch; }
.detail-label {
  display: block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .2rem;
}
.detail-people { margin: 1rem 0; }
.people-list { display: flex; flex-wrap: wrap; gap: .4rem; }
.person-chip {
  font: inherit;
  font-size: .85rem;
  font-weight: 500;
  padding: .3rem .8rem;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--sheet);
  color: var(--deep);
  text-decoration: none;
  cursor: pointer;
  transition: all .18s ease;
}
.person-chip:hover { background: var(--deep); border-color: var(--deep); color: #fff; }

.detail-meta { display: flex; flex-wrap: wrap; gap: 1rem 2rem; margin: 1rem 0; }
.detail-item { font-size: .93rem; color: var(--ink-soft); }

.detail-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1rem 0; }
.tag-chip {
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .04em;
  padding: .26rem .7rem;
  border-radius: var(--r-pill);
  background: rgba(168,118,44,.12);
  color: #7B551D;
  cursor: pointer;
  transition: all .18s ease;
}
.tag-chip:hover { background: var(--brass); color: #fff; }

.detail-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: 1.2rem; }
.part-group { display: inline-flex; align-items: stretch; }
.part-btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font: inherit;
  font-size: .89rem;
  font-weight: 600;
  padding: .5rem 1.05rem;
  border: 1px solid var(--line);
  border-right: none;
  border-radius: var(--r-pill) 0 0 var(--r-pill);
  background: var(--sheet);
  color: var(--deep);
  cursor: pointer;
  transition: all .18s ease;
}
.part-btn svg { width: 12px; height: 12px; }
.part-btn:hover { background: var(--deep); border-color: var(--deep); color: #fff; }
.part-btn.playing { background: var(--brass); border-color: var(--brass); color: #fff; }
.dl-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px;
  border: 1px solid var(--line);
  border-radius: 0 var(--r-pill) var(--r-pill) 0;
  background: var(--sheet);
  color: var(--ink-soft);
  cursor: pointer;
  transition: all .18s ease;
}
.dl-btn svg { width: 14px; height: 14px; }
.dl-btn:hover { background: var(--deep); border-color: var(--deep); color: #fff; }
.page-link { font-size: .89rem; font-weight: 600; color: var(--deep); text-decoration: none; margin-left: .4rem; }
.page-link:hover { color: var(--brass); }

.empty-state { padding: 3rem 1rem; text-align: center; color: var(--muted); }

.missing-box {
  margin-top: 1.6rem;
  padding: 1.3rem 1.5rem;
  border-radius: var(--r-card);
  background: rgba(168,118,44,.09);
  border: 1px solid rgba(168,118,44,.25);
  font-size: .95rem;
  color: var(--ink-soft);
}
.missing-box strong { color: var(--deep); }

/* Collections */
.collection-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.2rem; }
.collection-card {
  padding: 1.4rem 1.5rem;
  border-radius: var(--r-card);
  background: var(--paper);
  border: 1px solid var(--line);
}
.collection-card h3 { color: var(--deep); margin-bottom: .3rem; }
.collection-card .tracks { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }

/* ==========================================================================
   Cantors
   ========================================================================== */

/* a cantor page: biography column plus an optional portrait */
.cantor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: clamp(1.6rem, 3.5vw, 3rem);
  align-items: start;
}
.cantor-grid > div { min-width: 0; }
.cantor-photo {
  margin: 0;
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--deep-2);
  box-shadow: var(--shadow-sm);
}
.cantor-photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.cantor-photo figcaption {
  padding: .6rem .85rem .8rem;
  font-size: .74rem;
  line-height: 1.4;
  color: var(--muted);
  background: var(--paper);
}
.cantor-years { color: var(--brass-lite); font-weight: 400; }
.band .cantor-years { color: var(--brass-lite); }

.dir-block { margin-bottom: 2.2rem; }
.dir-block h2 {
  font-size: 1.5rem;
  color: var(--brass);
  padding-bottom: .4rem;
  border-bottom: 2px solid var(--line);
  margin-bottom: .9rem;
}
.dir-count { font-size: .85rem; color: var(--muted); font-family: var(--text); font-weight: 400; }
.dir-list { columns: 3 220px; column-gap: 2rem; list-style: none; margin: 0; padding: 0; }
.dir-list li { break-inside: avoid; margin-bottom: .4rem; font-size: .95rem; }

.wiki-link { font-size: .88rem; }
.host-note,
.charlie-note {
  margin: 1.4rem 0;
  padding: 1.3rem 1.6rem;
  border-left: 3px solid var(--brass);
  background: rgba(168,118,44,.07);
  border-radius: 0 var(--r-card) var(--r-card) 0;
  color: var(--ink-soft);
}
.host-note p { font-style: italic; margin: 0; }
.host-note cite {
  display: block;
  margin-top: .8rem;
  font-style: normal;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--brass);
}


/* ==========================================================================
   Show page: tracklist + players
   ========================================================================== */

.page-players { display: flex; flex-wrap: wrap; gap: 1rem; margin: 1.6rem 0; }
.page-player { flex: 1 1 320px; }
.page-player audio { width: 100%; }
.dl-link { font-size: .88rem; font-weight: 600; }

.tracklist { margin-top: 2rem; }
.track-head {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--deep);
  margin-bottom: .8rem;
}
.track-list { list-style: none; margin: 0; padding: 0; counter-reset: trk; }
.track {
  display: flex;
  gap: .9rem;
  padding: .6rem 0;
  border-bottom: 1px solid var(--line);
  font-size: .95rem;
}
.track::before {
  counter-increment: trk;
  content: counter(trk);
  flex: none;
  width: 2rem;
  color: var(--muted);
  font-size: .82rem;
  text-align: right;
  padding-top: .15rem;
}
.track-title { font-weight: 600; color: var(--ink); }
.track-artist { color: var(--muted); }

/* ==========================================================================
   Person modal
   ========================================================================== */

.pmodal {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10,39,46,.6);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.4rem;
}
.pmodal[hidden] { display: none; }
.pmodal-box {
  position: relative;
  width: min(600px, 100%);
  max-height: 82vh;
  overflow-y: auto;
  background: var(--sheet);
  border-radius: var(--r-sheet);
  padding: 2.2rem;
  box-shadow: var(--shadow-lg);
}
.pmodal-box h3 { color: var(--deep); font-size: 1.6rem; }
.pmodal-close {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-soft);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}
.pmodal-close:hover { background: var(--deep); border-color: var(--deep); color: #fff; }
.pm-eps-label { margin-top: 1.4rem; }
.pm-ep { display: flex; align-items: center; gap: .7rem; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.pm-ep-num { font-family: var(--display); font-weight: 700; color: var(--brass); font-size: .95rem; flex: none; }
.pm-ep-title { font-size: .93rem; }
.pm-page { display: inline-block; margin-top: 1.2rem; font-weight: 600; }

/* ==========================================================================
   Sticky player
   ========================================================================== */

.player {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 150;
  background: rgba(10,39,46,.97);
  backdrop-filter: blur(14px);
  color: #fff;
  box-shadow: 0 -8px 34px rgba(10,39,46,.3);
}
.player[hidden] { display: none; }
.player-inner {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: .8rem var(--gutter);
}
.player-meta { min-width: 0; flex: 1; }
#player-title { font-weight: 600; font-size: .96rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#player-part { font-size: .82rem; color: rgba(255,255,255,.6); }
.player-controls { display: flex; align-items: center; gap: .6rem; flex: 2; justify-content: flex-end; }
.player-controls audio { height: 40px; max-width: 420px; width: 100%; }
.player-controls button {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25);
  background: transparent;
  color: #fff;
  font-size: .7rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex: none;
  transition: all .18s ease;
}
.player-controls button:hover { background: var(--brass); border-color: var(--brass); }
.player-controls button svg { width: 14px; height: 14px; }

/* ==========================================================================
   About / memorial
   ========================================================================== */

.bio-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: clamp(1.8rem, 4vw, 3.4rem); align-items: start; }
.bio-text { font-size: 1.06rem; color: var(--ink-soft); }
.bio-text p.drop::first-letter {
  float: left;
  font-family: var(--display);
  font-weight: 700;
  font-size: 3.6em;
  line-height: .82;
  padding: .06em .1em 0 0;
  color: var(--brass);
}
.bio-side img { border-radius: var(--r-card); margin-bottom: 1rem; box-shadow: var(--shadow-sm); }

.memorial-head { text-align: center; margin-bottom: 2.4rem; }
.memorial-photo {
  width: min(340px, 80%);
  margin: 0 auto 1.6rem;
  border-radius: var(--r-card);
  box-shadow: var(--shadow);
}
.memorial-head h1 { color: var(--deep); }
.memorial-head .zl { color: var(--brass); }
.memorial-dates { color: var(--muted); font-size: 1.05rem; }
.memorial-text { max-width: 68ch; margin: 0 auto; font-size: 1.08rem; color: var(--ink-soft); }
.tributes { max-width: 68ch; margin: 2.6rem auto 0; }
.tributes h2 { color: var(--deep); font-size: 1.6rem; }
.tributes ul { padding-left: 1.1rem; }
.tributes li { margin-bottom: .7rem; }

.gallery-note { color: var(--muted); font-size: .95rem; margin-bottom: 1.2rem; }

/* ==========================================================================
   Motion
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .85s cubic-bezier(.2,.7,.2,1), transform .85s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .band-media, .hero-strip, .hero-strip .strip-col { transform: none !important; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 940px) {
  .cantor-grid { grid-template-columns: 1fr; }
  .cantor-photo { max-width: 260px; }
  .latest { grid-template-columns: 1fr; }
  .latest-art { max-width: 260px; }
  .story { grid-template-columns: 1fr; }
  .bio-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .dir-list { columns: 2 180px; }
}

@media (max-width: 780px) {
  :root { --r-sheet: 26px; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: calc(100% + .5rem);
    left: var(--gutter);
    right: var(--gutter);
    flex-direction: column;
    align-items: stretch;
    gap: .2rem;
    margin-left: 0;
    padding: 1rem 1.3rem;
    background: var(--sheet);
    border-radius: var(--r-sheet);
    box-shadow: var(--shadow);
    display: none;
  }
  .nav.open .nav-links { display: flex; }
  .nav-links a { padding: .6rem 0; border-bottom: 1px solid var(--line); }
  .nav-links a:last-child { border-bottom: none; }
  .nav-links a::after { display: none; }
  .nav-links .btn { justify-content: center; margin-top: .6rem; }

  .show-row-head { flex-wrap: wrap; gap: .6rem; padding: .9rem .2rem; }
  .show-num { min-width: 2.8rem; }
  .show-info, .chev { display: none; }
  .show-sub {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .show-detail { padding-left: .2rem; }

  .player-inner { flex-direction: column; align-items: stretch; gap: .5rem; padding: .7rem 1rem; }
  .player-controls { justify-content: space-between; }
  .player-controls audio { max-width: none; }

  .footer-inner { grid-template-columns: 1fr; gap: 1.8rem; }
  .dir-list { columns: 1; }
  .hero-strip { opacity: .22; }
}

@media (max-width: 520px) {
  .card-row { grid-template-columns: 1fr; }
  .cantor-grid { grid-template-columns: 1fr; }   /* cantor pages: one column on phones (was 130px columns that squeezed the text) */
  .pmodal-box { padding: 1.6rem 1.3rem; }
}

/* ==========================================================================
   Shell, matched to the reference layout
   ========================================================================== */

/* --- utility strip above the nav --- */
.utility {
  background: var(--paper-warm);
  font-size: .84rem;
}
.utility-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: .5rem var(--edge);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .6rem;
}
.utility .u-note { margin-right: auto; color: var(--muted); font-size: .8rem; }
.u-pill {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .3rem .85rem;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-size: .8rem;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.5;
}
.u-pill.solid { background: var(--deep); color: #fff; }
.u-pill.solid:hover { background: var(--brass); color: #fff; }
.u-pill.hollow { border-color: rgba(15,58,68,.35); color: var(--deep); }
.u-pill.hollow:hover { background: var(--deep); border-color: var(--deep); color: #fff; }

/* --- nav spans the shell, links spread across --- */
.nav { padding: 0 var(--edge); top: 0; }
.nav-inner {
  max-width: var(--maxw);
  padding: 1rem 2.2rem;
  border-radius: 0 0 var(--r-sheet) var(--r-sheet);
  gap: 2rem;
}
.nav.stuck .nav-inner { border-radius: var(--r-sheet); }
.nav-links { gap: clamp(.9rem, 2.1vw, 2.3rem); margin-left: auto; margin-right: 1.4rem; }
.nav-links a { font-size: .97rem; }
.nav-search {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid transparent;
  background: transparent;
  color: var(--deep);
  cursor: pointer;
  flex: none;
  transition: background .18s ease;
}
.nav-search:hover { background: var(--paper); }
.nav-search svg { width: 19px; height: 19px; }

/* --- hero as an inset rounded panel, not a full-bleed band --- */
.hero {
  margin: var(--edge);
  border-radius: var(--r-sheet);
  background: var(--deep);
}
.hero-inner { padding-inline: clamp(1.4rem, 5vw, 5rem); }
.hero::after { border-radius: var(--r-sheet); }
.hero-strip { inset: 0; }

/* --- sheets align to the same shell --- */
.sheet { padding-inline: clamp(1.4rem, 5vw, 6.2rem); }

/* ==========================================================================
   Carousel rows
   ========================================================================== */

.carousel { position: relative; }
.carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 1fr);
  gap: 1.4rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: .4rem;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track > * { scroll-snap-align: start; }
.carousel-track.cols-3 { grid-auto-columns: calc((100% - 2.8rem) / 3); }
.carousel-btn {
  position: absolute;
  top: 42%;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--sheet);
  color: var(--deep);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
  z-index: 4;
  transition: all .18s ease;
}
.carousel-btn:hover { background: var(--deep); border-color: var(--deep); color: #fff; }
.carousel-btn.prev { left: -22px; }
.carousel-btn.next { right: -22px; }
.carousel-btn svg { width: 15px; height: 15px; }

/* the three-dot affordance on a card, as on the reference */
.card-more {
  position: absolute; z-index: 3;
  top: .8rem; right: .8rem;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  color: var(--deep);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 700; letter-spacing: .05em;
  line-height: 1;
}

/* ==========================================================================
   Featured band (full-bleed, title overlaid)
   ========================================================================== */

.featured { position: relative; overflow: hidden; background: var(--deep-3); }
.featured .band-media { inset: -14% 0 -14% 0; }
.featured-inner {
  position: relative; z-index: 3;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 6rem) var(--gutter);
  min-height: 440px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.featured::after {
  content: ''; position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(180deg, rgba(10,39,46,.25) 0%, rgba(10,39,46,.88) 100%);
}
.featured .kicker { display: flex; align-items: center; gap: .5rem; }
.featured .kicker::before {
  content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--brass-lite);
}
.featured h2 { color: var(--brass-lite); max-width: 20ch; margin-bottom: .6rem; }
.featured p { color: rgba(255,255,255,.82); max-width: 58ch; }
.featured .play-big {
  position: absolute; z-index: 3;
  top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 74px; height: 74px; border-radius: 50%;
  background: rgba(255,255,255,.94); color: var(--deep);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: transform .2s ease;
}
.featured .play-big:hover { transform: translate(-50%,-50%) scale(1.08); }
.featured .play-big svg { width: 24px; height: 24px; margin-left: 4px; }

/* ==========================================================================
   Tiles: three across, then two centred (as on the reference)
   ========================================================================== */

.tile-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tile-row-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
  width: calc(66.666% - .47rem);
  margin: 1.4rem auto 0;
}
.tile { min-height: 330px; }

/* ==========================================================================
   Explore: doorways into the catalogue
   ========================================================================== */

.explore-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1rem;
}
.explore-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.6rem;
  min-height: 168px;
  padding: 1.3rem 1.4rem;
  border-radius: var(--r-card);
  background: var(--paper);
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  transition: transform .25s cubic-bezier(.2,.7,.2,1), background .25s ease, box-shadow .25s ease;
}
.explore-card:hover {
  transform: translateY(-4px);
  background: var(--deep);
  border-color: var(--deep);
  color: #fff;
  box-shadow: var(--shadow);
}
.explore-card h3 { font-size: 1.3rem; color: var(--deep); margin: 0; }
.explore-card:hover h3 { color: #fff; }
.explore-card .ex-count {
  font-size: .74rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted);
}
.explore-card:hover .ex-count { color: var(--brass-lite); }

/* ==========================================================================
   Solid colour cards (the reference's exhibition blocks)
   ========================================================================== */

.solid-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 330px;
  padding: 2rem 1.6rem;
  border-radius: var(--r-card);
  text-decoration: none;
  transition: transform .28s cubic-bezier(.2,.7,.2,1), box-shadow .28s ease;
}
.solid-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.solid-card h3 { font-size: clamp(1.5rem, 2.3vw, 2rem); margin: 0 0 .5rem; }
.solid-card p { font-size: .92rem; max-width: 28ch; margin: 0; opacity: .88; }
.solid-card .sc-count {
  margin-top: 1rem; font-size: .72rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; opacity: .75;
}
.sc-deep  { background: var(--deep);    color: #fff; }
.sc-brass { background: #8A6224;        color: #fff; }
.sc-wine  { background: #7A3B3B;        color: #fff; }
.sc-deep h3, .sc-brass h3, .sc-wine h3 { color: #fff; }
.sc-wheat { background: var(--t-wheat); color: var(--ink); }
.sc-sage  { background: var(--t-sage);  color: var(--ink); }
.sc-sky   { background: var(--t-sky);   color: var(--ink); }
.sc-wheat h3, .sc-sage h3, .sc-sky h3 { color: var(--deep); }

/* ==========================================================================
   Footer additions
   ========================================================================== */

.footer-social { display: flex; gap: .6rem; margin-top: 1.1rem; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.22);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.8);
}
.footer-social a:hover { background: var(--brass); border-color: var(--brass); color: #fff; }
.footer-social svg { width: 16px; height: 16px; }

.footer-strip {
  max-width: var(--maxw);
  margin: 2.4rem auto 0;
  padding: 1.6rem var(--gutter) 0;
  border-top: 1px solid rgba(255,255,255,.13);
}
.footer-strip h4 { margin-bottom: .9rem; }
.footer-strip .strip-items { display: flex; flex-wrap: wrap; gap: .6rem; }
.footer-strip .strip-items span {
  padding: .4rem .9rem;
  border: 1px dashed rgba(255,255,255,.22);
  border-radius: var(--r-pill);
  font-size: .82rem;
  color: rgba(255,255,255,.55);
}

@media (max-width: 900px) {
  .tile-grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile-row-2 { width: 100%; }
  .carousel-track.cols-3 { grid-auto-columns: 78%; }
  .carousel-btn { display: none; }
  .utility .u-note { display: none; }
}
@media (max-width: 620px) {
  .tile-grid.three { grid-template-columns: 1fr; }
  .tile-row-2 { grid-template-columns: 1fr; }
  .carousel-track.cols-3 { grid-auto-columns: 86%; }
}

/* ---- Photos page: albums + viewer ---- */
.photo-album { margin: 0 0 3rem; }
.photo-album h2 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1rem; margin-top: 1.2rem; }
.photo { display: block; color: inherit; text-decoration: none; }
.photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 12px; background: var(--paper-warm); box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.photos-posters .photo img { aspect-ratio: 3 / 4; object-fit: contain; background: var(--paper); }
.photo:hover img, .photo:focus-visible img { transform: translateY(-2px); box-shadow: var(--shadow); }
.photo-cap { display: block; font-size: .85rem; line-height: 1.35; color: var(--ink-soft); margin-top: .45rem; }
.photo-viewer { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.photo-viewer::backdrop { background: rgba(10, 39, 46, .92); }
.photo-viewer figure { margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 3.5rem 4rem; }
.photo-viewer img { max-width: 100%; max-height: calc(100vh - 9rem); object-fit: contain; border-radius: 8px; }
.photo-viewer figcaption { color: #fff; margin-top: .9rem; text-align: center; font-size: 1rem; }
.photo-viewer button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; cursor: pointer;
  width: 3rem; height: 3rem; border-radius: 50%; font-size: 1.8rem; line-height: 1; }
.photo-viewer button:hover { background: rgba(255,255,255,.25); }
.pv-close { top: 1rem; right: 1rem; }
.pv-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.pv-next { right: 1rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 620px) {
  .photo-grid { grid-template-columns: repeat(2, 1fr); gap: .7rem; }
  .photo-viewer figure { padding: 3.5rem .5rem; }
  .pv-prev, .pv-next { top: auto; bottom: 1rem; transform: none; }
}

/* ---- Subscribe by email (home hero) ---- */
.sub-form { max-width: 34rem; margin: 2.2rem auto 0; text-align: center; scroll-margin-top: 9rem; }
.sub-form .sub-label { display: block; margin: 0 0 .7rem; }
.sub-row { display: flex; gap: .5rem; justify-content: center; }
.sub-row input[type=email] { flex: 1; min-width: 0; font: inherit; font-size: .95rem; color: var(--ink); background: #fff;
  border: 1px solid rgba(255,255,255,.6); border-radius: var(--r-pill); padding: .72rem 1.2rem; }
.sub-row input[type=email]:focus { outline: 2px solid var(--brass-lite); outline-offset: 2px; }
.sub-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.sub-msg { min-height: 1.4em; margin: .6rem 0 0; color: rgba(255,255,255,.85); font-size: .9rem; }
.subscribe { margin-top: 1.2rem; }
.sub-link[data-pending] { display: none; }   /* Apple / Spotify: shown once the show is listed there */
@media (max-width: 520px) { .sub-row { flex-direction: column; } }

/* ---- Home hero: small cantor photos drifting up and down behind the title ---- */
.hero-scroll { inset: -4% -2%; gap: .7rem; opacity: .28; }
.scroll-col { flex: 1; min-width: 0; overflow: hidden; }
.scroll-track { display: flex; flex-direction: column; gap: .7rem; animation: hero-up var(--dur, 110s) linear infinite; will-change: transform; }
.scroll-col.down .scroll-track { animation-name: hero-down; }
.scroll-track img { display: block; width: 100%; height: auto; aspect-ratio: 180 / 230; object-fit: cover;
  border-radius: 10px; filter: grayscale(1) contrast(1.05); mix-blend-mode: screen; }
@keyframes hero-up { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@keyframes hero-down { from { transform: translateY(-50%); } to { transform: translateY(0); } }
@media (max-width: 760px) { .scroll-col:nth-child(n+6) { display: none; } }
@media (prefers-reduced-motion: reduce) { .scroll-track { animation: none; } }

/* "New episodes by email" sits on the dark hero: light, like the other labels there */
.sub-form .sub-label { font-size: .74rem; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; color: rgba(255,255,255,.72); }

/* ---- Cantor pages: recordings & film from Wikimedia Commons ---- */
.media-list { margin-top: .5rem; }
.media-item { padding: .9rem 0; border-top: 1px solid var(--line); }
.media-title { font-weight: 600; margin-bottom: .45rem; }
.media-item audio { width: 100%; }
.media-item video { width: 100%; max-height: 420px; border-radius: 10px; background: #000; }
.media-credit { font-size: .78rem; color: var(--muted); margin-top: .35rem; }
.media-credit a { color: inherit; }

/* ---- Performer pages: bio with the photo on top ---- */
.bio-hero { display: grid; gap: 1.5rem; grid-template-columns: minmax(0, 1fr) 260px; align-items: start; }
.bio-hero .cantor-photo { margin: 0; position: sticky; top: 90px; }
.cantor-photo img { width: 100%; height: auto; display: block; border-radius: 12px; background: #eee; }
.cantor-photo figcaption { font-size: .74rem; color: var(--muted); margin-top: .35rem; line-height: 1.35; }
.cantor-photo figcaption a { color: inherit; }
.bio-lead { font-size: 1.08rem; line-height: 1.6; margin-top: 0; }
.bio-text p { line-height: 1.65; }
.aka { font-size: .92rem; color: var(--muted); }
h2.sec { font-size: 1.15rem; margin-top: 2rem; }
.known-for, .related { padding-left: 1.1rem; line-height: 1.7; }
.sources { font-size: .85rem; color: var(--muted); padding-left: 1.3rem; line-height: 1.6; word-break: break-word; }
.sources a { color: inherit; }
.updated { font-size: .8rem; }
@media (max-width: 700px) {
  .bio-hero { grid-template-columns: 1fr; gap: 1rem; }
  .bio-hero .cantor-photo { order: -1; position: static; max-width: 300px; }
}
@media (max-width: 700px) {
  .bio-hero .cantor-photo img { max-height: 340px; width: auto; max-width: 100%; object-fit: cover; object-position: top; }
}

/* ---- Timed track lists (episode pages) and recordings (performer pages) ---- */
.track-list.timed .tl-row { display: flex; gap: .7rem; align-items: baseline; }
.tl-play { flex: none; min-width: 4.6rem; font: inherit; font-size: .85rem; font-variant-numeric: tabular-nums; background: #fff;
  color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: .3rem .65rem; cursor: pointer; text-align: center; }
.tl-play:hover, .tl-row.playing .tl-play { background: var(--ink); color: #fff; border-color: var(--ink); }
.tl-play.off { border-style: dashed; color: var(--muted); cursor: default; background: transparent; }
.tl-text { display: flex; flex-wrap: wrap; gap: 0 .5rem; }
h3.sub { font-size: 1rem; margin: 1.6rem 0 .4rem; }
.recs { list-style: none; padding: 0; margin: .4rem 0 0; }
.recs .rec { display: flex; gap: .75rem; align-items: center; padding: .55rem 0; border-top: 1px solid var(--line); }
.recs .tl-play { min-width: 2.6rem; height: 2.6rem; padding: 0; font-size: .9rem; }
.rec-text { display: flex; flex-direction: column; }
.rec-title { font-weight: 600; } .rec-where { font-size: .82rem; color: var(--muted); }
.recs-more summary { cursor: pointer; padding: .7rem 0; font-weight: 600; }

/* ---- Songs: occasion cards, song lists, the shared player ---- */
.occ-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .7rem; margin: 1.2rem 0 1rem; }
.occ-card { display: flex; flex-direction: column; gap: .2rem; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; text-decoration: none; color: var(--ink); }
.occ-card b { font-size: 1.02rem; } .occ-card span { font-size: .85rem; color: var(--muted); }
.song-az { list-style: none; padding: 0; columns: 2 220px; column-gap: 2rem; line-height: 1.9; }
.song-block { margin-top: 1.2rem; }
.tl-play.sp.playing { background: var(--ink); color: #fff; border-color: var(--ink); }
.sp-bar { position: sticky; bottom: 0; background: var(--paper, #fbf8f1); border-top: 1px solid var(--line); padding: .6rem 0; margin-top: 1.5rem; display: flex; flex-direction: column; gap: .3rem; z-index: 5; }
.sp-bar audio { width: 100%; } #sp-now { font-size: .85rem; color: var(--muted); }
.sp-bar[hidden] { display: none; }
.occ-spot { border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem 1.2rem; margin: 0 0 1.2rem; background: #fff; }
.occ-spot .kicker { margin: 0 0 .3rem; } .occ-spot h3 { margin: 0 0 .4rem; font-size: 1.25rem; } .occ-spot h3 a { color: inherit; text-decoration: none; }
.occ-spot p { margin: 0 0 .8rem; line-height: 1.55; }
.occ-spot .btn { display: inline-block; padding: .55rem 1rem; border-radius: 999px; background: var(--ink); color: #fff; text-decoration: none; font-weight: 600; }
.search-jump { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: .4rem 0 .8rem; }
.search-jump .sj-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-right: .2rem; }
.search-jump [lang="he"] { font-family: "Frank Ruhl Libre", "Noto Serif Hebrew", serif; }
.he-title { font-family: "Frank Ruhl Libre", "Noto Serif Hebrew", "Times New Roman", serif; font-size: 1.6rem; margin: 0 0 .6rem; color: var(--ink); text-align: right; }
.rec-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin: 1rem 0 .4rem; }
.play-all { border: 0; border-radius: 999px; background: var(--ink); color: #fff; font: inherit; font-weight: 600; padding: .55rem 1.1rem; cursor: pointer; }
.play-all[aria-pressed="true"] { background: var(--accent, #b07d2b); }
.play-all[aria-pressed="true"]::after { content: " (playing, tap to stop)"; font-weight: 400; }
.rec-sort { font-size: .9rem; color: var(--muted); } .rec-sort select { font: inherit; margin-left: .3rem; padding: .3rem .4rem; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--ink); }
.he-inline { font-family: "Frank Ruhl Libre", "Noto Serif Hebrew", serif; color: var(--muted); margin-left: .25rem; }
.feed-link { font-size: .9rem; color: var(--muted); }
.yz-list, .yz-week { list-style: none; padding: 0; margin: 0 0 1rem; }
.yz-list li, .yz-week li { padding: .45rem 0; border-bottom: 1px solid var(--line); line-height: 1.5; }
.yz-list li b { display: inline-block; min-width: 5.5rem; }
.song-filter { width: 100%; font: inherit; font-size: 16px; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: 12px; margin: 1.4rem 0 .4rem; background: #fff; }
.song-about { margin: -.2rem 0 .5rem; color: var(--muted); line-height: 1.5; font-size: .95rem; }
.recs-more-btn { margin: .6rem 0 1.4rem; font: inherit; border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; padding: .5rem 1rem; cursor: pointer; }
.he-inline, .he-title { unicode-bidi: isolate; }

/* ---------- Performer page: the clippings masthead and the tabs (gen_pages.py, performer.js) ---------- */
.np { background:#efe6d2; background-image:radial-gradient(rgba(90,60,20,.06) 1px,transparent 1.2px); background-size:6px 6px; border-radius:18px; padding:22px 18px 8px; color:#2a241c; margin:0 0 6px; }
.np-mast { text-align:center; border-bottom:3px double #2a241c; padding-bottom:8px; font:600 12px/1.4 Karla,sans-serif; letter-spacing:.22em; text-transform:uppercase; }
.np h1 { font:900 clamp(38px,8vw,84px)/.98 'Playfair Display',Georgia,serif; text-align:center; margin:14px 0 6px; color:#2a241c; }
.np .np-he { text-align:center; font:700 28px 'Frank Ruhl Libre',serif; margin:2px 0 4px; unicode-bidi:isolate; }
.np .np-yrs { text-align:center; font:italic 400 18px 'Playfair Display',Georgia,serif; margin:0 0 10px; }
.clips { display:flex; gap:18px; overflow-x:auto; padding:16px 6px 20px; scroll-snap-type:x proximity; }
@media (min-width:820px) { .clips { justify-content:center; overflow:visible; flex-wrap:wrap; } }
.clip { flex:none; width:170px; background:#f8f2e2; padding:8px 8px 10px; box-shadow:0 6px 18px rgba(60,40,10,.22); transform:rotate(var(--r)); position:relative; color:inherit; text-decoration:none; scroll-snap-align:center; }
.clip img { width:100%; height:190px; object-fit:cover; object-position:50% 20%; filter:sepia(.3); display:block; background:#ddd; }
.clip .cap { font:12px/1.3 'Special Elite',monospace; margin-top:6px; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.tape { position:absolute; top:-9px; left:50%; width:70px; height:20px; margin-left:-35px; background:rgba(240,225,170,.78); transform:rotate(-4deg); }
.tabs { display:flex; gap:6px; overflow-x:auto; padding:10px 0; margin:6px 0 16px; border-bottom:1px solid var(--line); position:sticky; top:64px; background:var(--sheet); z-index:5; }
.tabs button { font:600 15px Karla,sans-serif; padding:.5rem 1rem; border-radius:999px; border:1px solid var(--line); background:#fff; color:var(--ink); cursor:pointer; white-space:nowrap; }
.tabs button[aria-selected="true"] { background:var(--deep); color:#fff; border-color:var(--deep); }
.tabs .n { font-weight:400; opacity:.75; margin-left:.3rem; }
.panel[hidden] { display:none; }
.facts2 { display:grid; grid-template-columns:auto 1fr; gap:6px 14px; margin:0 0 18px; font-size:15px; } .facts2 dt { color:var(--muted); } .facts2 dd { margin:0; }
.ph-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:10px; } @media (min-width:820px) { .ph-grid { grid-template-columns:repeat(4,1fr); } }
.ph-grid a { display:block; color:inherit; text-decoration:none; } .ph-grid img { width:100%; aspect-ratio:4/5; object-fit:cover; object-position:50% 20%; border-radius:10px; display:block; background:#ddd; }
.ph-grid span { display:block; font-size:13px; color:var(--muted); margin-top:4px; line-height:1.35; }
.pg-list { list-style:none; margin:0; padding:0; }
.pg-row { display:flex; align-items:center; gap:10px; border-bottom:1px solid var(--line); }
.pg-row a { flex:1; display:flex; gap:.7rem; align-items:baseline; padding:.6rem 0; color:inherit; text-decoration:none; }
.pg-num { color:var(--brass); font-weight:700; min-width:3.2rem; } .pg-t { flex:1; } .pg-y { color:var(--muted); font-size:.9rem; }
.lb { position:fixed; inset:0; background:rgba(10,20,25,.92); display:flex; align-items:center; justify-content:center; z-index:99999; flex-direction:column; padding:16px; }
.lb img { max-width:100%; max-height:80vh; border-radius:6px; } .lb p { color:#eee; font-size:14px; margin:.8rem 0 0; text-align:center; }

/* ---------- The one player (player.js) ---------- */
.tl-play.sp, .ep-play { flex:none; width:44px; height:44px; border-radius:50%; border:1.5px solid var(--line); background:#fff; color:var(--ink); display:inline-flex; align-items:center; justify-content:center; gap:.3rem; cursor:pointer; padding:0; }
.tl-play.sp svg, .ep-play svg { width:16px; height:16px; }
.tl-play.sp.chap { width:auto; height:36px; padding:0 .8rem; border-radius:999px; font:600 14px Karla,sans-serif; }
li.is-current { background:#f3efe4; border-radius:12px; }
li.is-current .tl-play.sp, li.is-current .ep-play { background:var(--deep); color:#fff; border-color:var(--deep); }
li.is-playing .rec-title::before, li.is-playing .track-title::before { content:"Playing \00b7  "; color:var(--brass); font-weight:700; }
.dl-song { display:none; align-items:center; gap:.25rem; margin-left:.35rem; border:1px solid var(--line); border-radius:999px; padding:.05rem .55rem; text-decoration:none !important; font-weight:600; font-size:.85rem; }
.dl-song::before { content:"\2193"; font-weight:700; }
li.is-current .dl-song { display:inline-flex; }
.pl-bar { position:fixed; left:0; right:0; bottom:0; z-index:9999; background:#0F3A44; color:#fff; display:flex; align-items:center; gap:10px; padding:10px 12px calc(10px + env(safe-area-inset-bottom)); box-shadow:0 -6px 24px rgba(0,0,0,.25); }
.pl-bar[hidden], .pl-bar [hidden] { display:none !important; }
.pl-bar button, .pl-bar a { flex:none; background:none; border:0; color:#fff; cursor:pointer; display:inline-flex; align-items:center; justify-content:center; text-decoration:none; }
.pl-pp { width:48px; height:48px; border-radius:50%; background:#C89B4A !important; color:#1A1D24 !important; } .pl-pp svg { width:20px; height:20px; }
.pl-next svg, .pl-x svg { width:20px; height:20px; }
.pl-dl { font:700 13px Karla,sans-serif; border:1px solid rgba(255,255,255,.4) !important; border-radius:999px; padding:6px 10px; }
.pl-info { flex:1; min-width:0; } .pl-t { font-weight:700; line-height:1.25; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.pl-s { font-size:12px; opacity:.75; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.pl-prog { display:flex; align-items:center; gap:8px; } .pl-seek { flex:1; accent-color:#C89B4A; height:18px; min-width:0; } .pl-time { font-size:12px; opacity:.8; white-space:nowrap; }
body.has-player { padding-bottom:96px; }
@media (min-width:820px) { .pl-bar { padding-left:max(12px, calc(50% - 560px)); padding-right:max(12px, calc(50% - 560px)); } }
.page-players.parts { list-style:none; padding:0; margin:1rem 0; display:flex; flex-direction:column; gap:.5rem; }
.part-row { display:flex; align-items:center; gap:.7rem; padding:.3rem .4rem; }
.track.tl-row .tl-play.sp.chap { margin-right:.4rem; }
