:root {
  --ink: #161326;
  --bow: #6B4C9A;
  --bow-press: #5A3D80;
  --paper: #E3E6EF;
  --button-ink: #F4F1FA;
  --serif: "Faustina", Georgia, serif;
  --sans: "Reddit Sans", "Segoe UI", sans-serif;
  --wrap: 60rem;
  --radius: 26px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.65;
}

img,
svg {
  max-width: 100%;
}

a {
  color: var(--ink);
  overflow-wrap: anywhere;
}

a:focus-visible {
  outline: 2px solid var(--bow);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  background: var(--bow);
  color: var(--button-ink);
  font-family: var(--sans);
  text-decoration: none;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius);
  transform: translateY(-160%);
}

.skip:focus {
  transform: none;
  z-index: 2;
}

.wrap {
  width: min(var(--wrap), calc(100% - 2rem));
  margin-inline: auto;
}

.mast {
  position: static;
  background: var(--paper);
}

.bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 0.85rem 1.5rem;
  padding: 1.1rem 0 0.7rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  text-decoration: none;
}

.brand img {
  width: 84px;
  height: 52px;
}

.brand-word,
.brand-legal,
.thread-mark,
.fact-label,
.nav-list,
.score-button,
h2,
h3,
.foot-links {
  font-family: var(--sans);
}

.brand-word,
.thread-mark {
  display: block;
  font-weight: 600;
  letter-spacing: 0.16em;
  font-size: 0.74rem;
}

.brand-legal {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.01em;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0 0 0.35rem;
  font-size: 0.98rem;
}

.nav-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--ink);
  text-decoration: none;
}

.nav-list a[aria-current="page"]::before {
  content: "";
  width: 2px;
  height: 0.9rem;
  background: var(--bow);
}

.score-hero {
  padding: 0.2rem 0 0.4rem;
}

.staff {
  position: relative;
}

.measure-name {
  margin: 0 0 0.45rem;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.55rem;
  line-height: 1.2;
}

.staff-lines {
  position: relative;
  display: grid;
  gap: 0.68rem;
  padding: 0.45rem 0 0.45rem 0.7rem;
  margin-bottom: 1.15rem;
  border-left: 2px solid var(--ink);
}

.staff-page .staff-lines {
  margin-bottom: 1.15rem;
}

.staff-foot .staff-lines {
  gap: 0.28rem;
  padding-top: 0.2rem;
  padding-bottom: 0.2rem;
}

.staff-line {
  display: block;
  height: 0;
  border-top: 1px solid var(--ink);
}

.note-track {
  position: absolute;
  left: 0.35rem;
  right: 6.4rem;
  top: 50%;
  height: 0.9rem;
  margin-top: -0.45rem;
}

.whole-note {
  position: absolute;
  left: 0;
  top: 0;
  width: 1.2rem;
  height: 0.86rem;
  border: 2px solid var(--bow);
  border-radius: 50%;
  background: transparent;
  offset-path: path("M 0 8 H 901");
  offset-distance: 0%;
  offset-rotate: 0deg;
}

.fermata {
  position: absolute;
  right: 2.55rem;
  top: 0.05rem;
  width: 1.35rem;
  height: 0.72rem;
  border: 2px solid var(--bow);
  border-bottom: 0;
  border-radius: 1.35rem 1.35rem 0 0;
}

.fermata::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -0.32rem;
  width: 0.28rem;
  height: 0.28rem;
  margin-left: -0.14rem;
  background: var(--bow);
  border-radius: 50%;
}

.thread-mark {
  position: absolute;
  right: 0;
  bottom: -1.05rem;
  color: var(--ink);
}

.score-copy {
  max-width: 40rem;
  padding-top: 1.05rem;
}

.score-copy h1,
.inner h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.12;
  margin: 0 0 0.7rem;
}

.lede {
  margin: 0;
}

.score-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.2rem;
  margin: 1.05rem 0 0;
}

.score-button {
  display: inline-block;
  background: var(--bow);
  color: var(--button-ink);
  text-decoration: none;
  border-radius: var(--radius);
  padding: 0.72rem 1.22rem;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.2;
}

.score-button:hover {
  background: var(--bow-press);
}

.text-link {
  font-family: var(--sans);
  color: var(--ink);
}

.score-ledger {
  display: contents;
}

.facts {
  margin-top: 1.5rem;
}

.facts-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.facts-row div {
  border-top: 1px solid var(--ink);
  border-left: 2px solid var(--bow);
  padding: 0.8rem 0.85rem 0.9rem 0.75rem;
}

.fact-label {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.03em;
}

.fact-value {
  margin: 0.2rem 0 0;
  font-family: var(--serif);
  font-size: 1.12rem;
}

.band {
  padding: 0.2rem 0;
}

.reading h2 {
  font-size: 1.35rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
}

.reading h3 {
  font-size: 1.02rem;
  font-weight: 600;
  margin: 1.1rem 0 0.35rem;
}

.reading p,
.reading li {
  font-family: var(--serif);
}

.reading ul {
  list-style: none;
  margin: 0.35rem 0 0.9rem;
  padding: 0;
}

.reading ul li {
  position: relative;
  border-bottom: 1px solid var(--ink);
  padding: 0.68rem 0 0.68rem 0.9rem;
}

.reading ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 2px;
  height: 0.95rem;
  background: var(--bow);
}

.reading ol {
  margin: 0.4rem 0 0.9rem;
  padding-left: 1.25rem;
}

.reading ol li {
  padding: 0.28rem 0;
}

.reading table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.6rem 0 1rem;
  font-family: var(--sans);
  font-size: 0.98rem;
}

.reading th,
.reading td {
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--ink);
  padding: 0.55rem 0.7rem 0.55rem 0;
}

.reading th,
.reading td:first-child {
  font-family: var(--sans);
  font-weight: 600;
  width: 38%;
}

.inner {
  padding: 0.15rem 0 1.4rem;
}

.score-foot {
  padding: 1.6rem 0 2.3rem;
}

.captions {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr 0.9fr;
  gap: 1rem 1.6rem;
  padding-top: 0.95rem;
}

.captions p {
  margin: 0;
}

.foot-links {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
}

.foot-links li {
  margin: 0 0 0.28rem;
}

.foot-links li::before {
  content: none;
}

@media (max-width: 1000px) {
  .whole-note {
    offset-path: path("M 0 8 H 854");
  }
}

@media (max-width: 960px) {
  .whole-note {
    offset-path: path("M 0 8 H 814");
  }
}

@media (max-width: 920px) {
  .whole-note {
    offset-path: path("M 0 8 H 774");
  }
}

@media (max-width: 880px) {
  .whole-note {
    offset-path: path("M 0 8 H 734");
  }
}

@media (max-width: 840px) {
  .whole-note {
    offset-path: path("M 0 8 H 694");
  }
}

@media (max-width: 800px) {
  .whole-note {
    offset-path: path("M 0 8 H 654");
  }
}

@media (max-width: 760px) {
  .whole-note {
    offset-path: path("M 0 8 H 614");
  }
}

@media (max-width: 720px) {
  .whole-note {
    offset-path: path("M 0 8 H 574");
  }
}

@media (max-width: 680px) {
  .whole-note {
    offset-path: path("M 0 8 H 534");
  }
}

@media (max-width: 640px) {
  .whole-note {
    offset-path: path("M 0 8 H 494");
  }
}

@media (max-width: 600px) {
  .whole-note {
    offset-path: path("M 0 8 H 454");
  }
}

@media (max-width: 560px) {
  .whole-note {
    offset-path: path("M 0 8 H 414");
  }
}

@media (max-width: 520px) {
  .whole-note {
    offset-path: path("M 0 8 H 374");
  }
}

@media (max-width: 480px) {
  .whole-note {
    offset-path: path("M 0 8 H 334");
  }
}

@media (max-width: 440px) {
  .whole-note {
    offset-path: path("M 0 8 H 294");
  }
}

@media (max-width: 400px) {
  .whole-note {
    offset-path: path("M 0 8 H 254");
  }
}

@media (max-width: 800px) {
  .facts-row,
  .captions {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .facts-row,
  .captions {
    grid-template-columns: 1fr;
  }

  .note-track {
    right: 5.4rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .whole-note {
    animation: travel-note 1.35s ease forwards;
  }
}

@media (prefers-reduced-motion: reduce) {
  .whole-note {
    animation: none;
    offset-distance: 100%;
  }
}

@keyframes travel-note {
  to {
    offset-distance: 100%;
  }
}
