:root {
  /* Tufte-inspired Palette */
  --bg-color: #fffff8;
  --text-color: #111;
  --text-muted: #666;
  --border-color: #eee;
  --border-dotted: #ccc;
  
  /* Default Mood (Rust/Red) */
  --accent-color: #b12;

  /* Fonts */
  --font-serif: "ETBembo", "Palatino Linotype", "Book Antiqua", Palatino, serif;
  --font-sans: "Gill Sans", "Gill Sans MT", Calibri, sans-serif;
  
  /* Spacing */
  --spacing-unit: 1rem;
}

/* --- 1. Base & Typography --- */

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-serif);
  line-height: 1.4;
  margin: 0;
  padding: 2rem;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1;
}

h1 { font-size: 3.2rem; margin-top: 4rem; text-transform: uppercase; }
h2 { font-size: 2.2rem; margin-top: 2.1rem; text-transform: uppercase;}
h3 { font-size: 1.7rem; margin-bottom: 1rem;  margin-top: 2rem; font-weight: 400; text-transform: uppercase; }
h4 { font-size: 1.5rem; margin-bottom: 0.5rem;  margin-top: 2rem; text-transform: uppercase; font-weight: 200; }
h5 { font-size: 1.1rem; text-transform: uppercase; font-weight: 200; }

a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 0.1em;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-color) !important;
}

/* --- 2. Header & Navigation --- */

.brand-inner {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  padding-bottom: 1rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--accent-color);
}

.brand-identity {
  display: flex;
  align-items: center;
}

.site-logo {
  height: 40px;
  width: auto;
  margin-right: 15px;
}

.site-title {
  font-family: var(--font-sans);
  font-size: 3rem;
  line-height: 1;
  margin: 0;
}

.site-nav ul {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav li {
  margin-left: 20px;
}

.site-nav a {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #555;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--accent-color);
}

#dynamic-tagline {
  font-style: italic;
  color: #555;
  margin-top: 0.5rem;
  min-height: 1.5em;
  transition: opacity 0.5s ease-in;
}

/* --- 3. Breadcrumbs --- */

.breadcrumb {
  font-family: var(--font-sans);
  font-size: 1.5rem;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 1rem;
}

.back-link:hover {
  color: var(--accent-color);
}

/* --- 4. Content Components --- */

/* Poetry / Verse */
pre.verse {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  white-space: pre-wrap;
  background: transparent;
  border: none;
  padding: 0;
  margin-left: 1.5em;
  line-height: 1.5;
}

/* Listings (General) */
.listing-item {
  list-style: none;
  margin-bottom: 2rem;
}

.listing-title {
  font-family: var(--font-sans);
  font-size: 1.4rem;
  margin: 0 0 0.5rem 0;
}

.listing-link {
  border-bottom: none;
}

.listing-link:hover {
  border-bottom: 2px solid var(--text-color);
}

.listing-desc {
  font-style: italic;
  color: var(--text-muted);
}

.sub-listing a {
  color: var(--text-muted);
}
.sub-listing a:hover {
  color: #000;
}

/* Album Layout */
.album {
  margin-bottom: 4rem;
  padding-left: 1rem;
  border-left: 1px solid var(--border-color);
}

.album-title {
  font-family: var(--font-sans);
  font-size: 1.6rem;
  font-variant: small-caps;
  letter-spacing: 0.05em;
  margin-top: 0;
  color: #333;
}

.album-title a {
  font-weight: bold;
}

.album-desc {
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* Song List & Rows */
.song-list {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
}

.song-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.5rem 0;
  border-bottom: 1px dotted var(--border-dotted);
}

.song-info {
  flex-grow: 1;
  margin-right: 1rem;
}

.song-title {
  font-family: var(--font-sans);
  color: var(--text-color);
}

.song-title:hover {
  text-decoration: underline;
  color: var(--accent-color);
}

.song-summary {
  font-size: 0.9em;
  font-style: italic;
  color: var(--text-muted);
  margin-left: 0.5rem;
}

.song-actions {
  white-space: nowrap;
  font-family: var(--font-sans);
  font-size: 0.8rem;
}

/* Badges & Actions */
.badge {
  background: #eee;
  color: #555;
  padding: 2px 5px;
  border-radius: 3px;
  margin-right: 5px;
}

.action-link {
  color: #888;
  margin-left: 10px;
  font-size: 1.1em;
}

.action-link:hover {
  color: var(--accent-color);
}

/* --- 5. Mood Themes (Colors) --- */

/* Verbrechen: The Cold / Steel Blue */
body.mood-verbrechen { --accent-color: #2c5aa0; }

/* Zerbrechen: The Pain / Burgundy */
body.mood-zerbrechen { --accent-color: #800020; }

/* Aufbrechen: The Healing / Sea Green */
body.mood-aufbrechen { --accent-color: #2e8b57; }

/* --- 6. Responsive Design --- */

@media (max-width: 600px) {
  .brand-inner {
      flex-direction: column;
      align-items: flex-start;
  }
  
  .site-nav ul {
      margin-top: 1rem;
      flex-wrap: wrap;
  }
  
  .site-nav li {
      margin-left: 0;
      margin-right: 15px;
  }

  .song-row {
      flex-direction: column;
  }

  .song-actions {
      margin-top: 0.3rem;
  }
}
