/* Space & Time station player. Tokens, type, button and on-air treatment are copied from the
   project page (personal-site src/space-and-time.njk). Red only for the dot, the numerals and the button. */
:root {
  --ink: #232120;
  --paper: #f2eee6;
  --red: #d8322a;
  --ink-2: #6b6660;
  --paper-2: #a8a29a;
  --rule: rgba(35,33,32,.18);
  --rule-ink: rgba(242,238,230,.16);
  --track-d: -0.055em;
  --track-t: -0.025em;
  --wrap: 1200px;
  --pad: 48px;
  --gut: 24px;
  --sec: 120px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 18px/1.5 'Inter Tight', 'Helvetica Neue', Arial, sans-serif; letter-spacing: var(--track-t); }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.quiet { margin: 0 0 16px; font-size: 16px; font-weight: 500; color: var(--ink-2); }

/* Hero: ink ground, blurred wordmark, on-air block */
.hero { background: var(--ink); color: var(--paper); }
.hero .wrap { padding-top: 56px; padding-bottom: 64px; }
.hero h1 { margin: 0; }
.hero h1 img { width: 100%; max-width: 420px; margin-left: -3.4%; }

.now { margin-top: 56px; }
.onair-lab { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--paper-2); }
.onair-dot { display: inline-block; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--red); }
.onair-dot[hidden] { display: none; }
.now-body { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 0 32px; align-items: end; margin-top: 20px; }
.cover { width: 200px; height: 200px; background: rgba(242,238,230,.08); box-shadow: 0 0 0 1px var(--rule-ink); overflow: hidden; }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.track { min-width: 0; }
.title { margin: 0; font-size: clamp(30px, 4.6vw, 56px); font-weight: 700; line-height: 1.02; letter-spacing: var(--track-d); color: var(--paper); overflow-wrap: anywhere; text-wrap: balance; }
.artist { margin: 12px 0 0; font-size: 22px; font-weight: 500; line-height: 1.25; color: var(--paper-2); overflow-wrap: anywhere; }
.album { margin: 4px 0 0; font-size: 16px; font-weight: 500; color: var(--paper-2); overflow-wrap: anywhere; }
.album:empty, .artist:empty, .showline:empty { display: none; }
.showline { margin: 20px 0 0; font-size: 16px; font-weight: 500; color: var(--paper-2); }
.showline strong { color: var(--paper); font-weight: 600; }
@media (prefers-reduced-motion: no-preference) {
  .onair-dot { animation: onair-pulse 2.4s ease-in-out infinite; }
}
@keyframes onair-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

/* Sections */
.sec { padding-top: 56px; }
main > .sec:last-child { padding-bottom: 96px; }
.sec-head { display: flex; gap: 0 .35em; align-items: baseline; margin: 0 0 16px; padding-top: 14px; border-top: 3px solid currentColor; font-size: 44px; font-weight: 700; line-height: 1.02; letter-spacing: var(--track-d); }
.sec-head .n { color: var(--red); font-variant-numeric: tabular-nums; }

/* Button: red, square, 20 px bold paper text, 56 px tall, arrow, ink hover */
.button { display: inline-flex; align-items: center; gap: 14px; min-height: 56px; padding: 14px 26px; background: var(--red); color: var(--paper); border: 0; border-radius: 0; cursor: pointer; text-decoration: none; font: 700 20px/1.2 'Inter Tight', 'Helvetica Neue', Arial, sans-serif; letter-spacing: var(--track-t); }
.button:hover { background: var(--ink); }
.button:disabled { opacity: .6; cursor: default; }
.button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.controls-sec { padding-top: 40px; }
.controls { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 40px; }
.volume { display: flex; align-items: center; gap: 14px; font-size: 16px; font-weight: 500; color: var(--ink-2); }
.volume input { width: 200px; height: 44px; margin: 0; accent-color: var(--ink); }
#status { margin-top: 16px; min-height: 1.5em; }

/* Gate */
.gate-h { margin: 0 0 8px; font-size: 44px; font-weight: 700; line-height: 1.02; letter-spacing: var(--track-d); }
.gate-form label { display: block; margin: 24px 0 8px; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.gate-row { display: flex; flex-wrap: wrap; gap: 12px; }
.gate-row input { flex: 1 1 240px; min-width: 0; max-width: 420px; min-height: 56px; padding: 0 16px; border: 1px solid var(--ink); border-radius: 0; background: var(--paper); color: var(--ink); font: 500 18px 'Inter Tight', sans-serif; letter-spacing: var(--track-t); }
.gate-msg { margin: 14px 0 0; min-height: 1.5em; font-size: 16px; font-weight: 600; }

/* Today: a ruled schedule */
.shows { list-style: none; margin: 24px 0 0; padding: 0; border-top: 1px solid var(--ink); }
.show { display: grid; grid-template-columns: 200px minmax(0, 1fr); column-gap: var(--gut); padding: 20px 0 22px; border-bottom: 1px solid var(--rule); }
.show .when { padding-top: 6px; font-size: 15px; font-weight: 500; line-height: 1.4; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.show h3 { margin: 0; font-size: 28px; font-weight: 700; line-height: 1.05; letter-spacing: var(--track-d); }
.show .dj { margin-top: 6px; font-size: 15px; font-weight: 600; }
.show .what { margin: 10px 0 0; max-width: 40em; font-size: 16px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.show .what:empty { display: none; }
.show .live { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.show .live::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--red); }
.show.is-current { border-bottom-color: var(--ink); }

.foot { background: var(--ink); color: var(--paper-2); }
.foot .wrap { padding-top: 40px; padding-bottom: 40px; }
.foot .inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 32px; }
.foot p { margin: 0; font-size: 15px; font-weight: 500; }
.foot a { color: var(--paper); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.foot a:hover { color: var(--red); }
.foot a:focus-visible { outline-color: var(--paper); }

@media (max-width: 860px) {
  :root { --pad: 32px; }
  .sec-head, .gate-h { font-size: 36px; }
}
@media (max-width: 640px) {
  :root { --pad: 20px; --gut: 12px; }
  body { font-size: 17px; }
  .hero .wrap { padding-top: 40px; padding-bottom: 48px; }
  .hero h1 img { max-width: 300px; }
  .now { margin-top: 40px; }
  .now-body { grid-template-columns: 1fr; gap: 20px; align-items: start; }
  .cover { width: min(100%, 280px); height: auto; aspect-ratio: 1 / 1; }
  .artist { font-size: 19px; }
  .sec-head, .gate-h { font-size: 32px; }
  .button { width: 100%; justify-content: center; }
  .gate-row { display: block; }
  .gate-row input { display: block; width: 100%; max-width: none; margin-bottom: 12px; }
  .gate-row .button { width: 100%; }
  .foot .inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .foot p { overflow-wrap: anywhere; }
  .controls { gap: 16px; }
  .volume { width: 100%; }
  .volume input { flex: 1; width: auto; }
  .show { grid-template-columns: 1fr; }
  .show .when { order: 2; padding-top: 4px; }
  .show .who { order: 1; }
  .show .what { order: 3; }
  .show h3 { font-size: 24px; }
}
.show .when { grid-column: 1; grid-row: 1 / span 2; }
.show .who { grid-column: 2; grid-row: 1; }
.show .what { grid-column: 2; grid-row: 2; }
@media (max-width: 640px) {
  .show .when, .show .who, .show .what { grid-column: 1; grid-row: auto; }
}
.takeover { margin: 8px 0 0; color: var(--ink); font-weight: 600; }
