:root {
  --ink: #0b0b0c;
  --text: #ece8e4;
  --muted: #8a8582;
  --red: #b3121c;
  --red-bright: #e0303b;
  --blood: #a3080c;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--ink);
  color: var(--text);
  font: 400 15px/1.5 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* film grain over the whole page; it is part of the page, so it scrolls with it */
body::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  background: url("/images/grain.png") repeat;
  background-size: 256px 256px;
  opacity: .065;
}

/* signup bar (shared Fourwinds component) */
fw-signup {
  --fws-accent: var(--red);
  --fws-accent-fg: #fff;
  --fws-line: #2c2c30;
  --fws-muted: #6f6a67;
  --fws-size: 13px;
  --fws-case: uppercase;
  --fws-spacing: .14em;
  border-bottom: 1px solid #1c1c1f;
  position: relative;
  z-index: 10;
}
fw-signup .fws-form { position: relative; }
/* the field sits in front of the blood, so drips appear to come from underneath it */
fw-signup .fws-input { position: relative; z-index: 2; background: var(--ink); }
fw-signup .fws-btn { position: relative; z-index: 2; }

/* blood dripping from under the email field (drips.js builds and places them) */
.drips {
  position: absolute;
  z-index: 1;
  height: 140px;
  pointer-events: none;
  filter: url(#bbb-goo);
}
/* a thin pool hidden behind the field, so the drips grow out of one body of liquid */
.drips::before {
  content: "";
  position: absolute;
  left: 2%; right: 2%; top: 0;
  height: 4px;
  border-radius: 3px;
  background: #6e0306;
}
.drip, .drop {
  position: absolute;
  top: 2px;
  left: var(--x);
}
.drip {
  width: var(--w);
  margin-left: calc(var(--w) / -2);
  height: 0;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(to right, #4f0204 0%, #8f0609 30%, #c0161c 48%, #8f0609 70%, #4f0204 100%);
  animation: drip-stem var(--d) cubic-bezier(.45,0,.55,1) var(--delay) infinite;
}
.drop {
  width: calc(var(--w) * 1.9);
  height: calc(var(--w) * 2.2);
  margin-left: calc(var(--w) * -.95);
  border-radius: 50% 50% 50% 50% / 42% 42% 58% 58%;
  background: radial-gradient(circle at 36% 38%, #e0454a 0%, #b10d13 28%, #7e0408 62%, #4a0103 100%);
  transform: translateY(0) scale(.2);
  animation: drip-drop var(--d) cubic-bezier(.45,0,.55,1) var(--delay) infinite;
}
@keyframes drip-stem {
  0%   { height: 0; }
  58%  { height: var(--len); }
  66%  { height: calc(var(--len) + 4px); }
  74%  { height: calc(var(--len) * .55); }
  100% { height: 0; }
}
@keyframes drip-drop {
  0%   { transform: translateY(0) scale(.2); }
  58%  { transform: translateY(calc(var(--len) - 4px)) scale(1); }
  66%  { transform: translateY(calc(var(--len) + 2px)) scale(.95, 1.12); animation-timing-function: cubic-bezier(.5,0,1,1); }
  86%  { transform: translateY(calc(var(--len) + var(--fall))) scale(.85, 1.25); }
  90%  { transform: translateY(calc(var(--len) + var(--fall) + 6px)) scale(0); }
  100% { transform: translateY(0) scale(0); }
}
@media (prefers-reduced-motion: reduce) {
  .drip { animation: none; height: var(--len); }
  .drop { animation: none; transform: translateY(calc(var(--len) - 4px)) scale(1); }
}

main {
  flex: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(3.5rem, 12vh, 7rem) 16px 2rem;
  text-align: center;
}

h1 {
  margin: 0 0 clamp(2.5rem, 7vh, 4rem);
  font: 500 clamp(1.6rem, 8.2vw, 3.7rem)/1 "Cormorant Garamond", Georgia, serif;
  letter-spacing: .02em;
  color: var(--blood);
  white-space: nowrap;
}


.player { border-radius: 12px; overflow: hidden; background: #141416; }
.player iframe { display: block; border: 0; }

footer {
  display: flex;
  justify-content: center;
  gap: 1.75rem;
  padding: 2rem 16px 2.5rem;
}
footer a {
  color: var(--muted);
  text-decoration: none;
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
}
footer a:hover { color: var(--text); }
a:focus-visible { outline: 1px solid var(--red-bright); outline-offset: 4px; }

@media (max-width: 480px) {
  .player iframe { height: 480px; }
}
