/* ===== Meet Them in Music — Brand Stylesheet ===== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

:root {
  --charcoal: #2C2C2A;
  --warm-gray: #5F5E5A;
  --teal: #0F6E56;
  --dark-teal: #085041;
  --warm-white: #FAFAF8;
  --teal-tint: #E1F5EE;
  --neutral-100: #D3D1C7;
  --neutral-50: #F1EFE8;
  --white: #FFFFFF;
  --max-width: 860px;
  --max-width-wide: 1080px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  font-weight: 400;
  line-height: 1.7;
  color: var(--charcoal);
  background-color: var(--warm-white);
}

/* --- Typography --- */

h1, h2, h3, h4 { font-weight: 500; line-height: 1.3; }
h1 { font-size: 2rem; letter-spacing: -0.02em; line-height: 1.2; }
h2 { font-size: 1.5rem; letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; }

p { margin-bottom: 1.5rem; }

a {
  color: var(--teal);
}
a:hover { text-decoration: underline; }
a:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}
button:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

blockquote {
  border-left: 2px solid var(--neutral-100);
  background: transparent;
  padding: 0 0 0 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  border-radius: 0 8px 8px 0;
}

blockquote p {
  margin-bottom: 0; /* Prevents double-spacing inside the quote */
}

code {
  font-family: 'SF Mono', 'Fira Code', 'Fira Mono', Menlo, monospace;
  font-size: 0.875rem;
  background: var(--neutral-50);
  padding: 2px 6px;
  border-radius: 4px;
}

pre {
  background: var(--neutral-50);
  padding: 1rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1.5rem 0;
}

hr {
  border: none;
  border-top: 0.5px solid var(--neutral-100);
  margin: 2rem 0;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* --- Layout --- */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-wide {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Header --- */

.site-header {
  padding: 1.5rem 0;
  border-bottom: 0.5px solid var(--neutral-100);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width-wide);
}

.logo {
  font-size: 1.25rem;
  font-weight: 500;
  text-decoration: none;
}
.logo-meet { color: var(--teal); }
.logo-in { color: var(--charcoal); }
.logo-byline {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--warm-gray);
  letter-spacing: 0.02em;
}

.site-nav { display: flex; gap: 1.5rem; }
.site-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--charcoal);
  text-decoration: none;
  padding-bottom: 2px;
}
.site-nav a:hover,
.site-nav a.active {
  color: var(--teal);
  border-bottom: 2px solid var(--teal);
}

/* --- Post list --- */

.post-list { list-style: none; }
.post-card {
  padding: 1.5rem 0;
  border-bottom: 0.5px solid var(--neutral-100);
}
.post-card:last-child { border-bottom: none; }
.post-card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 1rem;
  display: block;
}
.post-card h2 { font-size: 1.25rem; margin-bottom: 0.25rem; }
.post-card h2 a { color: var(--charcoal); text-decoration: none; }
.post-card h2 a:hover { color: var(--teal); text-decoration: none; }
.post-meta {
  font-size: 0.8125rem;
  color: var(--warm-gray);
  margin-bottom: 0.5rem;
}
.post-excerpt { color: var(--warm-gray); font-size: 0.9375rem; }

/* --- Single post --- */

.post-featured-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 1.5rem;
}

.post-header { margin-bottom: 2rem; }
.post-header h1 { margin-bottom: 0.5rem; }
.post-content h2 { margin-top: 2.5rem; margin-bottom: 1rem; }
.post-content h3 { margin-top: 2rem; margin-bottom: 0.75rem; }
.post-content ul, .post-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}
.post-content li { margin-bottom: 0.5rem; }

/* --- Tags --- */

.tag {
  display: inline-block;
  background: var(--teal-tint);
  color: var(--dark-teal);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 6px;
  text-decoration: none;
}
.tag:hover { background: #C0E8D9; text-decoration: none; }
button.tag { cursor: pointer; font: inherit; border: none; }

/* --- Buttons --- */

.btn-primary {
  display: inline-block;
  background: var(--teal);
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  min-height: 44px;
}
.btn-primary:hover { background: var(--dark-teal); text-decoration: none; }

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--teal);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 8px;
  border: 0.5px solid var(--teal);
  cursor: pointer;
  text-decoration: none;
  min-height: 44px;
}
.btn-secondary:hover { background: var(--teal-tint); text-decoration: none; }

/* --- Site main --- */

.site-main {
  min-height: 50vh;
}

/* --- Footer --- */

.site-footer {
  background: var(--charcoal);
  color: var(--neutral-100);
  padding: 2.5rem 0;
  margin-top: 4rem;
  text-align: center;
}

.footer-name {
  font-size: 1rem;
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 0.375rem;
}

.footer-tagline {
  font-size: 0.8125rem;
  font-style: italic;
  color: #9e9c96;
  margin-bottom: 0.5rem;
}

.footer-copy {
  font-size: 0.75rem;
  color: #6b6966;
  margin-bottom: 0;
}

/* --- Hero --- */

.hero {
  position: relative;
  overflow: hidden;
  background-color: var(--dark-teal);
  padding: 4.5rem 0 4rem;
}

.hero-rings {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid #ffffff;
  opacity: 0.06;
}

.hero-ring--1 {
  width: 500px;
  height: 500px;
  top: 50%;
  right: -80px;
  transform: translateY(-50%);
}

.hero-ring--2 {
  width: 350px;
  height: 350px;
  top: 50%;
  right: 60px;
  transform: translateY(-50%);
}

.hero-ring--3 {
  width: 600px;
  height: 600px;
  top: 50%;
  left: -220px;
  transform: translateY(-50%);
  opacity: 0.03;
}

.hero-ring--4 {
  width: 200px;
  height: 200px;
  bottom: -60px;
  right: 30%;
  opacity: 0.04;
}

.hero-content {
  position: relative;
}

.hero-eyebrow {
  font-size: 0.8125rem;
  color: #a8d5c5;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: 3rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #ffffff;
  margin-bottom: 1rem;
}

.hero-tagline {
  font-size: 1.25rem;
  font-style: italic;
  color: #a8d5c5;
  margin-bottom: 0.75rem;
}

.hero-desc {
  font-size: 1rem;
  color: #c8e8dc;
  max-width: 520px;
  margin-bottom: 0;
  line-height: 1.65;
}

/* --- Section label --- */

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--warm-gray);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
}

/* --- Song library --- */

.library-header { margin-bottom: 1.75rem; }
.library-desc {
  color: var(--warm-gray);
  font-size: 0.9375rem;
  margin-top: 0.25rem;
  margin-bottom: 0;
}

.library-filters {
  background: var(--neutral-50);
  border: 0.5px solid var(--neutral-100);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.filter-group { display: flex; flex-direction: column; gap: 0.5rem; }

.song-search-input {
  width: 100%;
  max-width: 360px;
  background: var(--white);
  border: 0.5px solid var(--neutral-100);
  border-radius: 6px;
  color: var(--charcoal);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 400;
  padding: 6px 12px;
  min-height: 32px;
  transition: border-color 0.15s;
}
.song-search-input::placeholder { color: #B4B2A9; }
.song-search-input:focus {
  border-color: var(--teal);
  outline: 2px solid var(--teal);
  outline-offset: 1px;
}

.filter-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--warm-gray);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.filter-buttons { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.filter-btn {
  background: var(--white);
  border: 0.5px solid var(--neutral-100);
  color: var(--charcoal);
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  min-height: 32px;
}
.filter-btn:hover {
  border-color: var(--teal);
  color: var(--teal);
}
.filter-btn.active {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
}

.filter-clear {
  align-self: flex-start;
  background: none;
  border: none;
  color: var(--teal);
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}
.filter-clear:hover { color: var(--dark-teal); }

.library-count {
  font-size: 0.8125rem;
  color: var(--warm-gray);
  margin-bottom: 1rem;
}

.song-list { list-style: none; }

.song-card {
  padding: 1.25rem 0;
  border-bottom: 0.5px solid var(--neutral-100);
}
.song-card:last-child { border-bottom: none; }
.song-card[hidden] { display: none; }

.song-card h2 { font-size: 1.125rem; margin-bottom: 0.375rem; }
.song-card h2 a { color: var(--charcoal); text-decoration: none; }
.song-card h2 a:hover { color: var(--teal); text-decoration: none; }

.song-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.song-meta-item {
  font-size: 0.8125rem;
  color: var(--warm-gray);
}
.song-meta-item + .song-meta-item::before {
  content: "·";
  margin-right: 0.5rem;
}

.song-concepts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem 1.5rem;
  margin-bottom: 1.5rem;
}
.concept-group {
  padding-left: 0.75rem;
  border-left: 2px solid var(--teal);
}

/* --- Concepts disclosure (details/summary) --- */

/* On desktop: hide the summary toggle; content is always visible via open attr */
.song-concepts-details > summary {
  display: none;
}

@media (max-width: 640px) {
  .song-concepts-details {
    background: var(--lyrics-bg, #fbf8f2);
    border: 1.5px solid var(--lyrics-border, #d9d2c3);
    border-radius: 6px;
    margin-top: 1.25rem;
  }

  .song-concepts-details > summary {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    cursor: pointer;
    list-style: none;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--warm-gray);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.75rem 1.1rem;
    user-select: none;
  }
  .song-concepts-details > summary::-webkit-details-marker { display: none; }
  .song-concepts-details > summary::after {
    content: "";
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    display: inline-block;
    height: 0.5rem;
    width: 0.5rem;
    transform: rotate(45deg);
    transition: transform 0.15s ease;
    flex-shrink: 0;
  }
  .song-concepts-details[open] > summary::after {
    transform: rotate(-135deg);
  }

  .song-concepts-details > .song-concepts {
    border-top: 1px solid var(--lyrics-border, #d9d2c3);
    padding: 1rem 1.1rem 1.1rem;
    margin-bottom: 0;
  }

  /* Mobile flex ordering: push notation above concept tags */
  article.song-single {
    display: flex;
    flex-direction: column;
  }
  article.song-single > h1               { order: 1; }
  article.song-single > .song-details    { order: 2; }
  article.song-single > .song-notation-block { order: 3; }
  article.song-single > .song-concepts-details { order: 4; }
  article.song-single > .post-content    { order: 5; }
  article.song-single > .song-inline-cta { order: 6; }
}

/* --- Song single --- */

.song-back {
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.song-details {
  background: var(--neutral-50);
  border: 0.5px solid var(--neutral-100);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.song-detail-row {
  display: flex;
  gap: 1rem;
  align-items: baseline;
}
.song-detail-row dt {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--warm-gray);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  min-width: 70px;
}
.song-detail-row dd {
  font-size: 0.9375rem;
  color: var(--charcoal);
  margin: 0;
}

/* --- Draft badge --- */

.tag-draft {
  display: inline-block;
  margin-left: 0.6rem;
  padding: 0.15rem 0.5rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #92400E;
  background: #FEF3C7;
  border: 0.5px solid #D97706;
  border-radius: 4px;
  vertical-align: middle;
}

.tag-unlisted {
  display: inline-block;
  margin-left: 0.6rem;
  padding: 0.15rem 0.5rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1E3A5F;
  background: #DBEAFE;
  border: 0.5px solid #60A5FA;
  border-radius: 4px;
  vertical-align: middle;
}

/* --- Image expand / lightbox --- */

.img-expand-wrap {
  margin-bottom: 1.5rem;
}

.img-expand-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 0.5rem;
  padding: 0.3rem 0.75rem;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--teal);
  background: var(--teal-tint);
  border: 0.5px solid var(--teal);
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.img-expand-btn:hover {
  background: var(--teal);
  color: var(--white);
}

.img-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(44, 44, 42, 0.85);
  overflow: auto;
  padding: 2rem 1rem;
}
.img-lightbox.is-open {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.img-lightbox-inner {
  position: relative;
  max-width: 100%;
}
.img-lightbox img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}
.img-lightbox-close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--charcoal);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.img-lightbox-close:hover {
  background: var(--neutral-50);
}

/* --- Accessibility toggle buttons --- */

.header-end {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.a11y-controls {
  display: flex;
  gap: 0.375rem;
}

.a11y-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 0.5px solid var(--neutral-100);
  background: transparent;
  color: var(--warm-gray);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  padding: 0;
}
.a11y-btn:hover {
  background: var(--neutral-50);
  color: var(--charcoal);
  border-color: var(--neutral-100);
}
.a11y-btn[aria-pressed="true"] {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}
.a11y-btn:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

/* --- High contrast --- */

[data-contrast="high"] {
  --charcoal: #000000;
  --warm-gray: #3D3D3D;
  --teal: #005A40;
  --dark-teal: #003D2B;
  --warm-white: #FFFFFF;
  --teal-tint: #B8E8D0;
  --neutral-100: #767676;
  --neutral-50: #F0F0F0;
  --white: #FFFFFF;
}

/* --- Respect OS preferences for users without JS --- */

@media (prefers-contrast: more) {
  :root:not([data-contrast]) {
    --charcoal: #000000;
    --warm-gray: #3D3D3D;
    --teal: #005A40;
    --dark-teal: #003D2B;
    --warm-white: #FFFFFF;
    --teal-tint: #B8E8D0;
    --neutral-100: #767676;
    --neutral-50: #F0F0F0;
    --white: #FFFFFF;
  }
}

/* --- Callout --- */

.callout {
  background-color: var(--teal-tint);
  border-left: 4px solid var(--teal);
  border-radius: 4px;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}

.callout-title {
  font-weight: 600;
  color: var(--dark-teal);
  margin-bottom: 0.5rem;
}

/* --- Slideshow --- */

.slideshow {
  position: relative;
  margin: 2rem 0;
  background: var(--charcoal);
  border-radius: 8px;
  overflow: hidden;
}

.slideshow__slide {
  display: none;
}

.slideshow__slide.is-active {
  display: block;
}

.slideshow__img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
  background: var(--charcoal);
  border-radius: 0;
}

.slideshow__caption {
  font-size: 0.875rem;
  color: var(--warm-white);
  padding: 0.5rem 1rem;
  margin: 0;
  text-align: center;
  line-height: 1.4;
}

.slideshow__controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 0.75rem;
  background: var(--charcoal);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.slideshow__counter {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--warm-white);
  flex: 1;
  text-align: center;
}

.slideshow__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  background: transparent;
  color: var(--warm-white);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  font-family: inherit;
}

.slideshow__btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.5);
}

.slideshow__btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.slideshow__btn--fullscreen {
  margin-left: auto;
}

.slideshow:fullscreen,
.slideshow:-webkit-full-screen {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #000;
  border-radius: 0;
}

.slideshow:fullscreen .slideshow__img,
.slideshow:-webkit-full-screen .slideshow__img {
  max-height: calc(100vh - 56px);
  object-fit: contain;
}

@media (prefers-reduced-motion: reduce) {
  .slideshow__slide {
    transition: none;
  }
}

/* --- Text slides --- */

.slides {
  position: relative;
  margin: 2rem 0;
  background: #fff;
  border: 0.5px solid var(--neutral-100);
  border-radius: 8px;
  overflow: hidden;
}

.slides .slideshow__track {
  min-height: 200px;
  display: flex;
  align-items: stretch;
}

.slides .slideshow__slide {
  display: none;
  width: 100%;
  padding: 2.5rem 2rem;
  text-align: center;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.slides .slideshow__slide.is-active {
  display: flex;
}

.slides .slideshow__slide > * {
  margin: 0.25rem 0;
}

.slides .slideshow__slide > *:first-child { margin-top: 0; }
.slides .slideshow__slide > *:last-child  { margin-bottom: 0; }

.slides .slideshow__slide h1 {
  color: var(--teal);
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.2;
}

.slides .slideshow__slide h2 {
  color: var(--charcoal);
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.25;
}

.slides .slideshow__slide h3,
.slides .slideshow__slide h4 {
  color: var(--charcoal);
  font-weight: 600;
  line-height: 1.3;
}

.slides .slideshow__slide p {
  color: var(--charcoal);
  line-height: 1.5;
}

.slides .slideshow__slide ul,
.slides .slideshow__slide ol {
  display: inline-block;
  text-align: left;
  color: var(--charcoal);
}

/* Controls — light theme overrides */
.slides .slideshow__controls {
  background: var(--warm-white);
  border-top: 1px solid var(--neutral-100);
}

.slides .slideshow__btn {
  color: var(--charcoal);
  border-color: rgba(0, 0, 0, 0.18);
}

.slides .slideshow__btn:hover:not(:disabled) {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.35);
}

.slides .slideshow__counter {
  color: var(--charcoal);
}

/* Fullscreen — scale up for projection */
.slides:fullscreen,
.slides:-webkit-full-screen {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 0;
}

.slides:fullscreen .slideshow__track,
.slides:-webkit-full-screen .slideshow__track {
  flex: 1;
}

.slides:fullscreen .slideshow__slide h1,
.slides:-webkit-full-screen .slideshow__slide h1 {
  font-size: 3.5rem;
}

.slides:fullscreen .slideshow__slide h2,
.slides:-webkit-full-screen .slideshow__slide h2 {
  font-size: 2.5rem;
}

.slides:fullscreen .slideshow__slide h3,
.slides:-webkit-full-screen .slideshow__slide h3 {
  font-size: 2rem;
}

.slides:fullscreen .slideshow__slide p,
.slides:-webkit-full-screen .slideshow__slide p {
  font-size: 1.625rem;
}

.slides:fullscreen .slideshow__slide ul,
.slides:fullscreen .slideshow__slide ol,
.slides:-webkit-full-screen .slideshow__slide ul,
.slides:-webkit-full-screen .slideshow__slide ol {
  font-size: 1.5rem;
}

/* --- Tables --- */

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9375rem;
}

table th, 
table td {
  padding: 0.75rem;
  border: 1px solid var(--neutral-100); /* Matches your hr and card borders */
  text-align: left;
}

table th {
  background-color: var(--neutral-50); /* Subtle gray background */
  font-weight: 600;
  color: var(--charcoal);
}

table tr:nth-child(even) {
  background-color: rgba(241, 239, 232, 0.3); /* Very faint tint using --neutral-50 */
}

/* --- Utilities --- */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  padding: 8px 16px;
  background: var(--teal);
  color: var(--white);
  z-index: 9999;
  font-size: 0.875rem;
  border-radius: 0 0 4px 0;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0;
}

details.filter-group > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  user-select: none;
  margin-bottom: 0;
}
details.filter-group > summary::-webkit-details-marker { display: none; }
details.filter-group > summary::after {
  content: '';
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 1.5px solid var(--warm-gray);
  border-bottom: 1.5px solid var(--warm-gray);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  flex-shrink: 0;
  margin-left: 0.375rem;
}
details.filter-group:not([open]) > summary::after {
  transform: rotate(-45deg);
}
details.filter-group[open] > .filter-buttons {
  margin-top: 0.375rem;
}
details.filter-group > summary:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
  border-radius: 4px;
}

/* --- Homepage --- */

.home-hero {
  position: relative;
  overflow: hidden;
  background: var(--charcoal);
  padding: 72px 0 68px;
}

/* Foreground content sits above the beams */
.home-hero__content {
  position: relative;
  z-index: 1;
}

/* Beam layer — decorative only, invisible to assistive tech */
.home-hero__beams {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.beam {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

/* Beam 1 — large horizontal glow, upper-left */
.beam--1 {
  width: 640px;
  height: 220px;
  top: -60px;
  left: -80px;
  background: radial-gradient(ellipse at center,
    rgba(15, 110, 86, 0.45) 0%,
    transparent 70%
  );
  filter: blur(72px);
  animation: beam-drift-1 7s ease-in-out infinite;
}

/* Beam 2 — tall vertical glow, right side */
.beam--2 {
  width: 360px;
  height: 480px;
  top: -100px;
  right: -80px;
  background: radial-gradient(ellipse at center,
    rgba(8, 80, 65, 0.5) 0%,
    transparent 68%
  );
  filter: blur(88px);
  animation: beam-drift-2 9s ease-in-out infinite;
}

/* Beam 3 — medium glow, lower-center */
.beam--3 {
  width: 480px;
  height: 280px;
  bottom: -80px;
  left: 25%;
  background: radial-gradient(ellipse at center,
    rgba(15, 110, 86, 0.3) 0%,
    transparent 72%
  );
  filter: blur(64px);
  animation: beam-drift-3 8s ease-in-out infinite;
  animation-delay: -6s;
}

/* Beam 4 — small accent, upper-right area */
.beam--4 {
  width: 280px;
  height: 280px;
  top: 10px;
  right: 20%;
  background: radial-gradient(ellipse at center,
    rgba(168, 213, 197, 0.12) 0%,
    transparent 70%
  );
  filter: blur(48px);
  animation: beam-drift-4 10s ease-in-out infinite;
  animation-delay: -12s;
}

@keyframes beam-drift-1 {
  0%, 100% { transform: translate(0, 0) rotate(-6deg) scale(1); }
  33%       { transform: translate(220px, 100px) rotate(12deg) scale(1.15); }
  66%       { transform: translate(-100px, 80px) rotate(-20deg) scale(0.9); }
}

@keyframes beam-drift-2 {
  0%, 100% { transform: translate(0, 0) rotate(8deg) scale(1); }
  40%       { transform: translate(-200px, 120px) rotate(-10deg) scale(1.2); }
  70%       { transform: translate(-80px, -100px) rotate(24deg) scale(0.85); }
}

@keyframes beam-drift-3 {
  0%, 100% { transform: translate(0, 0) rotate(3deg) scale(1); }
  50%       { transform: translate(-180px, -110px) rotate(-18deg) scale(1.25); }
}

@keyframes beam-drift-4 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  40%       { transform: translate(160px, -100px) scale(1.3); }
  75%       { transform: translate(-90px, 70px) scale(0.8); }
}

/* Stop motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  .beam { animation: none; }
}

.home-hero__overline {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9FE1CB;
  margin-bottom: 1.25rem;
}

.home-hero__heading {
  font-size: 2.375rem;
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--warm-white);
  max-width: 580px;
  margin-bottom: 1.375rem;
}

.home-hero__lead {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: #B4B2A9;
  max-width: 520px;
  margin-bottom: 2rem;
}

.home-hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.home-section {
  padding-block: 56px;
  border-bottom: 0.5px solid var(--neutral-100);
}

.home-section:last-of-type {
  border-bottom: none;
}

.home-section--alt {
  background: var(--neutral-50);
}

.home-section__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}

.home-section__header h2 {
  font-size: 1.375rem;
  font-weight: 500;
  color: var(--charcoal);
  margin-bottom: 4px;
}

.home-section__subhead {
  font-size: 0.875rem;
  color: var(--warm-gray);
  line-height: 1.5;
  margin-bottom: 0;
}

.section-link {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--teal);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  padding-top: 4px;
}

.section-link:hover {
  color: var(--dark-teal);
  text-decoration: none;
}

/* Song grid (homepage teaser — scoped so library list is unaffected) */

.song-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  list-style: none;
  padding: 0;
}

.song-grid__card {
  position: relative;
  background: var(--white);
  border: 0.5px solid var(--neutral-100);
  border-radius: 12px;
  transition: box-shadow 0.2s ease;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.song-grid__img-wrap {
  margin: -18px -16px 4px;
  border-radius: 11px 11px 0 0;
  overflow: hidden;
  height: 140px;
  background: var(--neutral-50);
}

.song-grid__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 0;
  display: block;
}

.song-grid__grades {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  list-style: none;
  padding: 0;
}

.grade-badge {
  background: var(--teal-tint);
  color: var(--dark-teal);
  font-size: 0.6875rem;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 4px;
  line-height: 1.4;
}

.song-grid__title {
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.3;
}

.song-grid__title a {
  color: var(--charcoal);
  text-decoration: none;
}

/* Stretch the title link to cover the entire card */
.song-grid__title a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.song-grid__card:hover {
  box-shadow: 0 0 0 1.5px var(--teal);
}

.song-grid__title a:hover {
  color: var(--teal);
}

.song-grid__meta {
  font-size: 0.75rem;
  color: var(--warm-gray);
  margin: 0;
}

.song-grid__activities {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  list-style: none;
  padding: 0;
  margin-top: auto;
}

.activity-tag {
  background: var(--neutral-50);
  color: #444441;
  font-size: 0.6875rem;
  font-weight: 400;
  padding: 3px 8px;
  border-radius: 4px;
  line-height: 1.4;
}

.song-grid-empty {
  padding: 2.5rem;
  border: 0.5px dashed var(--neutral-100);
  border-radius: 12px;
  text-align: center;
  color: var(--warm-gray);
  font-size: 0.9375rem;
}

.song-grid-empty .section-link {
  display: inline-block;
  margin-top: 0.75rem;
}

/* Featured post */

.featured-card {
  border-left: 3px solid var(--teal);
  border-radius: 0 12px 12px 0;
  background: var(--white);
  border-top: 0.5px solid var(--neutral-100);
  border-right: 0.5px solid var(--neutral-100);
  border-bottom: 0.5px solid var(--neutral-100);
  padding: 28px 28px 24px;
}

.featured-card__meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8125rem;
  color: var(--warm-gray);
  margin-bottom: 0.875rem;
}

.featured-card__title {
  font-size: 1.375rem;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
}

.featured-card__title a {
  color: var(--charcoal);
  text-decoration: none;
}

.featured-card__title a:hover {
  color: var(--teal);
}

.featured-card__excerpt {
  font-size: 0.9375rem;
  color: var(--warm-gray);
  line-height: 1.65;
  max-width: 580px;
  margin-bottom: 1.25rem;
}

.read-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--teal);
  text-decoration: none;
}

.read-link:hover {
  color: var(--dark-teal);
}

/* Post grid (homepage teaser — scoped so posts list is unaffected) */

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  list-style: none;
  padding: 0;
}

.post-grid__card {
  position: relative;
  background: var(--white);
  border: 0.5px solid var(--neutral-100);
  border-radius: 12px;
  transition: box-shadow 0.2s ease;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.post-grid__tag {
  display: inline-block;
  background: var(--teal-tint);
  color: var(--dark-teal);
  font-size: 0.6875rem;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 4px;
  line-height: 1.4;
  width: fit-content;
}

.post-grid__title {
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
  flex: 1;
}

.post-grid__title a {
  color: var(--charcoal);
  text-decoration: none;
}

/* Stretch the title link to cover the entire card */
.post-grid__title a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.post-grid__card:hover {
  box-shadow: 0 0 0 1.5px var(--teal);
}

.post-grid__title a:hover {
  color: var(--teal);
}

.post-grid__excerpt {
  font-size: 0.75rem;
  color: var(--warm-gray);
  line-height: 1.5;
  margin: 0;
}

.post-grid__date {
  font-size: 0.6875rem;
  color: #888780;
  margin-top: auto;
}

/* Email signup */

.home-signup {
  padding-block: 56px;
  background: var(--warm-white);
  text-align: center;
  border-top: 0.5px solid var(--neutral-100);
}

.home-signup h2 {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
}

.home-signup p {
  font-size: 0.9375rem;
  color: var(--warm-gray);
  max-width: 420px;
  margin-inline: auto;
  margin-bottom: 1.5rem;
}

.signup-form {
  display: flex;
  gap: 8px;
  max-width: 400px;
  margin-inline: auto;
}

.signup-form input[type="email"] {
  flex: 1;
  padding: 10px 14px;
  border: 0.5px solid var(--neutral-100);
  border-radius: 8px;
  font-size: 0.875rem;
  font-family: inherit;
  color: var(--charcoal);
  background: var(--white);
  min-height: 44px;
}

.signup-form input[type="email"]::placeholder {
  color: #B4B2A9;
}

.signup-form input[type="email"]:focus {
  outline: 2px solid var(--teal);
  outline-offset: 1px;
}

.signup-form button {
  background: var(--teal);
  color: var(--white);
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  min-height: 44px;
  white-space: nowrap;
}

.signup-form button:hover {
  background: var(--dark-teal);
}

/* --- About page --- */

.overline {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1.25rem;
}

.text-teal { color: var(--teal); }
.text-secondary { color: var(--warm-gray); }

.about-hero {
  padding-block: 4rem 3.5rem;
  border-bottom: 0.5px solid var(--neutral-100);
}

.about-hero__heading {
  font-size: 2.25rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  max-width: 580px;
  margin-bottom: 1.5rem;
}

.about-hero__lead {
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--warm-gray);
  margin-bottom: 0;
}

.about-hero__inner {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2.5rem;
  align-items: stretch;
}

.about-hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 8px;
  display: block;
}

.about-section {
  padding-block: 56px;
  border-bottom: 0.5px solid var(--neutral-100);
}

.about-section:last-of-type {
  border-bottom: none;
}

.about-section h2 {
  margin-bottom: 1.25rem;
}

.about-section p {
  color: var(--charcoal);
  margin-bottom: 1rem;
}

.about-section p:last-child {
  margin-bottom: 0;
}

.about-eric {
  margin-top: 1.5rem;
}

.about-eric::after {
  content: "";
  display: table;
  clear: both;
}

.about-eric__photo {
  float: left;
  width: 220px;
  margin: 0 2rem 1rem 0;
  border-radius: 10px;
  object-fit: cover;
}

.about-eric__body {
  min-width: 0;
}

.about-belief {
  margin-top: 1.5rem;
  font-size: 1rem;
  color: var(--charcoal);
}

.about-belief p {
  margin: 0;
}

.credential-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-block: 1.5rem 1.75rem;
  list-style: none;
  padding: 0;
}

.credential-badge {
  background: var(--teal-tint);
  color: var(--dark-teal);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 6px;
  line-height: 1.4;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-block: 1.75rem;
  list-style: none;
  padding: 0;
}

.feature-card {
  border: 0.5px solid var(--neutral-100);
  border-radius: 10px;
  padding: 1rem;
  background: var(--warm-white);
}

.feature-card__label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 6px;
}

.feature-card p {
  font-size: 0.8125rem;
  color: var(--warm-gray);
  line-height: 1.5;
  margin: 0;
}

.pullquote {
  border-left: 3px solid var(--teal);
  background: var(--teal-tint);
  padding: 1rem 1.25rem;
  border-radius: 0 8px 8px 0;
  margin-block: 1.75rem;
  font-size: 1rem;
  color: var(--charcoal);
  line-height: 1.6;
  font-style: normal;
}

.pullquote p {
  margin: 0;
}

.about-cta {
  padding-block: 56px;
}

.cta-box {
  background: var(--charcoal);
  border-radius: 12px;
  padding: 3rem 2.5rem;
  text-align: center;
}

.cta-box h2 {
  color: var(--warm-white);
  margin-bottom: 0.75rem;
}

.cta-box > p {
  color: #B4B2A9;
  font-size: 0.9375rem;
  margin-bottom: 1.75rem;
  max-width: 480px;
  margin-inline: auto;
}

.cta-box__descriptor {
  color: #9FE1CB;
  font-size: 0.9375rem;
  margin-bottom: 1.75rem;
  font-style: italic;
}

.cta-box__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-ghost-light {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: #9FE1CB;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 10px 20px;
  border-radius: 8px;
  border: 0.5px solid #5DCAA5;
  cursor: pointer;
  text-decoration: none;
  min-height: 44px;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  text-decoration: none;
}

/* --- Responsive --- */

@media (max-width: 640px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.25rem; }
  .site-header .container { flex-direction: column; gap: 1rem; }
  .header-end { gap: 1rem; }
  .site-nav { gap: 1rem; }
  .hero-title { font-size: 2.1rem; }
  .hero { padding: 3rem 0 2.5rem; }
  .about-eric__photo { float: none; width: 100%; max-width: 320px; margin: 0 0 1.5rem 0; }
  .home-hero__heading { font-size: 1.875rem; }
  .song-grid { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: 1fr; }
  .home-section__header { flex-direction: column; gap: 0.5rem; }
  .featured-card { padding: 20px 18px; }
  .about-hero__heading { font-size: 1.75rem; }
  .about-hero__lead { font-size: 1rem; }
  .about-hero__inner { grid-template-columns: 1fr; }
  .about-hero__image { width: 100%; max-width: 380px; height: auto; aspect-ratio: 4/3; }
  .feature-grid { grid-template-columns: 1fr; }
  .cta-box { padding: 2rem 1.5rem; }
}

@media (max-width: 480px) {
  .signup-form { flex-direction: column; }
  .cta-box__actions { flex-direction: column; align-items: center; }
}

/* ===== Author Bio ===== */
.author-bio {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.5rem 0;
  border-top: 1px solid var(--neutral-100);
  margin-top: 3rem;
}

.author-bio__photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.author-bio__name {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--charcoal);
  margin-bottom: 0.125rem;
}

.author-bio__credentials {
  font-size: 0.75rem;
  color: var(--warm-gray);
  margin-bottom: 0.625rem;
}

.author-bio__text {
  font-size: 0.875rem;
  color: var(--warm-gray);
  line-height: 1.65;
  margin-bottom: 0.625rem;
}

.author-bio__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--teal);
  text-decoration: none;
}

.author-bio__link:hover {
  color: var(--dark-teal);
}

@media (max-width: 480px) {
  .author-bio {
    flex-direction: column;
  }
}

/* ── Books page ─────────────────────────────────── */
.book-disclosure {
  font-size: 0.75rem;
  color: var(--warm-gray);
  margin-bottom: 1.5rem;
}

/* ── Books grid ──────────────────────────────────── */
.book-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.book-card {
  background: #fff;
  border: 0.5px solid var(--neutral-100);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.15s ease;
}

.book-card:hover {
  box-shadow: 0 0 0 1.5px var(--teal);
}

.book-card__cover img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  display: block;
}

.book-card__body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.book-card__title {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  margin: 0;
}

.book-card__excerpt {
  font-size: 0.8125rem;
  color: var(--warm-gray);
  line-height: 1.5;
  text-align: center;
  margin: 0;
}

.book-card__author {
  font-size: 0.8125rem;
  color: var(--teal);
  font-weight: 500;
  text-align: center;
  margin: 0;
}

.book-card__buy {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  background: var(--teal);
  color: #fff;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s ease;
}

.book-card__buy:hover {
  background: var(--dark-teal);
  color: #fff;
}

@media (max-width: 900px) {
  .book-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 500px) {
  .book-grid { grid-template-columns: 1fr; }
}

/* ── Book shelf (inline grid for song pages) ─────── */
.book-shelf {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

@media (max-width: 600px) {
  .book-shelf { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 380px) {
  .book-shelf { grid-template-columns: 1fr; }
}

/* --- Footer nav --- */

.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
  font-size: 0.8125rem;
  font-weight: 500;
}
.footer-nav a {
  color: var(--warm-white);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}
.footer-nav a:hover,
.footer-nav a:focus-visible {
  border-bottom-color: var(--warm-white);
}

/* --- Related content aside --- */

.related-content {
  margin-top: 3rem;
  padding: 1.75rem 1.75rem 2rem;
  background: var(--neutral-50);
  border-radius: 10px;
  border-left: 4px solid var(--teal);
}
.related-heading {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 1.25rem;
}
.related-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.25rem;
}
.related-item {
  padding: 0;
}
.related-item__title {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.4;
  margin: 0 0 0.5rem;
}
.related-item__title a {
  color: var(--dark-teal);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.related-item__title a:hover,
.related-item__title a:focus-visible {
  border-bottom-color: var(--dark-teal);
}
.related-item__tags {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

/* --- HTML sitemap page --- */

.sitemap-header {
  margin-bottom: 2rem;
}
.sitemap-lead {
  color: var(--warm-gray);
  margin-top: 0.5rem;
}
.sitemap-section {
  margin-bottom: 2.5rem;
}
.sitemap-section h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--charcoal);
}
.sitemap-year {
  font-size: 1rem;
  font-weight: 500;
  color: var(--warm-gray);
  margin: 1rem 0 0.5rem;
}
.sitemap-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}
.sitemap-list li {
  display: flex;
  align-items: baseline;
  gap: 0.625rem;
}
.sitemap-list a {
  color: var(--dark-teal);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.sitemap-list a:hover,
.sitemap-list a:focus-visible {
  border-bottom-color: var(--dark-teal);
}
.sitemap-date {
  font-size: 0.8125rem;
  color: var(--warm-gray);
}

/* ── Inline song CTA ───────────────────────────────────── */

.song-inline-cta {
  background: var(--teal-tint);
  border-radius: 12px;
  padding: 1.5rem 1.75rem;
  margin: 1.75rem 0;
}

.song-inline-cta__heading {
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark-teal);
  margin-bottom: 0.375rem;
}

.song-inline-cta__desc {
  font-size: 0.9375rem;
  color: var(--dark-teal);
  margin-bottom: 1.125rem;
}

/* ── Shared inline form (CTA + library teaser) ─────────── */

.inline-cta-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.inline-cta-form input[type="text"],
.inline-cta-form input[type="email"] {
  flex: 1;
  min-width: 140px;
  padding: 10px 14px;
  border: 0.5px solid #7ECDB8;
  border-radius: 8px;
  font-size: 0.875rem;
  font-family: inherit;
  color: var(--charcoal);
  background: var(--white);
  min-height: 44px;
}

.inline-cta-form input::placeholder {
  color: #B4B2A9;
}

.inline-cta-form input:focus {
  outline: 2px solid var(--teal);
  outline-offset: 1px;
  border-color: var(--teal);
}

.inline-cta-form button {
  background: var(--teal);
  color: var(--white);
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  min-height: 44px;
  white-space: nowrap;
}

.inline-cta-form button:hover {
  background: var(--dark-teal);
}

.inline-cta-confirm {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--dark-teal);
  margin: 0.625rem 0 0;
}

.inline-cta-reassurance {
  font-size: 0.75rem;
  color: var(--dark-teal);
  opacity: 0.7;
  margin: 0.5rem 0 0;
}

@media (max-width: 480px) {
  .inline-cta-form { flex-direction: column; }
  .inline-cta-form input[type="text"],
  .inline-cta-form input[type="email"] { min-width: 100%; }
}

/* ── Library index teaser ──────────────────────────────── */

.library-teaser {
  background: var(--teal-tint);
  border-radius: 12px;
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.75rem;
}

.library-teaser p {
  font-size: 0.9375rem;
  color: var(--dark-teal);
  line-height: 1.65;
  margin-bottom: 0.75rem;
}

.library-teaser p:last-of-type {
  margin-bottom: 1rem;
}

/* ── Sticky email bar ──────────────────────────────────── */

.sticky-email-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 500;
  background: var(--charcoal);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.75rem 1.5rem;
  transform: translateY(100%);
  transition: transform 0.25s ease;
}

.sticky-email-bar.is-visible {
  transform: translateY(0);
}

.sticky-email-bar__inner {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.sticky-email-bar__label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--warm-white);
  white-space: nowrap;
  flex-shrink: 0;
  margin: 0;
}

.sticky-bar-form {
  display: flex;
  gap: 6px;
  flex: 1;
  min-width: 240px;
}

.sticky-bar-form input[type="email"] {
  flex: 1;
  padding: 8px 12px;
  border: 0.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  font-size: 0.875rem;
  font-family: inherit;
  color: var(--charcoal);
  background: var(--warm-white);
  min-height: 44px;
}

.sticky-bar-form input[type="email"]::placeholder {
  color: #888780;
}

.sticky-bar-form input[type="email"]:focus {
  outline: 2px solid #7ECDB8;
  outline-offset: 1px;
  border-color: transparent;
}

.sticky-bar-form button {
  background: var(--teal);
  color: var(--white);
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  min-height: 44px;
  white-space: nowrap;
}

.sticky-bar-form button:hover {
  background: var(--dark-teal);
}

.sticky-bar-confirm {
  font-size: 0.875rem;
  font-weight: 500;
  color: #9FE1CB;
  margin: 0;
}

.sticky-dismiss {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.375rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  flex-shrink: 0;
  min-height: 44px;
  display: flex;
  align-items: center;
  font-family: inherit;
}

.sticky-dismiss:hover {
  color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 640px) {
  .sticky-email-bar__inner {
    gap: 0.5rem;
  }

  .sticky-email-bar__label {
    flex: 1 1 100%;
    white-space: normal;
    font-size: 0.8125rem;
  }

  .sticky-bar-form {
    flex: 1;
    min-width: 0;
  }
}