/* The text face and the lower-case italic links follow boringdivine.au. */
@font-face { font-family: "EB Garamond"; font-display: swap; font-weight: 400; src: url("fonts/EBGaramond-400.woff2") format("woff2"); }
@font-face { font-family: "EB Garamond"; font-display: swap; font-weight: 400; font-style: italic; src: url("fonts/EBGaramond-400i.woff2") format("woff2"); }
@font-face { font-family: "DB Blackletter DS"; font-display: block; src: url("fonts/blackletter_ds.ttf") format("truetype"); }
@font-face { font-family: "DB Morris Roman"; font-display: block; src: url("fonts/morris_roman.ttf") format("truetype"); }
@font-face { font-family: "DB Eagle Lake"; font-display: block; src: url("fonts/eagle_lake.ttf") format("truetype"); }
:root {
  --dark: #08090c; --light: #ede6d6; --slate: #262b35;
  --step-0: 1.0625rem; --step-1: 1.375rem;
  --space-1: 0.5rem; --space-2: 1rem; --space-3: 2rem; --space-4: 4rem;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { background: var(--dark); color: var(--light); font: italic 400 var(--step-0)/1.5 "EB Garamond", Georgia, serif; overflow: hidden; }
/* The photograph is a little larger than the window, so its slow drift never shows an edge.
   Its bottom right corner holds the head, so that corner stays in view at every window shape. */
.photo { position: fixed; inset: -3%; z-index: -2; background: var(--slate) url("slate-2000.jpg") right bottom / cover no-repeat; animation: drift 90s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.05) translate(-1%, -1%); } }
/* The veil is dark in a quiet passage and lifts as the music gets loud. The script sets --veil. */
.veil { position: fixed; inset: 0; z-index: -1; background: var(--dark); opacity: var(--veil, 0.45); transition: opacity 0.6s linear; }
/* The fog adds its light to the page under it, so its black parts show nothing. */
#fog { position: fixed; inset: auto 0 0 0; z-index: -1; width: 100%; height: 34vh; mix-blend-mode: screen; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .photo { animation: none; } }
main { text-shadow: 0 0 0.4em rgb(8 9 12 / 0.9), 0 0 0.15em rgb(8 9 12 / 0.9); }
h1 { margin: 0; font-size: var(--step-1); font-weight: 400; font-style: normal; letter-spacing: 0.08em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 0.3em; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; text-shadow: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:is(a, button, input, canvas):focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
#art { display: block; image-rendering: pixelated; }
/* Without WebGL2 the canvas is white on black, and this blend shows only the white. */
#art.plain { mix-blend-mode: screen; }
.hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* The track list. The track that plays is upright and full, and the others are dim. */
.tracks { list-style: none; margin: 0; padding: 0; width: 100%; }
.tracks button { display: flex; justify-content: space-between; gap: var(--space-2); width: 100%; min-height: 1.75rem; text-align: left; opacity: 0.62; }
.tracks button:hover { opacity: 1; }
.tracks button[aria-current="true"] { opacity: 1; font-style: normal; }
.tracks .length { font-variant-numeric: tabular-nums; }
.tracks a { display: block; width: max-content; margin-left: auto; min-height: 1.5rem; margin-top: -0.25rem; font-size: 0.8125rem; opacity: 0.5; }
.tracks a:hover { opacity: 1; }
.sub { letter-spacing: 0.3em; margin-right: -0.3em; opacity: 0.62; }
.transport { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--space-2); width: 100%; }
.transport button { min-width: 3rem; min-height: 1.75rem; text-align: left; }
.transport output { font-variant-numeric: tabular-nums; font-size: 0.9375rem; }
/* The position in the track is one thin line. Its height gives the pointer a larger target. */
input[type="range"] { appearance: none; width: 100%; height: 1.5rem; margin: 0; background: none; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 1px; background: currentColor; }
input[type="range"]::-moz-range-track { height: 1px; background: currentColor; }
input[type="range"]::-webkit-slider-thumb { appearance: none; width: 0.5rem; height: 0.5rem; margin-top: calc(-0.25rem + 0.5px); background: currentColor; border: 0; border-radius: 0; }
input[type="range"]::-moz-range-thumb { width: 0.5rem; height: 0.5rem; background: currentColor; border: 0; border-radius: 0; }
.foot { display: flex; justify-content: space-between; width: 100%; opacity: 0.62; }
.foot :is(a, button) { min-height: 1.5rem; }
