/* The forest, cream paper and warm light carry through the full page. */
body { background: #edf2e8; }
.shell {
  --daylight: 1;
  --paper-border: #244b3729;
  --chrome-text: #10251c;
  --chrome-panel: #fcfef025;
  --chrome-hover: #fffdf27d;
  --chrome-icon: #40634b;
  background: radial-gradient(ellipse at 48% 4%, #254737, #14291f 70%, #12261c);
}
.shell::before {
  z-index: 0;
  opacity: var(--daylight);
  background:
    radial-gradient(ellipse at 42% 0%, #fffef1db, transparent 58%),
    linear-gradient(145deg, #f2f6ec 0%, #e8f0e4 58%, #d8e6d9 100%);
}
.shell[data-low-light] {
  --paper-border: #f2f1de4d;
  --chrome-text: #fffbee;
  --chrome-panel: #10251c72;
  --chrome-hover: #10251c58;
  --chrome-icon: #e4eec8;
}
.shell > :is(header, main, footer) { position: relative; z-index: 1; }
.masthead { padding: 8px 12px 10px; border-bottom: 1px solid var(--paper-border); color: var(--chrome-text); }
:is(.masthead, .radio-footer) { background: var(--chrome-panel); border-radius: 14px; }
.masthead .brand { color: inherit; text-decoration: none; }
.masthead .brand img { box-shadow: 0 0 0 1px #49714a51; transition: rotate .3s ease, box-shadow .3s ease; }
.masthead .brand:is(:hover, :focus-visible) img { rotate: -7deg; box-shadow: 0 0 0 4px #b2c88370; }
.masthead .brand span, .footer-brand {
  font-family: inherit;
  font-size: 25px;
  font-weight: 650;
  line-height: 1.16;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.masthead .brand span { white-space: nowrap; }
.masthead .header-actions { gap: 4px; }
.masthead .header-actions :is(.members-link, .logout) {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 39px;
  padding: 7px 6px;
  border-radius: 11px;
  color: var(--chrome-text);
  font-weight: 600;
  text-underline-offset: 4px;
  transition: background .2s, box-shadow .2s;
}
.masthead .header-actions :is(.members-link, .logout):is(:hover, :focus-visible) {
  background: var(--chrome-hover);
  box-shadow: inset 0 0 0 1px var(--paper-border);
}
.programme-links { gap: 0; }
.nav-symbol {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
  color: var(--chrome-icon);
  transition: rotate .25s, translate .25s;
}
.nav-symbol::before, .nav-symbol::after { content: ""; position: absolute; }
:is(a, button):is(:hover, :focus-visible) > .nav-symbol { translate: 0 -2px; rotate: -10deg; }
.symbol-home::before { top: 2px; width: 8px; height: 8px; rotate: 45deg; border: solid currentColor; border-width: 1.5px 0 0 1.5px; }
.symbol-home::after { inset: 7px 4px 2px; border: solid currentColor; border-width: 0 1.5px 1.5px; border-radius: 0 0 2px 2px; }
.symbol-calendar::before { inset: 3px 1px 2px; border: 1.5px solid currentColor; border-radius: 3px; background: linear-gradient(currentColor, currentColor) 0 3px / 100% 1px no-repeat; }
.symbol-calendar::after { top: 1px; left: 5px; width: 1.5px; height: 5px; background: currentColor; box-shadow: 6px 0 currentColor; }
.symbol-record { border-radius: 50%; background: radial-gradient(circle, currentColor 0 1px, #b9ce9c 1.5px 4px, currentColor 4.5px 6.5px, transparent 7px); }
:is(a, button):is(:hover, :focus-visible) > .symbol-record { rotate: 65deg; }
.symbol-record::before { top: 3px; left: 6px; width: 4px; height: 2px; border-top: 1px solid #eef4db; border-radius: 50%; }
.symbol-account::before { top: 1px; width: 6px; height: 6px; border: 1.5px solid currentColor; border-radius: 50%; }
.symbol-account::after { bottom: 1px; width: 12px; height: 7px; border: 1.5px solid currentColor; border-radius: 7px 7px 2px 2px; }
.symbol-settings { background: repeating-conic-gradient(currentColor 0deg 24deg, transparent 26deg 60deg); clip-path: circle(7px); }
.symbol-settings::before { inset: 4px; border-radius: 50%; border: 2px solid currentColor; background: #edf4dc; }
:is(a, button):is(:hover, :focus-visible) > .symbol-settings { rotate: 60deg; }
.symbol-exit::before { inset: 2px 7px 2px 1px; border: solid currentColor; border-width: 1.5px 0 1.5px 1.5px; border-radius: 3px 0 0 3px; }
.symbol-exit::after { inset: 5px 1px 5px 5px; background: currentColor; clip-path: polygon(0 39%, 62% 39%, 62% 0, 100% 50%, 62% 100%, 62% 61%, 0 61%); }
:is(a, button):is(:hover, :focus-visible) > .symbol-exit { translate: 2px 0; rotate: none; }
main { align-content: start; padding-block: clamp(24px, 4vw, 50px) 45px; }
.player-stack { margin-inline: auto; }
.player {
  width: 100%;
  max-width: 960px;
  margin-inline: auto;
  background: radial-gradient(ellipse at 95% 0, #fbf2d9, transparent 65%), var(--cream);
}
.player-context { min-height: 94px; }
.art {
  width: 100%;
  aspect-ratio: auto;
  padding: 0 14% 0 0;
  background: transparent;
}
.art::before { inset: 12% 10% 0 0; }
.record-sleeve {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  aspect-ratio: 1;
  border-radius: 15px 12px 12px 15px;
  background: var(--forest);
  box-shadow: 6px 10px 24px #12291e52;
}
.record-sleeve::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  border: 1px solid #fff9e658;
  background: linear-gradient(120deg, #fff1cc12, transparent 40%);
}
.record-sleeve .cover { inset: 0; }
.record {
  position: absolute;
  inset: 6% 4% auto auto;
  width: 76%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #222625;
  border: 1px solid #f5efdf33;
  box-shadow: 3px 8px 24px #12291e66;
  transition: transform .65s cubic-bezier(.23,.8,.33,1);
}
.record i {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    repeating-radial-gradient(circle, transparent 0 3px, #ffffff15 3px 4px, transparent 4px 6px),
    conic-gradient(from 35deg, #242a29, #686b62, #222625 24%, #111614 49%, #50564e 60%, #222625 78%, #242a29);
  animation: record-turn 8s linear infinite paused;
}
.record i::after {
  content: "";
  position: absolute;
  inset: 36%;
  border: 1px solid #faecc289;
  border-radius: 50%;
  background:
    radial-gradient(circle, #182b21 0 6%, transparent 7%),
    repeating-radial-gradient(circle, transparent 0 4px, #faecc26b 5px 6px, transparent 7px 12px),
    conic-gradient(from 45deg, #a45e42 25%, #edd28b 25% 50%, #a45e42 50% 75%, #edd28b 75%);
}
.player[data-playing="true"] .record { transform: translateX(10%); }
.player[data-playing="true"] .record i { animation-play-state: running; }
@keyframes record-turn { to { rotate: 360deg; } }
.enlarge-cover {
  position: absolute;
  z-index: 1;
  right: 8px;
  bottom: 8px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid #fff8d678;
  border-radius: 50%;
  background: #112820dd;
  color: #f5efdf;
  cursor: pointer;
  font-size: 22px;
  transition: background-color .2s, transform .2s;
}
.enlarge-cover:hover { background: #285641; transform: scale(1.08); }
.cover-dialog {
  width: min(540px, calc(100% - 30px));
  max-height: calc(100svh - 30px);
  padding: 15px;
  border: 1px solid #fff8d678;
  border-radius: 20px;
  background: var(--cream);
  color: var(--ink);
}
.cover-dialog::backdrop { background: #101c17d9; }
.cover-dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 10px; }
.cover-dialog h2 { margin: 0; font: 400 24px Georgia, serif; }
.cover-dialog button { width: 44px; height: 44px; flex: 0 0 auto; border: 0; border-radius: 50%; background: var(--lime); cursor: pointer; font-size: 22px; }
.cover-dialog img { width: 100%; max-height: calc(100svh - 120px); object-fit: contain; border-radius: 12px; }
.weather-window { max-width: 138px; }
.window-scene {
  width: 138px;
  height: 70px;
  border-radius: 27px 27px 5px 5px;
  border-color: #ac8056;
  box-shadow: 0 3px 0 #79593f, 0 6px 12px #4e332927, inset 0 0 0 1px #fff1cd90;
  transition: transform .22s, box-shadow .22s;
}
.weather-window summary { gap: 8px; }
.weather-window summary:hover .window-scene { transform: translateY(-2px); box-shadow: 0 5px 0 #79593f, 0 8px 18px #4e332937; }
.weather-window[open] .window-scene { transform: perspective(250px) rotateY(-8deg); transform-origin: left; }
.window-caption { font-size: 12px; }
.window-hill { top: 50%; }
.window-hill-front { top: 57%; }
.window-house {
  position: absolute;
  z-index: 1;
  bottom: 8px;
  right: 23px;
  width: 21px;
  height: 13px;
  border-radius: 1px;
  background: #e6ce9c;
  box-shadow: 1px 2px #1733264a;
}
.window-house::before {
  content: "";
  position: absolute;
  inset: -8px -3px auto;
  height: 9px;
  background: #97563e;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.window-house::after {
  content: "";
  position: absolute;
  inset: 4px auto auto 4px;
  width: 4px;
  height: 5px;
  background: #606f5e;
  box-shadow: 9px 0 #606f5e;
}
.weather-window[data-night="true"] .window-house { background: #56635f; }
.weather-window[data-night="true"] .window-house::before { background: #443c3d; }
.weather-window[data-night="true"] .window-house::after {
  background: #ffd18b;
  box-shadow: 9px 0 #ffd18b, 0 0 7px #ffba72, 9px 0 7px #ffba72;
}
.window-detail {
  position: absolute;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
}
.weather-window[data-sky="clear"][data-night="false"] .window-detail {
  left: 15px;
  top: 11px;
  width: 8px;
  height: 4px;
  border-bottom: 1px solid #1e493a;
  border-radius: 50%;
  box-shadow: 8px -4px 0 -1px #1e493a;
}
.weather-window[open][data-sky="clear"][data-night="false"] .window-detail { animation: window-bird 2s ease-out; }
@keyframes window-bird {
  20%, 70% { opacity: .95; }
  to { transform: translate(60px, -8px); }
}
.weather-window[data-sky="clear"][data-night="true"] .window-detail {
  top: 7px;
  left: 21px;
  width: 19px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #fff0cf);
  rotate: 28deg;
}
.weather-window[open][data-sky="clear"][data-night="true"] .window-detail { animation: window-star 1.6s ease-out; }
@keyframes window-star {
  15%, 50% { opacity: 1; }
  to { transform: translate(35px, 5px); }
}
.weather-window[open] .weather-note { animation: weather-note-in .22s ease-out; }
@keyframes weather-note-in { from { opacity: 0; transform: translateY(-6px); } }
footer { padding: 14px 12px; border-top: 1px solid var(--paper-border); color: var(--chrome-text); }
footer p { opacity: .9; }
.radio-footer { align-items: center; gap: 15px 25px; flex-wrap: wrap; }
.footer-brand { display: inline-block; margin-bottom: 6px; font-size: 20px; text-decoration: none; color: var(--chrome-text); }
.radio-footer .footer-line { max-width: 42ch; min-height: 1.5em; font-size: 13px; line-height: 1.5; }
.footer-brand:hover { text-decoration: underline; }
.footer-links { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px 11px 6px 7px;
  border: 1px solid var(--paper-border);
  border-radius: 30px;
  background: #f8f7eec7;
  color: #2d4b3b;
  text-decoration: none;
  font-weight: 650;
}
.footer-links a:is(:hover, :focus-visible) { text-decoration: underline; background: #fbfaef; }
.legal-stamp {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: 0 0 27px;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #dce7cb;
  color: #426348;
}
.stamp-lock::before, .stamp-lock::after { content: ""; position: absolute; }
.stamp-lock::before {
  inset: 5px 10px auto;
  height: 8px;
  border: 1.5px solid currentColor;
  border-radius: 6px 6px 0 0;
  transform-origin: left bottom;
  transition: rotate .25s, translate .25s;
}
.stamp-lock::after { inset: 11px 8px 6px; border: 1.5px solid currentColor; border-radius: 2px; background: radial-gradient(circle, currentColor 0 1px, #dce7cb 1.5px); }
.footer-links a:is(:hover, :focus-visible) .stamp-lock::before { rotate: 9deg; translate: 0 -1px; }
.stamp-imprint::before, .stamp-imprint::after { content: ""; position: absolute; }
.stamp-imprint::before {
  inset: 5px 8px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
  transition: rotate .25s, translate .25s;
}
.stamp-imprint::after {
  inset: 10px 11px 8px;
  background: repeating-linear-gradient(to bottom, currentColor 0 1px, transparent 1px 3px);
  transition: rotate .25s, translate .25s;
}
.footer-links a:is(:hover, :focus-visible) .stamp-imprint::before,
.footer-links a:is(:hover, :focus-visible) .stamp-imprint::after { rotate: -8deg; translate: 1px -1px; }
.schedule-dialog.legal-dialog { width: min(670px, calc(100% - 32px)); }
.legal-content { margin-top: 18px; font-size: 14px; line-height: 1.6; }
.legal-content > :first-child { margin-top: 0; }
.legal-content h3 { font-size: 16px; margin: 20px 0 6px; }
.legal-content p { margin: 0 0 13px; }
.legal-content a { color: var(--green); text-underline-offset: 3px; }
.legal-document-page {
  width: min(670px, 100%);
  padding: 28px;
  border-radius: 24px;
  background: var(--cream);
}
@container (max-width: 660px) {
  .player { max-width: 410px; }
  .player-context { min-height: 0; }
  .masthead .header-actions { column-gap: 4px; }
  .weather-window, .window-scene { width: 108px; }
  .window-scene { height: 55px; }
  .window-caption { font-size: 11px; }
  .window-house { scale: .8; transform-origin: right bottom; }
}
@container (max-width: 332px) {
  .weather-window, .window-scene { width: 91px; }
}
@media (prefers-reduced-motion: reduce) {
  .record, .window-scene, .enlarge-cover { transition: none; }
  .record i, .window-detail, .weather-note { animation: none; }
}

.scroll-play {
  position: fixed;
  z-index: 6;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  padding: 0;
  border: 1px solid #f5efdf8c;
  border-radius: 50%;
  background: #172f25;
  color: var(--forest);
  box-shadow: 0 6px 20px #0a1e17a6;
  cursor: pointer;
  animation: dock-in .36s ease-out;
}
.scroll-play:hover { background: #2b523c; }
.scroll-play:focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; }
.scroll-disc {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 1px solid #d9eb99a0;
  background: conic-gradient(from 20deg, #d9eb9950 0 34deg, transparent 34deg 177deg, #d9eb9950 177deg 200deg, transparent 200deg);
  animation: record-turn 7s linear infinite paused;
}
.scroll-play[data-playing="true"] .scroll-disc { animation-play-state: running; }
.scroll-play-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--lime);
}
.scroll-play-icon::after {
  content: "";
  margin-left: 2px;
  width: 8px;
  height: 10px;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  background: currentColor;
}
.scroll-play[data-playing="true"] .scroll-play-icon::after {
  margin: 0;
  width: 8px;
  clip-path: none;
  background: linear-gradient(90deg, currentColor 0 3px, transparent 3px 5px, currentColor 5px);
}
@keyframes dock-in { from { transform: translateY(12px) rotate(14deg); opacity: 0; } }
@container (max-width: 660px) {
  .scroll-play { width: 58px; height: 58px; }
  .controls { position: static; }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-play, .scroll-disc { animation: none; }
  .nav-symbol, .masthead .brand img, .legal-stamp::before, .legal-stamp::after { transition: none; }
  :is(a, button):is(:hover, :focus-visible) > .nav-symbol, .masthead .brand:is(:hover, :focus-visible) img { translate: none; rotate: none; }
  .footer-links a:is(:hover, :focus-visible) .stamp-lock::before { rotate: none; translate: none; }
  .footer-links a:is(:hover, :focus-visible) .stamp-imprint::before,
  .footer-links a:is(:hover, :focus-visible) .stamp-imprint::after { rotate: none; translate: none; }
}
