:root {
  color-scheme: light;
  --paper: #faf5ef;
  --card: #fffdf9;
  --ink: #201c1b;
  --muted: #65544e;
  --accent: #a14a3a;
  --accent-hover: #823b2f;
  --peach: #f1cead;
  --border: #e4d8ce;
  --line: #ead4c1;
  --wash: #f4ebe2;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body, h1, h2, h3, p { margin: 0; }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.bound { max-width: 1192px; padding-inline: 32px; margin-inline: auto; }
.masthead { border-bottom: 1px solid var(--border); background: var(--card); }
.masthead .bound { height: 70px; display: flex; align-items: center; }
.brand-link { display: inline-flex; gap: 11px; align-items: center; text-decoration: none; border-radius: 4px; }
.brand-mark {
  display: grid; place-items: center; padding-bottom: 2px; width: 39px; height: 40px;
  border-radius: 10px; color: var(--peach); background: var(--ink); font: 28px/1 Georgia, serif;
}
.brand { font: 22px/1 Georgia, serif; letter-spacing: -.025em; }
.brand span {
  display: block; margin-top: 4px; text-transform: uppercase;
  font: 650 10px/1.35 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: .16em; color: var(--muted);
}
main.bound { padding-top: 24px; padding-bottom: 44px; }
.hero {
  color: #fff8ee; isolation: isolate; position: relative; z-index: 1;
  background: linear-gradient(112deg, #201c1b 35%, #3c2a25); border-radius: 16px;
  padding: 29px 36px 31px;
}
h1 { font: 56px/1.04 Georgia, serif; letter-spacing: -.046em; }
.hero > p { color: var(--peach); margin-top: 11px; font-size: 17px; line-height: 1.45; }
.is-landing.bound { padding-top: clamp(58px, 12vh, 112px); }
.is-landing .hero { padding: 0; max-width: 684px; margin-inline: auto; text-align: center; color: var(--ink); background: none; }
.is-landing .hero > p, .is-landing .hero-decoration { display: none; }
.is-landing .library-search { margin-top: 24px; }
.is-landing .search-field { box-shadow: 0 6px 22px #412b1614; }
.is-landing .search-field:focus-within { outline-color: var(--accent); outline-width: 2px; }
.is-landing .search-popup { text-align: start; }
.hero-decoration { position: absolute; inset: 0; z-index: -1; overflow: hidden; border-radius: inherit; pointer-events: none; }
.score-art {
  position: absolute; pointer-events: none; transform: rotate(-12deg);
  background: repeating-linear-gradient(to bottom, var(--staff-line) 0 1px, transparent 1px 22px);
  mask-image: linear-gradient(90deg, transparent, #000 23%, #000 94%, transparent);
}
.score-art i {
  position: absolute; width: 20px; height: 14px; border-radius: 50%; background: currentColor;
  opacity: .72; transform: rotate(-12deg);
}
.score-art i::after {
  content: ""; position: absolute; width: 2px; height: 35px; right: 0; bottom: 6px;
  background: currentColor; transform: rotate(12deg); transform-origin: bottom;
}
.score-art i:nth-child(1) { left: 24%; bottom: var(--note-1, 26px); }
.score-art i:nth-child(2) { left: 43%; bottom: var(--note-2, 42px); }
.score-art i:nth-child(3) { left: 62%; bottom: var(--note-3, 52px); }
.score-art i:nth-child(4) { left: 82%; bottom: var(--note-4, 36px); }
.hero .score-art {
  color: var(--peach); --staff-line: #f1cead52;
  width: 355px; height: 95px; top: 66px; right: -13px;
}
.toolbar { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin-top: 21px; }
.category-hint { display: none; }
.is-landing .toolbar { align-items: center; margin-top: 28px; }
.toolbar .recital-shortcut { align-self: flex-start; min-height: 44px; }
.is-landing .recital-shortcut { align-self: center; }
.is-landing .categories { width: min(100%, 404px); }
.is-landing .categories button { flex: 1; padding-inline: 8px; min-height: 44px; }
.is-landing .category-hint { display: block; text-align: center; color: var(--muted); font-size: 15px; line-height: 1.45; }
.is-landing .collection { margin-top: 30px; }
.categories {
  display: flex; gap: 4px; padding: 4px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--wash);
}
.categories button {
  min-height: 41px; padding: 0 20px; border: 0; border-radius: 7px;
  background: transparent; color: #503c33; font-weight: 660; font-size: 14px;
}
.categories button[aria-pressed="true"] { color: #fff8ee; background: var(--ink); }
.categories button:hover:not([aria-pressed="true"]) { background: #f1dccb; }
.library-search { position: relative; max-width: 684px; margin-top: 21px; color: var(--ink); }
.search-field {
  display: flex; align-items: center; gap: 13px; min-height: 63px; padding: 6px 6px 6px 18px;
  border: 1px solid #f1cead; border-radius: 11px; background: var(--card); box-shadow: 0 4px 16px #0e090529;
}
.search-field:focus-within { outline: 3px solid var(--peach); outline-offset: 3px; }
.search-icon { position: relative; flex: 0 0 18px; height: 18px; border: 2px solid var(--accent); border-radius: 50%; }
.search-icon::after {
  content: ""; position: absolute; width: 7px; height: 2px; border-radius: 2px; background: var(--accent);
  bottom: -2px; right: -5px; transform: rotate(46deg);
}
.search-field input {
  flex: 1; min-width: 0; min-height: 45px; padding: 0; border: 0; outline: 0; background: transparent;
  color: var(--ink); font-size: 19px; font-weight: 540;
}
.search-field input::placeholder { color: #69524a; opacity: 1; }
.submit-search {
  min-height: 49px; padding: 0 22px; border: 0; border-radius: 8px; background: var(--accent);
  color: white; font-size: 15px; font-weight: 700;
}
.submit-search:hover { background: var(--accent-hover); }
.clear-search {
  display: grid; place-items: center; padding: 0; width: 33px; height: 39px;
  border: 0; border-radius: 7px; background: transparent; color: var(--muted); font-size: 23px; line-height: 1;
}
.clear-search:hover { background: var(--wash); color: var(--ink); }
.search-shortcut {
  display: grid; place-items: center; width: 22px; height: 24px; border: 1px solid var(--border);
  border-radius: 5px; color: var(--muted); font-size: 13px;
}
.search-popup {
  position: absolute; inset: calc(100% + 8px) 0 auto; z-index: 2; max-height: min(340px, 53vh); overflow: auto;
  padding: 7px; background: var(--card); border: 1px solid var(--border); border-radius: 11px; box-shadow: 0 14px 30px #3a211e33;
}
.suggestions-heading { padding: 7px 10px 8px; color: var(--muted); font-weight: 650; font-size: 13px; }
.suggestion {
  display: grid; grid-template-columns: 31px minmax(0, 1fr) auto; gap: 10px; align-items: center;
  min-height: 49px; padding: 6px 10px; border-radius: 7px; cursor: pointer;
}
.suggestion[aria-selected="true"], .suggestion:hover { background: #f5e7d9; }
.suggestion-note {
  display: grid; place-items: center; width: 31px; height: 32px; border-radius: 7px;
  font: 20px/1 Georgia, serif; color: var(--accent-hover); background: #fae8d6;
}
.suggestion-title { display: block; font-weight: 700; font-size: 14px; }
.suggestion-composer { display: block; margin-top: 1px; color: var(--muted); font-size: 12px; line-height: 1.35; }
.suggestion-arrow { color: var(--accent-hover); }
.program-callout {
  display: flex; justify-content: space-between; align-items: center; gap: 13px;
  margin-top: 17px; padding: 15px 17px; border: 1px solid var(--line); border-radius: 12px;
  background: #f7eadd;
}
.program-kind { color: var(--accent-hover); font-size: 12px; font-weight: 720; margin-bottom: 3px; }
.program-callout h2 { font-size: 25px; }
.program-date { color: var(--muted); font-size: 13px; line-height: 1.35; margin-top: 5px; }
.program-callout .program-action { background: var(--card); border-color: #dcbba3; }
.program-callout .program-action:hover { background: var(--peach); }
.section-heading { display: flex; gap: 13px; align-items: baseline; margin: 23px 0 13px; }
h2 { font: 32px/1.12 Georgia, serif; letter-spacing: -.035em; }
#section-title, .card { scroll-margin-top: 16px; }
#piece-count, .collection-count { color: var(--muted); font-size: 13px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; align-items: start; }
.program-divider { grid-column: 1 / -1; margin-bottom: 0; }
.card {
  overflow: clip; background: var(--card); border: 1px solid var(--border);
  border-radius: 13px; transition: border-color .17s, box-shadow .17s;
}
.card:hover { border-color: #d5b29a; box-shadow: 0 4px 12px #3420110c; }
.card.is-open { border-color: #c5876d; box-shadow: 0 4px 14px #3420110d; }
.sleeve {
  --staff-line: #6e302b32; --paper-ink: #5a3128;
  min-height: 79px; padding: 16px; background: #f5d9bf; color: var(--paper-ink);
  position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center;
  text-align: start;
}
.sleeve[data-tone="rust"] {
  background: #a14a3a; color: #fff6e9; --paper-ink: #fff6e9; --staff-line: #fbeddd58;
  --note-1: 44px; --note-2: 32px; --note-3: 48px; --note-4: 54px;
}
.sleeve[data-tone="ink"] {
  background: #382b28; color: #f8dcc2; --paper-ink: #f8dcc2; --staff-line: #f8dcc24b;
  --note-1: 37px; --note-2: 50px; --note-3: 30px; --note-4: 44px;
}
.sleeve[data-tone="ivory"] {
  background: #f0e5d8; color: #704638; --paper-ink: #704638; --staff-line: #884e403b;
  --note-1: 28px; --note-2: 52px; --note-3: 34px; --note-4: 50px;
}
.sleeve .score-art {
  z-index: -1; width: min(45%, 176px); height: 86px; right: 1px; top: 12px;
  transform: rotate(-13deg) translateX(-6px); transition: transform .22s ease-out;
}
.card:hover .sleeve .score-art { transform: rotate(-9deg) translate(-7px, -4px); }
.sleeve .score-art i { width: 12px; height: 8px; opacity: .7; }
.sleeve .score-art i::after { height: 23px; width: 1.5px; bottom: 3px; }
.sleeve .part-summary { font-size: 12px; font-weight: 700; letter-spacing: .015em; }
.sleeve .program-position {
  display: grid; place-items: center; width: 36px; height: 36px; flex: 0 0 36px; margin-inline-end: 10px;
  border: 1.25px solid currentColor; border-radius: 50%; font: 720 18px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-variant-numeric: tabular-nums;
}
.card.is-playing .sleeve .score-art i {
  animation: note-lift 1.3s ease-in-out infinite alternate;
}
.card.is-playing .sleeve .score-art i:nth-child(2) { animation-delay: .17s; }
.card.is-playing .sleeve .score-art i:nth-child(3) { animation-delay: .31s; }
.card.is-playing .sleeve .score-art i:nth-child(4) { animation-delay: .45s; }
@keyframes note-lift {
  from { opacity: .62; transform: translateY(0) rotate(-12deg); }
  to { opacity: 1; transform: translateY(-4px) rotate(-15deg); }
}
.card-body { padding: 15px 16px 16px; }
.card h3 { font: 25px/1.08 Georgia, serif; letter-spacing: -.035em; }
.composer { color: var(--muted); margin-top: 5px; font-size: 14px; line-height: 1.4; }
.studio-tempo { color: var(--muted); margin-top: 7px; font-size: 13px; line-height: 1.4; }
.library-footer { padding-block: 26px; color: var(--muted); font-size: 13px; }
.library-footer a, .privacy-copy a { color: inherit; text-underline-offset: .2em; }
.privacy-copy { max-width: 42rem; padding-block: 44px; line-height: 1.6; }
.privacy-copy h1 { margin-bottom: 16px; font-family: Georgia, serif; }
.privacy-copy p { margin-bottom: 14px; }
.card-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 13px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 43px;
  padding: 0 11px; background: var(--card); border: 1px solid var(--border); border-radius: 8px;
  color: var(--ink); font-size: 13px; font-weight: 680; line-height: 1.2;
  text-decoration: none; white-space: nowrap;
}
.button:hover { background: #f6e8d9; }
.button.pdf { background: #fcf0e4; border-color: var(--line); }
.button.pdf:hover, .toggle[aria-expanded="true"] { background: var(--peach); border-color: #d8a587; }
.chevron {
  width: 7px; height: 7px; margin: -3px 2px 0 1px;
  border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg);
}
.toggle[aria-expanded="true"] .chevron { transform: rotate(225deg); margin-top: 3px; }
.document {
  width: 11px; height: 14px; position: relative; display: inline-block;
  border: 1.3px solid currentColor; border-radius: 2px;
}
.document::before, .document::after {
  content: ""; position: absolute; left: 2px; right: 2px; top: 4px; height: 1px;
  background: currentColor; opacity: .7;
}
.document::after { top: 7px; }
.practice-panel { border-top: 1px solid var(--border); padding-top: 13px; margin-top: 14px; }
.practice-panel:not([hidden]) { animation: unfold .2s ease-out; }
@keyframes unfold { from { transform: translateY(-3px); } to { transform: translateY(0); } }
fieldset { padding: 0; margin: 0 0 10px; min-width: 0; border: 0; }
legend { margin-bottom: 6px; padding: 0; color: #4e3930; font-weight: 690; font-size: 13px; }
.options { display: flex; gap: 5px; flex-wrap: wrap; }
.options label { position: relative; }
.options input { width: 1px; height: 1px; position: absolute; opacity: 0; }
.options span {
  display: grid; place-items: center; min-height: 41px; padding: 0 9px; color: #5c4840;
  border: 1px solid var(--border); border-radius: 7px; cursor: pointer;
  text-align: center; font-size: 12px; font-weight: 650; line-height: 1.16;
}
.options input:checked + span { color: var(--ink); background: var(--peach); border-color: #d7a47f; }
.options input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.tempo-label { color: var(--muted); font-size: 12px; line-height: 1.3; margin: 1px 0 9px; }
.transport { border-radius: 9px; padding: 9px; background: #f8ece3; }
.transport-main { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.play {
  min-height: 42px; color: white; border-color: transparent; background: var(--accent);
  min-width: 84px; font-size: 14px;
}
.play:disabled { cursor: wait; opacity: .7; }
.play:hover, .play:active { color: white; background: var(--accent-hover); }
.play-icon { border: solid transparent; border-width: 5px 0 5px 8px; border-left-color: currentColor; }
.play[data-playing="true"] .play-icon {
  border-width: 0 2.5px; border-color: currentColor; height: 10px; width: 8px;
}
.play-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.mini {
  min-height: 39px; background: #fff9f3; padding-inline: 8px; font-size: 12px;
}
.repeat[aria-pressed="true"] { border-color: #d7a47f; background: var(--peach); }
.position { margin-top: 6px; }
.seek { display: block; width: 100%; height: 26px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.seek:disabled { opacity: .5; cursor: default; }
.timestamps {
  color: #60483d; line-height: 1.25; display: flex; justify-content: space-between;
  font-size: 11px; font-variant-numeric: tabular-nums;
}
.audio-message { color: #792f21; margin-top: 8px; font-size: 12px; line-height: 1.35; }
.audio-message:empty { display: none; }
.practice-references { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.empty { color: var(--muted); border: 1px solid var(--border); border-radius: 12px; background: var(--card); padding: 22px; line-height: 1.45; }
.empty h3 { color: var(--ink); font: 24px/1.15 Georgia, serif; margin-bottom: 6px; }
@media (max-width: 930px) {
  .bound { padding-inline: 24px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 670px) {
  .bound { padding-inline: 16px; }
  .masthead .bound { height: 61px; }
  .brand-mark { width: 35px; height: 36px; }
  .brand { font-size: 20px; }
  .brand span { font-size: 9px; }
  main.bound { padding-top: 15px; }
  .hero { padding: 21px 16px 19px; border-radius: 13px; }
  h1 { font-size: clamp(30px, 9.4vw, 44px); }
  .is-landing.bound { padding-top: clamp(54px, 11vh, 94px); }
  .is-landing .library-search { margin-top: 20px; }
  .is-landing .category-hint { max-width: 270px; }
  .hero > p { max-width: 240px; margin-top: 8px; font-size: 15px; }
  .hero .score-art { width: 155px; right: -27px; top: 47px; opacity: .48; }
  .library-search { margin-top: 16px; }
  .search-field { gap: 9px; min-height: 56px; padding: 4px 4px 4px 11px; }
  .search-icon { flex-basis: 13px; height: 13px; border-width: 1.6px; }
  .search-icon::after { width: 5px; height: 1.6px; right: -4px; }
  .search-field input { font-size: 16px; min-height: 45px; }
  .submit-search { min-height: 45px; padding-inline: 11px; font-size: 14px; }
  .clear-search { width: 27px; }
  .search-shortcut { display: none; }
  .search-popup { inset-inline: 0; }
  .program-callout { flex-wrap: wrap; padding: 12px 13px; row-gap: 9px; }
  .program-callout h2 { font-size: 23px; }
  .toolbar { align-items: stretch; margin-top: 16px; }
  .categories { gap: 3px; }
  .categories button { flex: 1 1 0; padding-inline: 6px; min-height: 41px; }
  .section-heading { margin: 19px 0 10px; }
  h2 { font-size: 29px; }
  .cards { grid-template-columns: 1fr; gap: 11px; }
  .sleeve { min-height: 69px; padding: 13px; }
  .card-body { padding: 13px; }
  .card h3 { font-size: 24px; }
  .button { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.metronome-panel {
  margin-top: 1rem;
}

.metronome-panel summary {
  cursor: pointer;
  font-weight: 700;
}

.metronome-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  padding-top: 0.65rem;
}

.metronome-controls select {
  font: inherit;
  max-width: 100%;
  min-height: 2.75rem;
}

.metronome-message:empty {
  display: none;
}
