html, body {
  /* Transitional serif stack. Times New Roman is the fallback everyone
     has; the ones before it are nicer where available. */
  font-family: "Times New Roman", Times, "Liberation Serif", "Nimbus Roman", serif;
  font-size: 17px;
  line-height: 1.38;
  margin: 0;
  padding: 0;
  color: #111;
  background: #fff;
}

/* Grid:
   Row 1: name (spans both columns)
   Row 2: left nav + right content aligned */
.layout {
  display: grid;
  grid-template-columns: 140px 1fr;
  grid-template-rows: auto 1fr;
  column-gap: 40px;
  row-gap: 56px;
  padding: 22px 24px;
  max-width: 980px;
}

/* Row 1 spans both columns */
.masthead {
  grid-column: 1 / -1;
}

/* Name / Home link */
.site-title {
  display: inline-block;
  font-weight: 400;
  font-size: 34px;
  letter-spacing: 0;
  color: #111;
  text-decoration: none;
}

.site-title:hover { color: #666; }
.site-title.is-active { color: #666; }

/* Left column nav starts on row 2 */
.sidebar {
  grid-column: 1;
  grid-row: 2;
  align-self: start;
  position: sticky;
  top: 22px;
}

/* Nav link styles — italic, set tight so the menu reads as one block.
   The line-height override is what actually closes the gap; the body's
   1.38 is meant for paragraphs, not a five-item menu. */
.nav a {
  display: block;
  color: #111;
  text-decoration: none;
  font-style: italic;
  line-height: 1.06;
  margin: 0;
  transition: color 120ms ease;
}

/* Current page: permanently gray, so it reads as "you are here" */
.nav a.is-active { color: #999; }

/* Pointing: entering the menu dims every item, and the one under the
   cursor stays black. The contrast does the work, so there's never any
   doubt about what a click would open — including on the current page. */
.nav:hover a { color: #bbb; }
.nav:hover a:hover { color: #111; }

/* Right column content starts on row 2 */
.content {
  grid-column: 2;
  grid-row: 2;
  max-width: 640px;
}

/* Content rhythm */
.content p  { margin: 0 0 8px; }
.content ul { margin: 0 0 8px 16px; padding: 0; }
.content li { margin: 0 0 4px; }

/* RIGHT COLUMN LINKS: no underline + slightly darker gray than menu on hover/click */
.content a {
  color: #111;
  text-decoration: none;
}

.content a:hover {
  color: #777;   /* lighter than menu hover (#666) */
  text-decoration: none;
}

.content a:active {
  color: #666;   /* on click, match menu hover */
  text-decoration: none;
}

/* Mobile */
@media (max-width: 800px) {
  /* Not enough width to sit the dropdown beside the art */
  .release {
    grid-template-columns: 1fr;
    row-gap: 24px;
  }

  .release-art   { grid-column: 1; }
  .release-panel { grid-column: 1; }

  .layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    row-gap: 24px;
    padding: 18px;
  }

  .masthead { grid-column: 1; }

  .sidebar {
    grid-column: 1;
    grid-row: 2;
    position: static;
  }

  .content {
    grid-column: 1;
    grid-row: 3;
  }
}

/* =========================
   Staggered rise + soft fade
   (content column only)
   ========================= */

:root{
  --reveal-distance: 18px;
  --reveal-duration: 520ms;
  --reveal-stagger: 65ms;
}

/* Animate each direct child block inside .content */
.content > *{
  transform: translateY(var(--reveal-distance));
  opacity: 0;
  animation: revealUp var(--reveal-duration) cubic-bezier(.16, 1, .3, 1) forwards;
  will-change: transform, opacity;
}

/* Stagger first ~16 blocks */
.content > *:nth-child(1)  { animation-delay: calc(var(--reveal-stagger) * 0); }
.content > *:nth-child(2)  { animation-delay: calc(var(--reveal-stagger) * 1); }
.content > *:nth-child(3)  { animation-delay: calc(var(--reveal-stagger) * 2); }
.content > *:nth-child(4)  { animation-delay: calc(var(--reveal-stagger) * 3); }
.content > *:nth-child(5)  { animation-delay: calc(var(--reveal-stagger) * 4); }
.content > *:nth-child(6)  { animation-delay: calc(var(--reveal-stagger) * 5); }
.content > *:nth-child(7)  { animation-delay: calc(var(--reveal-stagger) * 6); }
.content > *:nth-child(8)  { animation-delay: calc(var(--reveal-stagger) * 7); }
.content > *:nth-child(9)  { animation-delay: calc(var(--reveal-stagger) * 8); }
.content > *:nth-child(10) { animation-delay: calc(var(--reveal-stagger) * 9); }
.content > *:nth-child(11) { animation-delay: calc(var(--reveal-stagger) * 10); }
.content > *:nth-child(12) { animation-delay: calc(var(--reveal-stagger) * 11); }
.content > *:nth-child(13) { animation-delay: calc(var(--reveal-stagger) * 12); }
.content > *:nth-child(14) { animation-delay: calc(var(--reveal-stagger) * 13); }
.content > *:nth-child(15) { animation-delay: calc(var(--reveal-stagger) * 14); }
.content > *:nth-child(16) { animation-delay: calc(var(--reveal-stagger) * 15); }

@keyframes revealUp{
  to{ transform: translateY(0); opacity: 1; }
}

/* Prevent inner list items from animating individually */
.content li,
.content li *{
  animation: none !important;
  transform: none !important;
  opacity: inherit !important;
}

/* Reduce motion accessibility */
@media (prefers-reduced-motion: reduce){
  .content > *{
    animation: none;
    transform: none;
    opacity: 1;
  }
}

/* =========================
   Music page: release feed
   ========================= */

/* Two columns: the art on the left, the dropdown alongside it.
   The title spans the top of both. */
.release {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 34px;
  align-items: start;
  margin: 0 0 46px;
  padding-bottom: 46px;
  border-bottom: 1px dashed #d8d8d8;
}

/* No rule after the final release — nothing follows it to divide from */
.release:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.release-title {
  grid-column: 1 / -1;
  font-size: 17px;
  font-weight: 400;
  margin: 0 0 8px;
}

.release-year {
  color: #666;
  font-style: normal;
}

/* Linked release title — same hover language as the rest of the site */
.release-link {
  color: #111;
  text-decoration: none;
}

.release-link:hover { color: #777; }
.release-link:active { color: #666; }

/* All covers share one height; width varies with the artwork, so
   nothing is cropped and every entry sits on the same baseline.
   To crop to a uniform square instead, use:
     width: 280px; height: 280px; object-fit: cover;  */
.release-cover {
  display: block;
  width: auto;
  height: 280px;
  max-width: 100%;
  grid-column: 1;
  margin: 0;
}

/* The note now lives inside the dropdown, under the tracks */
.release-description {
  margin: 0;
}

/* Left column: the art, with its toggle sitting underneath as a caption */
.release-art {
  grid-column: 1;
}

.release-toggle {
  appearance: none;
  -webkit-appearance: none;
  background: none;
  border: 0;
  padding: 0;
  margin: 18px 0 0;
  font: inherit;
  color: #666;
  cursor: pointer;
  text-align: left;
  display: inline-block;
}

.release-toggle:hover { color: #111; }

/* Closed: the label stands alone. Open: a minus gives an obvious way
   to collapse it again. */
.release-toggle.is-open::after { content: " \2212"; }

/* Right column: the panel, its first rule flush with the top of the art */
.release-panel {
  grid-column: 2;
}

.release-panel[hidden] { display: none; }

.release-panel > * + * {
  margin-top: 10px;
}

.release-embed iframe {
  max-width: 100%;
  border: 0;
}

/* No reveal animation inside the panel */
.release-panel,
.release-panel > * {
  animation: none !important;
  transform: none !important;
  opacity: 1 !important;
}

/* =========================
   Tracklist with inline play
   ========================= */

/* Ruled list: a hairline above the first track and below each one,
   spanning the full content column so it reads as a small table. */
.tracklist {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: none;
  border-top: 1px solid #e2e2e2;
}

.track {
  margin: 0 0 3px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

/* The play control is the track title itself */
.track-play {
  appearance: none;
  -webkit-appearance: none;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  color: #111;
  cursor: pointer;
  text-align: left;
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
}

.track-play:hover { color: #777; }

.track-icon {
  font-size: 9px;
  line-height: 1;
  color: #999;
  width: 9px;
  flex: none;
  position: relative;
  top: -3px;          /* optical centering against the title's x-height */
}

.track-play:hover .track-icon { color: #777; }

.track-play.is-playing { color: #111; }
.track-play.is-playing .track-icon { color: #111; }

.track-duration {
  color: #999;
  flex: none;
}

/* Nothing inside the tracklist animates.
   list-style is restated here because the blanket rule above
   would otherwise leave the numbers suppressed. */
.tracklist,
.tracklist * {
  animation: none !important;
  transform: none !important;
  opacity: 1 !important;
}

.tracklist { list-style: none !important; }
.tracklist > li { display: list-item; }

/* The flex row lives inside the li so the marker still shows */
.track {
  display: list-item;
  margin: 0;
  padding: 7px 0;
  border-bottom: 1px solid #e2e2e2;
}

.track-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}


/* =========================
   Persistent player bar
   ========================= */

.player {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  border-top: 1px solid #e2e2e2;
  z-index: 50;
}

.player[hidden] { display: none; }

/* Thin progress line along the very top edge of the bar */
.player-progress {
  height: 2px;
  background: #eee;
  cursor: pointer;
}

.player-progress-fill {
  height: 100%;
  width: 0;
  background: #111;
  will-change: width;
}

.player-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 24px;
  max-width: 980px;
}

.player-btn {
  appearance: none;
  -webkit-appearance: none;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  line-height: 0;
  color: #111;
  cursor: pointer;
  flex: none;
  display: inline-flex;
  align-items: center;
}

/* SVG icons inherit the button's colour via fill: currentColor */
.player-btn svg {
  width: 11px;
  height: 11px;
  fill: currentColor;
  display: block;
}

.player-btn:hover { color: #777; }

.player-btn:disabled {
  color: #ccc;
  cursor: default;
}

.player-btn-main svg {
  width: 13px;
  height: 13px;
}

.player-now {
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-left: 6px;
}

.player-album {
  color: #999;
}

.player-album::before { content: " — "; }

.player-time {
  color: #999;
  flex: none;
  /* Serif, matching the rest of the site. Times' lining figures are
     already uniform width, so the counter shouldn't twitch; the
     tabular-nums request enforces it wherever the face supports it. */
  font-variant-numeric: tabular-nums;
}

.player-close {
  font-size: 15px;
  color: #999;
  margin-left: 4px;
}

/* Keep the last release clear of the bar */
.content { padding-bottom: 60px; }

@media (max-width: 800px) {
  .player-inner {
    padding: 9px 18px;
    gap: 8px;
  }
  .player-album { display: none; }
}
