/* CSS Custom Properties - Design Tokens */
:root {
  /* Color Palette */
  --color-bg-primary: #faf3e0;
  --color-bg-secondary: #ececec;
  --color-accent-primary: #D7613C;
  --color-accent-secondary: #7e4a6c;
  --color-text-primary: #333;
  --color-text-heading: #000;
  --color-text-light: #666;
  --color-border: #ddd;
  --color-code-bg: #1e1e1e;
  --color-white: #fff;

  /* Typography */
  --font-serif: 'Cardo', serif;
  --font-sans: 'Inter', sans-serif;
  --font-display: 'Playfair Display', serif;
  --font-code: 'Fira Code', 'Courier New', monospace;

  /* Spacing */
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
}

body {
  background: linear-gradient(to bottom, var(--color-bg-primary), var(--color-bg-secondary));
  color: var(--color-text-primary);
  font-family: var(--font-serif);
  font-size: 1.2rem;
  line-height: 1.7;
  letter-spacing: -0.15px;
}


h1, h2, h3, h4 {
  color: var(--color-text-heading);
  font-family: var(--font-sans);
  font-weight: 500;
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
}

a {
  color: inherit;
  text-decoration: underline;
}

a:hover {
  text-decoration: none;
}

.container-narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--spacing-lg) var(--spacing-md);
}

/* Newspaper Style Elements */
.masthead {
  border-bottom: 4px solid var(--color-text-heading);
  padding-bottom: var(--spacing-lg);
  margin-bottom: 0;
}

.masthead h1 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 3.5rem;
  letter-spacing: -0.02em;
  margin: 0;
}

.tagline {
  font-style: italic;
  font-size: 1.1rem;
  margin: var(--spacing-md) 0;
  color: var(--color-text-light);
}

.nav-bar {
  border-top: 2px solid var(--color-text-heading);
  border-bottom: 1px solid var(--color-text-heading);
  padding: 0.75rem 0;
  margin: 1.5rem 0;
}

.nav-bar a {
  font-family: var(--font-sans);
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  text-decoration: none;
  padding: 0.4em 0.8em;
  display: inline-block;
  border-right: 1px solid var(--color-border);
}

.nav-bar a:last-child,
.nav-bar .dropdown:last-child {
  border-right: none;
}

.nav-bar a:hover {
  background-color: var(--color-text-heading);
  color: var(--color-bg-primary);
  border-radius: 4px;
  display: inline-block;
  text-decoration: none;
}

.nav-bar a.active {
  background-color: var(--color-accent-primary);
  color: var(--color-bg-primary);
  padding: 0.4em 0.8em;
  border-radius: 4px;
  display: inline-block;
  text-decoration: none;
}

/* Breadcrumb */
.breadcrumb-section {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.breadcrumb {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--color-text-light);
  margin: 0;
}

.breadcrumb a {
  color: var(--color-accent-primary);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* PAGINATION FORMATTING */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 3rem 0;
  font-family: 'Inter', sans-serif;
}

.page-number {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--color-text-heading);
  color: var(--color-text-heading);
  text-decoration: none;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  transition: all 0.2s ease;
}

.page-number:hover {
  background-color: var(--color-text-heading);
  color: var(--color-bg-primary);
}

.page-number.current {
  background-color: var(--color-accent-primary);
  color: var(--color-bg-primary);
  border-color: var(--color-accent-primary);
  cursor: default;
}

/* Page Header */
.page-header {
  margin: -22px 0 0 0;
}

.page-title-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem; /* spacing between title and line */
  position: relative;
  margin-bottom: 2rem;
}

.page-title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 0;
  margin-top: 0;
  white-space: nowrap;
}

.page-title-wrapper::after {
  content: "";
  flex-grow: 1;
  height: 1px;
  background-color: var(--color-accent-primary);
  margin-left: 18px;
}

.page-subtitle {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--color-accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 0.5rem;
  text-align: end;
}

.page-meta {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: #D7613C;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1.5rem;
}

.page-excerpt {
  font-size: 1.3rem;
  line-height: 1.5;
  color: #555;
  font-style: italic;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid #000;
}

/* SONGS Page */

.volumes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.volume-card {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 220px;
  position: relative;
  border-radius: 0.5rem;
  background-size: cover;
  background-position: center;
  text-decoration: none;
  color: #fff;
  overflow: hidden;
  transition: transform 0.2s ease;
}

.volume-card:hover {
  transform: scale(1.02);
}

.volume-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5); /* stronger overlay for contrast */
  z-index: 1;
}

.volume-card-overlay {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 1rem;
}

.volume-title {
  font-size: 1.4rem;
  font-weight: bold;
  font-family: 'Inter', sans-serif;
  text-shadow: 0 1px 2px rgba(0,0,0,0.7);
  color: #fff;
}

.volume-tagline {
  font-size: 0.95rem;
  font-style: italic;
  color: #eee;
  margin-top: 0.5rem;
  text-shadow: 0 1px 1px rgba(0,0,0,0.6);
}

/* VOLUMES Page */

.volume-songs {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.volume-song-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px dotted #ccc;
  padding-bottom: 0.25rem;
}

.volume-song-title a {
  font-weight: 600;
  font-size: 1.1rem;
  font-family: 'Cardo', serif;
  text-decoration: none;
  color: #000;
}

.volume-song-title a:hover {
  text-decoration: underline;
}

.volume-song-year {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: #666;
}


/* Writings Page */

    .writings-list {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.writing-entry {
  margin-bottom: 3rem;
}

.writing-title {
  font-family: 'Cardo', serif;
  font-size: 1.6rem;
  margin-bottom: 0.25rem;
}

.writing-title a {
  text-decoration: none;
  color: inherit;
}

.writing-title a:hover {
  text-decoration: underline;
}

.writing-meta {
  font-size: 0.85rem;
  font-family: 'Inter', sans-serif;
  color: #D7613C;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 0.5rem;
}

.writing-tags .tag {
  margin-right: 0.4rem;
  color: #D7613C;
}

.writing-summary {
  font-family: 'Cardo', serif;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #333;
}


/* FIELDNOTES PAGE */
    /* Fieldnotes Page */
.fieldnotes-stream {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1rem 0;
}

.fieldnote-card {
  background: #ebe5dc;
  border-left: 4px solid #D7613C;
  padding: 1rem 1.25rem;
  border-radius: 0.25rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  font-family: 'Inter', sans-serif;
  transition: background-color 0.2s ease;
}

.fieldnote-card:hover {
  background: #e3ddd3;
}

.fieldnote-meta {
  font-size: 0.75rem;
  font-weight: 600;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.4rem;
}

.fieldnote-date {
  color: #333;
  text-decoration: none;
}

.fieldnote-date:hover {
  text-decoration: underline;
}

.fieldnote-content p {
  font-size: 0.95rem;
  margin: 0;
  color: #444;
  line-height: 1.5;
}

.fieldnote-content a {
  color: #B36B00;
  text-decoration: underline;
  transition: all 0.2s ease;
  padding: 0.1em 0.2em;
  border-radius: 3px;
}

.fieldnote-content a:hover {
  background-color: #7e4a6c; /* plum tone */
  color: #fff;
  text-decoration: none;
}

.fieldnote-item {
  margin-bottom: 2rem;
  border-left: 4px solid var(--color-accent-secondary);
  padding: 1rem 0 1rem 1rem;
  background: #f9f9f9;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.fieldnote-item:hover {
  background: #f5f5f5;
  border-left-color: #5a3452;
}

.fieldnote-text {
  font-size: 1rem;
  color: #1f2937; /* dark slate */
  margin-bottom: 0.25rem;
}

.fieldnote-link {
  font-weight: 500;
  color: #1e40af;
  text-decoration: none;
  font-size: 0.85rem;
}

.fieldnote-link:hover {
  color: #3b82f6;
  text-decoration: underline;
}




/* Article Listings */
.article-listing {
  margin-bottom: 0rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #ddd;
}

.article-listing:last-child {
  border-bottom: none;
}

.article-title {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1.4rem;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.article-title a {
  text-decoration: none;
  color: #333;
}

.article-title a:hover {
  text-decoration: underline;
}

.article-meta {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: #D7613C;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
}

.article-excerpt {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #444;
}


/* Article Content */
.article-content {
  margin-bottom: 3rem;
}

.article-content h2 {
  font-size: 1.8rem;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #ccc;
  padding-bottom: 0.5rem;
}

.article-content h3 {
  font-size: 1.4rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.article-content p {
  margin-bottom: 1.5rem;
}

.article-content blockquote {
  border-left: 4px solid #D7613C;
  padding-left: 2rem;
  margin: 2rem 0;
  font-style: italic;
  color: #555;
}

.article-content ul, .article-content ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.article-content li {
  margin-bottom: 0.5rem;
}

.article-content a {
  color: #B36B00;
  text-decoration: underline;
  transition: all 0.2s ease;
  padding: 0.1em 0.2em;
  border-radius: 3px;
}

.article-content a:hover {
  background-color: #7e4a6c; /* plum tone */
  color: #fff;
  text-decoration: none;
}

/* Navigation Footer */
.article-nav {
  border-top: 2px solid #000;
  border-bottom: 2px solid #000;
  padding: 1.5rem 0;
  margin: 3rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-link-wrapper {
  flex: 1;
}

.nav-link-wrapper.next {
  text-align: right;
}

.nav-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: #666;
  margin-bottom: 0.25rem;
}

.nav-title {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: #000;
  text-decoration: none;
}

.nav-title:hover {
  color: #D7613C;
}


/* Back to Index Button */
.back-to-index {
  text-align: center;
  margin: 2rem 0;
}

.back-to-index a {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  text-decoration: none;
  padding: 0.75rem 2rem;
  border: 2px solid #000;
  color: #000;
  transition: all 0.3s ease;
}

.back-to-index a:hover {
  background-color: #000;
  color: #faf3e0;
}


/* Buttons */
.btn-outline-dark {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  text-decoration: none;
  padding: 0.75rem 2rem;
  border: 2px solid #000;
  color: #000;
  background-color: transparent;
  transition: all 0.3s ease;
  display: inline-block;
  border-radius: 0; /* keeps it editorial — you could soften it if needed */
}

.btn-outline-dark:hover {
  background-color: #000;
  color: #faf3e0;
}

.btn-outline-accent {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  text-decoration: none;
  padding: 0.75rem 2rem;
  border: 2px solid #D7613C;
  color: #D7613C;
  background-color: transparent;
  transition: all 0.3s ease;
  display: inline-block;
  border-radius: 0;
}

.btn-outline-accent:hover {
  background-color: #D7613C;
  color: #faf3e0;
}

.btn-more {
  padding: 0.4rem 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.4px;
}

/* Footer */
.footer {
  border-top: 2px solid #000;
  padding-top: 2rem;
  margin-top: 3rem;
  text-align: center;
}

.footer small {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.social-links {
  text-align: center;
  margin-bottom: 1.5rem;
}

/* Hide <br> on sub-pages to keep everything on one line */
.social-links br {
  display: none;
}

/* Hide text labels, show only icons on single row */
.social-links a {
  font-family: 'Inter', sans-serif;
  font-size: 0;
  text-decoration: none;
  padding: 0 0.75rem;
  display: inline-block;
  color: var(--color-text-light);
  transition: color 0.3s ease;
}

/* Make icons visible at larger size */
.social-links a i {
  font-size: 1.5rem;
}

.social-links a:hover {
  color: var(--color-accent-primary);
}

/* HR flourish */
.flourish-hr-alt {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7e4a6c;
  font-size: 1.5rem;
  margin: 2rem auto;
  max-width: 300px; /* Limit total width of the flourish */
}
.flourish-hr-alt::before,
.flourish-hr-alt::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #c9a3ba; /* Softer plum tint for line */
  margin: 0 0.75rem;
}

/* ***************** */
/* Responsive Design */
@media (max-width: 768px) {
  .masthead h1 {
    font-size: 2.5rem;
  }

  .social-links a {
    padding: 0 0.5rem;
    font-size: 0.8rem;
  }

  .nav-bar a {
    padding: 0 0.5rem;
    font-size: 0.8rem;
  }

  .page-title {
    font-size: 2rem;
  }

  .article-nav {
    flex-direction: column;
    gap: 1.5rem;
  }

  .nav-link-wrapper.next {
    text-align: left;
  }
}

/* Dropdown Navigation */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-toggle {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

/* Make dropdown toggle match navbar link styling */
.nav-bar .dropdown {
  border-right: 1px solid var(--color-border);
}

.nav-bar .dropdown-toggle {
  font-family: var(--font-sans);
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  padding: 0.4em 0.8em;
  display: inline-block;
}

.nav-bar .dropdown-toggle:hover {
  background-color: var(--color-text-heading);
  color: var(--color-bg-primary);
  border-radius: 4px;
}

.nav-bar .dropdown-toggle.active {
  background-color: var(--color-accent-primary);
  color: var(--color-bg-primary);
  border-radius: 4px;
}

.dropdown-menu {
  display: none;
  position: absolute;
  left: 0;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  min-width: 160px;
  text-align: left;
  z-index: 1000;
}

.dropdown-item {
  display: block;
  padding: var(--spacing-sm) var(--spacing-md);
  text-decoration: none;
  color: var(--color-text-primary);
  font-size: 0.9rem;
}

.dropdown-item:hover,
.dropdown-item.active {
  background: #f5f5f5;
  color: var(--color-text-heading);
}

.dropdown:hover .dropdown-menu {
  display: block;
}