/* =========================================================
   BLOOD MONEY — shared styles
   Layout: insane red/black artwork columns | plain 2004 web page | artwork columns
   The center is deliberately boring. All the noise lives in the side columns.
   ========================================================= */
:root {
  --page: #ffffff;
  --text: #000000;
  --gray: #666666;
  --rule: #999999;
  --cell: #bbbbbb;
  --head: #eeeeee;
  --link: #0000ee;
  --visited: #551a8b;
  --blood: #c00010;
  --void: #070000;
  --body: Verdana, Tahoma, Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { background: var(--void); }
body { margin: 0; color: var(--text); font: 14px/1.6 var(--body); }
img { max-width: 100%; }

/* ---------- page grid ---------- */
/* Side columns are the artwork strips from img/. Their width follows the
   viewport height so the whole strip shows top to bottom. */
.page {
  --rw: min(26.9vh, 300px, 20vw);
  display: grid;
  grid-template-columns: var(--rw) minmax(0, 800px) var(--rw);
  justify-content: center;
  min-height: 100vh;
}
.rail { background: var(--void); min-width: 0; }
.rail--left { border-right: 3px solid #000; }
.rail--right { border-left: 3px solid #000; }
.rail-art {
  position: sticky; top: 0; display: block;
  width: 100%; height: 100vh;
  object-fit: cover; object-position: center top;
}

/* ---------- the plain center ---------- */
.content {
  min-width: 0;
  background: var(--page);
  padding: 0 24px 40px;
}
a { color: var(--link); text-decoration: underline; }
a:visited { color: var(--visited); }
a:hover { color: #ff0000; }
:focus-visible { outline: 2px solid #000; outline-offset: 2px; }

h1 { font: bold 22px/1.3 var(--body); margin: 28px 0 12px; }
h2 { font: bold 16px/1.3 var(--body); margin: 32px 0 10px; padding-bottom: 3px; border-bottom: 1px solid var(--rule); }
h3 { font: bold 14px/1.3 var(--body); margin: 18px 0 6px; }
p { margin: 0 0 12px; }
ul { margin: 0 0 12px; padding-left: 22px; }
li { margin-bottom: 4px; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 36px 0 14px; }
.small { font-size: 11px; color: var(--gray); }
.big { font-size: 18px; font-weight: bold; }

table { border-collapse: collapse; width: 100%; margin: 0 0 14px; border: 1px solid var(--rule); }
th, td { border: 1px solid var(--cell); padding: 7px 9px; text-align: left; vertical-align: top; }
th { background: var(--head); font-size: 12px; }
.tbl-wrap { overflow-x: auto; }

button, input, textarea { font: 13px var(--body); }
input, textarea { width: 100%; max-width: 420px; padding: 4px; border: 1px solid #777; background: #fff; color: #000; }
label { display: block; margin-bottom: 10px; font-weight: bold; font-size: 12px; }
button { cursor: pointer; padding: 3px 12px; }

/* ---------- logo + nav ---------- */
.mast {
  padding: 18px 0 6px;
  text-align: center;
}
.logo { display: block; }
.logo img { display: block; width: 100%; max-width: 760px; height: auto; margin: 0 auto; }

.nav {
  margin: 0 -24px;
  padding: 10px 12px;
  background: var(--head);
  border-bottom: 1px solid var(--rule);
  text-align: center;
  font: bold 15px var(--body);
}
.nav a[aria-current="page"] { color: #000; text-decoration: none; }
.nav .sep { color: var(--gray); margin: 0 8px; font-weight: normal; }

.quote { margin: 0 0 16px; padding: 8px 14px; border-left: 3px solid var(--rule); font-style: italic; }
.quote .small { font-style: normal; }

/* ---------- music ---------- */
.now {
  position: sticky; top: 0; z-index: 2;
  background: #ffffcc; border: 1px solid #cc9; padding: 8px 10px; margin: 0 0 18px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
}
.now b { min-width: 0; overflow-wrap: anywhere; }
.play { font-weight: bold; white-space: nowrap; }
tr.playing td { background: #ffffcc; }
td.btn-cell { width: 1%; white-space: nowrap; }

/* ---------- song page ---------- */
.song-head { display: flex; align-items: center; gap: 18px; margin: 28px 0 18px; }
.song-head h1 { margin: 0 0 4px; overflow-wrap: anywhere; }
.song-head p { margin: 0; }
.song-head > div { min-width: 0; }
.big-play { font: bold 18px var(--body); padding: 14px 18px; white-space: nowrap; }
#wave { display: block; width: 100%; height: 110px; border: 1px solid var(--rule); background: #fff; cursor: pointer; }
.share { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.share input { flex: 1 1 240px; }

/* ---------- artists + merch ---------- */
.photo {
  display: grid; place-items: center;
  width: 110px; height: 110px;
  background: var(--head); border: 1px solid var(--rule);
  font: bold 22px var(--body); color: var(--gray);
  object-fit: cover;
}
td.pic-cell { width: 148px; }
.merch-img { display: block; width: 130px; height: 130px; object-fit: cover; border: 1px solid var(--cell); }

/* ---------- footer ---------- */
.foot { text-align: center; }

/* Phones/small screens: the art strips fill the background (pinned in place)
   and the white page floats on top with a strip of art showing each side. */
@media (max-width: 760px) {
  .page { display: block; }
  .rail {
    position: fixed; top: 0; bottom: 0; width: 50%;
    z-index: 0; border: 0;
  }
  .rail--left { left: 0; }
  .rail--right { right: 0; }
  .rail-art { position: static; height: 100%; }
  .rail--left .rail-art { object-position: left top; }
  .rail--right .rail-art { object-position: right top; }
  .content {
    position: relative; z-index: 1;
    margin: 0 40px;
    min-height: 100vh;
    border-left: 3px solid #000; border-right: 3px solid #000;
  }
}
@media (max-width: 400px) {
  .content { margin: 0 32px; }
}
@media (max-width: 600px) {
  .song-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .content { padding: 0 14px 30px; }
  .nav { margin: 0 -14px; }
  .nav { font-size: 14px; line-height: 2; display: flex; flex-wrap: wrap; justify-content: center; }
  .nav .sep { margin: 0 4px; }
  th, td { padding: 6px 5px; }
  td.pic-cell { width: 66px; }
  .photo, .merch-img { width: 56px; height: 56px; max-width: none; font-size: 14px; }
  td.btn-cell { white-space: normal; }
}
