@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; }

/* Wine and ivory come from the station's own disc logo. Brass is the one accent, for "now" and "today". */
:root {
  --page: #7a1a2b;
  --card: #5a1120;
  --deep: #2a0810;
  --wine: #5e0f20;
  --ivory: #fbeedb;
  --paper: #fff8ec;
  --paper-2: #f4e1c6;
  --ink: #2a0810;
  --on-ivory: #8f0a20;
  --brass: #e6c172;
  --white: #ffffff;
  --line: rgba(251, 238, 219, .3);
  --ink-line: rgba(42, 8, 16, .18);
  --r-panel: 18px;
  --r-photo: 12px;
  --r-btn: 12px;
  --disc: 62px;
  --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.5 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.1; margin: 0; letter-spacing: -.02em; }
h1 { font-size: 2.6rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1rem; max-width: 36em; }
a { color: var(--white); font-weight: 700; text-underline-offset: 4px; text-decoration-thickness: 2px; overflow-wrap: anywhere; }
a:hover { color: var(--brass); }
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.
   The five lines are a music staff, and the disc logo sits on it like a note. */
.mast { background: linear-gradient(180deg, var(--wine), var(--deep)); color: var(--ivory); }
.head { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
.head::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 50px; transform: translateY(-50%);
  background: repeating-linear-gradient(to bottom, rgba(251, 238, 219, .3) 0 2px, transparent 2px 12px);
  -webkit-mask-image: linear-gradient(to right, #000 0, #000 84px, transparent 62%); mask-image: linear-gradient(to right, #000 0, #000 84px, transparent 62%); }
.disc { position: relative; width: var(--disc); height: auto; flex: none; clip-path: circle(47.5%); }
.brand { position: relative; color: var(--white); text-decoration: none; font-size: 1.9rem; 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 8px 8px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.nav a { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 50px; padding: 4px 6px; color: var(--ivory); text-decoration: none; font-size: 1.05rem; line-height: 1.15; overflow-wrap: normal; border-radius: 10px; }
.nav a:hover { background: rgba(255, 255, 255, .1); color: var(--white); }
.nav a[aria-current] { background: var(--brass); color: var(--ink); }
.nav a:focus-visible { outline-offset: -4px; }

/* 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); box-shadow: 0 -6px 18px rgba(20, 4, 8, .45); }
.listen { width: 100%; display: flex; align-items: center; justify-content: center; gap: 14px; 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; }
/* While the radio is on, three moving bars take the place of the play arrow */
.listen.playing::before { content: ""; flex: none; width: 26px; height: 24px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 6px 45% no-repeat, linear-gradient(currentColor, currentColor) 10px 100% / 6px 100% no-repeat, linear-gradient(currentColor, currentColor) 20px 100% / 6px 65% no-repeat;
  animation: bars .9s ease-in-out infinite alternate; }
@keyframes bars { to { background-size: 6px 100%, 6px 40%, 6px 90%; } }
.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: 26px 0 48px; }
.page-title { margin-bottom: 20px; }
.page-title::after, .tagline::after { content: ""; display: block; width: 72px; height: 5px; margin-top: 14px; background: var(--brass); border-radius: 3px; }

/* Shared pieces */
.tag { display: inline-block; font-size: .9rem; font-weight: 700; line-height: 1; padding: 6px 11px; margin-left: 8px; vertical-align: middle; letter-spacing: 0; border-radius: 999px; background: var(--brass); color: var(--ink); white-space: nowrap; }
.tag-air { margin-left: 0; }
.tag-air::before { content: ""; display: inline-block; width: .62em; height: .62em; margin-right: .45em; border-radius: 50%; background: currentColor; animation: live 1.6s ease-in-out infinite; }
@keyframes live { 50% { opacity: .25; } }
.btn { font-size: 1.15rem; font-weight: 700; line-height: 1.2; min-height: 58px; padding: 10px 22px; background: var(--ivory); color: var(--on-ivory); border: 0; border-radius: var(--r-btn); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.btn:hover { background: var(--white); color: var(--on-ivory); }
.time { font-weight: 700; color: var(--brass); }
.after-list { margin-top: 14px; }

/* On air: the brightest thing on the page */
.onair { background: var(--paper); color: var(--ink); border-radius: var(--r-panel); overflow: hidden; display: grid; grid-template-columns: 1fr; box-shadow: 0 12px 28px rgba(20, 4, 8, .4); }
/* On a phone the words wrap around the photo, so the time and clocks get the full width */
.onair.has-photo { display: block; }
.onair-photo { float: left; width: 104px; height: 104px; margin: 18px 16px 8px 18px; border-radius: var(--r-photo); object-fit: cover; object-position: 50% 20%; }
.now { padding: 18px; min-width: 0; }
.onair p { margin: 0 0 4px; }
.onair .label { margin-bottom: 10px; }
.onair .tag { background: var(--on-ivory); color: var(--white); }
.onair .who { font-size: 2rem; font-weight: 700; line-height: 1.06; letter-spacing: -.025em; margin-bottom: 6px; }
.onair .show-name { font-size: 1.3rem; font-weight: 700; line-height: 1.2; color: var(--on-ivory); margin-bottom: 6px; }
.onair .time { color: var(--ink); }
.onair .song { margin-top: 10px; line-height: 1.3; overflow-wrap: anywhere; }
.song-label { font-weight: 700; color: var(--on-ivory); }
.clocks { clear: both; display: flex; flex-wrap: wrap; gap: 0 24px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--ink-line); }
.clocks b { font-size: 1.1em; }
.next { clear: both; grid-column: 1 / -1; padding: 14px 18px 16px; background: var(--paper-2); }
.onair .next .label { font-weight: 700; margin-bottom: 2px; color: var(--on-ivory); }
.onair .next-who { font-size: 1.35rem; font-weight: 700; line-height: 1.18; }

/* Home */
.tagline { font-size: 1.9rem; margin-bottom: 20px; }
.home-grid { display: grid; gap: 34px; margin-top: 32px; }
.today h2, .request h2 { margin-bottom: 10px; }
.today-row { display: grid; grid-template-columns: 76px 1fr; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.today-row img { width: 76px; height: 76px; border-radius: var(--r-photo); object-fit: cover; object-position: 50% 20%; }
.today-row p { margin: 0; }
.today-row .name { font-weight: 700; font-size: 1.15rem; line-height: 1.2; }
.today-row.on-now { border-bottom: 0; background: var(--card); border-radius: var(--r-photo); padding: 12px; margin: 0 -12px; box-shadow: inset 6px 0 var(--brass); }
.request { margin-top: 28px; padding: 22px; background: var(--card); border-radius: var(--r-panel); }
.request p:last-child { margin-bottom: 0; }
.rotator-frame { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r-panel) var(--r-panel) 0 0; background: var(--deep); }
.rotator-frame::before { content: ""; position: absolute; inset: -30px; background: var(--rot, none) center / cover; filter: blur(22px) brightness(.6); }
.rotator-frame img { position: relative; width: 100%; height: 100%; object-fit: contain; }
.rotator-bar { display: flex; gap: 2px; border-radius: 0 0 var(--r-panel) var(--r-panel); overflow: hidden; }
.rotator-bar .btn { flex: 1; padding: 8px; background: var(--card); color: var(--ivory); border-radius: 0; }
.rotator-bar .btn:hover { background: var(--deep); color: var(--white); }
.rotator-bar .btn:focus-visible { outline-offset: -5px; }

/* Schedule */
.schedule-onair { margin: 20px 0; }
.day-jump { position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; padding: 8px 0; margin-top: 16px; background: var(--page); }
.day-jump a { min-height: 54px; display: flex; align-items: center; justify-content: center; text-align: center; background: var(--card); color: var(--ivory); text-decoration: none; padding: 4px 2px; overflow-wrap: normal; font-size: 1rem; line-height: 1.1; border-radius: 10px; }
.day-jump a:hover { background: var(--deep); color: var(--white); }
.day-jump a.today { background: var(--brass); color: var(--ink); }
.day-jump .d-long { display: none; }
.day { margin-top: 36px; scroll-margin-top: 82px; }
.day > h2 { padding-bottom: 10px; border-bottom: 3px solid var(--brass); }
.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: 88px; height: 88px; border-radius: var(--r-photo); object-fit: cover; object-position: 50% 20%; }
.show p:last-child { clear: both; } /* On a phone the requests line gets the full width, so the email address stays whole */
.show > div { min-width: 0; }
.show h3 { margin-bottom: 4px; }
.show p { margin: 0 0 4px; }
.show .time { font-size: 1.15rem; }
.show.on-air { background: var(--paper); color: var(--ink); padding: 18px 16px; margin: 12px -8px; border-bottom: 0; border-radius: var(--r-panel); box-shadow: 0 10px 24px rgba(20, 4, 8, .35); }
.show.on-air a { color: var(--on-ivory); }
.show.on-air .time { color: var(--on-ivory); }
.show.on-air .tag { background: var(--on-ivory); color: var(--white); }
.show.on-air p:first-child { margin-bottom: 8px; }
.memorial { background: var(--deep); padding: 30px 22px; margin-top: 56px; border-radius: var(--r-panel); text-align: center; }
.memorial h2 { margin-bottom: 24px; }
.memorial-grid { display: grid; gap: 36px; }
.memorial img { max-height: 280px; width: auto; margin: 0 auto 14px; border-radius: var(--r-photo); }
.memorial p { margin: 0 auto 6px; }
.memorial .rip { font-weight: 700; color: var(--brass); }

/* Gig guide: each poster sits on its own sheet */
.posters { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: start; }
.posters a { display: block; padding: 8px 8px 0; background: var(--paper); color: var(--on-ivory); text-decoration: none; border-radius: 8px; box-shadow: 0 10px 24px rgba(20, 4, 8, .4); }
.posters a:hover { color: var(--ink); }
.posters img { width: 100%; }
.posters span { display: block; padding: 12px 4px 14px; text-align: center; text-decoration: underline; text-underline-offset: 4px; }

/* Archives */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button { font-size: 1.1rem; font-weight: 700; min-height: 56px; padding: 8px 20px; background: var(--card); color: var(--ivory); border: 0; border-radius: 999px; cursor: pointer; }
.filters button:hover { background: var(--deep); }
.filters button[aria-pressed="true"] { background: var(--brass); color: var(--ink); }
.group { margin-top: 40px; }
.group-head { display: flex; align-items: center; gap: 16px; padding-bottom: 14px; border-bottom: 3px solid var(--brass); }
.group-head img { width: 88px; height: 88px; border-radius: var(--r-photo); object-fit: cover; object-position: 50% 20%; }
.item { padding: 22px 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 { list-style: none; cursor: pointer; display: grid; grid-template-columns: 84px 1fr 22px; gap: 14px; align-items: center; padding: 12px 4px; font-size: 1.2rem; font-weight: 700; line-height: 1.22; }
.album summary::-webkit-details-marker { display: none; }
.album summary::after { content: ""; width: 12px; height: 12px; border-right: 3px solid var(--brass); border-bottom: 3px solid var(--brass); transform: rotate(45deg); justify-self: center; margin-top: -6px; }
.album[open] summary::after { transform: rotate(-135deg); margin-top: 6px; }
.album summary:hover { color: var(--white); }
.album summary .cover { width: 84px; height: 84px; border-radius: var(--r-photo); object-fit: cover; background: var(--card); }
.album summary small { display: block; font-size: 1rem; font-weight: 400; margin-top: 4px; }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; padding: 4px 0 20px; }
.grid button { padding: 0; border: 0; background: var(--card); cursor: zoom-in; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; }
.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: 2px; }
.lb-bar .btn { flex: 1; min-height: 70px; font-size: 1.3rem; border-radius: 0; }
.lightbox .btn:focus-visible { outline-color: var(--on-ivory); outline-offset: -5px; }

/* Links */
.link-list { display: grid; gap: 18px; }
.link-card { padding: 20px; display: grid; gap: 14px; background: var(--card); border-radius: var(--r-panel); }
.link-card img { max-height: 200px; width: auto; border-radius: var(--r-photo); }
.link-card h2 { margin-bottom: 6px; }
.link-card p { margin: 0 0 8px; }
.link-card p:last-child { margin-bottom: 0; }
.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.2rem; }
  .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; align-items: start; }
  .show::after { display: none; }
  .show img { float: none; margin: 0; width: 120px; height: 120px; }
  .show p:last-child { clear: none; }
  .nav a { font-size: 1.15rem; }
  .day-jump .d-long { display: inline; }
  .day-jump .d-short { display: none; }
  .onair.has-photo { display: grid; grid-template-columns: auto 1fr; }
  .onair-photo { float: none; width: 132px; height: 132px; margin: 18px 0 18px 18px; }
}
@media (min-width: 900px) {
  :root { --disc: 96px; }
  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: 12px; padding: 22px 30px 12px; }
  .head::before { top: calc(22px + var(--disc) / 2); -webkit-mask-image: linear-gradient(to right, #000 0, #000 55%, transparent); mask-image: linear-gradient(to right, #000 0, #000 55%, transparent); }
  .brand { display: block; max-width: 250px; font-size: 2.8rem; }
  .radio { position: static; background: none; box-shadow: none; margin: 4px 30px 14px; width: 260px; }
  .listen { min-height: 66px; font-size: 1.6rem; border-radius: 14px; }
  .radio-status { padding: 6px 0 0; text-align: left; }
  .nav { display: block; padding: 0 18px; }
  .nav a { justify-content: flex-start; min-height: 50px; padding: 0 12px; margin-bottom: 4px; font-size: 1.2rem; }
  .content { display: flex; flex-direction: column; min-width: 0; }
  main { flex: 1; padding: 40px 0 56px; }
  .wrap { padding: 0 44px; }
  .onair.has-photo { grid-template-columns: auto 1.5fr 1fr; }
  .onair { grid-template-columns: 1.5fr 1fr; }
  .onair-photo { width: 168px; height: 168px; margin: 26px 0 26px 26px; }
  .now { padding: 26px 28px; }
  .next { grid-column: auto; padding: 26px; }
  .onair .who { font-size: 2.7rem; }
  .tagline { font-size: 2.2rem; }
  .home-grid { grid-template-columns: 1fr 1fr; align-items: start; gap: 44px; }
  .posters { grid-template-columns: repeat(3, 1fr); }
  .grid { grid-template-columns: repeat(4, 1fr); }
  .album summary { font-size: 1.3rem; }
}
@media (min-width: 900px) and (min-height: 900px) {
  :root { --disc: 150px; }
  .head { gap: 18px; padding: 30px 30px 18px; }
  .head::before { top: calc(30px + var(--disc) / 2); height: 74px; background: repeating-linear-gradient(to bottom, rgba(251, 238, 219, .3) 0 2px, transparent 2px 18px); }
  .brand { font-size: 3.4rem; }
  .radio { margin: 6px 30px 22px; }
  .listen { min-height: 84px; font-size: 1.75rem; }
  .nav a { min-height: 58px; font-size: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .listen.playing::before, .tag-air::before { animation: none; }
}
a[href^="tel:"] { white-space: nowrap; }
