/* Continuity: a listings column in two-colour print. Ink on cream, one spot colour
   (brick) for the button and the rule under each day. Square corners throughout. */

*, *::before, *::after { box-sizing: border-box; border-radius: 0; }

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.45 var(--font-body);
}
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

.sheet { max-width: 40rem; margin: 0 auto; padding: 56px 16px 40px; }
.sheet.wide { max-width: 72rem; }

/* Masthead */
.mast { border-bottom: 1px solid var(--ink); padding-bottom: 18px; }
h1 {
  margin: 0;
  font: 700 4.5rem/0.95 var(--font-display);
  letter-spacing: -0.035em;
}
.strap { margin: 14px 0 0; font-size: 1.2rem; font-weight: 200; line-height: 1.3; text-wrap: balance; }
.nav { margin: 10px 0 0; font-weight: 500; }
.listings h1 { font-size: 3.25rem; }

/* Player: the clock, the button, the volume */
.player { padding: 22px 0 6px; }
.label { display: block; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.clock { margin: 0 0 18px; }
#clock { font-size: 3rem; font-weight: 200; line-height: 1.1; font-variant-numeric: tabular-nums; }
.controls { display: flex; flex-wrap: wrap; align-items: end; gap: 16px 32px; }
.tune {
  appearance: none;
  border: 0;
  background: var(--c-brick);
  color: #1A1A1A;
  font: 700 1.125rem/1 var(--font-body);
  padding: 16px 28px;
  min-width: 9.5rem;
  cursor: pointer;
}
.tune:focus-visible, input:focus-visible, a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.vol { display: block; }
.vol input { display: block; margin: 6px 0 0; }
.rejoined { min-height: 1.45em; margin: 12px 0 0; font-size: 0.9rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }

input[type="range"] { appearance: none; -webkit-appearance: none; width: 11rem; height: 24px; background: transparent; margin: 0; }
input[type="range"]::-webkit-slider-runnable-track { height: 2px; background: var(--ink); border: 0; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 10px; height: 22px; margin-top: -10px; background: var(--ink); border: 0; border-radius: 0; }
input[type="range"]::-moz-range-track { height: 2px; background: var(--ink); border: 0; }
input[type="range"]::-moz-range-thumb { width: 10px; height: 22px; background: var(--ink); border: 0; border-radius: 0; }

/* The day block, shared by both pages */
.column { margin-top: 22px; }
.day { margin: 0 0 28px; }
.head {
  margin: 0 0 6px;
  padding: 0 0 5px;
  border-bottom: 3px solid var(--c-brick);
  font: 700 1rem/1.3 var(--font-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  break-after: avoid;
}
.rows { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.rows td { padding: 1px 0; line-height: 1.4; vertical-align: baseline; }
.rows .t { width: 5.6em; font-weight: 700; white-space: nowrap; }
.rows .ti { overflow-wrap: anywhere; }
.rows .len { width: 3.6em; text-align: right; white-space: nowrap; }
.note { font-size: 0.8em; color: var(--ink-soft); }
.rows tr { break-inside: avoid; }
tr.open td.ti { position: relative; }
tr.open td.ti::after {
  content: "";
  position: absolute;
  left: 0; right: 0.6em; bottom: 0.5em;
  border-bottom: 2px dotted var(--ink);
}
tr.none td.ti { color: var(--ink-soft); }

.refused { margin: -12px 0 28px; break-inside: avoid; }
.refused h3 { margin: 0 0 2px; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); border-top: 1px solid var(--ink); padding-top: 6px; }
.refused .rows td { padding: 0; }

.days { margin-top: 26px; }
@media (min-width: 900px) {
  .days { columns: 2; column-gap: 56px; column-rule: 1px solid var(--ink); }
}

.more { margin: 0 0 28px; font-weight: 500; }

/* Colophon */
.colophon { border-top: 1px solid var(--ink); padding-top: 12px; font-size: 0.78rem; color: var(--ink-soft); }
.colophon p { margin: 0 0 6px; max-width: 40rem; }
.colophon .legal { font-size: 0.7rem; letter-spacing: 0.02em; }
.colophon .mark { margin-top: 14px; }
.colophon .mark img { display: inline-block; vertical-align: top; height: 24px; width: auto; }

@media (max-width: 480px) {
  .sheet { padding-top: 36px; }
  h1 { font-size: 3.25rem; }
  .listings h1 { font-size: 2.6rem; }
  .strap { font-size: 1.15rem; }
  #clock { font-size: 2.5rem; }
}

/* Dark: the tokens flip the ground and the ink; the plum wordmark sits on a cream
   label so it stays legible. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .colophon .mark img { background: var(--c-cream); padding: 4px 6px; height: 32px; }
}
[data-theme="dark"] .colophon .mark img { background: var(--c-cream); padding: 4px 6px; height: 32px; }

/* Print: light ground, ink only, A4, days in two columns. */
@page { size: A4; margin: 12mm; }
@media print {
  :root, :root:not([data-theme="light"]) { --bg: #fff; --ink: #000; --ink-soft: #555; color-scheme: light; }
  body { background: #fff; color: #000; font-size: 8.5pt; }
  .sheet, .sheet.wide { max-width: none; padding: 0; }
  .player, .more, .nav, script { display: none; }
  h1, .listings h1 { font-size: 22pt; }
  .strap { font-size: 10pt; }
  .head { border-bottom-color: #000; }
  .days { columns: 2; column-gap: 8mm; column-rule: 0.5pt solid #000; }
  .colophon { margin-top: 4mm; font-size: 7.5pt; }
  .colophon .legal, .refused h3 { font-size: 7pt; }
  :root .colophon .mark img, :root:not([data-theme="light"]) .colophon .mark img { filter: grayscale(1); background: none; padding: 0; height: 18px; }
  a { text-decoration: none; }
}
