:root {
  --bg: #061a31;
  --surface: #0b223b;
  --surface-soft: #0e2947;
  --surface-strong: #142f4d;
  --ink: #f8f0da;
  --muted: #c7c9c4;
  --line: rgba(248, 240, 218, .22);
  --brand: #c91f2b;
  --brand-dark: #a5162d;
  --teal: #71c7b7;
  --green: #397f72;
  --gold: #d8a83e;
  --player: #031325;
  --player-ink: #fff8e9;
  --radius: 18px;
  --shadow: 0 22px 64px rgba(0, 0, 0, .28);
  --max: 1180px;
  --player-height: 96px;
  --dock-height: 0px;
  --header-background: rgba(5, 23, 43, .94);
  --cream: #f8f0da;
}

html[data-theme="light"] {
  --bg: #f7f3e8;
  --surface: #fffdf6;
  --surface-soft: #efeadd;
  --surface-strong: #e7e0d1;
  --ink: #10243a;
  --muted: #526273;
  --line: rgba(16, 36, 58, .2);
  --brand: #a5162d;
  --brand-dark: #791021;
  --teal: #256f70;
  --green: #315f52;
  --gold: #b88720;
  --player: #10243a;
  --player-ink: #fffaf0;
  --shadow: 0 22px 56px rgba(16, 36, 58, .13);
  --header-background: rgba(247, 243, 232, .95);
  --cream: #fffaf0;
}

html {
  background: var(--bg);
}

body {
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 92% 4%, rgba(113, 199, 183, .08), transparent 28rem),
    var(--bg);
  font-size: 18px;
  line-height: 1.68;
  padding-bottom: calc(var(--player-height) + var(--dock-height) + env(safe-area-inset-bottom));
}

html[data-theme="light"] body {
  background:
    radial-gradient(circle at 92% 4%, rgba(37, 111, 112, .08), transparent 28rem),
    var(--bg);
}

body.is-site-menu-open {
  overflow: hidden;
}

a {
  color: var(--gold);
}

a:hover,
a:focus {
  color: var(--teal);
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
.btn,
.button,
.button-secondary {
  min-height: 48px;
  border-radius: 14px;
}

h1,
h2,
h3,
.entry-title,
.site-title {
  color: var(--ink);
}

h1,
.night-hero h1,
.page-hero h1,
.entry-title {
  font-family: "Noto Serif", Georgia, "Times New Roman", serif;
  letter-spacing: -.025em;
}

.container {
  padding-right: clamp(18px, 4vw, 38px);
  padding-left: clamp(18px, 4vw, 38px);
}

.section {
  padding: clamp(42px, 7vw, 80px) 0;
}

.section--surface,
.page-hero {
  color: var(--ink);
  background: var(--surface-soft);
  border-color: var(--line);
}

.page-hero {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
}

.section-lead,
.meta,
.page-content,
.entry-content {
  color: var(--muted);
}

.eyebrow {
  color: var(--teal);
  font-size: .88rem;
  font-weight: 800;
  letter-spacing: .11em;
}

.btn {
  padding: 12px 20px;
}

.btn--primary,
.button,
button[type="submit"] {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
}

.btn--quiet,
.button-secondary {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--line);
}

.site-header {
  z-index: 1000;
  color: var(--ink);
  background: var(--header-background);
  border-color: var(--line);
  box-shadow: 0 10px 36px rgba(0, 0, 0, .08);
}

.site-radiohere-banner {
  color: var(--cream);
  background: var(--brand-dark);
  border-color: rgba(255, 255, 255, .18);
}

.site-radiohere-banner__inner {
  min-height: 38px;
  padding-top: 5px;
  padding-bottom: 5px;
  font-size: .88rem;
}

.site-radiohere-banner__cta {
  color: #10243a;
  background: var(--cream);
}

.header-inner {
  min-height: 112px;
  gap: 28px;
}

.site-branding {
  gap: 18px;
}

.site-logo-link,
.custom-logo-link {
  width: 72px;
  height: 72px;
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 50%;
}

.site-logo,
.custom-logo {
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .28);
}

.site-title {
  font-size: clamp(1.55rem, 2.2vw, 2.35rem);
  line-height: 1.05;
}

.site-title a {
  color: var(--ink);
}

.site-description {
  max-width: 40ch;
  color: var(--teal);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.site-menu-toggle,
.theme-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  min-height: 58px;
  padding: 10px 18px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 16px;
  font-weight: 750;
}

.site-menu-toggle {
  min-width: 142px;
  font-size: 1.15rem;
}

.site-menu-toggle .dashicons {
  width: 28px;
  height: 28px;
  color: var(--gold);
  font-size: 28px;
}

.theme-switch {
  min-height: 48px;
  font-size: .92rem;
}

.theme-switch > .dashicons {
  color: var(--gold);
}

.theme-switch__track {
  position: relative;
  display: block;
  width: 50px;
  height: 28px;
  background: rgba(248, 240, 218, .2);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.theme-switch__track span {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: var(--cream);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
  transition: transform .2s ease;
}

html[data-theme="light"] .theme-switch__track span {
  transform: translateX(22px);
}

.site-menu-drawer {
  position: fixed;
  inset: 0;
  z-index: 1200;
  overflow: auto;
  color: var(--ink);
  background: rgba(3, 15, 29, .97);
  overscroll-behavior: contain;
}

html[data-theme="light"] .site-menu-drawer {
  background: rgba(247, 243, 232, .985);
}

.site-menu-drawer[hidden] {
  display: none;
}

.site-menu-drawer__inner {
  min-height: 100%;
  padding-top: clamp(28px, 6vw, 68px);
  padding-bottom: 160px;
}

.site-menu-drawer__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.site-menu-drawer__head h2 {
  margin: 4px 0 0;
  font-family: "Noto Serif", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.site-menu-close {
  width: 54px;
  min-width: 54px;
  height: 54px;
  padding: 0;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 50%;
}

.site-menu-close .dashicons {
  width: 30px;
  height: 30px;
  font-size: 30px;
}

.site-menu-groups {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  padding-top: 28px;
}

.site-menu-group {
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.site-menu-group h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.site-menu-group h3 .dashicons {
  color: var(--gold);
}

.site-menu-group a,
.site-menu-group button {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 8px 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  text-align: left;
  text-decoration: none;
}

.site-menu-group a:last-child,
.site-menu-group button:last-child {
  border-bottom: 0;
}

.theme-system-button[aria-pressed="true"] {
  color: var(--teal);
  font-weight: 800;
}

.site-search-panel {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--line);
}

.night-hero-section {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 9vw, 112px) 0 clamp(50px, 8vw, 92px);
  border-bottom: 1px solid var(--line);
}

.night-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 34%);
  align-items: center;
  gap: 40px;
  min-height: 380px;
}

.night-hero__copy {
  position: relative;
  z-index: 2;
  max-width: 770px;
}

.night-hero__copy h1 {
  max-width: 12ch;
  margin: 12px 0 22px;
  color: var(--ink);
  font-size: clamp(3.2rem, 7.2vw, 6.2rem);
  line-height: 1.02;
  text-wrap: balance;
}

.night-hero__copy h1::first-letter {
  color: var(--ink);
}

.night-hero__dot {
  color: var(--gold);
}

.night-hero__copy p:last-child {
  max-width: 49ch;
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.1rem, 2.1vw, 1.42rem);
}

.night-hero__mark {
  display: flex;
  align-items: center;
  justify-content: center;
}

.night-hero__mark img {
  width: min(100%, 300px);
  border-radius: 50%;
  opacity: .72;
  filter: drop-shadow(0 0 32px rgba(216, 168, 62, .24));
}

.home-live-section {
  padding: 32px 0 50px;
  border-bottom: 1px solid var(--line);
}

.home-live__status-row {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 60px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.home-live__status-row p {
  margin: 0;
  color: var(--teal);
  font-size: .98rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 7px 16px;
  color: #10243a;
  background: var(--gold);
  border-radius: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.live-badge > span {
  width: 12px;
  height: 12px;
  background: #10243a;
  border-radius: 50%;
}

.home-live__stage {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(34px, 7vw, 80px);
  align-items: center;
  padding: 34px 8px 28px;
}

.live-play-orb {
  display: grid;
  place-items: center;
  width: 220px;
  min-height: 220px;
  padding: 0;
  color: #061a31;
  background: var(--cream);
  border: 1px solid rgba(216, 168, 62, .55);
  border-radius: 50%;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .2);
}

.live-play-orb .dashicons {
  width: 76px;
  height: 76px;
  font-size: 76px;
}

.home-live__meta h2 {
  margin: 0;
  font-family: "Noto Serif", Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 4.25rem);
  line-height: 1.08;
}

.home-live__meta > p {
  margin: 8px 0 24px;
  color: var(--teal);
  font-size: 1.4rem;
}

.home-volume {
  display: grid;
  grid-template-columns: auto auto minmax(100px, 320px);
  align-items: center;
  gap: 14px;
  max-width: 520px;
  color: var(--ink);
}

.home-volume .dashicons {
  width: 30px;
  height: 30px;
  font-size: 30px;
}

.home-volume input {
  width: 100%;
  min-height: 44px;
  accent-color: var(--teal);
}

.live-primary-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: 100%;
  min-height: 82px;
  padding: 14px 24px;
  color: #fff;
  background: linear-gradient(90deg, #b71521 0%, #d92932 52%, #b71521 100%);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 22px;
  box-shadow: 0 16px 42px rgba(166, 20, 34, .24);
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 900;
}

.live-primary-button:hover,
.live-primary-button:focus {
  color: #fff;
  filter: brightness(1.08);
}

.live-primary-button .dashicons {
  width: 38px;
  height: 38px;
  font-size: 38px;
}

.home-quick-links {
  display: grid;
  margin-top: 24px;
  border-top: 1px solid var(--line);
}

.home-quick-links a {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  min-height: 112px;
  padding: 16px 12px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.home-quick-links a > span:nth-child(2) {
  display: grid;
  gap: 2px;
}

.home-quick-links strong {
  font-size: 1.35rem;
}

.home-quick-links small {
  color: var(--muted);
  font-size: 1rem;
}

.home-quick-links .quick-link__icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  color: var(--gold);
  background: var(--surface-strong);
  border-radius: 50%;
  font-size: 30px;
}

.home-quick-links > a > .dashicons-arrow-right-alt2 {
  color: var(--gold);
  font-size: 28px;
}

.article-aside,
.story-mark,
.contact-panel,
.audio-card,
.info-card,
.schedule-card,
.support-card,
.store-link-card,
.page-link-card,
.post-card,
.program-card,
.episode-card,
.prayer-category-card,
.prayer-item,
.copy-box,
.site-update,
.app-store-band,
.donate-band {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.page-link-card,
.store-link-card,
.compact-list a,
.schedule-row,
.kv,
.footer-frequency {
  border-color: var(--line);
}

.page-link-card strong,
.store-link-card strong,
.compact-list strong,
.footer-frequency__city,
.article-aside > a:not(.btn) {
  color: var(--ink);
}

.copy-box--line,
.search-form input[type="search"],
.prayer-search input,
.prayer-item,
input,
select,
textarea {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--line);
}

.footer {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--line);
}

.footer a,
.footer-frequency__city {
  color: var(--ink);
}

.footer-kicker {
  color: var(--gold);
}

.player {
  background: rgba(3, 19, 37, .98);
  border-color: rgba(248, 240, 218, .18);
}

.player button[data-player-play] {
  color: #10243a;
  background: var(--cream);
  border-color: var(--gold);
}

.player input[type="range"] {
  accent-color: var(--teal);
}

.mobile-dock {
  display: none;
}

@media (max-width: 1080px) {
  .site-menu-groups {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .header-actions {
    gap: 8px;
  }

  .theme-switch {
    padding-right: 12px;
    padding-left: 12px;
  }
}

@media (max-width: 900px) {
  :root {
    --dock-height: 78px;
    --player-height: 112px;
  }

  .home .site-radiohere-banner {
    display: none;
  }

  .header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 188px;
    row-gap: 20px;
    padding-top: 22px;
    padding-bottom: 22px;
  }

  .site-logo-link,
  .custom-logo-link {
    width: 88px;
    height: 88px;
  }

  .site-title {
    font-size: clamp(1.75rem, 4vw, 2.15rem);
  }

  .header-actions {
    display: contents;
  }

  .site-menu-toggle {
    grid-column: 2;
    grid-row: 1;
    min-width: 112px;
    min-height: 58px;
    padding: 8px 13px;
  }

  .theme-switch {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: end;
  }

  .site-menu-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .night-hero {
    display: block;
    min-height: 285px;
  }

  .night-hero-section {
    padding-top: 40px;
    padding-bottom: 50px;
  }

  .night-hero__copy {
    width: 78%;
    max-width: 680px;
  }

  .night-hero__mark {
    position: absolute;
    right: 0;
    bottom: 42px;
    width: 30%;
  }

  .night-hero__copy h1 {
    font-size: clamp(3rem, 7.6vw, 4.2rem);
    font-weight: 600;
  }

  .mobile-dock {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1100;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    height: calc(var(--dock-height) + env(safe-area-inset-bottom));
    padding: 7px max(5px, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(5px, env(safe-area-inset-left));
    color: var(--player-ink);
    background: rgba(3, 19, 37, .985);
    border-top: 1px solid rgba(248, 240, 218, .2);
  }

  .mobile-dock__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 0;
    min-height: 60px;
    padding: 4px;
    color: var(--player-ink);
    background: transparent;
    border: 0;
    border-radius: 0;
    font-size: .76rem;
    line-height: 1.15;
    text-align: center;
    text-decoration: none;
  }

  .mobile-dock__item:hover,
  .mobile-dock__item:focus,
  .mobile-dock__item.is-current {
    color: var(--gold);
  }

  .mobile-dock__item .dashicons {
    width: 28px;
    height: 28px;
    font-size: 28px;
  }

  .player {
    bottom: calc(var(--dock-height) + env(safe-area-inset-bottom));
  }

  .player:not(.player--active) {
    transform: translateY(calc(100% + 12px));
    pointer-events: none;
  }

  .player-inner {
    min-height: var(--player-height);
    padding-bottom: 10px;
  }

  .player-rds {
    max-width: calc(100vw - 174px);
  }

  .site-menu-drawer__inner {
    padding-bottom: calc(var(--dock-height) + 80px);
  }
}

@media (max-width: 620px) {
  body {
    font-size: 17px;
  }

  .site-branding {
    gap: 10px;
  }

  .site-branding__text {
    display: block;
  }

  .site-logo-link,
  .custom-logo-link {
    width: 68px;
    height: 68px;
  }

  .site-title {
    font-size: 1.42rem;
  }

  .site-description {
    max-width: 27ch;
    font-size: .67rem;
    line-height: 1.35;
    white-space: normal;
  }

  .site-menu-toggle {
    min-width: 94px;
    font-size: 1rem;
  }

  .theme-switch {
    min-height: 48px;
    font-size: .84rem;
  }

  .site-menu-groups {
    grid-template-columns: 1fr;
  }

  .site-menu-group {
    padding: 18px;
  }

  .night-hero-section {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .night-hero {
    display: block;
    min-height: 400px;
  }

  .night-hero__copy h1 {
    max-width: 9.5ch;
    font-size: clamp(2.8rem, 13vw, 4.6rem);
  }

  .night-hero__copy p:last-child {
    max-width: 29ch;
    font-size: 1.08rem;
  }

  .night-hero__mark {
    position: absolute;
    right: -34px;
    bottom: -28px;
    width: 190px;
    opacity: .42;
  }

  .home-live-section {
    padding-top: 24px;
  }

  .home-live__status-row {
    gap: 11px;
  }

  .home-live__status-row p {
    font-size: .76rem;
  }

  .live-badge {
    min-height: 40px;
    padding: 6px 12px;
    font-size: .84rem;
  }

  .home-live__stage {
    grid-template-columns: 118px minmax(0, 1fr);
    gap: 22px;
    padding-right: 0;
    padding-left: 0;
  }

  .live-play-orb {
    width: 116px;
    min-height: 116px;
  }

  .live-play-orb .dashicons {
    width: 48px;
    height: 48px;
    font-size: 48px;
  }

  .home-live__meta h2 {
    font-size: clamp(1.7rem, 8vw, 2.5rem);
  }

  .home-live__meta > p {
    margin-bottom: 10px;
    font-size: 1.05rem;
  }

  .home-volume {
    grid-template-columns: auto minmax(80px, 1fr);
    gap: 8px;
  }

  .home-volume > span:nth-child(2) {
    display: none;
  }

  .live-primary-button {
    min-height: 68px;
    border-radius: 18px;
  }

  .home-quick-links a {
    grid-template-columns: 52px minmax(0, 1fr) auto;
    gap: 14px;
    min-height: 96px;
    padding-right: 4px;
    padding-left: 4px;
  }

  .home-quick-links .quick-link__icon {
    width: 50px;
    height: 50px;
    font-size: 26px;
  }

  .home-quick-links strong {
    font-size: 1.13rem;
  }

  .home-quick-links small {
    font-size: .87rem;
  }

  .player-title,
  .player-rds {
    max-width: calc(100vw - 146px);
  }

  .player button[data-player-play] {
    min-width: 92px;
  }
}

@media (max-width: 380px) {
  .site-branding__text {
    display: block;
  }

  .site-title {
    font-size: 1.15rem;
  }

  .site-description {
    display: none;
  }

  .site-menu-toggle {
    min-width: 86px;
    gap: 7px;
  }

  .theme-switch {
    padding-right: 10px;
    padding-left: 10px;
  }

  .theme-switch > .dashicons {
    display: none;
  }

  .night-hero {
    min-height: 380px;
  }

  .home-live__stage {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 16px;
  }

  .live-play-orb {
    width: 102px;
    min-height: 102px;
  }

  .mobile-dock__item {
    font-size: .69rem;
  }
}

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