:root {
  --paper: #efeae2;
  --glass: rgba(255, 255, 255, .08);
  --glass-edge: rgba(255, 255, 255, .2);
  --glass-shine: inset 0 1px 0 rgba(255, 255, 255, .22);
  --listen-h: 44px;
  --listen-b: calc(40px + var(--safe-b));
  --safe-t: env(safe-area-inset-top);
  --safe-b: env(safe-area-inset-bottom);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; height: 100%; }
body {
  overflow: hidden;
  background: #4a4948;
  color: #f4f4f2;
  font-family: Heebo, "Arial Hebrew", Arial, sans-serif;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.stage {
  position: fixed;
  z-index: 1;
  inset: 0;
  overflow: hidden;
  opacity: 0;
  touch-action: none;
  transition: opacity .9s ease;
}
body.ready .stage { opacity: 1; }
canvas { display: block; width: 100%; height: 100%; }
.word { display: none; }
.film {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
body.nogl canvas { display: none; }
body.nogl .stage {
  background: #4a4948 url("media/plate.jpg?v=1") no-repeat;
}
body.nogl .stage::before {
  content: "";
  position: absolute;
  left: var(--px);
  top: var(--py);
  width: var(--ph);
  height: var(--ph);
  box-shadow: inset 0 0 50px 36px #4a4948;
}
body.nogl .stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(0, 0, 0, .1), rgba(0, 0, 0, .5));
}
body.nogl .word {
  display: block;
  position: absolute;
  z-index: 1;
  height: auto;
  filter: brightness(0) invert(1) drop-shadow(0 0 18px rgba(255, 255, 255, .25));
  opacity: .92;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  background-image: url("media/grain.png");
  background-size: 160px 160px;
  opacity: .07;
  mix-blend-mode: overlay;
}

.bsh {
  position: fixed;
  z-index: 5;
  top: calc(14px + var(--safe-t));
  right: 16px;
  width: 28px;
  height: auto;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .45));
}
.tools {
  position: fixed;
  z-index: 5;
  top: calc(10px + var(--safe-t));
  left: 10px;
  display: flex;
  gap: 2px;
}
.icon {
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  opacity: .9;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .45));
  cursor: pointer;
}
.icon svg { display: block; width: 18px; height: 18px; margin: 7px auto; }

#sleeve {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #1a1a1a;
}
#sleeve[open] { display: flex; align-items: flex-end; justify-content: center; }
#sleeve::backdrop { background: rgba(0, 0, 0, .62); }
.jacket {
  width: min(420px, calc(100% - 24px));
  max-height: min(92vh, 860px);
  margin: 0 0 calc(10px + var(--safe-b));
  padding: 14px 14px 8px;
  overflow: auto;
  background: var(--paper);
  border-radius: 16px;
}
.jacket header { display: flex; justify-content: flex-end; }
#close {
  margin: 0;
  padding: 4px 2px 8px;
  border: 0;
  background: none;
  color: #1a1a1a;
  font: 400 13px/1 Heebo, "Arial Hebrew", Arial, sans-serif;
  letter-spacing: .12em;
  cursor: pointer;
}
.jacket .cover { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.jacket h2, .jacket p { margin: 0; text-align: center; }
.jacket h2 {
  margin-top: 16px;
  font-family: "Frank Ruhl Libre", "Times New Roman", serif;
  font-weight: 500;
  font-size: 28px;
}
.jacket .sub { margin-top: 2px; font-family: "Frank Ruhl Libre", "Times New Roman", serif; font-size: 22px; }
.jacket .who { margin-top: 8px; font-weight: 300; font-size: 14px; letter-spacing: .08em; }
.len { margin: 4px 0 14px; font-weight: 300; font-size: 13px; letter-spacing: .14em; opacity: .7; }
.credits { margin: 0; padding: 0; list-style: none; }
.credits a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 2px;
  border-top: 1px solid rgba(0, 0, 0, .12);
  color: inherit;
  font-size: 15px;
  letter-spacing: .04em;
  text-decoration: none;
}
.credits a span { opacity: .45; font-size: 14px; }
.credits a.dead { opacity: .32; }
