/* quiescence: the rack at night, nearly still. It wakes while a track plays.
   Colours are taken from the photograph's LEDs and shadows. */

.quiescence {
    --night: #07090f;
    --dusk: #121829;
    --amber: #ffb347;
    --led-blue: #5aa9ff;
    --mist: #c9cfdb;
    --mist-dim: #7f8799;
    background: linear-gradient(180deg, var(--dusk) 0%, var(--night) 60%) fixed;
    color: var(--mist);
}

.quiescence main,
.quiescence main * {
    font-family: "Helvetica Neue", "DejaVu Sans", Arial, sans-serif;
    font-weight: 300;
}

.quiescence h1 {
    color: var(--mist);
    font-weight: 200;
    letter-spacing: 0.5em;
    text-align: center;
    text-transform: lowercase;
    text-shadow: none;
    margin: 1.5em 0;
}

.quiescence .cover {
    margin: 0 auto 2rem;
}
.quiescence .cover img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 2px;
    filter: brightness(0.4) saturate(0.5);
    transition: filter 8s ease-in-out;
}
.quiescence .player:has(li.now) .cover img {
    filter: none;
}

.quiescence .player-controls:not([hidden]) {
    justify-content: center;
    gap: 1rem;
}
.quiescence .player-controls button {
    background: transparent;
    color: var(--mist-dim);
    border: none;
    border-bottom: 1px solid rgba(201, 207, 219, 0.2);
    padding: 0.35rem 0.6rem;
    cursor: pointer;
}
.quiescence .player-controls button:hover,
.quiescence .player-controls button:focus-visible {
    color: var(--mist);
    border-bottom-color: var(--led-blue);
}
.quiescence .player-audio {
    color-scheme: dark;
    opacity: 0.8;
}

.quiescence .playlist {
    max-width: 30rem;
    margin: 1.5rem auto;
    padding-left: 2rem;
}
.quiescence .playlist li {
    list-style: decimal;  /* the site stylesheet gives li an image bullet */
    padding: 0.6rem 0.4rem;
    letter-spacing: 0.08em;
}
.quiescence .playlist li::marker {
    color: var(--mist-dim);
    font-size: 0.8em;
}
.quiescence .playlist a {
    color: var(--mist);
    text-decoration: none;
}
.quiescence .playlist li:hover a {
    color: #fff;
}
/* the playing track: one LED, breathing */
.quiescence .playlist li.now {
    font-weight: 300;
    background: none;
}
.quiescence .playlist li.now::marker {
    color: var(--amber);
}
.quiescence .playlist li.now a {
    color: var(--amber);
    animation: quiescence-breathe 6s ease-in-out infinite;
}
@keyframes quiescence-breathe {
    0%, 100% { text-shadow: 0 0 0.2em rgba(255, 179, 71, 0.2); }
    50%      { text-shadow: 0 0 0.8em rgba(255, 179, 71, 0.8); }
}

.quiescence .player-m3u {
    text-align: center;
    font-size: 0.85em;
}
.quiescence .player-m3u a {
    color: var(--mist-dim);
}

.quiescence footer {
    text-align: center;
    margin: 3rem 0 1rem;
    opacity: 0.4;
}
.quiescence footer img {
    max-width: 100%;
}

@media (prefers-reduced-motion: reduce) {
    .quiescence .cover img {
        transition: none;
    }
    .quiescence .playlist li.now a {
        animation: none;
    }
}
