/* Rocking for the Rock – styled after the WTHM (Twenty Twenty-Four) look */
@import url('https://fonts.googleapis.com/css2?family=Cardo:ital,wght@0,400;0,700;1,400&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --base: #f9f9f9;
  --base-2: #ffffff;
  --contrast: #111111;
  --contrast-2: #636363;
  --contrast-3: #a4a4a4;
  --line: #e2e2e2;
  --accent: #b3261e;
  --heading: "Cardo", Georgia, "Times New Roman", serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --content: 620px;
  --wide: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--base);
  color: var(--contrast);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.55;
}
img { max-width: 100%; height: auto; }
a { color: var(--contrast); text-underline-offset: .15em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--contrast); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; top: 1rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.site-header { padding: 20px var(--gutter); }
.site-header .inner {
  max-width: var(--wide); margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 600; font-size: 1rem; }
.brand img { width: 40px; height: 40px; }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 4px; padding: 6px 12px; font: inherit; font-size: .95rem; cursor: pointer; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 24px; }
.site-nav a { text-decoration: none; font-size: .95rem; }
.site-nav a[aria-current="page"] { text-decoration: underline; }
@media (max-width: 640px) {
  .menu-toggle { display: inline-block; }
  .site-nav { flex-basis: 100%; display: none; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 10px; padding: 8px 0; }
}

/* ---------- Main ---------- */
main { padding: 0 var(--gutter) 64px; }
.wide { max-width: var(--wide); margin: 0 auto; }
.narrow { max-width: var(--content); margin: 0 auto; }
.hero { margin: 0 auto 48px; max-width: 1024px; }
.hero img { display: block; width: 100%; }

h1, h2, h3 { font-family: var(--heading); font-weight: 400; line-height: 1.15; }
h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); text-align: center; margin: .2em 0 .8em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin: 1.6em 0 .5em; }
h3 { font-size: 1.5rem; margin: 1.2em 0 .3em; }
.prose p { margin: 0 0 1.1em; }

.announcement { text-align: center; }

.listen { text-align: center; margin: 32px auto 8px; }
.listen-btn {
  display: inline-block; background: none; border: 0; padding: 0; cursor: pointer; border-radius: 12px;
}
.listen-btn img { display: block; width: min(400px, 100%); }
.player-controls { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.btn {
  display: inline-block; font: inherit; font-size: 1rem; font-weight: 600;
  background: var(--contrast); color: #fff; border: 2px solid var(--contrast);
  border-radius: 999px; padding: .55em 1.4em; cursor: pointer; text-decoration: none;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.secondary { background: transparent; color: var(--contrast); }
.btn.secondary:hover { background: var(--contrast); color: #fff; }
.now-playing { text-align: center; color: var(--contrast-2); font-size: 1rem; min-height: 1.5em; margin: 8px 0 0; }

/* Programs */
.programs { display: grid; gap: 40px; margin-top: 16px; }
.program { text-align: center; }
.program img { display: block; margin: 0 auto 12px; max-width: 320px; width: 100%; border-radius: 4px; }
.program h3 { margin: .2em 0; }
.program .when { font-weight: 600; text-transform: uppercase; letter-spacing: .04em; font-size: .9rem; color: var(--accent); margin: 0; }
.program .host { margin: .2em 0 .6em; color: var(--contrast-2); }

/* ---------- Footer ---------- */
.site-footer { padding: 64px var(--gutter) 40px; border-top: 1px solid var(--line); }
.site-footer .cols { max-width: var(--wide); margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.site-footer .title { font-weight: 600; font-size: 1.1rem; margin: 0; max-width: 22rem; }
.footer-groups { display: flex; flex-wrap: wrap; gap: 32px 72px; }
.footer-groups h2 { font-family: var(--body); font-size: 1rem; font-weight: 600; margin: 0 0 12px; }
.footer-groups ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .95rem; }
.footer-groups a { text-decoration: none; }
.footer-groups address { font-style: normal; font-size: .95rem; white-space: pre-line; }
.site-footer .bottom { max-width: var(--wide); margin: 48px auto 0; color: var(--contrast-2); font-size: .9rem; }

/* ---------- Pop-out player page ---------- */
body.player-page { background: #000; color: #fff; text-align: center; padding: 24px 16px; }
body.player-page a { color: #fff; }
.player-page .logo { width: 150px; height: 150px; }
.player-page h1 { font-size: 1.8rem; color: #fff; }
.player-page .big-play { width: 175px; height: 175px; border-radius: 50%; border: 3px solid #fff; background: var(--accent); color: #fff; font-size: 1.4rem; font-weight: 700; cursor: pointer; }
.player-page .now-playing { color: #ddd; }

/* Content from the visual editor */
.prose img { border-radius: 4px; }
.prose figure { margin: 1.5em 0; }
.prose figcaption { font-size: .9rem; color: var(--contrast-2); text-align: center; margin-top: .4em; }
.prose audio { width: 100%; margin: 1em 0; }
.prose video { max-width: 100%; height: auto; margin: 1em 0; }
.prose iframe { max-width: 100%; border: 0; }
.prose iframe[src*="youtube"], .prose iframe[src*="vimeo"] { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.prose table { border-collapse: collapse; width: 100%; margin: 1em 0; font-size: 1rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.prose blockquote { margin: 1.2em 0; padding: .2em 0 .2em 1.2em; border-left: 4px solid var(--accent); font-family: var(--heading); font-size: 1.2rem; }
.prose .alignleft, .prose img[style*="float: left"] { margin: 0 1em 1em 0; }
.prose .alignright, .prose img[style*="float: right"] { margin: 0 0 1em 1em; }
