* { box-sizing: border-box; margin: 0; padding: 0; }

html { background: #000; }

body {
  color: #fff;
  font: 12px/1.5 Arial, Helvetica, sans-serif;
  letter-spacing: .01em;
  padding: 20px 16px 56px; /* room for the song pill */
  max-width: 1100px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
a:hover { background: #fff; color: #000; text-decoration: none; }

::selection { background: #fff; color: #000; }

.dim { color: #777; }

/* the name */
.name {
  font: 900 clamp(54px, 16.5vw, 178px)/.82 "Arial Black", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: -.055em;
  margin: 0 0 28px -.04em;
  white-space: nowrap;
}
.name a { text-decoration: none; color: inherit; }
.name a:hover { background: none; color: inherit; }
.name sup { font-size: .16em; letter-spacing: 0; vertical-align: top; position: relative; top: .35em; }

/* info rows */
.row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  border-top: 1px solid #fff;
  padding: 10px 0 26px;
}
.label { color: #777; margin-bottom: 6px; }

/* album covers */
.covers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.cover {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border: 0;
  padding: 0;
  margin-bottom: 6px;
  cursor: pointer;
  position: relative;
  background: var(--img) center / cover no-repeat, #111;
  filter: grayscale(1) contrast(1.1);
  transition: filter .25s;
}
.cover:hover, .track.on .cover { filter: none; }
.plays {
  position: absolute;
  top: 6px;
  left: 6px;
  background: #000;
  color: #fff;
  font: 11px Arial, Helvetica, sans-serif;
  padding: 0 4px;
}
.bar {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 0;
  background: #fff;
}
.track.on .plays::after { content: " ▶"; }
.track.on .cover { animation: push 8s ease-in-out infinite alternate; }
@keyframes push { from { background-size: 100%; } to { background-size: 114%; } }

[hidden] { display: none !important; }

[hidden] { display: none !important; }

.booking { margin-top: 14px; }

/* guestbook */
.gb-form { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.gb-form input, .gb-form button {
  font: inherit;
  color: #fff;
  background: #000;
  border: 1px solid #fff;
  border-radius: 0;
  padding: 4px 6px;
}
.gb-form input[name="name"] { width: 120px; }
.gb-form input[name="msg"] { flex: 1; min-width: 180px; }
.gb-form input::placeholder { color: #777; }
.gb-form input:focus { outline: none; background: #111; }
.gb-form button { cursor: pointer; }
.gb-form button:hover { background: #fff; color: #000; }
.gb-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.gb-note { min-height: 18px; margin-bottom: 4px; }
.gb-list { list-style: none; max-height: 260px; overflow-y: auto; }
.gb-list li { padding: 3px 0; border-bottom: 1px solid #222; overflow-wrap: anywhere; }
.gb-name { color: #777; }
.gb-name::after { content: ":"; }

/* header: the fangs rest on the line. click = they snap */
.hero { position: relative; padding-bottom: 28px; }
.hero .name { margin-bottom: 0; }
.fangs {
  position: absolute;
  right: 0;
  bottom: 4px;
  width: 150px;
  height: auto;
  cursor: pointer;
}
.fangs.snap { animation: snap .5s ease-in-out; }
@keyframes snap {
  0%   { transform: none; }
  30%  { transform: scale(1.14) rotate(-8deg); }
  55%  { transform: scale(.94) rotate(4deg); }
  100% { transform: none; }
}

footer { position: relative; }

/* orlok: floats over the page. "lighten" makes his black coat see-through,
   so only the face and claws show and nothing underneath gets covered */
.lurker {
  position: fixed;
  left: -20px;
  bottom: -30px;
  z-index: 5;
  pointer-events: none;
  mix-blend-mode: lighten;
  opacity: 0;
  transition: opacity 2s ease-in;
}
.lurker video { height: min(62vh, 560px); width: auto; display: block; }
.lurker.on { opacity: 1; }

/* the bat: hovers over the footer line. click = flies off, swoops back */
.bat {
  position: absolute;
  right: 0;
  bottom: 100%;
  margin-bottom: 18px;
  width: 230px;
  height: auto;
  cursor: pointer;
  animation: hover 3.4s ease-in-out infinite;
}
@keyframes hover {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-12px) rotate(2deg); }
}
.bat.away { animation: flyaway 1.3s ease-in forwards; }
@keyframes flyaway {
  to { transform: translate(-55vw, -110vh) scale(.3) rotate(-25deg); opacity: 0; }
}
.bat.back { animation: swoop 1.6s ease-out; }
@keyframes swoop {
  from { transform: translate(35vw, -70vh) scale(.35) rotate(20deg); opacity: 0; }
  to { transform: none; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .bat { animation: none; } }
/* room for the bat above the footer line */
.bat-room { height: 150px; flex: none; }

/* background song pill */
.bgm {
  position: fixed;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font: 11px Arial, Helvetica, sans-serif;
  color: #fff;
  background: #000;
  border: 1px solid #fff;
  padding: 4px 10px;
  cursor: pointer;
}
.bgm:hover { background: #fff; color: #000; }
.eq { display: inline-flex; align-items: flex-end; gap: 1px; height: 9px; }
.eq i { width: 2px; height: 3px; background: currentColor; }
.bgm.playing .eq i { animation: eq .7s ease-in-out infinite alternate; }
.bgm.playing .eq i:nth-child(2) { animation-delay: -.3s; }
.bgm.playing .eq i:nth-child(3) { animation-delay: -.55s; }
@keyframes eq { from { height: 2px; } to { height: 9px; } }

footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #fff;
  padding-top: 10px;
  color: #777;
}

.row.four { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 640px) {
  .row { grid-template-columns: 1fr; gap: 22px; }
  .row.four { grid-template-columns: 1fr 1fr; }
  .fangs { width: 84px; }
  .bat { width: 170px; }
  .bat-room { height: 110px; }
  .lurker { left: -40px; bottom: -20px; }
  .lurker video { height: 50vh; }
}
