/* Taint the Wishing Well: oxblood and ember around a verdigris rim, in chalk.
   Colours are taken from the two photographs of the well. */

.wishing-well {
    --oxblood: #1c0806;
    --rust: #5a1e12;
    --ember: #e0603a;
    --verdigris: #3f8a76;
    --chalk: #e6dccb;
    --chalk-dim: #b3a593;
    background: radial-gradient(ellipse at 50% 20%, #3a120b 0%, var(--oxblood) 55%, #080202 100%) fixed;
    color: var(--chalk);
}

.wishing-well main,
.wishing-well main * {
    font-family: Georgia, "Times New Roman", serif;
}

.wishing-well h1 {
    color: var(--chalk);
    font-weight: normal;
    font-style: italic;
    letter-spacing: 0.08em;
    text-align: center;
    text-shadow: 0 0 0.3em var(--ember), 0 0 1em var(--rust);
}

/* the well: two photographs stacked; the clear one fades out while a track plays */
.wishing-well .well {
    position: relative;
    margin: 0 auto 1.5rem;
    aspect-ratio: 16 / 9;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(63, 138, 118, 0.5), 0 0 2.5rem rgba(224, 96, 58, 0.25);
}
.wishing-well .well img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
}
.wishing-well .well-clear-link {
    transition: opacity 12s ease-in-out;
}
.wishing-well .player:has(li.now) .well-clear-link {
    opacity: 0;
    pointer-events: none;  /* the tainted image's link takes over */
}

/* controls */
.wishing-well .player-controls:not([hidden]) {
    justify-content: center;
}
.wishing-well .player-controls button {
    background: rgba(28, 8, 6, 0.8);
    color: var(--chalk);
    border: 1px solid var(--verdigris);
    border-radius: 3px;
    padding: 0.35rem 0.8rem;
    cursor: pointer;
}
.wishing-well .player-controls button:hover,
.wishing-well .player-controls button:focus-visible {
    border-color: var(--ember);
    box-shadow: 0 0 0.6rem rgba(224, 96, 58, 0.5);
}
.wishing-well .player-audio {
    color-scheme: dark;
}

/* the track list */
.wishing-well .playlist {
    padding-left: 2.2rem;
}
.wishing-well .playlist li {
    list-style: decimal;  /* the site stylesheet gives li an image bullet */
    border-left: 2px solid transparent;
    border-radius: 2px;
}
.wishing-well .playlist li::marker {
    color: var(--ember);
}
.wishing-well .playlist a {
    color: var(--chalk);
    text-decoration: none;
}
.wishing-well .playlist li:hover a {
    color: #fff;
    text-shadow: 0 0 0.4em var(--ember);
}
.wishing-well .playlist li.now {
    font-weight: normal;
    background: linear-gradient(90deg, rgba(90, 30, 18, 0.7), transparent);
    border-left-color: var(--verdigris);
}
.wishing-well .playlist li.now a {
    color: #fff;
    text-shadow: 0 0 0.5em var(--ember);
}
.wishing-well .track-description {
    color: var(--chalk-dim);
}

.wishing-well .player-m3u {
    text-align: center;
    font-size: 0.9em;
}
.wishing-well .player-m3u a {
    color: var(--verdigris);
}

.wishing-well footer {
    text-align: center;
    margin: 2rem 0 1rem;
    opacity: 0.6;
}
.wishing-well footer img {
    max-width: 100%;
}

@media (prefers-reduced-motion: reduce) {
    .wishing-well .well-clear-link {
        transition: none;
    }
}
