/* ==========================================================================
   Time and Place — danl.ee
   static/timeandplace/css/style.css
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=IBM+Plex+Mono:wght@400;500&family=Source+Serif+4:ital,opsz,wght@0,8..60,300;0,8..60,400;1,8..60,300&display=swap');

/* --------------------------------------------------------------------------
   Reset & base
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: #0e0d0b;
  color: #d4c9a8;
  font-family: 'Source Serif 4', serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.page {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

/* --------------------------------------------------------------------------
   Site nav (breadcrumb)
   -------------------------------------------------------------------------- */

.site-nav {
  border-bottom: 1px solid #2a2820;
  padding: 14px 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #6b6550;
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  color: #6b6550;
}

.site-nav a:hover {
  color: #c9a84c;
}

.site-nav .sep {
  color: #3a3826;
}

/* --------------------------------------------------------------------------
   Masthead
   -------------------------------------------------------------------------- */

.masthead {
  padding: 52px 0 40px;
  border-bottom: 1px solid #2a2820;
}

.show-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: #c9a84c;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.show-title {
  font-family: 'Playfair Display', serif;
  font-size: 68px;
  font-weight: 700;
  color: #f0e8cc;
  line-height: 0.92;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.show-subtitle {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 400;
  font-style: italic;
  color: #6b6550;
  margin-bottom: 28px;
}

.about-block {
  max-width: 560px;
  font-size: 15px;
  line-height: 1.75;
  color: #a09880;
  font-weight: 300;
}

.about-block p + p {
  margin-top: 1em;
}

.about-block strong {
  color: #d4c9a8;
  font-weight: 400;
}

.about-block a {
  color: #c9a84c;
  border-bottom: 1px solid #3a3020;
}

.about-block a:hover {
  border-bottom-color: #c9a84c;
}

.meta-strip {
  margin-top: 28px;
  display: flex;
  gap: 28px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: #4a4838;
  letter-spacing: 0.05em;
}

.meta-strip span {
  color: #c9a84c;
}

/* --------------------------------------------------------------------------
   Episodes header
   -------------------------------------------------------------------------- */

.episodes-header {
  padding: 40px 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.episodes-header h2 {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: #4a4838;
  text-transform: uppercase;
  font-weight: 400;
}

.ep-count {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: #3a3826;
  letter-spacing: 0.1em;
}

/* --------------------------------------------------------------------------
   Episode card
   -------------------------------------------------------------------------- */

.episode {
  border-top: 1px solid #1e1d18;
  padding: 32px 0;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0 28px;
}

.ep-meta {
  padding-top: 6px;
}

.ep-number {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: #3a3826;
  letter-spacing: 0.05em;
}

.ep-date {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: #4a4838;
  letter-spacing: 0.05em;
  margin-top: 4px;
  line-height: 1.5;
}

/* Episode type tag */

.ep-tag {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #c9a84c;
  border: 1px solid #4a3a10;
  padding: 2px 8px;
  border-radius: 2px;
  margin-bottom: 10px;
}

.ep-tag.place {
  color: #5a8050;
  border-color: #243020;
}

/* Episode title & subtitle */

.ep-title {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 700;
  color: #f0e8cc;
  line-height: 1.2;
  margin-bottom: 4px;
}

.ep-subtitle {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 15px;
  color: #6b6550;
  margin-bottom: 14px;
}

.ep-notes {
  font-size: 14px;
  line-height: 1.7;
  font-weight: 300;
  max-width: 560px;
  margin-bottom: 20px;
}

/* --------------------------------------------------------------------------
   Archive.org player
   -------------------------------------------------------------------------- */

.archive-player {
  margin-bottom: 16px;
}

.archive-player iframe {
  display: block;
  border-radius: 2px;
  /*
    The archive.org player renders light-on-white by default.
    This filter darkens it to fit the page aesthetic reasonably well.
    Remove if you prefer the default player appearance.
  */
  filter: invert(1) hue-rotate(180deg) brightness(0.85) sepia(0.3);
}

/* --------------------------------------------------------------------------
   Episode links (archive.org + Apple Music)
   -------------------------------------------------------------------------- */

.ep-links {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.ep-link {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: #4a4838;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color 0.15s ease;
}

.ep-link:hover {
  color: #c9a84c;
}

.ep-link.apple:hover {
  color: #fc3c44;
}

.ep-link svg {
  flex-shrink: 0;
}

.ep-link-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #2a2820;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Tracklist
   -------------------------------------------------------------------------- */

.tracklist-toggle {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #4a4838;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tracklist-toggle:hover {
  color: #c9a84c;
}

.tracklist-toggle .arrow {
  display: inline-block;
  transition: transform 0.2s ease;
  font-style: normal;
}

.tracklist-toggle.open .arrow {
  transform: rotate(90deg);
}

.tracklist {
  margin-top: 16px;
  border-left: 1px solid #2a2820;
  padding-left: 20px;
}

/* hidden attribute handled by JS — this is a fallback */
.tracklist[hidden] {
  display: none;
}

.track-row {
  display: grid;
  grid-template-columns: 28px 1fr auto 60px;
  gap: 8px;
  padding: 10px 0;  /* was 7px */
  border-bottom: 1px solid #1a1916;
  align-items: center;
}

.track-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: #4a4432;
  text-align: right;
}

.track-song {
  font-family: 'Source Serif 4', serif;
  font-size: 15px;
  font-weight: 400;
  color: #f0e5c8;
  line-height: 1.3;
}

.track-artist {
  font-family: 'Source Serif 4', serif;
  font-size: 13px;
  font-weight: 300;
  font-style: italic;
  color: #7a7055;
  margin-top: 2px;
}

.track-flag {
  display: flex;
  justify-content: flex-end;
}

.track-dur {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: #4a4432;
  text-align: right;
}

/* "not on playlist" badge */

.not-on-am {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.08em;
  color: #4a4838;
  border: 1px solid #2a2820;
  padding: 1px 5px;
  border-radius: 2px;
  white-space: nowrap;
  cursor: default;
}

/* Legend below tracklist */

.tracklist-legend {
  margin-top: 12px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.08em;
  color: #3a3826;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* --------------------------------------------------------------------------
   Empty state
   -------------------------------------------------------------------------- */

.no-episodes {
  padding: 40px 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: #3a3826;
  letter-spacing: 0.1em;
  border-top: 1px solid #1e1d18;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  padding: 32px 0;
  margin-top: 40px;
  border-top: 1px solid #1e1d18;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: #3a3826;
  letter-spacing: 0.08em;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.site-footer a {
  color: #3a3826;
}

.site-footer a:hover {
  color: #c9a84c;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 600px) {
  .show-title {
    font-size: 48px;
  }

  .episode {
    grid-template-columns: 1fr;
    gap: 8px 0;
  }

  .ep-meta {
    display: flex;
    gap: 16px;
    align-items: baseline;
    padding-top: 0;
  }

  .ep-date {
    display: inline;
  }

  .track-row {
    grid-template-columns: 24px 1fr 48px;
  }

  .track-flag {
    display: none;
  }

  .not-on-am-mobile::after {
    content: '*';
    color: #4a4838;
    margin-left: 3px;
  }
}













/* Body text — brighter base */
body {
  color: #e8dfc0 !important;  /* was #d4c9a8 */
}

/* Episode notes — the main reading text */
.ep-notes {
  color: #c8bea0 !important;  /* was #7a7260 */
  font-size: 15px;  /* was 14px */
}

/* Episode title — maximum brightness */
.ep-title {
  color: #faf4e4 !important ;  /* was #f0e8cc */
}

/* Episode subtitle — clear step down from title */
.ep-subtitle {
  color: #8a7f62;  /* was #6b6550 */
  font-size: 16px;  /* was 15px */
}

/* Track song titles */
.track-song {
  color: #f0e5c8;  /* already updated, confirm this is in place */
}

/* About block on masthead */
.about-block {
  color: #b8ae90;  /* was #a09880 */
}

/* Footer */
.site-footer {
  color: #6a6250;  /* was #3a3826 */
}

.site-footer a {
  color: #6a6250;  /* was #3a3826 */
}

/* "Episodes" header label and episode count */
.episodes-header h2 {
  color: #6a6250;  /* was #4a4838 */
}

.ep-count {
  color: #6a6250;  /* was #3a3826 */
}

/* EP number and date */
.ep-number {
  color: #6a6250;  /* was #3a3826 */
}

.ep-date {
  color: #7a7260;  /* was #4a4838 */
}

/* Apple Music and archive.org links */
.ep-link {
  color: #7a7260;  /* was #4a4838 */
}

/* Tracklist toggle */
.tracklist-toggle {
  color: #7a7260;  /* was #4a4838 */
}

/* Track numbers and durations */
.track-num,
.track-dur {
  color: #6a6250;  /* was #4a4432 */
}

/* Site nav */
.site-nav {
  color: #7a7060;  /* was #6b6550 */
}

.site-nav a {
  color: #7a7060;
}

/* Meta strip */
.meta-strip {
  color: #6a6250;  /* was #4a4838 */
}