/* songs.css — shared styles for the Frontier Songbook
   Place at /srv/totemicworld/site/songs/songs.css
   Modeled on /stories/chapter.css, tuned for verse.
*/

:root {
  --ink:       #0e0d0b;
  --parchment: #e8dcc8;
  --ember:     #c8621a;
  --ash:       #7a6e62;
  --smoke:     #1a1814;
  --gold:      #b8882a;
  --dim:       #2a2420;
  --flame:     #e07830;
  --azure:     #5f9bd6;

  /* Duet voices */
  --voice-a:   #d9614f; /* Singer A */
  --voice-b:   #5f95d6; /* Singer B */
  --voice-both:#b695dc; /* Together */
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--parchment);
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 19px;
  line-height: 1.6;
  min-height: 100vh;
}

/* Grain */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1000;
  opacity: 0.4;
}

/* ── Site nav ── */
.site-nav {
  border-bottom: 1px solid var(--dim);
  padding: 1.1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-nav a {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ash);
  text-decoration: none;
  transition: color 0.2s;
}

.site-nav a:hover { color: var(--azure); }

.site-nav .brand {
  font-family: 'GFS Didot', Georgia, serif;
  font-size: 1rem;
  letter-spacing: 0.05em;
  color: var(--parchment);
  text-decoration: none;
}

/* ── Song header ── */
.song-header {
  max-width: 60ch;
  margin: 0 auto;
  padding: 5rem 2rem 2.5rem;
  border-bottom: 1px solid var(--dim);
  text-align: center;
}

.song-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.63rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--azure);
  display: block;
  margin-bottom: 0.9rem;
  opacity: 0.8;
}

.song-title {
  font-family: 'GFS Didot', Georgia, serif;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  line-height: 1.1;
  color: var(--parchment);
}

/* ── Verse body ── */
.song-body {
  max-width: 56ch;
  margin: 0 auto;
  padding: 3.5rem 2rem 4rem;
  text-align: center;
}

.stanza { margin: 0 0 2.2rem; }
.stanza:last-child { margin-bottom: 0; }

.line {
  display: block;
  font-size: 1.12rem;
  font-weight: 300;
  line-height: 1.95;
  color: rgba(232,220,200,0.9);
}

/* Multi-part songs (versions) */
.song-part { margin-bottom: 3.5rem; }
.song-part:last-child { margin-bottom: 0; }

.part-divider {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin: 0 auto 2rem;
}

.part-divider::before,
.part-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--dim);
}

.part-title {
  font-family: 'GFS Didot', Georgia, serif;
  font-size: 1.4rem;
  color: var(--azure);
  white-space: nowrap;
}

.part-note {
  font-family: 'DM Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ash);
  margin-bottom: 1.75rem;
}

/* Call-and-response (Flame Doctrine, third version) */
.line.call {
  font-style: italic;
  color: rgba(184,136,42,0.92);
}

.line.response {
  color: rgba(232,220,200,0.9);
}

/* ── Duet legend (Goin' Hollow) ── */
.duet-legend {
  max-width: 56ch;
  margin: 2.5rem auto 0;
  padding: 0 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.75rem;
}

.duet-legend span {
  font-family: 'DM Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ash);
}

.duet-legend .swatch {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  display: inline-block;
}

.voice-a   { color: var(--voice-a); }
.voice-b   { color: var(--voice-b); }
.voice-both{ color: var(--voice-both); }

.line.voice-a    { color: var(--voice-a); }
.line.voice-b    { color: var(--voice-b); }
.line.voice-both { color: var(--voice-both); }

.together { color: var(--voice-both); }

/* ── Song nav ── */
.song-nav {
  max-width: 60ch;
  margin: 0 auto;
  padding: 2rem 2rem 5rem;
  border-top: 1px solid var(--dim);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.song-nav a {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ash);
  text-decoration: none;
  transition: color 0.2s;
}

.song-nav a:hover { color: var(--azure); }

.song-nav .spacer { flex: 1; }

.song-nav .index-link {
  color: var(--dim);
  font-size: 0.6rem;
}

.song-nav .index-link:hover { color: var(--ash); }

/* ── Footer ── */
footer {
  border-top: 1px solid var(--dim);
  padding: 2rem;
  text-align: center;
  font-family: 'DM Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ash);
}
