:root {
  --bg: #f6f1e8;
  --bg-elev: #fffdf8;
  --ink: #1d1a17;
  --ink-2: #5c554c;
  --ink-3: #9b9288;
  --line: #e4dccd;
  --accent: #9a4b2a;
  --accent-ink: #fff;
  --accent-soft: #f2e2d6;
  --player-bg: rgba(255, 253, 248, 0.92);
  --shadow: 0 -8px 30px rgba(50, 35, 20, 0.08);
  --radius: 12px;
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171513;
    --bg-elev: #201d1a;
    --ink: #f0e9df;
    --ink-2: #b4aa9d;
    --ink-3: #79706a;
    --line: #2f2a26;
    --accent: #e0885f;
    --accent-ink: #1d1a17;
    --accent-soft: #33261e;
    --player-bg: rgba(32, 29, 26, 0.92);
    --shadow: 0 -8px 30px rgba(0, 0, 0, 0.4);
  }
}

* { box-sizing: border-box; }

html { color-scheme: light dark; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 120px; /* room for the sticky player */
}

button, input, select { font: inherit; color: inherit; }

/* ---------- Hero ---------- */

.hero {
  max-width: 880px;
  margin: 0 auto;
  padding: 72px 24px 32px;
}

.hero-text { max-width: 600px; }

.eyebrow {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(44px, 8vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}

.tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 20px;
  color: var(--ink-2);
  margin: 0 0 12px;
}

.bio {
  max-width: 560px;
  color: var(--ink-2);
  margin: 0 0 20px;
}

.stats {
  margin: 0;
  font-size: 13px;
  color: var(--ink-3);
  letter-spacing: 0.02em;
}

/* ---------- Toolbar ---------- */

main {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}

.filters { display: flex; gap: 6px; }

.pill {
  border: 1px solid transparent;
  background: transparent;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  color: var(--ink-2);
  transition: background 0.15s, color 0.15s;
}
.pill:hover { background: var(--accent-soft); color: var(--ink); }
.pill.is-active { background: var(--ink); color: var(--bg); }
@media (max-width: 420px) { .video-grid { grid-template-columns: 1fr; } }

.toolbar-right { display: flex; gap: 10px; align-items: center; }

.search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-elev);
  color: var(--ink-3);
}
.search input {
  border: 0;
  background: transparent;
  outline: none;
  padding: 8px 0;
  width: 190px;
  color: var(--ink);
}
.search input::placeholder { color: var(--ink-3); }
.search:focus-within { border-color: var(--ink-3); }

select {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-elev);
  padding: 8px 12px;
  cursor: pointer;
}

/* ---------- Track list ---------- */

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

.track {
  border-bottom: 1px solid var(--line);
}

.track-row {
  display: grid;
  grid-template-columns: 44px 1fr auto auto;
  align-items: center;
  gap: 16px;
  padding: 14px 8px 14px 0;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.12s;
}
.track-row:hover { background: var(--accent-soft); }
.track.is-current .track-row { background: var(--accent-soft); }

.track-num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  position: relative;
}
.track-num .num, .track-num .play { grid-area: 1 / 1; }
.track-num .play { opacity: 0; color: var(--accent); }
.track-row:hover .track-num .num,
.track.is-current .track-num .num { opacity: 0; }
.track-row:hover .track-num .play,
.track.is-current .track-num .play { opacity: 1; }
.track.is-current.is-playing .track-num .play { display: none; }

/* little equalizer bars when playing */
.eq {
  grid-area: 1 / 1;
  display: none;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
}
.track.is-current.is-playing .eq { display: flex; }
.eq i {
  width: 3px;
  background: var(--accent);
  border-radius: 1px;
  animation: eq 0.9s ease-in-out infinite;
}
.eq i:nth-child(2) { animation-delay: 0.2s; }
.eq i:nth-child(3) { animation-delay: 0.4s; }
@keyframes eq {
  0%, 100% { height: 4px; }
  50% { height: 14px; }
}

.track-main { min-width: 0; }
.track-title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.track-sub {
  color: var(--ink-2);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.track-sub .tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-right: 8px;
}
.track-sub .tag.untyped { color: var(--ink-3); }

.track-year, .track-dur {
  color: var(--ink-3);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.track-year { min-width: 40px; text-align: right; }
.track-dur { min-width: 40px; text-align: right; }

.track-notes {
  display: none;
  padding: 0 8px 18px 60px;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.6;
}
.track.is-open .track-notes { display: block; }
.track-notes p { margin: 0 0 10px; }
.track-notes a {
  color: var(--accent);
  text-decoration: none;
  font-size: 13px;
}
.track-notes a:hover { text-decoration: underline; }

.track-chev {
  color: var(--ink-3);
  transition: transform 0.15s;
  display: none;
}
.track.has-notes .track-chev { display: block; }
.track.is-open .track-chev { transform: rotate(180deg); }

.empty {
  text-align: center;
  color: var(--ink-3);
  padding: 48px 0;
  font-style: italic;
  font-family: var(--font-display);
  font-size: 18px;
}

/* ---------- Videos ---------- */

.pill-link { text-decoration: none; margin-left: 6px; border-color: var(--line); }

.videos { margin-top: 56px; }
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0 0 12px;
}
.section-intro { max-width: 560px; color: var(--ink-2); margin: 0 0 28px; }
.section-foot { margin: 24px 0 0; font-size: 14px; }
.section-foot a { color: var(--accent); text-decoration: none; }
.section-foot a:hover { text-decoration: underline; }

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px 20px;
}
.video-card { display: block; color: inherit; text-decoration: none; }
.video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: var(--accent-soft);
}
.video-thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.4s ease;
}
.video-card:hover .video-thumb img { transform: scale(1.04); }
.video-play {
  position: absolute; inset: 0; margin: auto;
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255, 253, 248, 0.92); color: var(--accent);
  display: grid; place-items: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  transition: transform 0.15s;
}
.video-play svg { margin-left: 3px; }
.video-card:hover .video-play { transform: scale(1.08); }
.video-dur {
  position: absolute; right: 8px; bottom: 8px;
  font-size: 11px; padding: 2px 6px; border-radius: 4px;
  background: rgba(0,0,0,0.65); color: #fff; font-variant-numeric: tabular-nums;
}
.video-title {
  font-family: var(--font-display);
  font-size: 17px; font-weight: 500; line-height: 1.25;
  margin: 10px 0 2px;
}
.video-sub { font-size: 13px; color: var(--ink-2); }

/* Lightbox */
.no-scroll { overflow: hidden; }
.lightbox[hidden] { display: none; }
.lightbox { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 24px; }
.lightbox-backdrop { position: absolute; inset: 0; background: rgba(12, 10, 8, 0.86); backdrop-filter: blur(6px); }
.lightbox-body { position: relative; width: min(1040px, 100%); }
.lightbox-frame { aspect-ratio: 16 / 9; background: #000; border-radius: 10px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.lightbox-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.lightbox-caption { color: #f0e9df; margin-top: 14px; }
.lightbox-title { font-family: var(--font-display); font-size: 20px; font-weight: 500; }
.lightbox-sub { font-size: 13px; color: #b4aa9d; }
.lightbox-close {
  position: absolute; top: -44px; right: 0;
  border: 0; background: transparent; color: #f0e9df;
  font-size: 32px; line-height: 1; cursor: pointer; padding: 4px 8px;
}
.lightbox-close:hover { color: #fff; }

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

.site-footer {
  max-width: 880px;
  margin: 48px auto 0;
  padding: 0 24px;
  color: var(--ink-3);
  font-size: 13px;
  text-align: center;
}

/* ---------- Player ---------- */

.player {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--player-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  box-shadow: var(--shadow);
  z-index: 10;
}

.player-progress { height: 14px; display: flex; align-items: center; }
.player-progress input[type=range] {
  width: 100%;
  margin: 0;
  height: 14px;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  cursor: pointer;
}
.player-progress input[type=range]::-webkit-slider-runnable-track {
  height: 3px;
  background: linear-gradient(to right, var(--accent) var(--pct, 0%), var(--line) var(--pct, 0%));
}
.player-progress input[type=range]::-moz-range-track {
  height: 3px;
  background: var(--line);
}
.player-progress input[type=range]::-moz-range-progress {
  height: 3px;
  background: var(--accent);
}
.player-progress input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px; height: 12px;
  margin-top: -4.5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.15s;
}
.player-progress input[type=range]::-moz-range-thumb {
  width: 12px; height: 12px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.15s;
}
.player-progress:hover input[type=range]::-webkit-slider-thumb,
.player-progress input[type=range]:focus-visible::-webkit-slider-thumb { opacity: 1; }
.player-progress:hover input[type=range]::-moz-range-thumb { opacity: 1; }

.player-row {
  max-width: 880px;
  margin: 0 auto;
  padding: 6px 24px 14px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.player-now { min-width: 0; }
.player-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.player-sub {
  color: var(--ink-2);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-controls { display: flex; align-items: center; gap: 4px; }

.icon-btn {
  border: 0;
  background: transparent;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--ink);
  transition: background 0.12s;
}
.icon-btn:hover { background: var(--accent-soft); }
.icon-btn[aria-pressed="true"] { color: var(--accent); }

.play-btn {
  width: 48px; height: 48px;
  background: var(--ink);
  color: var(--bg);
  margin: 0 6px;
}
.play-btn:hover { background: var(--accent); color: var(--accent-ink); }
.play-btn .ico-pause { display: none; }
.player.is-playing .play-btn .ico-play { display: none; }
.player.is-playing .play-btn .ico-pause { display: block; }

.player-time {
  margin-left: 10px;
  font-size: 12px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.player-volume {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  color: var(--ink-3);
}
.player-volume input[type=range] {
  width: 90px;
  accent-color: var(--accent);
}

/* ---------- Responsive ---------- */

@media (max-width: 720px) {
  .hero { padding-top: 48px; }
  .toolbar-right { width: 100%; }
  .search { flex: 1; }
  .search input { width: 100%; }
  .track-row { grid-template-columns: 40px 1fr auto; gap: 12px; }
  .video-grid { grid-template-columns: 1fr 1fr; gap: 20px 14px; }
  .video-title { font-size: 15px; }
  .lightbox { padding: 12px; }
  .lightbox-close { top: -40px; }
  .track-year { display: none; }
  .track-title, .track-sub { white-space: normal; }
  .track-notes { padding-left: 52px; }
  .player-row { grid-template-columns: 1fr auto; padding: 4px 16px 12px; }
  .player-volume { display: none; }
  .player-time { display: none; }
  .player-controls { gap: 0; }
}
