/* The Bill: the intro and the spirit picker, as a stage-spiritualism playbill. */

#summon.active { display: grid; place-items: start center; padding: 72px 16px 48px; }

.bill {
  position: relative; width: min(100%, 980px); overflow: hidden; text-align: left;
  /* Side padding must clear the printed frame below (24px of inset shadows) plus a gutter. */
  --pad: clamp(40px, 6vw, 72px);
  padding: clamp(40px, 6vw, 72px) var(--pad) clamp(32px, 5vw, 56px);
  background: var(--stock);
  /* Double printed border: a bone hairline inside an oxblood frame. */
  box-shadow: inset 0 0 0 10px var(--stock), inset 0 0 0 12px var(--bone-dim), inset 0 0 0 20px var(--stock), inset 0 0 0 24px var(--oxblood),
              0 30px 60px -20px rgba(0, 0, 0, .7);
}

/* A pasted-on strip across the corner, as real posters were updated on the wall. */
.snipe {
  position: absolute; top: 34px; right: -58px; transform: rotate(32deg);
  width: 260px; padding: 8px 0; text-align: center;
  background: var(--oxblood); color: var(--bone);
  font: 800 .95rem/1 var(--face-gothic); letter-spacing: .28em; text-transform: uppercase;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .35);
  display: flex; align-items: center; justify-content: center; gap: .6em;
}
.snipe .icon { width: .7em; height: .7em; }

.bill-head { text-align: center; }
/* World-earned exception to the 6rem display cap: the bill's title is woodtype set to the full measure. */
.bill-title { font-size: clamp(3.4rem, min(15vw, 13vh), 9.5rem); color: var(--bone); letter-spacing: .02em; }
.band {
  margin: var(--space-4) calc(-1 * var(--pad)) 0; padding: .55em 1em;
  background: var(--oxblood); color: var(--bone);
  font: 800 clamp(1.1rem, 3vw, 1.75rem)/1 var(--face-gothic); letter-spacing: .22em; text-transform: uppercase;
}
.ritual {
  max-width: 34ch; margin: var(--space-4) auto 0;
  font: italic clamp(1.15rem, 2.4vw, 1.4rem)/1.45 var(--face-roman); color: var(--bone);
}

.acts-title {
  display: flex; align-items: center; gap: var(--space-3); margin: clamp(20px, 4vh, 40px) 0 var(--space-3);
  font: 600 1rem/1 var(--face-gothic); letter-spacing: .4em; text-transform: uppercase; color: var(--bone-dim);
}
.acts-title::before, .acts-title::after { content: ''; flex: 1; height: 0; border-top: 1px solid currentColor; border-bottom: 3px double currentColor; padding-top: 3px; }
.acts-title .icon { width: 40px; height: 20px; color: var(--oxblood); }
.acts-title span { white-space: nowrap; }

.acts { list-style: none; margin: 0; padding: 0; }
.act {
  display: grid; grid-template-columns: 1fr auto; gap: var(--space-2) var(--space-4); align-items: center;
  padding: var(--space-4) 0;
  border-top: 1px solid rgba(191, 182, 160, .35);
}
.act:last-child { border-bottom: 1px solid rgba(191, 182, 160, .35); }

/* Mixed woodtype, line by line, the way bills were set from whatever cases were full. */
.act-name { color: var(--bone); }
.act:nth-child(odd) .act-name { font: 800 clamp(2.2rem, 5.4vw, 3.6rem)/.92 var(--face-gothic); text-transform: uppercase; letter-spacing: .015em; }
.act:nth-child(even) .act-name { font: 400 clamp(1.8rem, 4.2vw, 2.8rem)/.95 var(--face-fat); }
.act-role { margin: .35em 0 0; font: italic 1.12rem/1.35 var(--face-roman); color: var(--bone); }
.act-meta { margin: .3em 0 0; font: 600 .95rem/1.3 var(--face-gothic); letter-spacing: .14em; text-transform: uppercase; color: var(--bone-dim); }
.act-meta q { font: italic 1.05rem var(--face-roman); letter-spacing: 0; text-transform: none; quotes: none; color: var(--bone); }

.act-actions { display: flex; gap: var(--space-2); align-items: center; }
.btn.hear { display: inline-flex; align-items: center; gap: .55em; padding-inline: 1.1rem; border-width: 1px; border-color: rgba(239, 229, 205, .55); }
.btn.hear .icon { width: .85em; height: .85em; }
.btn.hear[aria-pressed="true"] { background: var(--bone); color: var(--stock); border-color: var(--bone); }
.btn.summon { min-width: 8.5rem; }

.bill-foot {
  margin-top: clamp(16px, 3vh, 40px); text-align: center; color: var(--bone-dim);
  font: 600 .9rem/1.6 var(--face-gothic); letter-spacing: .2em; text-transform: uppercase;
}
.bill-foot span + span::before { content: '·'; margin: 0 .8em; color: var(--oxblood); }

/* ---------- Wide screens: a broadside, the acts set in columns ---------- */
@media (min-width: 760px) {
  .acts { display: grid; grid-template-columns: repeat(2, 1fr); }
  /* Name, role, dates, then the buttons pinned to the cell's foot so each row's actions line up. */
  .act { grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-content: stretch; padding: clamp(10px, 1.8vh, 18px) var(--space-4); border-top: 1px solid rgba(191, 182, 160, .35); }
  .act:last-child { border-bottom: none; }
  .act:nth-child(2n) { border-left: 1px solid rgba(191, 182, 160, .35); }
  .acts { border-bottom: 1px solid rgba(191, 182, 160, .35); }
  .act-actions { margin-top: var(--space-2); align-self: end; }
}
@media (min-width: 1100px) {
  #summon.active { padding: 64px 32px 16px; }
  .bill { --pad: clamp(40px, 5vw, 80px); width: min(100%, 1360px); padding: clamp(28px, 4vh, 52px) var(--pad) clamp(24px, 3vh, 40px); }
  .ritual { max-width: 82ch; margin-top: clamp(10px, 2vh, 22px); font-size: clamp(1.05rem, 1.25vw, 1.3rem); }
  .band { margin-top: clamp(12px, 2.4vh, 24px); }
  .acts { grid-template-columns: repeat(3, 1fr); }
  .act:nth-child(2n) { border-left: none; }
  .act:not(:nth-child(3n + 1)) { border-left: 1px solid rgba(191, 182, 160, .35); }
  .act:nth-child(odd) .act-name { font-size: clamp(1.9rem, min(2.7vw, 5vh), 3rem); }
  .act:nth-child(even) .act-name { font-size: clamp(1.3rem, min(1.75vw, 3.4vh), 2rem); white-space: nowrap; }
  .snipe { top: 30px; right: -54px; }
}

/* Wide but short (laptops): tighten the vertical rhythm so the whole bill stands in one view. */
@media (min-width: 1100px) and (max-height: 820px) {
  #summon.active { padding-top: 56px; padding-bottom: 8px; }
  .bill { padding-top: 22px; padding-bottom: 18px; }
  .band { padding: .45em 1em; font-size: 1.15rem; margin-top: 10px; }
  .ritual { margin-top: 8px; font-size: 1.02rem; }
  .acts-title { margin: 12px 0 6px; }
  .act { padding-block: 8px; }
  .act-role { font-size: 1rem; margin-top: .2em; }
  .act-meta { font-size: .85rem; margin-top: .15em; }
  .act-actions .btn { min-height: 40px; padding-block: .55rem; }
  .bill-foot { margin-top: 10px; }
}

@media (max-width: 720px) {
  #summon.active { padding: 64px 10px 32px; }
  .act { grid-template-columns: 1fr; }
  .act-actions { margin-top: var(--space-2); }
  .act-actions .btn { flex: 1; }
  .snipe { top: 22px; right: -74px; font-size: .78rem; }
}
