/* Blood Rhythm Shop: an engraved score. Staves for rules, tempo marks for headings, bars for boxes, a final double bar to close. */
:root {
  --stv-ink: #161616;
  --stv-red: #8a1c2b;
  --stv-line: #2b2b2b;
  --stv-mist: #f4f4f3;
  --stv-gray: #6b6b6b;
  --stv-staff: repeating-linear-gradient(to bottom, var(--stv-line) 0 1px, transparent 1px 11px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.stv-leaf { margin: 0; background: #ffffff; color: var(--stv-ink); font: 18px/1.62 Petrona, Georgia, "Times New Roman", serif; }
a { color: var(--stv-ink); text-decoration-color: var(--stv-red); text-underline-offset: 3px; }
img, svg { max-width: 100%; }
h1, h2, h3 { font-family: "Playfair Display", Georgia, serif; }
.stv-proof { margin: 0; background: var(--stv-red); color: #fff; text-align: center; font-size: 14px; padding: 6px 16px; }

/* ---- the title page */
.stv-titlepage { max-width: 1240px; margin: 0 auto; padding: 22px 24px 0; }
.stv-titlerow { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 16px; }
.stv-dedication, .stv-arranger { margin: 0; font-style: italic; font-size: 15px; }
.stv-arranger { text-align: right; }
.stv-title { display: flex; align-items: center; gap: 10px; font-family: "Playfair Display", Georgia, serif; font-size: 50px; line-height: 1; text-decoration: none; color: var(--stv-ink); white-space: nowrap; }
.stv-clefmark { font-family: "Noto Music", "Apple Symbols", serif; font-size: 58px; line-height: 1; color: var(--stv-red); }
.stv-wordmark { display: block; width: 440px; max-width: 100%; height: auto; }
.stv-subtitle { text-align: center; font-style: italic; margin: 8px 0 18px; }
.stv-marks { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 30px; padding-bottom: 20px; position: relative; }
.stv-marks::after { content: ""; position: absolute; left: 0; right: 0; bottom: -45px; height: 45px; background: var(--stv-staff); }
.stv-mark { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-size: 17px; }
.stv-letter { display: inline-grid; place-items: center; width: 27px; height: 27px; border: 2px solid var(--stv-ink); font: 700 15px/1 "Playfair Display", Georgia, serif; }
.stv-mark[aria-current="page"] .stv-letter { background: var(--stv-ink); color: #fff; }
.stv-mark[aria-current="page"] { color: var(--stv-red); }

/* ---- the score */
.stv-score { padding: 80px 24px 60px; display: flex; flex-direction: column; gap: 56px; }
.stv-system { width: 100%; max-width: 1080px; margin: 0 auto; padding: 4px 0 4px 34px; border-left: 5px solid var(--stv-ink); box-shadow: -11px 0 0 -8px var(--stv-ink); }
.stv-narrow { max-width: 820px; }
.stv-pagetitle { font-size: 44px; line-height: 1.12; margin: 0 0 10px; font-weight: 400; }
.stv-lede { font-size: 20px; max-width: 42em; }
.stv-tempo { font-size: 26px; font-style: italic; font-weight: 700; margin: 30px 0 10px; }
.stv-system > .stv-tempo:first-child { margin-top: 0; }
.stv-tempo-mark { font-family: "Playfair Display", Georgia, serif; font-style: italic; font-weight: 700; color: var(--stv-red); margin: 0; }
.stv-small, .stv-panel-note { font-size: 15px; color: var(--stv-gray); }

/* ---- the one bold thing: one staff and a very large clef */
.stv-overture { width: 100%; max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 40px; align-items: center; }
.stv-bigstaff { position: relative; height: 440px; display: grid; place-items: center; margin-bottom: 20px; }
.stv-bigstaff::before { content: ""; position: absolute; left: -24px; right: 0; top: 50%; height: 177px; transform: translateY(-50%);
  background: repeating-linear-gradient(to bottom, var(--stv-ink) 0 3px, transparent 3px 44px); }
.stv-bigclef { position: relative; font-family: "Noto Music", "Apple Symbols", serif; font-size: 270px; line-height: 1; color: var(--stv-red); }
/* with the art in: the clef stands on the staff beside the bottle, the bottle resting across the five lines */
.stv-overture:has(.stv-bigstaff-art) { grid-template-columns: 440px minmax(0, 1fr); }
.stv-bigstaff-art { display: flex; align-items: center; justify-content: center; gap: 0; }
.stv-bigstaff-art .stv-bigclef { font-size: 210px; margin-right: -18px; }
.stv-overture-bottle { position: relative; height: 420px; width: auto; }
.stv-overture h1 { font-size: 54px; line-height: 1.06; margin: 8px 0 18px; font-weight: 400; }
.stv-go { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

.stv-press { display: inline-block; font: 600 17px/1.2 Petrona, Georgia, serif; color: #fff; background: var(--stv-ink); border: 2px solid var(--stv-ink);
  padding: 11px 22px; cursor: pointer; text-decoration: none; letter-spacing: .02em; }
.stv-press:hover { background: var(--stv-red); border-color: var(--stv-red); }
.stv-press-line { background: #fff; color: var(--stv-ink); }
.stv-press-line:hover { color: #fff; }
.stv-press-small { padding: 8px 14px; font-size: 15px; }
.stv-press-big { font-size: 20px; padding: 14px 32px; margin-top: 10px; }
.stv-press-done { background: var(--stv-red); border-color: var(--stv-red); }
.stv-press:disabled { opacity: .4; cursor: not-allowed; }

/* ---- three boxes as three bars of one system */
.stv-measures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 26px; border-left: 2px solid var(--stv-ink); }
.stv-measure { position: relative; padding: 0 22px 10px; border-right: 2px solid var(--stv-ink); display: flex; flex-direction: column; align-items: flex-start; }
.stv-measure:last-child { border-right: 7px double var(--stv-ink); }
.stv-barno { position: absolute; top: -6px; left: 6px; margin: 0; font-style: italic; font-size: 15px; }
.stv-measure-svg { width: 100%; height: 96px; margin: 12px 0 6px; }
.stv-measure-pic { display: block; width: 100%; height: 210px; object-fit: contain; margin: 22px 0 0; }
.stv-lines line { stroke: var(--stv-line); stroke-width: 1.2; }
.stv-heads ellipse, .stv-beam { fill: var(--stv-ink); }
.stv-stem { stroke: var(--stv-ink); stroke-width: 2; }
.stv-bar { stroke: none; }
.stv-measure-name { font-size: 28px; margin: 4px 0 0; }
.stv-measure-holds { margin: 0; font-style: italic; }
.stv-measure-sum { font-family: "Playfair Display", Georgia, serif; font-size: 40px; margin: 6px 0 0; color: var(--stv-red); line-height: 1.1; }
.stv-measure-each { margin: 0 0 14px; font-size: 15px; }

.stv-repeat { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 26px; align-items: center; background: var(--stv-mist); padding: 26px 30px 26px 34px; }
.stv-repeat-sign { font-family: "Noto Music", "Apple Symbols", serif; font-size: 110px; line-height: 1; }
.stv-repeat .stv-tempo { margin-top: 0; }
.stv-repeat-pic { display: block; width: 100%; max-width: 460px; height: auto; margin: 14px 0 0; }
.stv-only { border-top: 1px solid var(--stv-line); padding-top: 12px; font-size: 16px; }

/* ---- program notes */
.stv-jump { display: flex; flex-wrap: wrap; gap: 10px 26px; font-family: "Playfair Display", Georgia, serif; font-size: 20px; }
.stv-movement { width: 100%; max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px;
  border-top: 3px solid var(--stv-ink); padding-top: 30px; }
.stv-movement-head { display: flex; flex-direction: column; gap: 18px; }
.stv-movement-no { font: italic 700 22px/1 "Playfair Display", Georgia, serif; margin: 0; color: var(--stv-red); }
.stv-movement h2 { font-size: 40px; margin: 6px 0 4px; font-weight: 400; }
.stv-plate { margin: 0; width: 100%; max-width: 300px; border: 6px double var(--stv-ink); padding: 26px 20px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.stv-plate-maker { font-size: 12px; letter-spacing: .3em; text-transform: uppercase; }
.stv-plate-name { font: 400 34px/1.05 "Playfair Display", Georgia, serif; }
.stv-plate-rule { width: 60%; height: 25px; background: repeating-linear-gradient(to bottom, var(--stv-line) 0 1px, transparent 1px 6px); }
.stv-plate-size { font-style: italic; font-size: 15px; line-height: 1.3; }
.stv-plate-kind { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--stv-red); }
.stv-bottleplate { margin: 0; width: 100%; max-width: 300px; border: 6px double var(--stv-ink); padding: 14px 20px; background: #fff; }
.stv-bottleplate-pic { display: block; width: 100%; height: auto; }
.stv-dl dt { font-weight: 600; margin-top: 8px; }
.stv-dl dd { margin: 0; }
.stv-panel { width: 100%; border-collapse: collapse; border: 3px solid var(--stv-ink); font-size: 15px; line-height: 1.35; }
.stv-panel caption { text-align: left; font: 700 26px/1.1 Petrona, Georgia, serif; padding: 6px 0; }
.stv-panel th, .stv-panel td { text-align: left; font-weight: 400; padding: 6px 8px; border-top: 1px solid var(--stv-ink); vertical-align: top; }
.stv-panel td:last-child { text-align: right; white-space: nowrap; }
.stv-panel tr.stv-panel-serve td { text-align: left; white-space: normal; border-bottom: 6px solid var(--stv-ink); }
.stv-panel-head th { font-weight: 600; }
.stv-other { font-size: 15px; }
.stv-caution { background: var(--stv-mist); padding: 14px 16px; font-size: 15px; }
.stv-caution p { margin: 4px 0; }

/* ---- eBooks */
.stv-libretto-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; }
.stv-libretto { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 18px; }
.stv-libretto-cover { width: 140px; height: auto; border: 1px solid #c9c9c9; }
.stv-libretto h3 { margin: 0; font-size: 24px; font-weight: 400; }
.stv-libretto-sub { font-style: italic; margin: 2px 0 6px; }
.stv-libretto-fmt { font-size: 15px; margin: 0; }
.stv-libretto-sum { font: 400 26px/1.2 "Playfair Display", Georgia, serif; margin: 8px 0 10px; color: var(--stv-red); }
.stv-libretto-sum small { font: italic 15px Petrona, Georgia, serif; color: var(--stv-ink); }

/* ---- the full score (price list) */
.stv-scroll { overflow-x: auto; }
.stv-table { width: 100%; border-collapse: collapse; font-size: 16px; border-top: 3px solid var(--stv-ink); border-bottom: 3px solid var(--stv-ink); }
.stv-table th, .stv-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #b5b5b5; vertical-align: top; }
.stv-table th { font-weight: 600; }

/* ---- the stage door */
.stv-door { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 10px 20px; }
.stv-door dt { font-weight: 600; }
.stv-door dd { margin: 0; }
.stv-door small { display: block; font-size: 15px; font-style: italic; }
.stv-operator, .stv-rushnote { font-size: 16px; font-style: italic; }
.stv-operator { border-top: 1px solid var(--stv-line); padding-top: 12px; }

/* ---- the order sheet */
.stv-parts-list { list-style: none; margin: 18px 0 0; padding: 0; border-top: 3px solid var(--stv-ink); }
.stv-part { display: grid; grid-template-columns: minmax(0, 1fr) auto 110px; gap: 16px; align-items: start; padding: 12px 0; border-bottom: 1px solid #b5b5b5; }
.stv-part small { display: block; font-style: italic; font-size: 15px; }
.stv-part-sum { text-align: right; font-weight: 600; }
.stv-strike { background: none; border: 0; padding: 0; font: inherit; font-size: 14px; text-decoration: underline; cursor: pointer; color: var(--stv-red); }
.stv-count { display: inline-flex; align-items: center; gap: 8px; }
.stv-count button { width: 30px; height: 30px; border: 1.5px solid var(--stv-ink); background: #fff; cursor: pointer; font-size: 18px; line-height: 1; }
.stv-tally { width: 100%; max-width: 520px; margin: 22px 0 0 auto; border-collapse: collapse; }
.stv-tally caption { text-align: left; font: italic 700 22px "Playfair Display", Georgia, serif; }
.stv-tally th { text-align: left; font-weight: 400; padding: 4px 0; }
.stv-tally td { text-align: right; padding: 4px 0; white-space: nowrap; }
.stv-tally-sub th, .stv-tally-sub td { border-top: 1px solid var(--stv-line); }
.stv-tally-end th, .stv-tally-end td { border-top: 3px solid var(--stv-ink); font-weight: 700; font-size: 20px; }
.stv-repeatbox, .stv-addnotes, .stv-rushbox { margin-top: 22px; padding: 16px 20px; background: var(--stv-mist); border-left: 4px solid var(--stv-ink); }
.stv-addnotes-cap { font: italic 700 20px "Playfair Display", Georgia, serif; margin: 0; }
.stv-check { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; }
.stv-check input { margin-top: 6px; width: 18px; height: 18px; flex: none; accent-color: var(--stv-red); }
.stv-staff { border: 0; border-top: 3px solid var(--stv-ink); padding: 14px 0 0; margin: 26px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; }
.stv-staff legend { font: italic 700 21px "Playfair Display", Georgia, serif; padding: 0 10px 0 0; }
.stv-staff label { display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.stv-staff input, .stv-code input { font: 17px Petrona, Georgia, serif; padding: 9px 10px; border: 1.5px solid #8d8d8d; border-radius: 0; color: var(--stv-ink); background: #fff; width: 100%; }
.stv-full { grid-column: 1 / -1; }
.stv-staff[hidden], .stv-samerow[hidden] { display: none; }
.stv-accepts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.stv-cardbox { min-height: 150px; background: var(--stv-mist); padding: 10px; }
.stv-cardbox iframe { width: 100%; border: 0; }
.stv-cardnote { font-size: 15px; font-style: italic; margin: 0; }
.stv-code { margin-top: 24px; }
.stv-code label { display: block; font-weight: 600; }
.stv-code-row { display: flex; gap: 10px; max-width: 420px; }
.stv-charge { font-weight: 700; }
.stv-status { font-size: 16px; min-height: 1.4em; }
.stv-dl-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }

/* ---- Fine: the final double bar */
.stv-finebar { padding: 0 24px 34px; font-size: 16px; }
.stv-fine-top { max-width: 1240px; margin: 0 auto; height: 45px; background: var(--stv-staff); border-right: 9px double var(--stv-ink); position: relative; }
.stv-fine-word { position: absolute; right: 18px; top: -32px; font: italic 700 22px "Playfair Display", Georgia, serif; }
.stv-fine-grid { max-width: 1240px; margin: 26px auto 0; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 30px; }
.stv-colophon { font-style: normal; line-height: 1.7; }
.stv-copy { font-size: 14px; }
.stv-index-foot { display: flex; flex-direction: column; gap: 4px; }
.stv-footnote { max-width: 1240px; margin: 22px auto 0; font-size: 14px; font-style: italic; color: var(--stv-gray); }

@media (max-width: 900px) {
  .stv-overture { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .stv-bigstaff { height: 230px; }
  .stv-bigstaff::before { height: 89px; background: repeating-linear-gradient(to bottom, var(--stv-ink) 0 2px, transparent 2px 22px); left: -24px; right: -24px; }
  .stv-bigclef { font-size: 150px; }
  .stv-overture:has(.stv-bigstaff-art) { grid-template-columns: minmax(0, 1fr); }
  .stv-bigstaff-art { height: 300px; }
  .stv-bigstaff-art .stv-bigclef { font-size: 140px; margin-right: -10px; }
  .stv-overture-bottle { height: 290px; }
  .stv-measures { grid-template-columns: minmax(0, 1fr); border-left: 0; }
  .stv-measure, .stv-measure:last-child { border-right: 0; border-left: 2px solid var(--stv-ink); margin-bottom: 30px; }
  .stv-measure:last-child { border-left: 7px double var(--stv-ink); }
  .stv-movement { grid-template-columns: minmax(0, 1fr); }
  .stv-libretto-row { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  body.stv-leaf { font-size: 17px; }
  .stv-titlepage { padding: 14px 14px 0; }
  .stv-titlerow { grid-template-columns: 1fr 1fr; }
  .stv-title { grid-column: 1 / -1; grid-row: 1; justify-content: center; font-size: 32px; white-space: normal; }
  .stv-clefmark { font-size: 40px; }
  .stv-wordmark { width: 100%; max-width: 300px; }
  .stv-arranger { grid-row: 2; }
  .stv-dedication { grid-row: 2; }
  .stv-marks { gap: 8px 16px; }
  .stv-mark { font-size: 15px; }
  .stv-score { padding: 66px 14px 44px; gap: 40px; }
  .stv-system { padding-left: 16px; border-left-width: 4px; }
  .stv-overture h1 { font-size: 36px; }
  .stv-bigstaff::before { left: -14px; right: -14px; }
  .stv-pagetitle { font-size: 32px; }
  .stv-tempo { font-size: 22px; }
  .stv-repeat { grid-template-columns: minmax(0, 1fr); padding: 18px 16px; gap: 6px; }
  .stv-repeat-sign { font-size: 60px; }
  .stv-repeat-sign:last-child { justify-self: end; }
  .stv-libretto { grid-template-columns: 104px minmax(0, 1fr); }
  .stv-libretto-cover { width: 104px; }
  .stv-door { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .stv-door dd { margin-bottom: 10px; }
  .stv-staff { grid-template-columns: minmax(0, 1fr); }
  .stv-part { grid-template-columns: minmax(0, 1fr) auto; }
  .stv-part-sum { grid-column: 1 / -1; text-align: left; }
  .stv-fine-grid { grid-template-columns: minmax(0, 1fr); }
  .stv-plate-name { font-size: 28px; }
}
