@font-face { font-family: "Atkinson Hyperlegible"; src: url("fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --page: #7b1a2c;
  --card: #5c1221;
  --deep: #2c0811;
  --wine: #5e0f20;
  --ivory: #fbeedb;
  --on-ivory: #8f0a20;
  --white: #ffffff;
  --line: #a8485a;
  --font: "Atkinson Hyperlegible", Verdana, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--ivory); font: 400 21px/1.55 var(--font); padding-bottom: 92px; }
button, input { font-family: var(--font); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--font); font-weight: 700; line-height: 1.12; margin: 0; letter-spacing: -.015em; }
h1 { font-size: 2.9rem; }
h2 { font-size: 1.85rem; }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1rem; max-width: 38em; }
a { color: var(--white); font-weight: 700; text-underline-offset: 3px; overflow-wrap: anywhere; }
a:hover { color: var(--ivory); }
main:focus { outline: 0; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--white); outline-offset: 2px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -9999px; background: var(--ivory); color: var(--on-ivory); padding: 12px; }
.skip:focus { left: 8px; top: 8px; z-index: 50; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Station column: across the top on a phone, down the side on a large screen */
.mast { background: radial-gradient(ellipse at 30% 0, var(--wine) 0, var(--deep) 85%); color: var(--ivory); }
.head { display: flex; align-items: center; gap: 12px; padding: 16px; }
.disc { width: 78px; height: auto; flex: none; clip-path: circle(47.5%); }
.brand { color: var(--white); text-decoration: none; font-size: 2.5rem; font-weight: 700; line-height: 1; letter-spacing: -.03em; overflow-wrap: normal; }
.brand:hover { color: var(--white); }
.nav { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.nav a { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 58px; padding: 6px; color: var(--ivory); text-decoration: none; font-size: 1.1rem; line-height: 1.15; overflow-wrap: normal; }
.nav a:hover { background: rgba(255,255,255,.12); color: var(--white); }
.nav a[aria-current] { background: rgba(255,255,255,.14); color: var(--white); box-shadow: inset 0 -4px var(--ivory); }
.nav a:focus-visible { outline-offset: -5px; }

/* Radio: pinned to the bottom of a phone, in the station column on a large screen */
.radio { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; background: var(--deep); }
.listen { width: 100%; display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 76px; background: var(--ivory); color: var(--on-ivory); border: 0; font-size: 1.75rem; font-weight: 700; letter-spacing: -.01em; cursor: pointer; }
.listen:hover { background: var(--white); }
.listen svg { width: 26px; height: 26px; flex: none; }
.listen.playing svg { display: none; }
.radio-status { margin: 0 auto; padding: 8px 16px; color: var(--ivory); text-align: center; font-size: 1.05rem; line-height: 1.3; }
.radio-status:empty { display: none; }
.radio .listen:focus-visible { outline: 3px solid var(--on-ivory); outline-offset: -6px; }

main { padding: 28px 0 48px; }
.page-title { margin-bottom: 22px; }

/* On air */
.onair { background: var(--card); display: grid; border-left: 6px solid var(--ivory); }
.onair.has-photo { grid-template-columns: 96px 1fr; }
.onair-photo { width: 96px; height: 100%; object-fit: cover; object-position: top; }
.now { padding: 18px; }
.next { grid-column: 1 / -1; padding: 16px 18px; border-top: 1px solid var(--line); }
.onair p { margin-bottom: 4px; }
.onair .label { font-weight: 700; margin-bottom: 6px; }
.onair .who { font-size: 2.2rem; font-weight: 700; line-height: 1.08; letter-spacing: -.02em; margin-bottom: 8px; }
.onair .next-who { font-size: 1.4rem; font-weight: 700; line-height: 1.18; margin-bottom: 6px; color: #ffd9c7; }
.clocks { display: flex; flex-wrap: wrap; gap: 0 26px; margin-top: 10px; }
.clocks b { font-size: 1.1em; }
.tag { display: inline-block; font-size: 1rem; font-weight: 700; line-height: 1; padding: 6px 9px; margin-left: 8px; vertical-align: middle; letter-spacing: 0; background: var(--ivory); color: var(--on-ivory); }
.tag-air { margin-left: 0; }

/* Home */
.tagline { font-size: 2rem; margin-bottom: 20px; }
.home-grid { display: grid; gap: 30px; margin-top: 28px; }
.today h2, .request h2 { margin-bottom: 8px; }
.today-row { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.today-row img { width: 64px; height: 76px; object-fit: cover; object-position: top; }
.today-row p { margin: 0; }
.today-row .name { font-weight: 700; }
.request { margin-top: 22px; }
.rotator img { width: 100%; height: 340px; object-fit: contain; background: var(--deep); }
.rotator-bar { display: flex; gap: 1px; background: var(--page); }
.btn { font-size: 1.15rem; font-weight: 700; line-height: 1.2; min-height: 58px; padding: 10px 20px; background: var(--ivory); color: var(--on-ivory); border: 0; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.btn:hover { background: var(--white); color: var(--on-ivory); }
.rotator-bar .btn { flex: 1; padding: 8px; background: var(--card); color: var(--ivory); }
.rotator-bar .btn:hover { background: var(--deep); color: var(--white); }

/* Schedule */
.schedule-onair { margin: 20px 0; }
.day-jump { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 24px; }
.day-jump a { min-height: 58px; display: flex; align-items: center; justify-content: center; text-align: center; background: var(--card); color: var(--ivory); text-decoration: none; padding: 6px; overflow-wrap: normal; font-size: 1.05rem; line-height: 1.15; }
.day-jump a:hover { background: var(--deep); color: var(--white); }
.day-jump a.today { background: var(--ivory); color: var(--on-ivory); }
.day { margin-top: 40px; scroll-margin-top: 12px; }
.day > h2 { padding-bottom: 10px; border-bottom: 4px solid var(--ivory); }
.show { padding: 20px 0; border-bottom: 1px solid var(--line); }
.show::after { content: ""; display: block; clear: both; }
.show img { float: left; margin: 0 16px 10px 0; width: 96px; height: 116px; object-fit: cover; object-position: top; }
.show h3 { margin-bottom: 4px; }
.show p { margin: 0 0 4px; }
.show p:last-child { clear: both; } /* On a phone the requests line gets the full width, so the email address stays whole */
.show .time { font-weight: 700; }
.show.on-air { background: var(--ivory); color: var(--deep); padding: 20px 14px; border-bottom: 0; }
.show.on-air a { color: var(--on-ivory); }
.show.on-air .tag { background: var(--on-ivory); color: var(--white); }
.memorial { background: var(--card); padding: 30px 22px; margin-top: 56px; }
.memorial h2 { margin-bottom: 22px; }
.memorial-grid { display: grid; gap: 32px; }
.memorial img { max-height: 280px; width: auto; margin-bottom: 14px; }
.memorial p { margin-bottom: 6px; }
.memorial .rip { font-weight: 700; }

/* Gig guide */
.posters { display: grid; grid-template-columns: 1fr; gap: 28px; }
.posters a { display: block; text-decoration: none; }
.posters span { display: block; padding-top: 10px; text-decoration: underline; }

/* Archives */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button { font-size: 1.15rem; font-weight: 700; min-height: 58px; padding: 8px 18px; background: transparent; color: var(--ivory); border: 1px solid var(--ivory); cursor: pointer; }
.filters button:hover { background: var(--card); }
.filters button[aria-pressed="true"] { background: var(--ivory); color: var(--on-ivory); }
.group { margin-top: 40px; }
.group-head { display: flex; align-items: center; gap: 16px; padding-bottom: 14px; border-bottom: 4px solid var(--ivory); }
.group-head img { width: 96px; height: 96px; object-fit: cover; object-position: top; }
.item { padding: 20px 0; border-bottom: 1px solid var(--line); }
.item h3 { margin-bottom: 12px; }
.item audio { width: 100%; height: 54px; margin-bottom: 12px; }

/* Gallery */
.album { border-bottom: 1px solid var(--line); }
.album:first-of-type { border-top: 1px solid var(--line); }
.album summary { cursor: pointer; padding: 18px 4px; min-height: 60px; font-size: 1.3rem; font-weight: 700; line-height: 1.25; }
.album summary:hover { color: var(--white); }
.album summary small { display: block; font-size: 1.05rem; font-weight: 400; margin-top: 4px; }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; padding: 0 0 18px; }
.grid button { padding: 0; border: 0; background: var(--card); cursor: zoom-in; aspect-ratio: 4 / 3; }
.grid img { width: 100%; height: 100%; object-fit: cover; }
.lightbox { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--deep); color: var(--ivory); }
.lightbox[open] { display: flex; flex-direction: column; }
.lb-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px; }
.lb-top p { margin: 0; font-size: 1.05rem; line-height: 1.3; }
.lb-img { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 0 8px; }
.lb-img img { max-width: 100%; max-height: 100%; width: auto; height: auto; }
.lb-bar { display: flex; gap: 1px; }
.lb-bar .btn { flex: 1; min-height: 70px; font-size: 1.3rem; }
.lightbox .btn:focus-visible { outline-color: var(--on-ivory); outline-offset: -5px; }

/* Links */
.link-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.link-card { padding: 22px 0; display: grid; gap: 14px; border-bottom: 1px solid var(--line); }
.link-card img { max-height: 200px; width: auto; }
.link-card h2 { margin-bottom: 6px; }
.link-card a { font-size: .92em; }
a[href^="mailto:"] { font-size: .94em; }

.foot { background: var(--deep); padding: 26px 0; }
.foot p { margin-bottom: 4px; }

@media (min-width: 640px) {
  h1 { font-size: 3.4rem; }
  .posters { grid-template-columns: repeat(2, 1fr); }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .link-card { grid-template-columns: 220px 1fr; align-items: center; }
  .memorial-grid { grid-template-columns: 1fr 1fr; }
  .show { display: grid; grid-template-columns: 120px 1fr; gap: 22px; }
  .show::after { display: none; }
  .show img { float: none; margin: 0; width: 120px; height: 146px; }
  .show p:last-child { clear: none; }
  .nav a { font-size: 1.2rem; }
}
@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .shell { display: grid; grid-template-columns: 320px minmax(0, 1fr); min-height: 100vh; }
  .mast { position: sticky; top: 0; height: 100vh; overflow-y: auto; }
  .head { flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px 30px 12px; }
  .disc { width: 96px; }
  .brand { display: block; max-width: 250px; font-size: 2.8rem; }
  .radio { position: static; background: none; margin: 0 30px 12px; width: 260px; }
  .listen { min-height: 66px; font-size: 1.6rem; }
  .radio-status { padding: 6px 0 0; text-align: left; }
  .nav { display: block; border-top: 1px solid rgba(251,238,219,.3); }
  .nav a { justify-content: flex-start; min-height: 50px; padding: 0 30px; font-size: 1.2rem; border-bottom: 1px solid rgba(251,238,219,.3); }
  .nav a[aria-current] { box-shadow: inset 6px 0 var(--ivory); }
  .content { display: flex; flex-direction: column; min-width: 0; }
  main { flex: 1; padding: 38px 0 48px; }
  .wrap { padding: 0 44px; }
  .onair, .onair.has-photo { grid-template-columns: 1.5fr 1fr; }
  .onair.has-photo { grid-template-columns: 150px 1.5fr 1fr; }
  .onair-photo { width: 150px; min-height: 220px; }
  .now { padding: 26px 28px; }
  .next { grid-column: auto; padding: 26px; border-top: 0; border-left: 1px solid var(--line); }
  .onair .who { font-size: 2.9rem; }
  .home-grid { grid-template-columns: 1fr 1fr; align-items: start; gap: 40px; }
  .day-jump { grid-template-columns: repeat(7, 1fr); }
  .posters { grid-template-columns: repeat(3, 1fr); }
  .grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 900px) and (min-height: 900px) {
  .head { gap: 18px; padding: 30px 30px 20px; }
  .disc { width: 170px; }
  .brand { font-size: 3.5rem; }
  .radio { margin: 6px 30px 22px; }
  .listen { min-height: 84px; font-size: 1.75rem; }
  .nav a { min-height: 60px; font-size: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
