@font-face {
  font-family: 'Geeeki';
  src: url('fonts/Geeeki.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Astrovans';
  src: url('fonts/Astrovans-Font/Astrovans.otf') format('opentype'),
    url('fonts/Astrovans-Font/Astrovans.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --cream: #FBF3E7;
  --cream-soft: #F3E8D8;
  --ink: #2A2320;
  --ink-soft: #5C534C;
  --red: #C0281A;
  --red-dark: #9A1F14;
  --orange: #E8A855;
  --peach: #F2C879;
  --peach-soft: #F6D9A0;
  --surface: var(--cream);

  --shadow-soft: rgba(42, 35, 32, 0.12);
  --shadow-glow: rgba(154, 31, 20, 0.28);
  --divider-on-accent: rgba(251, 243, 231, 0.3);
  --divider-on-accent-soft: rgba(251, 243, 231, 0.18);

  --font-display: "Fraunces", Georgia, serif;
  --font-blaze: "Geeeki", var(--font-display);
  --font-body: "Astrovans", "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

[data-theme="dark"] {
  --cream: #121113;
  --ink: #F4F0E9;
  --ink-soft: #ADA79E;
  --red: #C6F135;
  --red-dark: #A9CE2A;
  --orange: #A97C94;
  --peach: #C9A3B5;
  --peach-soft: #D9BFCB;
  --surface: #1C1A1E;

  --shadow-soft: rgba(0, 0, 0, 0.45);
  --shadow-glow: rgba(198, 241, 53, 0.35);
  --divider-on-accent: rgba(18, 17, 19, 0.3);
  --divider-on-accent-soft: rgba(18, 17, 19, 0.18);
}


* {
  box-sizing: border-box;
}

.is-hidden {
  display: none !important;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  overflow-x: hidden;
  transition: background 0.2s ease, color 0.2s ease;
}

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

button {
  font-family: inherit;
  cursor: pointer;
}

.page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 5vw;
  position: relative;
}

/* ---------- Top bar ---------- */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 0 8px;
  position: relative;
}

.main-nav {
  position: relative;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cream);
  border: 2px solid var(--peach-soft);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  padding: 10px 18px;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 10px var(--shadow-soft);
}

.nav-link .chev {
  transition: transform 0.2s ease;
}

.nav-link[aria-expanded="true"] .chev {
  transform: rotate(180deg);
}

.schedule-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  transform: translateY(-6px);
  min-width: 280px;
  background: var(--red);
  color: var(--cream);
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: 0 14px 30px var(--shadow-glow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 20;
}

.schedule-panel::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 24px;
  transform: rotate(45deg);
  width: 12px;
  height: 12px;
  background: var(--red);
}

.schedule-panel.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.schedule-heading {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
}

.schedule-columns {
  display: flex;
  gap: 14px;
  padding-bottom: 8px;
  margin-bottom: 2px;
  border-bottom: 1px solid var(--divider-on-accent);
}

.schedule-columns span {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.65;
}

.schedule-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.schedule-list li {
  display: flex;
  gap: 14px;
  font-size: 13.5px;
  line-height: 1.5;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--divider-on-accent-soft);
}

.schedule-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.sched-date {
  font-weight: 600;
  min-width: 44px;
}

.sched-time {
  opacity: 0.85;
  min-width: 56px;
}

.sched-episode {
  opacity: 0.85;
}

.sched-loading,
.sched-fallback {
  opacity: 0.85;
  font-size: 13.5px;
}

.socials {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--red);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s ease, transform 0.18s ease;
}

.social-icon svg {
  width: 17px;
  height: 17px;
}

.social-icon:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
}

.theme-toggle {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: none;
  border: 2px solid var(--peach-soft);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s ease, transform 0.18s ease;
}

.theme-toggle:hover {
  background: var(--surface);
  transform: translateY(-2px);
}

.theme-toggle .icon-moon {
  display: none;
}

[data-theme="dark"] .theme-toggle .icon-sun {
  display: none;
}

[data-theme="dark"] .theme-toggle .icon-moon {
  display: block;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(320px, 520px) 1fr;
  align-items: center;
  gap: 40px;
  padding: 40px 0 20px;
  min-height: 62vh;
}

.hero-text {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.title-block {
  position: relative;
  display: inline-block;
  padding: 18px 6px 10px;
  margin-bottom: 18px;
}

.title-backdrop {
  position: absolute;
  inset: -18px -22px -6px -22px;
  z-index: -1;
  pointer-events: none;
}

.title-backdrop::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: none;
  border: 3px solid var(--peach-soft);
}

.title {
  font-family: var(--font-display);
  margin: 0;
  line-height: 1.1;
}

.title-local {
  display: block;
  font-family: var(--font-blaze);
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 400;
  font-style: normal;
  text-transform: uppercase;
  color: var(--ink-soft);
  letter-spacing: 0.03em;
}

.title-frequency {
  display: block;
  font-family: var(--font-blaze);
  font-size: clamp(46px, 5.8vw, 76px);
  font-weight: 400;
  text-transform: uppercase;
  color: var(--red);
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.subtitle {
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 600;
  text-transform: uppercase;
  font-size: clamp(18px, 2vw, 22px);
  letter-spacing: 0.04em;
  color: var(--ink);
  margin: 0 0 18px;
}

.blurb {
  max-width: 420px;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0 0 34px;
}

.blurb em {
  color: var(--red);
  font-style: normal;
  font-weight: 600;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.watch-now-btn,
.submit-btn {
  display: inline-block;
  padding: 16px 34px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 4px;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.watch-now-btn {
  background: var(--red);
  color: var(--cream);
  border: none;
  box-shadow: 0 10px 24px var(--shadow-glow);
}

.watch-now-btn:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
}

.submit-btn {
  background: transparent;
  color: var(--red);
  border: 2px solid var(--red);
}

.submit-btn:hover {
  background: var(--red);
  color: var(--cream);
  transform: translateY(-2px);
}

.follow-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 34px;
}

.follow-item {
  position: relative;
}

.follow-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--red);
  color: var(--cream);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s ease, transform 0.18s ease;
}

.follow-icon-btn svg {
  width: 32px;
  height: 32px;
}

.follow-icon-btn:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
}

.follow-icon-btn[aria-expanded="true"] {
  background: var(--red-dark);
}

.follow-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  transform: translateY(-6px);
  width: max-content;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--red);
  border-radius: 12px;
  padding: 14px 18px;
  box-shadow: 0 14px 30px var(--shadow-glow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 20;
}

.follow-panel::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 20px;
  transform: rotate(45deg);
  width: 12px;
  height: 12px;
  background: var(--red);
}

.follow-panel.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.follow-panel a,
.follow-panel a:link,
.follow-panel a:visited,
.follow-panel span {
  color: var(--cream);
  font-size: 13.5px;
  text-decoration: none;
  white-space: nowrap;
}

.follow-panel a:hover {
  text-decoration: underline;
}

.hero-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image-wrap {
  position: relative;
  width: 100%;
  max-width: 460px;
}

.hero-image {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  border: 3px solid var(--peach-soft);
  box-shadow: 0 20px 40px var(--shadow-soft);
}

.hero-image-dark {
  display: none;
}

[data-theme="dark"] .hero-image-light {
  display: none;
}

[data-theme="dark"] .hero-image-dark {
  display: block;
}

.artwork-credit {
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 6px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.artwork-credit:link,
.artwork-credit:visited {
  color: var(--ink);
}

.artwork-credit:hover {
  text-decoration: underline;
}

/* ---------- Modal ---------- */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(42, 35, 32, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
  z-index: 100;
  padding: 20px;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  position: relative;
  background: var(--surface);
  border-radius: 18px;
  padding: 48px 44px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
  transform: translateY(16px) scale(0.97);
  transition: transform 0.22s ease;
  border: 2px solid var(--ink);
  border-top: 6px solid var(--red);
}

.modal-overlay.open .modal-card {
  transform: translateY(0) scale(1);
}

.modal-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}

.modal-title {
  font-family: var(--font-blaze);
  font-weight: 400;
  font-size: 34px;
  margin: 0 0 14px;
  color: var(--ink);
}

.modal-text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
}

.audio-player {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--shadow-soft);
}

.play-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--red);
  color: var(--cream);
  border: none;
  box-shadow: 0 8px 18px var(--shadow-glow);
  transition: background 0.18s ease, transform 0.18s ease;
}

.play-btn:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
}

.play-btn .icon-play {
  margin-left: 2px;
}

.play-btn .icon-pause {
  display: none;
}

.play-btn.is-playing .icon-play {
  display: none;
}

.play-btn.is-playing .icon-pause {
  display: block;
}

.audio-label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 38px;
  line-height: 1;
  color: var(--ink-soft);
}

.modal-close:hover {
  color: var(--red);
}

/* Tally popup (Submit Your Song) - Tally injects these stable class names
   into our own document, so they're targetable like any other element. */
.tally-overlay {
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.tally-popup {
  border: 2px solid var(--ink) !important;
  border-radius: 12px !important;
  overflow: hidden !important;
}

.site-footer {
  text-align: center;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10px;
  color: var(--ink-soft);
  padding: 80px 0 32px;
}

.site-footer a {
  color: var(--ink-soft);
  font-weight: normal;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-footer a:hover {
  color: var(--red);
}

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

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 20px;
  }

  .title-block {
    margin-left: auto;
    margin-right: auto;
  }

  .blurb {
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-art {
    order: -1;
    margin-bottom: 10px;
  }

  .hero-image-wrap {
    max-width: 420px;
  }

  .cta-row {
    justify-content: center;
  }

  .follow-row {
    justify-content: center;
  }

  .hero {
    padding-bottom: 48px;
  }
}

@media (max-width: 520px) {
  .topbar {
    flex-wrap: wrap;
    gap: 10px;
  }

  .main-nav {
    order: 3;
    width: 100%;
  }

  .title-frequency {
    font-size: clamp(38px, 13.2vw, 64px);
  }
}
