:root {
  color-scheme:light;
  --ink:#263c33;
  --green:#315e4d;
  --muted:#65705f;
  --line:#dce3d8;
  --paper:#fffefa;
  --soft:#e8eee4;
  --bg:#f3f4ee
}
* {
  box-sizing:border-box
}
[hidden] {
  display:none!important
}
html {
  scroll-behavior:smooth;
  scroll-padding-top:25px
}
body {
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font:14px/1.65 system-ui,-apple-system,"Segoe UI","Microsoft YaHei",sans-serif
}
a {
  color:inherit;
  text-decoration:none
}
button,input,select {
  font:inherit
}
button,a,select {
  -webkit-tap-highlight-color:transparent
}
button {
  cursor:pointer
}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible {
  outline:3px solid #86a28a;
  outline-offset:4px
}
.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0
}
.skip-link {
  position:fixed;
  top:8px;
  left:12px;
  transform:translateY(-150%);
  z-index:2;
  background:var(--paper);
  padding:10px 16px
}
.skip-link:focus {
  transform:none
}
.site-header,main,.site-footer {
  max-width:1160px;
  margin:auto
}
.site-header {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:24px;
  padding:29px 0;
  border-bottom:1px solid var(--line)
}
.brand {
  display:flex;
  align-items:center;
  gap:13px;
  font-size:16px;
  font-weight:650;
  letter-spacing:.035em
}
.brand-mark {
  width:27px;
  height:28px;
  border-inline:2px solid var(--green);
  background:repeating-linear-gradient(to bottom,transparent 0 3px,var(--green) 3px 4px)
}
nav {
  display:flex;
  gap:31px;
  font-size:13px;
  color:var(--muted)
}
nav a {
  padding:7px 0
}
nav .active {
  color:var(--green);
  font-weight:600;
  position:relative
}
nav .active:after {
  content:"";
  position:absolute;
  height:2px;
  bottom:-30px;
  left:0;
  right:0;
  background:var(--green)
}
nav a:hover,.site-footer a:hover,.library-footer a:hover {
  color:var(--green);
  text-decoration:underline;
  text-underline-offset:5px
}
.intro {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:40px;
  padding:65px 0 51px
}
.eyebrow {
  display:flex;
  align-items:center;
  gap:9px;
  font-size:10px;
  letter-spacing:.17em;
  color:var(--green);
  font-weight:600;
  margin:0 0 13px
}
.eyebrow>span {
  width:5px;
  height:5px;
  border-radius:50%;
  background:var(--green)
}
h1 {
  font-size:46px;
  line-height:1.25;
  letter-spacing:.05em;
  font-weight:550;
  margin:0 0 18px
}
.intro-text {
  font-size:15px;
  color:var(--muted);
  margin:0
}
.mobile-break {
  display:none
}
.collection-note {
  position:relative;
  width:240px;
  padding:33px 15px 22px 30px;
  transform:rotate(-4deg);
  color:#8c9987;
  font:12px/1.6 Georgia,"Microsoft YaHei",serif;
  letter-spacing:.12em
}
.note-lines {
  display:block;
  height:46px;
  background:repeating-linear-gradient(to bottom,transparent 0 8px,#c8d3c0 8px 9px);
  margin:0 0 14px
}
.note-chord {
  position:absolute;
  font-size:68px;
  line-height:1;
  right:48px;
  top:5px;
  background:var(--bg);
  padding:0 6px;
  color:#5b7c60
}
.library {
  padding:28px 30px 0;
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:7px;
  box-shadow:0 10px 40px #283d2504;
  min-height:340px
}
.search-row {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px
}
.search-field {
  display:flex;
  align-items:center;
  gap:11px;
  width:440px;
  max-width:100%;
  height:47px;
  padding:0 14px;
  border:1px solid #d7ded1;
  border-radius:5px;
  background:#f8f9f3
}
.search-field:focus-within {
  border-color:#8da18a;
  box-shadow:0 0 0 3px #315e4d0b
}
.search-field svg {
  width:19px;
  height:19px;
  flex-shrink:0;
  fill:none;
  stroke:#7f8d7d;
  stroke-width:1.6
}
.search-field input {
  min-width:0;
  width:100%;
  height:100%;
  border:0;
  background:transparent;
  color:var(--ink);
  font-size:14px;
  outline:none
}
.search-field input::placeholder {
  color:var(--muted)
}
.library-note {
  font-size:12px;
  color:var(--muted);
  margin:0
}
.filter-row {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:23px 0 25px;
  border-bottom:1px solid var(--line)
}
.filters {
  display:flex;
  flex-wrap:wrap;
  gap:9px
}
.filters button {
  display:flex;
  align-items:center;
  gap:9px;
  padding:7px 13px;
  border:1px solid transparent;
  border-radius:5px;
  background:transparent;
  color:var(--muted);
  font-size:13px;
  min-height:37px
}
.filters button:hover {
  background:#f0f3e9
}
.filters button[aria-pressed="true"] {
  background:var(--soft);
  color:var(--green);
  border-color:#d9e3d3;
  font-weight:600
}
.filter-count {
  font:11px/1.5 ui-monospace,Consolas,monospace;
  min-width:15px;
  text-align:center;
  color:var(--muted)
}
.filters button[aria-pressed="true"] .filter-count {
  color:var(--green)
}
.sort-field {
  display:flex;
  align-items:center;
  gap:10px;
  color:var(--muted);
  font-size:12px;
  white-space:nowrap
}
.sort-field select {
  border:0;
  background:transparent;
  color:var(--ink);
  cursor:pointer;
  padding:8px 3px;
  font-size:12px
}
.list-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:18px;
  padding:20px 0 13px
}
.list-heading h2 {
  font-size:12px;
  font-weight:500;
  letter-spacing:.04em;
  color:var(--muted);
  margin:0
}
.list-heading p {
  font-size:11px;
  color:var(--muted);
  margin:0
}
.score-list {
  display:grid;
  gap:13px;
  padding:0 0 25px
}
.score-card {
  display:grid;
  grid-template-columns:82px minmax(0,1fr) auto;
  align-items:center;
  column-gap:23px;
  row-gap:18px;
  padding:23px 22px;
  border:1px solid #e0e5d9;
  border-radius:5px;
  background:#fffefa;
  transition:border-color .15s,box-shadow .15s
}
.score-card:hover {
  border-color:#bdceb6;
  box-shadow:0 4px 18px #2b492809
}
.score-art {
  position:relative;
  height:106px;
  width:82px;
  background:#e9eddf;
  border:1px solid #d9e0cb;
  border-radius:2px;
  overflow:hidden;
  color:#5f7654
}
.score-art:before {
  content:"";
  position:absolute;
  inset:23px 12px 27px;
  background:repeating-linear-gradient(to bottom,transparent 0 8px,#aebb9e 8px 9px);
  border-left:1px solid #aebb9e
}
.score-art:after {
  content:"TAB";
  position:absolute;
  left:18px;
  top:28px;
  background:#e9eddf;
  font:17px/1.4 Georgia,serif;
  letter-spacing:.08em;
  writing-mode:vertical-rl;
  text-orientation:upright
}
.score-art span {
  position:absolute;
  bottom:7px;
  right:9px;
  font:10px/1.5 ui-monospace,Consolas,monospace;
  color:#849276
}
.score-art.accompaniment {
  background:#eee8dc;
  border-color:#e0d7c4
}
.score-art.accompaniment:after {
  content:"CHORD";
  writing-mode:horizontal-tb;
  font-size:10px;
  left:11px;
  top:35px;
  background:#eee8dc
}
.score-info {
  min-width:0
}
.title-row {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:10px;
  margin-bottom:9px
}
.score-title {
  margin:0;
  font-size:21px;
  font-weight:600;
  line-height:1.5;
  overflow-wrap:anywhere;
  letter-spacing:.015em
}
.type-badge {
  font-size:10px;
  line-height:1.6;
  color:#50734a;
  background:#edf2e6;
  border:1px solid #e0e7d5;
  padding:1px 7px;
  border-radius:3px;
  white-space:nowrap
}
.type-badge.accompaniment {
  background:#f5ede0;
  border-color:#eadfc9;
  color:#8a6c3c
}
.score-meta {
  display:flex;
  flex-wrap:wrap;
  gap:4px 15px;
  font-size:12px;
  color:var(--muted);
  margin:0
}
.score-meta span+span {
  position:relative
}
.score-meta span+span:before {
  content:"·";
  position:absolute;
  left:-9px;
  color:#a3ad9a
}
.score-description {
  margin:7px 0 0;
  font-size:12px;
  color:var(--muted)
}
.score-artist {
  margin:0 0 6px;
  font-size:12px;
  color:var(--muted)
}
.score-side {
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:13px
}
.score-date {
  font-size:11px;
  color:var(--muted)
}
.score-actions {
  display:flex;
  gap:9px
}
.score-actions a {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  padding:9px 13px;
  border-radius:5px;
  font-size:12px;
  min-height:39px;
  white-space:nowrap;
  border:1px solid #d8e0cf
}
.score-actions svg {
  width:14px;
  height:14px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.6;
  stroke-linecap:round;
  stroke-linejoin:round
}
.open-score {
  background:var(--green);
  border-color:var(--green)!important;
  color:white
}
.open-score:hover {
  background:#254c3e
}
.download-score {
  background:#fafbf5;
  color:#53664c
}
.download-score:hover {
  background:#edf2e5
}
.library-footer {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
  border-top:1px solid var(--line);
  padding:19px 0;
  color:var(--muted);
  font-size:11px
}
.footer-note {
  display:flex;
  align-items:center;
  gap:7px
}
.footer-note svg {
  width:15px;
  height:15px;
  flex-shrink:0;
  fill:none;
  stroke:currentColor;
  stroke-width:1.4
}
.library-footer a {
  white-space:nowrap
}
.empty-state {
  text-align:center;
  padding:26px 15px 49px
}
.empty-symbol {
  display:block;
  font:40px/1 Georgia,serif;
  color:#8c9a7e;
  margin-bottom:14px
}
.empty-state h3 {
  font-size:17px;
  font-weight:550;
  margin:8px 0
}
.empty-state p {
  font-size:13px;
  color:var(--muted);
  margin:8px 0 19px
}
.empty-state button {
  padding:8px 16px;
  color:var(--green);
  background:var(--soft);
  border:1px solid #d3dec9;
  border-radius:5px
}
.empty-state button:hover {
  background:#dce6d6
}
#catalog-status,.notice {
  padding:20px 0;
  color:var(--muted);
  font-size:13px
}
.notice a {
  text-decoration:underline
}
.site-footer {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
  padding:31px 0 40px;
  font-size:11px;
  color:var(--muted)
}
.site-footer>span:first-child {
  font-weight:550;
  color:var(--muted)
}
@media(max-width:1230px) {
  .site-header,main,.site-footer {
    margin-inline:35px
  }
}
@media(max-width:900px) {
  .score-card {
    grid-template-columns:70px minmax(0,1fr);
    gap:17px
  }
  .score-art {
    width:70px;
    height:95px
  }
  .score-side {
    grid-column:2;
    flex-direction:row;
    justify-content:space-between;
    align-items:center;
    flex-wrap:wrap
  }
  .score-date {
    order:2
  }
  .library-note {
    display:none
  }
  .collection-note {
    width:195px
  }
  .search-field {
    width:100%
  }
}
@media(max-width:600px) {
  .site-header,main,.site-footer {
    margin-inline:18px
  }
  .site-header {
    padding:21px 0;
    gap:12px
  }
  .brand {
    font-size:14px;
    gap:9px
  }
  .brand-mark {
    width:23px;
    height:26px
  }
  nav {
    gap:17px;
    font-size:12px
  }
  nav .active:after {
    bottom:-22px
  }
  .intro {
    padding:40px 0 31px;
    gap:0
  }
  .eyebrow {
    font-size:9px;
    letter-spacing:.13em
  }
  h1 {
    font-size:34px;
    margin-bottom:13px
  }
  .intro-text {
    font-size:13px;
    line-height:1.85
  }
  .mobile-break {
    display:block
  }
  .collection-note {
    display:none
  }
  .library {
    padding:19px 17px 0
  }
  .filter-row {
    align-items:flex-start;
    flex-wrap:wrap;
    gap:12px;
    padding:17px 0
  }
  .filters {
    gap:3px
  }
  .filters button {
    padding:7px 9px;
    font-size:12px;
    gap:7px
  }
  .sort-field {
    margin-left:auto;
    gap:6px
  }
  .list-heading {
    padding:17px 0 12px
  }
  .score-card {
    grid-template-columns:52px minmax(0,1fr);
    padding:16px 13px;
    gap:13px
  }
  .score-art {
    width:52px;
    height:74px
  }
  .score-art:before {
    inset:14px 7px 10px
  }
  .score-art:after {
    left:11px;
    top:18px;
    font-size:12px
  }
  .score-art span {
    font-size:8px;
    right:5px;
    bottom:2px
  }
  .score-art.accompaniment:after {
    font-size:8px;
    left:3px;
    top:25px
  }
  .score-title {
    font-size:18px
  }
  .title-row {
    gap:6px;
    margin-bottom:7px
  }
  .score-meta {
    font-size:11px;
    gap:3px 13px
  }
  .score-description {
    font-size:11px
  }
  .score-side {
    grid-column:1/-1;
    gap:11px
  }
  .score-actions {
    width:100%
  }
  .score-actions a {
    flex:1;
    padding:10px 8px;
    font-size:11px
  }
  .score-date {
    font-size:10px
  }
  .library-footer {
    align-items:flex-start;
    flex-direction:column;
    gap:9px;
    padding:16px 0
  }
  .site-footer {
    flex-wrap:wrap;
    gap:8px;
    padding:23px 0 30px
  }
  .site-footer>span:nth-child(2) {
    display:none
  }
}
@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior:auto
  }
  .score-card {
    transition:none
  }
}
