/* Quickening — per-piece styles.
 * Chrome and toast come from /engine/styles.base.css; the canvas belongs to
 * the renderer.  This sheet carries the one line of text kept on screen and
 * the row of tracks.
 * © 2026 Joshua Borsman. All rights reserved.
 */
.readout {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + clamp(1rem, 2.2vw, 3rem));
  right: calc(env(safe-area-inset-right, 0px) + clamp(1rem, 2.2vw, 3rem));
  z-index: 5;
  margin: 0;
  max-width: 62vw;
  font-family: var(--mono);
  font-size: clamp(0.72rem, 0.82vw, 1.9rem);
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.6;
  color: rgba(239, 246, 248, 0.8);
  text-align: right;
  pointer-events: none;
  font-variant-numeric: tabular-nums;
}
body.is-broken .readout { top: 50%; left: 1rem; right: 1rem; max-width: none; text-align: center; }
@media (max-width: 640px) {
  .readout { top: auto; bottom: calc(env(safe-area-inset-bottom, 0px) + 7.4rem); left: 1rem; right: 1rem; max-width: none; text-align: left; }
}
body.is-idle, body.is-idle * { cursor: none; }
/* the Sound link: a button that reads as the links beside it */
.meta-sound {
  appearance: none; background: none; border: 0; padding: 0; margin: 0;
  font: inherit; letter-spacing: inherit; color: var(--ink); cursor: pointer;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em;
}
.meta-sound[aria-pressed="true"] { color: var(--ink-faint); }
@media (max-width: 640px) { .meta-sound { padding: 0.6rem 0.4rem; margin: -0.6rem -0.4rem; } }

/* The tracks: a row of numbers at the foot of the screen, as an album's
   tracks are listed; the one playing is named, lit and underlined.  (After
   About · Artist in the markup, so the engine's mobile Stop joins that row,
   not this one.)  It leaves with the rest of the chrome. */
.chrome--bottom { justify-content: flex-start; }
.tracks { order: 2; margin-left: clamp(1rem, 4vw, 4rem); gap: clamp(0.7rem, 1.1vw, 1.4rem); }
.tracks button {
  font: inherit; letter-spacing: inherit; color: var(--ink-faint);
  background: none; border: 0; padding: 0.2rem 0; min-width: 1ch; cursor: pointer;
  text-decoration: none; text-underline-offset: 0.35em; white-space: nowrap;
  transition: color 300ms ease;
}
.tracks button:hover, .tracks button:focus-visible { color: var(--ink); }
.tracks button[aria-pressed="true"] { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; }
.chrome--bottom .copyright { order: 3; margin-left: auto; }
@media (max-width: 640px) {
  .tracks { order: -1; width: 100%; margin: 0 0 0.4rem; gap: 0.2rem; justify-content: space-between; font-size: 0.74rem; }
  .tracks button { padding: 0.5rem 0.25rem; margin: -0.3rem 0; }
}

/* The About page lists the album's tracks: each a name, a line of its measures, and its notes. */
.page-wrap h3, .about-overlay__panel h3 {
  font-family: var(--serif); font-weight: 500; font-style: italic; font-size: 1.32em;
  letter-spacing: 0.02em; color: var(--ink); margin: 2.8rem 0 0.15rem; scroll-margin-top: 2rem;
}
.page-wrap .when, .about-overlay__panel .when {
  font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.12em; line-height: 1.7;
  text-transform: uppercase; color: var(--ink-faint); margin: 0 0 1.1rem;
}
