/* Songs page: extends edbroadbent.info design system
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Syncopate:wght@700&family=Rajdhani:wght@300;400;500;600;700&family=DM+Mono:ital,wght@0,300;0,400;1,300&family=Playfair+Display:ital,wght@0,600;0,700;1,600&display=swap');

:root {
  --bg-0:      #FAFBFD;
  --bg-1:      #F0F2F7;
  --bg-2:      #FFFFFF;
  --bg-card:   rgba(255, 255, 255, 0.85);
  --text-0:    #1A1D2E;
  --text-1:    #4A5068;
  --text-2:    #8B92A8;
  --monera:    #FFB03F;
  --protista:  #D82253;
  --fungi:     #472675;
  --plantae:   #3CB3A5;
  --animalia:  #0081BA;
  --border:    #E2E6EF;
  --shadow-sm: 0 1px 3px rgba(26, 29, 46, 0.06);
  --shadow-md: 0 4px 12px rgba(26, 29, 46, 0.08);
  --shadow-lg: 0 8px 24px rgba(26, 29, 46, 0.12);
  --radius-md: 12px;
  --radius-lg: 16px;
  --max-w:     800px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 400;
  color: var(--text-1);
  background: var(--bg-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Nav ── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 251, 253, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1.5rem;
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-family: 'Syncopate', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-0);
  letter-spacing: 2px;
}

.nav-logo {
  width: 28px;
  height: 30px;
  color: #475569;
}

.nav-back {
  font-family: 'DM Mono', monospace;
  font-size: 0.8rem;
  color: var(--text-2);
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: color 0.2s;
}

.nav-back:hover { color: var(--animalia); }

/* ── Header ── */
.page-header {
  padding: 6rem 1.5rem 4rem;
  text-align: center;
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.header-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.8rem;
  color: var(--text-2);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.page-header h1 {
  font-family: 'Syncopate', sans-serif;
  font-weight: 700;
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  color: var(--text-0);
  line-height: 1.3;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
}

.header-sub {
  font-size: 1.1rem;
  color: var(--text-1);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── Song Sections ── */
.song {
  padding: 3rem 1.5rem;
}

.song:nth-child(odd) {
  background: var(--bg-1);
}

.song-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.song-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.song-tag {
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 9999px;
  font-weight: 400;
}

.tag-health {
  color: var(--plantae);
  background: rgba(60, 179, 165, 0.1);
  border: 1px solid rgba(60, 179, 165, 0.25);
}

.tag-fintech {
  color: var(--animalia);
  background: rgba(0, 129, 186, 0.1);
  border: 1px solid rgba(0, 129, 186, 0.25);
}

.song-number {
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-2);
}

.song h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  color: var(--text-0);
  margin-bottom: 1rem;
}

.song-context {
  font-size: 1.05rem;
  color: var(--text-1);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 640px;
}

/* ── Embed ── */
.song-embed {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}

.song-embed iframe {
  display: block;
  width: 100%;
  min-height: 160px;
  border: none;
}

/* Responsive 16:9 YouTube container */
.song-embed--yt {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  box-shadow: var(--shadow-md);
}

.song-embed--yt iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
}

/* Suno fallback link */
.song-alt-link {
  display: inline-block;
  font-family: 'DM Mono', monospace;
  font-size: 0.78rem;
  color: var(--text-2);
  text-decoration: none;
  letter-spacing: 0.5px;
  margin-top: 0.25rem;
  transition: color 0.2s;
}

.song-alt-link:hover { color: var(--text-0); }

/* ── Lyrics toggle ── */
.lyrics-toggle {
  margin-top: 0.5rem;
}

.lyrics-toggle summary {
  font-family: 'DM Mono', monospace;
  font-size: 0.8rem;
  color: var(--text-2);
  cursor: pointer;
  letter-spacing: 0.5px;
  padding: 0.5rem 0;
  transition: color 0.2s;
  list-style: none;
}

.lyrics-toggle summary::-webkit-details-marker { display: none; }

.lyrics-toggle summary::before {
  content: '+ ';
  font-weight: 400;
}

.lyrics-toggle[open] summary::before {
  content: '− ';
}

.lyrics-toggle summary:hover { color: var(--text-0); }

.lyrics {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem;
  margin-top: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-1);
}

.lyrics p {
  margin-bottom: 1.25rem;
}

.lyrics p:last-child { margin-bottom: 0; }

.lyrics-section {
  margin-bottom: 0.25rem !important;
}

.lyrics-section strong {
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-2);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 400;
}

.lyrics em {
  font-style: italic;
  color: var(--text-2);
}

/* ── Footer ── */
.page-footer {
  padding: 4rem 1.5rem 3rem;
  text-align: center;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.footer-note {
  font-size: 0.95rem;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.footer-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.footer-link {
  font-family: 'DM Mono', monospace;
  font-size: 0.8rem;
  color: var(--text-2);
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: color 0.2s;
}

.footer-link:hover { color: var(--animalia); }

/* ── Responsive ── */
@media (max-width: 640px) {
  .page-header { padding: 4rem 1.25rem 3rem; }
  .song { padding: 2.5rem 1.25rem; }
  .lyrics { padding: 1.25rem; }
  .page-header h1 br { display: none; }
}
