:root {
  color-scheme: light;
  --blue: #174ed3;
  --blue-deep: #10399f;
  --cream: #f3ead4;
  --paper: #fffcf3;
  --ink: #181916;
  --coral: #ff6556;
  font-family: "Instrument Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; line-height: 1.5; }
a { color: inherit; text-underline-offset: .2em; }
button { font: inherit; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }
.wrap { width: min(100% - 3rem, 76rem); margin-inline: auto; }
.skip { position: absolute; z-index: 3; top: .5rem; left: .5rem; background: var(--paper); padding: .5rem 1rem; transform: translateY(-150%); }
.skip:focus { transform: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

.masthead { border-bottom: 2px solid var(--ink); }
.site-bar { background: #0b1f3a; color: var(--paper); }
.site-nav, .radio-nav { display: flex; align-items: center; flex-wrap: wrap; }
.site-nav { gap: 0 clamp(.65rem, 3vw, 2rem); }
.site-nav a, .site-menu summary, .radio-nav a { font-size: .9rem; font-weight: 750; text-decoration: none; }
.site-nav > a, .site-menu summary { display: flex; align-items: center; min-height: 2.65rem; }
.site-home { color: #ffdc82; }
.site-nav a:hover, .site-menu summary:hover, .radio-nav a:hover, .footer a:hover { text-decoration: underline; }
.site-menu { position: relative; margin-left: auto; }
.site-menu summary { cursor: pointer; list-style: none; gap: .4rem; }
.site-menu summary::-webkit-details-marker { display: none; }
.site-menu summary::after { content: ""; width: .42rem; height: .42rem; border-right: 1px solid; border-bottom: 1px solid; transform: translateY(-.1rem) rotate(45deg); }
.site-menu[open] summary::after { transform: translateY(.1rem) rotate(225deg); }
.site-menu-links { position: absolute; z-index: 2; right: 0; width: min(14.5rem, calc(100vw - 2rem)); padding: .35rem; background: #0b1f3a; border: 1px solid #7891b1; border-radius: .4rem; box-shadow: 0 .5rem 1rem #0003; }
.site-menu-links a { display: flex; align-items: center; min-height: 2.5rem; padding: .3rem .6rem; }
.site-menu-links a[aria-current="page"] { color: #ffdc82; }
.header-inner { display: flex; justify-content: space-between; align-items: center; gap: .75rem 2rem; min-height: 5rem; }
.brand { text-decoration: none; display: inline-grid; line-height: 1; padding-block: .65rem; }
.brand strong { font-weight: 950; font-size: 1.55rem; letter-spacing: -.07em; white-space: nowrap; }
.brand b { color: var(--blue); font-size: 2.25rem; }
.brand small { font-size: .64rem; letter-spacing: .22em; font-weight: 850; margin-top: .2rem; }
.radio-nav { gap: .25rem clamp(.8rem, 3.4vw, 2.6rem); }
.radio-nav a { padding-block: .65rem; }

.tuning {
  padding-block: clamp(2rem, 4.8vw, 4rem);
  background: radial-gradient(#ffffff18 1px, transparent 1px) 0 0 / 10px 10px,
    linear-gradient(115deg, #205bdf, var(--blue-deep));
  color: var(--paper);
}
.station-intro, .advertising-intro {
  display: flex;
  justify-content: space-between;
  align-items: end;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  margin-bottom: 1.65rem;
}
h1, .advertising h2, .listings h2 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 500;
  letter-spacing: -.065em;
  line-height: .98;
}
h1 { font-size: clamp(3.15rem, 7.2vw, 6.9rem); }
.station-intro p, .advertising-intro p { margin-top: .75rem; font-size: 1.06rem; }
.test-link { font-size: .92rem; font-weight: 720; padding-block: .4rem; }
.tuner { display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(16rem, 1fr); align-items: start; gap: 1rem; }
.channel-list h2 { font-size: 1.08rem; margin-bottom: .7rem; }
.channel-section + .channel-section { margin-top: 1.2rem; }
.channel-section h3 { margin-bottom: .45rem; font-size: .98rem; }
.channel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: .55rem; }
.channel-card { position: relative; min-width: 0; }
.channel {
  background: var(--paper);
  color: var(--ink);
  border: 2px solid transparent;
  border-radius: .55rem;
  min-height: 4.5rem;
  text-align: left;
  width: 100%;
  padding: .62rem 2.75rem .6rem 2.15rem;
  display: grid;
  align-content: center;
  position: relative;
  gap: .12rem;
  cursor: pointer;
  overflow-wrap: anywhere;
}
.channel::before { content: ""; position: absolute; left: .8rem; top: 50%; width: .57rem; height: .57rem; transform: translateY(-50%); border: 1px solid #686254; border-radius: 50%; }
.channel[data-status="live"]::before { width: .64rem; height: .68rem; border: 0; border-radius: 0; background: var(--blue); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.channel:hover { background: #e5ecff; }
.channel[aria-pressed="true"] { background: #ffe2d6; border-color: var(--coral); }
.channel:focus-visible { outline-color: var(--paper); }
.channel small { color: #504b42; font-size: .77rem; font-weight: 650; }
.channel[data-status="live"] small { color: #245839; }
.channel-favourite {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: .15rem;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: .35rem;
  background: transparent;
  color: var(--blue-deep);
  font-size: 1.33rem;
}
.channel-favourite:hover, .channel-favourite[aria-pressed="true"] { background: #f3ead4; color: #73460b; }
.favourite-menu {
  position: fixed;
  z-index: 5;
  padding: .2rem;
  border: 1px solid #9b8c78;
  border-radius: .5rem;
  background: var(--paper);
  box-shadow: 0 .3rem 1rem #0003;
  color: var(--ink);
}
.favourite-menu button {
  padding: .65rem .8rem;
  border: 0;
  border-radius: .3rem;
  background: #e5ecff;
  color: inherit;
  cursor: pointer;
}
.favourite-menu button:focus-visible { outline-offset: -2px; }
.message:not(:empty) { margin-bottom: .8rem; }
.message:empty, .feedback:empty, .artist:empty { display: none; }
.player {
  position: sticky;
  top: 1rem;
  margin-top: 2.3rem;
  padding: 1.2rem 1.3rem 1.35rem;
  background: var(--ink);
  border: 1px solid #ffffff50;
  border-radius: .8rem;
  min-width: 0;
  overflow-wrap: anywhere;
}
.player h2 { font-size: 1.55rem; line-height: 1.15; }
.status { color: #ff9386; font-size: .82rem; font-weight: 780; margin-bottom: .4rem; }
.track { margin-top: .6rem; }
.artist, .feedback { color: #dfd8c7; font-size: .9rem; margin-top: .35rem; }
.controls, .votes { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; }
.controls { margin-top: 1rem; }
.button, .vote {
  display: inline-flex;
  gap: .5rem;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: .45rem;
  font-size: .92rem;
  font-weight: 750;
  padding: .45rem .85rem;
  cursor: pointer;
}
.play { background: var(--coral); color: var(--ink); }
.play:disabled { color: #292720; background: #cec6b5; cursor: default; }
.play:focus-visible { outline-color: var(--paper); }
.vote { background: transparent; color: var(--paper); border-color: #a39b8a; }
.vote[aria-pressed="true"] { background: var(--paper); color: var(--ink); }
.play:not(:disabled):hover { background: #ff958a; }

.advertising, .listings { padding-block: clamp(2.5rem, 5vw, 4.6rem); background: var(--paper); border-bottom: 2px solid var(--ink); }
.listings { background: #f9f2df; }
.advertising h2, .listings h2 { font-size: clamp(2.4rem, 5.2vw, 4rem); }
.advertising-intro p { max-width: 42rem; }
.primary { background: var(--blue); color: white; }
.primary:hover { background: var(--blue-deep); }
.primary:focus-visible { outline-color: var(--blue-deep); }
.rates { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
.listing-rates { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rate { display: flex; flex-direction: column; gap: .45rem; padding: 1rem; border: 1px solid #c9c2ae; border-radius: .65rem; background: white; }
.rate h3, .production h3 { font-size: 1.08rem; line-height: 1.22; }
.rate-price { color: var(--blue-deep); font-size: 1.7rem; font-weight: 820; letter-spacing: -.04em; }
.rate-price span { color: var(--ink); font-size: .85rem; font-weight: 600; letter-spacing: 0; }
.rate-description { flex: 1; font-size: .92rem; }
.order-link { color: var(--blue-deep); font-weight: 780; padding-block: .42rem; }
.listing-actions { display: flex; flex-wrap: wrap; gap: 0 1rem; font-size: .92rem; }
.price-note { margin-top: .8rem; font-size: .86rem; color: #514a3e; }
.production { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem 1rem; margin-top: 1.6rem; padding: 1rem; background: var(--cream); border-radius: .55rem; }
.production p { margin-top: .35rem; font-size: .92rem; }
.footer { display: flex; flex-wrap: wrap; gap: .6rem 1.25rem; padding-block: 1.25rem; font-size: .88rem; }
.footer span { margin-right: auto; font-weight: 750; }

@media (max-width: 56rem) {
  .rates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 43rem) {
  .wrap { width: calc(100% - 2rem); }
  .listing-rates { grid-template-columns: minmax(0, 1fr); }
  .tuner { grid-template-columns: minmax(0, 1fr); }
  .channel-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 11.75rem), 1fr)); }
  .player { position: static; grid-row: 1; margin-top: 0; }
}
@media (max-width: 25rem) {
  .header-inner { gap: .4rem; }
  .site-nav { gap: 0 .65rem; }
  .site-nav > a, .site-menu summary { font-size: .8rem; min-height: 2.25rem; }
  .radio-nav { gap: 0 .65rem; justify-content: flex-end; }
  .radio-nav a { font-size: .8rem; padding-block: .3rem; }
  .rates { grid-template-columns: minmax(0, 1fr); }
}
