@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@500;700;800&family=Fraunces:opsz,wght@9..144,600;9..144,700&display=swap");

:root {
  /* Songs for life: soft greens, sky blues, sunny/amber */
  --bg0: #f3f8f4;
  --bg1: #e8f3ec;
  --sky: #d9eef8;
  --card: #ffffffee;
  --ink: #1f3d32;
  --muted: #4f6b60;
  --accent: #f0b429;       /* sunny amber */
  --accent2: #3aa0d9;      /* sky blue */
  --leaf: #3f9b6a;         /* soft green */
  --leaf-deep: #2d7a52;
  --good: #3f9b6a;
  --line: #c5ddd0;
  --chip: #e7f3ec;
  --chip-on: #f0b429;
  --shadow: 0 10px 28px rgba(31, 61, 50, 0.08);
  --radius: 18px;
  --font: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(900px 480px at 8% -5%, #ffe9a8 0%, transparent 55%),
    radial-gradient(800px 420px at 100% 0%, #cfefff 0%, transparent 50%),
    radial-gradient(700px 400px at 50% 100%, #c9ebd8 0%, transparent 55%),
    linear-gradient(180deg, var(--sky) 0%, var(--bg0) 38%, var(--bg1) 100%);
  min-height: 100vh;
  line-height: 1.55;
}

.site-nav {
  position: sticky; top: 37px; z-index: 9998;
  background: rgba(255,255,255,.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.site-nav-inner {
  max-width: 980px; margin: 0 auto;
  padding: .6rem 1.25rem;
  display: flex; flex-wrap: wrap; gap: .5rem; align-items: center;
}
.nav-brand {
  font-family: var(--display);
  font-weight: 700; color: var(--leaf-deep);
  margin-right: .75rem; font-size: 1.05rem;
  text-decoration: none;
}
.nav-brand:hover { color: var(--ink); text-decoration: underline; text-underline-offset: .15em; }
.nav-link {
  color: var(--muted); text-decoration: none;
  font-size: .92rem; font-weight: 800;
  letter-spacing: .02em;
  padding: .42rem .95rem; border-radius: 999px;
  border: 1px solid transparent;
  transition: .15s color, .15s background, .15s border-color;
}
.nav-link:hover { color: var(--ink); border-color: var(--line); background: #fff; }
.nav-link.is-active {
  color: #16352a; background: var(--accent);
  border-color: #d9a01a;
}

.wrap { max-width: 980px; margin: 0 auto; padding: 1.5rem 1.25rem 7.5rem; }
.mil-page.wrap { padding-bottom: 3rem; }

header.hero {
  display: grid; gap: 0.85rem; margin: 1.1rem 0 1.6rem;
}
.badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: #e8f7ef; border: 1px solid #b7e0c8;
  color: var(--leaf-deep); font-size: .75rem; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase;
  padding: .38rem .75rem; border-radius: 999px; width: fit-content;
}
h1 {
  font-family: var(--display);
  font-size: clamp(2.15rem, 5vw, 3.15rem);
  font-weight: 700; margin: 0; letter-spacing: -.02em;
  color: var(--leaf-deep);
}
.lede { color: var(--muted); max-width: 40rem; margin: 0; font-size: 1.08rem; }
.lede strong { color: var(--ink); font-weight: 800; }

.controls {
  display: grid; gap: .85rem; margin: 1.25rem 0 1rem;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1rem 1.1rem;
  box-shadow: var(--shadow);
}
.search-row { display: grid; gap: .6rem; }
@media (min-width: 640px) {
  .search-row { grid-template-columns: 1fr auto; align-items: center; }
}
label.sr { position: absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }
input[type="search"] {
  width: 100%; appearance: none;
  background: #fff; color: var(--ink);
  border: 1px solid var(--line); border-radius: 14px;
  padding: .85rem 1rem .85rem 2.6rem; font-size: 1rem; font-family: var(--font);
  outline: none; transition: border-color .15s, box-shadow .15s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%234f6b60' stroke-width='2'%3E%3Ccircle cx='8' cy='8' r='6'/%3E%3Cpath d='M13 13l3.5 3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: .9rem 50%;
}
input[type="search"]:focus {
  border-color: var(--accent2);
  box-shadow: 0 0 0 3px rgba(58,160,217,.22);
}
.meta-count { color: var(--muted); font-size: .9rem; white-space: nowrap; font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.chip {
  appearance: none; cursor: pointer; font-family: var(--font);
  background: var(--chip); color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px;
  padding: .42rem .9rem; font-size: .86rem; font-weight: 800;
  transition: .15s background, .15s color, .15s border-color;
}
.chip:hover { color: var(--ink); border-color: var(--accent2); background: #eef8fd; }
.chip[aria-pressed="true"] {
  background: var(--chip-on); color: #16352a; border-color: #d9a01a;
}

section { margin-top: 1.75rem; }
section h2 {
  font-family: var(--display); font-size: 1.4rem; margin: 0 0 .75rem;
  color: var(--leaf-deep);
  display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap;
}
section h2 .count {
  font-family: var(--font); font-size: .8rem; font-weight: 700;
  color: var(--muted); letter-spacing: .02em;
}
.list { display: grid; gap: .7rem; }
.card {
  display: grid; gap: .55rem;
  background: var(--card);
  border: 1px solid var(--line); border-radius: 16px;
  padding: .95rem 1.05rem; transition: border-color .15s, transform .15s, box-shadow .15s;
  box-shadow: 0 4px 14px rgba(31,61,50,.04);
}
.card:hover { border-color: #9ecfba; transform: translateY(-1px); }
.card.playing {
  border-color: var(--accent2);
  box-shadow: 0 0 0 2px rgba(58,160,217,.22), var(--shadow);
}
.card-top { display: flex; gap: .75rem; align-items: flex-start; justify-content: space-between; }
.title-block { min-width: 0; }
.title-block h3 {
  margin: 0; font-size: 1.05rem; font-weight: 800;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sub { color: var(--muted); font-size: .85rem; margin-top: .15rem; }
.tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .4rem; }
.tag {
  font-size: .68rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  background: #eef8fd; color: #1f6f96; border: 1px solid #b7dced;
  padding: .16rem .48rem; border-radius: 999px;
}
.tag.sample { color: var(--leaf-deep); background: #e8f7ef; border-color: #b7e0c8; }
.tag.drive { color: #5a6a80; background: #f0f3f7; border-color: #d0d7e0; }
.actions { display: flex; gap: .4rem; flex-shrink: 0; }
button.play {
  appearance: none; cursor: pointer; font-family: var(--font);
  background: linear-gradient(135deg, var(--accent), #f08a3a);
  color: #16352a; border: none; border-radius: 999px;
  width: 2.65rem; height: 2.65rem; font-size: 1rem; font-weight: 800;
  display: grid; place-items: center;
  box-shadow: 0 6px 16px rgba(240,180,41,.35);
}
button.play:disabled { opacity: .4; cursor: not-allowed; box-shadow: none; }
a.drive-link, a.ext-link {
  color: var(--accent2); font-size: .85rem; font-weight: 700;
  text-decoration: none; border-bottom: 1px dotted rgba(58,160,217,.45);
}
a.drive-link:hover, a.ext-link:hover { color: #1f6f96; }
.lede a.ext-link { font-size: inherit; }
audio { width: 100%; height: 2.3rem; }
.empty {
  color: var(--muted); text-align: center; padding: 2rem 1rem;
  border: 1px dashed var(--line); border-radius: var(--radius); background: #fff8;
}
.player-dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: rgba(255,255,255,.94); border-top: 1px solid var(--line);
  backdrop-filter: blur(14px); padding: .8rem 1.25rem 1.05rem;
  box-shadow: 0 -10px 30px rgba(31,61,50,.1);
  transform: translateY(110%); transition: transform .25s ease;
}
.player-dock.visible { transform: translateY(0); }
.dock-inner { max-width: 980px; margin: 0 auto; display: grid; gap: .45rem; }
.dock-title { font-weight: 800; font-size: .98rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--leaf-deep); }
.dock-sub { color: var(--muted); font-size: .8rem; }
footer.site {
  margin-top: 2.5rem; color: var(--muted); font-size: .85rem;
  border-top: 1px solid var(--line); padding-top: 1rem;
}
footer.site a { color: var(--accent2); font-weight: 700; }
.row-links { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; }
a.btn-drive {
  display: inline-flex; align-items: center;
  background: #eef8fd; color: #1f6f96;
  border: 1px solid #b7dced; border-radius: 999px;
  padding: .35rem .85rem; font-size: .8rem; font-weight: 800;
  text-decoration: none;
}
a.btn-drive:hover { background: #dff1fb; color: #155978; }
.hint-inline { color: var(--muted); font-size: .75rem; }

/* Music in Our Lives */
.section-jump {
  position: sticky; top: 84px; z-index: 40;
  display: flex; flex-wrap: wrap; gap: .45rem;
  background: rgba(255,255,255,.92); border: 1px solid var(--line);
  border-radius: var(--radius); padding: .75rem .9rem;
  margin: 0 0 1rem; box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}
.jump-chip {
  display: inline-flex; align-items: center; gap: .35rem;
  color: var(--muted); text-decoration: none;
  background: var(--chip); border: 1px solid var(--line);
  border-radius: 999px; padding: .4rem .85rem;
  font-size: .8rem; font-weight: 800;
  transition: .15s color, .15s border-color, .15s background;
}
.jump-chip:hover { color: var(--ink); border-color: var(--accent2); background: #eef8fd; }
.jump-count {
  font-size: .7rem; font-weight: 800;
  color: #16352a; background: var(--accent);
  border-radius: 999px; padding: .05rem .4rem; min-width: 1.2rem;
  text-align: center;
}
.mil-section { scroll-margin-top: 150px; }
.video-grid {
  display: grid; gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .video-grid { grid-template-columns: repeat(2, 1fr); }
}
.video-card {
  display: grid; gap: .55rem;
  background: var(--card);
  border: 1px solid var(--line); border-radius: 16px;
  padding: .9rem; box-shadow: 0 4px 14px rgba(31,61,50,.04);
}
.video-label {
  font-size: .8rem; font-weight: 800; letter-spacing: .04em;
  text-transform: uppercase; color: var(--leaf-deep);
}
.video-frame {
  position: relative; width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px; overflow: hidden;
  background: #e8f0ea; border: 1px solid var(--line);
}
.video-frame iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%; border: 0;
}


/* Photography gallery */
.photo-credit {
  margin: .75rem 0 0;
  font-weight: 800;
  color: var(--leaf-deep);
  font-size: .95rem;
}
.section-blurb {
  color: var(--muted);
  margin: -.35rem 0 1rem;
  max-width: 46rem;
}
.photo-grid {
  display: grid;
  gap: .9rem;
  grid-template-columns: 1fr;
}
@media (min-width: 560px) {
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .photo-grid { grid-template-columns: repeat(3, 1fr); }
}
.photo-card {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(31,61,50,.04);
  display: grid;
}
.photo-thumb {
  display: block; width: 100%; padding: 0; border: 0;
  background: #e8f0ea; cursor: zoom-in; aspect-ratio: 4 / 3;
  overflow: hidden;
}
.photo-thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .25s ease;
}
.photo-thumb:hover img { transform: scale(1.04); }
.photo-card figcaption { padding: .7rem .85rem .85rem; }
.photo-title {
  font-weight: 800; font-size: .92rem; color: var(--ink);
  line-height: 1.35;
}
.photo-lightbox {
  border: 0;
  padding: 0;
  margin: 0;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  background: transparent;
  color: #fff;
  overflow: hidden;
  box-sizing: border-box;
}
.photo-lightbox[open] {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.photo-lightbox::backdrop {
  background: rgba(15, 35, 28, .82);
  overflow: hidden;
}
/* Lock page scroll while lightbox is open */
html:has(.photo-lightbox[open]),
body:has(.photo-lightbox[open]) {
  overflow: hidden !important;
}
.lb-frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: min(100vw - 1.5rem, 1100px);
  max-width: calc(100vw - 1.5rem);
  max-height: calc(100vh - 1.5rem);
  overflow: hidden;
  padding: 2.75rem .25rem .5rem;
}
.photo-lightbox img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100vh - 5.5rem); /* viewport minus close + caption chrome */
  object-fit: contain;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
}
.lb-caption {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin-top: .6rem;
  padding: 0 .5rem;
  text-align: center;
  font-family: var(--font);
  font-weight: 700;
  font-size: .95rem;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lb-close {
  position: fixed;
  top: .6rem;
  right: .6rem;
  z-index: 2;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  border: 0;
  background: #f0b429;
  color: #16352a;
  font-size: 1.4rem;
  font-weight: 800;
  cursor: pointer;
}


/* Dianne Baker founder bio (top of Listen) */
.founder-bio {
  margin: 0 0 1.35rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem 1.1rem;
}
.founder-bio-inner {
  display: grid;
  gap: 1rem;
  align-items: center;
}
@media (min-width: 640px) {
  .founder-bio-inner {
    grid-template-columns: 160px 1fr;
    gap: 1.25rem;
  }
}
.founder-photo {
  width: 160px; height: 160px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 6px 18px rgba(31, 61, 50, 0.12);
  display: block;
  margin: 0 auto;
  background: #e8f3ec;
}
.founder-copy { min-width: 0; }
.founder-name {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 .45rem;
  color: var(--leaf-deep);
}
.founder-copy p {
  margin: 0 0 .65rem;
  color: var(--muted);
  font-size: 1rem;
  max-width: 44rem;
}
.founder-copy p:last-child { margin-bottom: 0; }
.founder-link { font-weight: 800; }
.founder-link .ext-link { color: var(--leaf-deep); }
.founder-link .ext-link:hover { color: var(--ink); }
