* {box-sizing:border-box}
html {background:#070807}
body {margin:0;min-height:100svh;background:radial-gradient(ellipse 28% 66% at 105% 44%, white, #42483e 30%, transparent),#080908;color:#f4f2ec;font:1rem/1.55 "Courier New",monospace}
.signal {position:fixed;inset:0;pointer-events:none;background:url("grain-loop.webp") center / 100% 100% no-repeat;image-rendering:pixelated}
.signal::after {
  content:"";position:absolute;right:-5vw;top:9%;width:63vw;height:77%;
  background:url("night-window.webp") center / cover no-repeat;
  mix-blend-mode:screen;opacity:.69;
  mask-image:radial-gradient(ellipse 62% 64% at 56% 45%,black 26%,transparent 85%);
}
@media(max-width:600px) {
  .signal::after {right:-20vw;top:16%;width:99vw;height:50%;opacity:.64}
}
main {position:absolute;top:47%;left:28%;width:min(44ch,65vw);padding-bottom:3rem}
header {margin:0 0 .1rem}
a {color:inherit;text-underline-offset:.15em}
a:focus-visible {outline:1px dashed currentColor;outline-offset:4px}
nav a {display:block;width:fit-content}
a:hover {text-decoration-style:dotted}
p {white-space:pre-line}
[hidden] {display:none!important}
.social {margin-top:.85rem}
@keyframes ghost {
  25% {text-shadow:-2px 0 currentColor,3px 1px #8888}
  55% {text-shadow:2px -1px currentColor,-1px 1px #8888}
  80% {text-shadow:0 1px currentColor}
}
@media (prefers-reduced-motion:no-preference) {
  :is(a,button):is(:hover,:focus-visible) {animation:ghost .32s steps(1,end) 1}
}
body[data-view="book"] {background:#fa140c;color:#160400}
body[data-view="book"] .signal {display:none}
body[data-view="book"] main {position:relative;top:auto;left:auto;width:min(100%,48rem);padding:clamp(1.2rem,4vw,4rem);padding-bottom:4rem}
.book-head,.now,.controls,.clock,.list-head,.level,.transport {display:flex;align-items:center;justify-content:space-between;gap:1rem}
.book-head {border-bottom:1px solid;padding-bottom:.55rem}
h1 {font:inherit;font-size:clamp(1.35rem,4vw,2rem);text-transform:uppercase;margin:0;letter-spacing:-.065em}
.player {margin:1.9rem 0 2.2rem}
.now {justify-content:flex-start;align-items:baseline}
.now span,.list-head,.clock {font-size:.85rem}
.now span {white-space:nowrap}
.now strong {font-weight:normal;overflow-wrap:anywhere}
.tape {position:relative;height:2.8rem;margin-top:1rem;background:#170402}
#wave,#seek {position:absolute;inset:0;width:100%;height:100%;margin:0}
#seek {opacity:0;cursor:crosshair}
.tape:focus-within {outline:1px dashed;outline-offset:3px}
.clock {margin:.14rem 0 .6rem;font-variant-numeric:tabular-nums}
button {font:inherit;color:inherit;background:none;border:0;border-radius:0;cursor:pointer;padding:0}
button:focus-visible,input:focus-visible {outline:1px dashed currentColor;outline-offset:3px}
.transport button {text-decoration:underline;text-underline-offset:.17em}
#play {min-width:5ch;text-align:center}
.level {gap:.45rem}
.level output {min-width:4ch;text-align:right}
#volume {appearance:none;width:clamp(3rem,11vw,6rem);height:1rem;background:transparent;color:inherit;cursor:pointer}
#volume::-webkit-slider-runnable-track {height:2px;background:currentColor}
#volume::-webkit-slider-thumb {appearance:none;width:6px;height:12px;background:currentColor;margin-top:-5px}
#volume::-moz-range-track {height:2px;background:currentColor}
#volume::-moz-range-thumb {width:6px;height:12px;background:currentColor;border:0;border-radius:0}
.list-head {border-bottom:1px solid;padding-bottom:.35rem}
#track-list {list-style:none;padding:0;margin:.5rem 0}
#track-list button {display:grid;grid-template-columns:3ch 1fr auto;gap:.9rem;width:100%;align-items:baseline;padding:.28rem 0;text-align:left;line-height:1.35}
#track-list button[aria-current="true"] .song {text-decoration:underline;text-underline-offset:3px}
.num,.length {font-size:.82rem;font-variant-numeric:tabular-nums}
button[aria-current="true"] .num {background:#160400;color:#fa140c;text-align:center}
#error {display:block;font-size:.875rem}
@media(max-width:600px) {main {left:17%;top:42%;width:72vw}.controls {gap:.5rem;flex-wrap:wrap}.transport{gap:.7rem}}

#home .social {display:flex;gap:.35rem;margin-left:-.25rem}
#home .social a {display:grid;place-items:center;width:2rem;height:2rem}
#home .social svg {width:1.2rem;height:1.2rem}
@keyframes link-ghost {
  20% {transform:translateX(-1px);filter:drop-shadow(3px 1px #aaa)}
  50% {transform:translateX(1px);filter:drop-shadow(-3px -1px #888)}
  78% {transform:translateX(-1px);filter:drop-shadow(2px 0 #aaa)}
}
@media (prefers-reduced-motion:no-preference) {
  #home nav a:is(:hover,:focus-visible) {animation:link-ghost .32s steps(1,end) 1}
}
