:root {
  --teal-dark: #16302f;
  --teal: #1f3f3d;
  --teal-light: #2a4f4c;
  --gold: #d9a441;
  --gold-light: #f0c877;
  --cream: #faf6ee;
  --cream-dim: #f2ead9;
  --text: #2b2620;
  --text-soft: #6a6255;

  --c-tributes: #d9a441;
  --c-conflicts: #a8462f;
  --c-family: #6b8a6b;
  --c-favourites: #cf6a52;
  --c-songbook: #3d6b68;

  --radius: 14px;
  --shadow: 0 4px 18px rgba(22, 48, 47, 0.08);
  --shadow-hover: 0 10px 28px rgba(22, 48, 47, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.5;
}

h1, h2, h3, h4 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

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

img, svg {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--teal-dark);
  color: var(--cream);
  padding: 0.9rem 0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gold-light);
  letter-spacing: 0.01em;
}

.logo img {
  width: 32px;
  height: 32px;
}

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

.site-header nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: #d9e6e4;
  border-bottom: 2px solid transparent;
  padding-bottom: 3px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.site-header nav a:hover,
.site-header nav a.active {
  color: var(--gold-light);
  border-color: var(--gold);
}

/* ---------- Hero ---------- */

.hero {
  background: var(--teal);
  color: var(--cream);
  overflow: hidden;
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 2rem;
}

.hero-text .eyebrow {
  display: inline-block;
  color: var(--gold-light);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 0.9rem;
}

.hero-text h1 {
  font-size: 3rem;
  margin-bottom: 0.6rem;
}

.hero-text p {
  color: #cfe3e0;
  font-size: 1.15rem;
  max-width: 46ch;
  margin: 0 0 1.75rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: var(--gold);
  color: var(--teal-dark);
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(217, 164, 65, 0.35);
}

.btn-ghost {
  border: 2px solid rgba(250, 246, 238, 0.35);
  color: var(--cream);
}

.btn-ghost:hover {
  border-color: var(--gold-light);
  color: var(--gold-light);
}

.hero-art {
  border-radius: var(--radius);
  overflow: hidden;
}

/* ---------- Section headings ---------- */

.section {
  padding: 4rem 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.section-head .eyebrow {
  display: block;
  color: var(--c-songbook);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 0.5rem;
}

.section-head h2 {
  font-size: 2rem;
  margin: 0;
}

.section-head .see-all {
  font-weight: 700;
  color: var(--c-songbook);
  border-bottom: 2px solid var(--c-songbook);
  padding-bottom: 2px;
  white-space: nowrap;
}

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

.about {
  background: var(--cream-dim);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3rem;
  align-items: center;
}

.about-portrait {
  aspect-ratio: 1;
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--teal), var(--teal-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}

.about-portrait svg {
  width: 55%;
}

.about-body p {
  font-size: 1.08rem;
  color: var(--text);
  margin: 0 0 1.1rem;
}

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

.about-signature {
  margin-top: 1.5rem;
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 1.2rem;
  color: var(--c-songbook);
}

/* ---------- Category pills / filters ---------- */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  color: #fff;
}

.pill-tributes { background: var(--c-tributes); color: #16302f; }
.pill-conflicts { background: var(--c-conflicts); }
.pill-family { background: var(--c-family); }
.pill-favourites { background: var(--c-favourites); }
.pill-songbook { background: var(--c-songbook); }

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.filter-btn {
  font-family: inherit;
  cursor: pointer;
  border: 2px solid #e3d9c2;
  background: #fff;
  color: var(--text);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  transition: all 0.15s ease;
}

.filter-btn:hover {
  border-color: var(--gold);
}

.filter-btn.active {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  color: var(--cream);
}

.search-wrap {
  margin-bottom: 2rem;
}

.search-input {
  width: 100%;
  max-width: 420px;
  font-family: inherit;
  font-size: 1rem;
  padding: 0.75rem 1.1rem;
  border-radius: 999px;
  border: 2px solid #e3d9c2;
  background: #fff;
  color: var(--text);
}

.search-input:focus {
  outline: none;
  border-color: var(--gold);
}

.result-count {
  color: var(--text-soft);
  font-size: 0.9rem;
  margin: -1.25rem 0 1.75rem;
}

/* ---------- Track / song cards ---------- */

.track-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.track-card {
  background: #fff;
  border: 1px solid #ecdfc4;
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.track-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.cover-art {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.cover-art svg {
  width: 100%;
  height: 100%;
  transition: transform 0.25s ease;
}

.cover-art:hover svg {
  transform: scale(1.04);
}

.track-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.track-card h3 {
  font-size: 1.15rem;
  margin: 0;
}

.track-card h3 a {
  color: var(--text);
}

.track-card h3 a:hover {
  color: var(--c-songbook);
}

.version-select {
  align-self: flex-start;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--c-songbook);
  background: var(--cream-dim);
  border: 1.5px solid #e3d9c2;
  border-radius: 999px;
  padding: 0.3rem 1.8rem 0.3rem 0.8rem;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%233d6b68'%3E%3Cpath d='M5.5 7.5l4.5 4.5 4.5-4.5' stroke='%233d6b68' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.6rem center;
  background-size: 12px;
}

.version-select:hover,
.version-select:focus {
  border-color: var(--gold);
  outline: none;
}

.track-note {
  color: var(--text-soft);
  font-size: 0.92rem;
  margin: 0;
  flex-grow: 1;
}

.track-card audio {
  width: 100%;
  height: 36px;
}

.no-recording {
  margin: 0;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--text-soft);
}

/* ---------- Founder note / callout ---------- */

.callout {
  background: var(--teal-dark);
  color: var(--cream);
  border-radius: var(--radius);
  padding: 2.5rem;
  text-align: center;
}

.callout h2 {
  color: var(--gold-light);
  margin-bottom: 0.75rem;
}

.callout p {
  color: #cfe3e0;
  max-width: 56ch;
  margin: 0 auto 1.5rem;
}

/* ---------- Songbook page extras ---------- */

.songbook-hero {
  background: var(--teal);
  color: var(--cream);
  padding: 3rem 0 2.5rem;
}

.songbook-hero h1 {
  font-size: 2.4rem;
  margin-bottom: 0.4rem;
}

.songbook-hero p {
  color: #cfe3e0;
  max-width: 60ch;
}

.category-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

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

footer {
  background: var(--teal-dark);
  color: #b9cac8;
  padding: 2.5rem 0;
  margin-top: 2rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-inner .logo {
  color: var(--gold-light);
  font-size: 1.2rem;
}

footer nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

footer nav a:hover {
  color: var(--gold-light);
}

.footer-copy {
  width: 100%;
  text-align: center;
  font-size: 0.85rem;
  color: #7d928f;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ---------- Individual song page ---------- */

.song-hero {
  position: relative;
  overflow: hidden;
  color: var(--cream);
  padding: 5rem 0 4rem;
}

.song-hero .cover-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.song-hero .cover-backdrop svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.song-hero .cover-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(22, 48, 47, 0.55) 0%, rgba(22, 48, 47, 0.88) 75%, var(--teal-dark) 100%);
}

.song-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.song-breadcrumb {
  font-size: 0.85rem;
  font-weight: 600;
  color: #cfe3e0;
  margin-bottom: 1.25rem;
}

.song-breadcrumb a:hover {
  color: var(--gold-light);
}

.song-hero-inner .track-tags {
  margin-bottom: 1rem;
}

.song-hero-inner h1 {
  font-size: 2.6rem;
  line-height: 1.1;
  margin-bottom: 0;
}

.song-main {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.song-player-block {
  background: #fff;
  border: 1px solid #ecdfc4;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  margin-bottom: 3rem;
}

.song-player-block .version-select {
  margin-bottom: 1rem;
}

.song-player-block audio {
  width: 100%;
}

.song-player-block .no-recording {
  margin: 0;
}

.song-section {
  margin-bottom: 3rem;
}

.song-section-label {
  display: block;
  font-family: "Fraunces", serif;
  font-style: italic;
  color: var(--c-songbook);
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #ecdfc4;
}

.song-description p {
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--text);
  margin: 0 0 1.2rem;
}

.lead-word {
  color: var(--gold);
  font-weight: 700;
}

.lyrics-block {
  font-size: 1.08rem;
}

.lyrics-label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold);
  margin: 1.75rem 0 0.5rem;
}

.lyrics-block > .lyrics-label:first-child {
  margin-top: 0;
}

.lyrics-stanza {
  margin: 0 0 1.1rem;
  line-height: 1.75;
  color: var(--text);
}

.song-credits {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #ecdfc4;
  color: var(--text-soft);
  font-size: 0.9rem;
  font-style: italic;
}

.song-pager {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid #ecdfc4;
}

.song-pager a {
  flex: 1;
  font-size: 0.85rem;
  color: var(--text-soft);
}

.song-pager a:last-child {
  text-align: right;
}

.song-pager .pager-title {
  display: block;
  font-family: "Fraunces", serif;
  font-size: 1.1rem;
  color: var(--text);
  margin-top: 0.25rem;
}

.song-pager a:hover .pager-title {
  color: var(--c-songbook);
}

.back-to-songbook {
  display: inline-block;
  margin-top: 2.5rem;
  font-weight: 700;
  color: var(--c-songbook);
  border-bottom: 2px solid var(--c-songbook);
  padding-bottom: 2px;
}

/* ---------- Essays & book (long-form prose pages) ---------- */

.prose-hero {
  background: var(--teal);
  background-image: radial-gradient(circle at 15% 30%, rgba(217, 164, 65, 0.12), transparent 40%),
                     radial-gradient(circle at 85% 70%, rgba(217, 164, 65, 0.1), transparent 40%);
  color: var(--cream);
  padding: 3.5rem 0;
}

.prose-hero .container {
  max-width: 780px;
}

.prose-eyebrow {
  display: block;
  color: var(--gold-light);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 0.75rem;
}

.prose-hero h1 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.prose-hero p {
  color: #cfe3e0;
  margin: 0;
}

.prose-meta {
  font-size: 0.85rem;
  color: #a9c7c4;
  margin-top: 0.5rem;
}

.prose-main {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.prose-content h2 {
  font-size: 1.5rem;
  margin: 2.5rem 0 1rem;
  color: var(--c-songbook);
}

.prose-content h2:first-child {
  margin-top: 0;
}

.prose-content p {
  font-size: 1.08rem;
  line-height: 1.75;
  margin: 0 0 1.2rem;
}

.prose-content blockquote {
  margin: 0 0 1.75rem;
  padding: 0.25rem 0 0.25rem 1.5rem;
  border-left: 3px solid var(--gold);
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--c-songbook);
}

.pdf-download {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1.5rem 0 0;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  background: var(--gold);
  color: var(--teal-dark);
  font-weight: 700;
  font-size: 0.9rem;
}

.pdf-download:hover {
  background: var(--gold-light);
}

.toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid #ecdfc4;
}

.toc-list li {
  border-bottom: 1px solid #ecdfc4;
}

.toc-list a {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 1rem 0.25rem;
  font-family: "Fraunces", serif;
  font-size: 1.15rem;
  color: var(--text);
}

.toc-list a:hover {
  color: var(--c-songbook);
}

.toc-list .toc-num {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold);
  min-width: 2rem;
}

.explain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.explain-card {
  background: #fff;
  border: 1px solid #ecdfc4;
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.explain-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.explain-card .eyebrow {
  display: block;
  color: var(--c-songbook);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
  margin-bottom: 0.5rem;
}

.explain-card h3 {
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
}

.explain-card h3 a {
  color: var(--text);
}

.explain-card h3 a:hover {
  color: var(--c-songbook);
}

.explain-card p {
  color: var(--text-soft);
  font-size: 0.92rem;
  margin: 0;
}

.explain-card.book-card {
  background: var(--teal-dark);
  color: var(--cream);
  border: none;
}

.explain-card.book-card .eyebrow {
  color: var(--gold-light);
}

.explain-card.book-card h3 a {
  color: var(--cream);
}

.explain-card.book-card h3 a:hover {
  color: var(--gold-light);
}

.explain-card.book-card p {
  color: #cfe3e0;
}

/* ---------- Responsive ---------- */

@media (max-width: 820px) {
  .hero-inner {
    grid-template-columns: 1fr;
    padding: 3rem 1.5rem;
    text-align: center;
  }

  .hero-text p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-art {
    order: -1;
    max-width: 380px;
    margin: 0 auto;
  }

  .about-inner {
    grid-template-columns: 1fr;
  }

  .about-portrait {
    max-width: 260px;
    margin: 0 auto;
  }
}

@media (max-width: 560px) {
  .site-header nav ul {
    gap: 1rem;
  }

  .hero-text h1 {
    font-size: 2.2rem;
  }

  .section {
    padding: 2.75rem 0;
  }
}
