/* Blue Mountain Radio — palette pulled from the logo */
:root {
  --ink: #14384f;
  --ink-deep: #0e2a3c;
  --teal: #2f6a70;
  --mist: #bcd3dc;
  --mist-soft: #e3eef1;
  --cream: #f5efe2;
  --paper: #ece3d0;
  --text: #1d2f3a;
  --muted: #52666f;
  --amber: #e2a24a;
  --amber-hover: #efb35e;
  --radius: 14px;
  --head: "Zilla Slab", "Rockwell", "Georgia", serif;
  --body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--cream);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); }
h1, h2, h3 { font-family: var(--head); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 700; text-wrap: balance; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 600; }
p { margin: 0 0 1em; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { max-width: 680px; }
.center { text-align: center; }
.small { font-size: .95rem; color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 8px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(245, 239, 226, .92); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(20, 56, 79, .12); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); font-family: var(--head); font-weight: 700; font-size: 1.2rem; }
.brand img { border-radius: 50%; }
.nav { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1rem; padding: 6px 2px; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--teal); }

/* Hero */
.hero { position: relative; background: linear-gradient(180deg, var(--cream) 0%, var(--cream) 40%, var(--mist-soft) 100%); padding: 56px 0 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding-bottom: 72px; position: relative; z-index: 1; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .85rem; font-weight: 700; color: var(--teal); margin-bottom: 14px; }
.lede { font-size: 1.25rem; color: var(--muted); max-width: 34rem; }
.hero-art { display: grid; place-items: center; }
.logo-art { width: min(440px, 100%); border-radius: 50%; box-shadow: 0 24px 60px -18px rgba(14, 42, 60, .45), 0 0 0 8px rgba(255, 255, 255, .5); background: var(--cream); }
.ridge { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(110px, 16vw, 220px); z-index: 0; pointer-events: none; }

/* Player */
.player-card { display: flex; align-items: center; gap: 18px; margin-top: 28px; padding: 16px 22px 16px 16px; background: var(--ink); color: #fff; border-radius: 999px; max-width: 34rem; box-shadow: 0 14px 34px -14px rgba(14, 42, 60, .6); }
.play { flex: none; width: 72px; height: 72px; border-radius: 50%; border: 0; background: var(--amber); color: var(--ink); cursor: pointer; display: grid; place-items: center; transition: transform .15s, background .15s; }
.play:hover { background: var(--amber-hover); transform: scale(1.05); }
.play.small { width: 48px; height: 48px; }
.play .icon { width: 0; height: 0; border-style: solid; border-width: 13px 0 13px 22px; border-color: transparent transparent transparent currentColor; margin-left: 5px; }
.play.small .icon { border-width: 9px 0 9px 15px; margin-left: 3px; }
body[data-player="playing"] .play .icon,
body[data-player="loading"] .play .icon { width: 20px; height: 24px; border: 0; margin: 0; background: linear-gradient(90deg, currentColor 0 36%, transparent 36% 64%, currentColor 64% 100%); }
body[data-player="playing"] .play.small .icon,
body[data-player="loading"] .play.small .icon { width: 14px; height: 18px; }

.player-meta { min-width: 0; }
.pill { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--mist); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #7a8d96; }
body[data-player="playing"] .dot { background: #4fd18b; animation: pulse 1.6s infinite; }
body[data-player="loading"] .dot { background: var(--amber); animation: pulse 1s infinite; }
body[data-player="error"] .dot, body[data-player="unconfigured"] .dot { background: #e8776a; }
@keyframes pulse { 50% { opacity: .35; } }
.now, .now-fallback { margin: 4px 0 0; line-height: 1.3; }
.now strong, .now span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.now-label { font-size: .8rem; color: var(--mist); }
.now strong { font-size: 1.15rem; }
.now span:last-child { color: var(--mist); }
.now-fallback { color: #fff; font-family: var(--head); font-size: 1.15rem; }

/* Sections */
.section { padding: 80px 0; }
.section.dark { background: var(--ink); color: #dbe8ec; }
.section.dark h2, .section.dark h3 { color: #fff; }
.section.tint { background: var(--paper); }
.section-lede { font-size: 1.2rem; color: var(--muted); max-width: 40rem; }
.dark .section-lede { color: var(--mist); }
.center .section-lede { margin-inline: auto; }

.rotation { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px; }
.rotation li { background: var(--ink-deep); border: 1px solid rgba(188, 211, 220, .18); border-radius: var(--radius); padding: 22px; }
.rotation time { display: block; color: var(--amber); font-weight: 700; font-size: .95rem; letter-spacing: .04em; margin-bottom: 8px; }
.rotation p { margin: 0; font-size: 1rem; color: var(--mist); }

.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.facts li { display: flex; align-items: baseline; gap: 16px; background: #fff; border-radius: var(--radius); padding: 18px 22px; box-shadow: 0 6px 20px -12px rgba(14, 42, 60, .35); }
.facts strong { font-family: var(--head); font-size: 1.7rem; color: var(--ink); min-width: 6.5rem; }
.facts span { color: var(--muted); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; margin-top: 32px; }
.card { background: var(--cream); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; align-items: flex-start; }
.card p { color: var(--muted); }
.card .btn { margin-top: auto; }

.btn { display: inline-block; background: var(--ink); color: #fff; text-decoration: none; font-weight: 700; padding: 12px 24px; border-radius: 999px; border: 2px solid var(--ink); transition: background .15s, color .15s; }
.btn:hover { background: var(--teal); border-color: var(--teal); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.btn[hidden] { display: none; }

.member { display: flex; gap: 28px; align-items: center; margin-top: 28px; background: var(--cream); border-radius: var(--radius); padding: 32px; box-shadow: 0 10px 30px -16px rgba(14, 42, 60, .4); max-width: 820px; }
.portrait { flex: none; width: 160px; height: 160px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 6px var(--mist); }
.member h3 { margin-bottom: 0; font-size: 1.6rem; }
.member .role { color: var(--teal); font-weight: 700; margin: 2px 0 12px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 14px; }
.footer-inner a { color: #fff; }

/* Footer */
.site-footer { background: var(--ink-deep); color: var(--mist); padding: 36px 0 120px; }
.footer-inner { display: flex; align-items: center; gap: 16px; }
.footer-inner img { border-radius: 50%; }
.footer-inner p { margin: 0; font-size: .95rem; }

/* Sticky bar */
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--ink); color: #fff; box-shadow: 0 -10px 30px -12px rgba(14, 42, 60, .5); transform: translateY(110%); transition: transform .3s ease; }
body.bar-visible .bar { transform: none; }
.bar-inner { display: flex; align-items: center; gap: 16px; padding: 10px 0; }
.bar-meta { flex: 1; min-width: 0; display: grid; line-height: 1.25; }
.bar-meta strong { font-family: var(--head); }
.bar-meta span { color: var(--mist); font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vol input { width: 110px; accent-color: var(--amber); }

/* Responsive */
@media (max-width: 820px) {
  .hero { padding-top: 32px; }
  .hero-grid, .about-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .logo-art { width: min(260px, 70%); }
  .hero-grid { padding-bottom: 56px; gap: 24px; }
  .nav { display: none; }
  .section { padding: 56px 0; }
  .vol { display: none; }
  .member { flex-direction: column; text-align: center; padding: 28px 22px; }
  .player-card { border-radius: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
