:root {
  color-scheme: light;
  --navy: #172a3a;
  --navy-2: #243b4e;
  --ink: #26323a;
  --muted: #626d73;
  --ivory: #f6f2e9;
  --paper: #fffdf8;
  --gold: #a9854c;
  --gold-light: #c5a66d;
  --line: #e5dfd2;
  --green: #3e654e;
  --blue: #48657d;
  --shadow: 0 18px 44px rgb(23 42 58 / 8%);
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--paper); line-height: 1.65; }
a { color: inherit; }
button, input, select { font: inherit; }
button, a, select, input { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.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: absolute; z-index: 50; top: 8px; left: 8px; transform: translateY(-150%); background: var(--paper); color: var(--navy); padding: 10px 14px; border-radius: 3px; }
.skip-link:focus { transform: translateY(0); }
.site-header { position: relative; z-index: 10; background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { max-width: 1220px; min-height: 84px; margin: auto; padding: 0 30px; display: flex; justify-content: space-between; align-items: center; gap: 28px; }
.wordmark { display: inline-flex; gap: 12px; align-items: center; text-decoration: none; color: var(--navy); }
.wordmark-mark { color: var(--gold); font-size: 32px; line-height: 1; }
.wordmark strong { display: block; font: 600 20px/1.2 var(--serif); letter-spacing: .01em; }
.wordmark small { display: block; margin-top: 5px; font-size: 9px; font-weight: 700; letter-spacing: .19em; color: var(--muted); }
.primary-navigation { display: flex; align-items: center; gap: clamp(16px, 2.8vw, 36px); }
.primary-navigation a, .footer-nav a { text-decoration: none; color: var(--ink); font-size: 13px; font-weight: 600; letter-spacing: .025em; }
.primary-navigation a:hover, .footer-nav a:hover { color: var(--gold); }
.primary-navigation a[aria-current="page"] { color: var(--gold); }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 3px; color: var(--navy); padding: 8px 11px; }
main { min-height: 50vh; }
.container { width: min(1120px, calc(100% - 48px)); margin: 0 auto; }
.container.narrow { width: min(780px, calc(100% - 48px)); }
.eyebrow { color: var(--gold); font-size: 11px; line-height: 1.3; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
h1, h2, h3 { color: var(--navy); font-family: var(--serif); font-weight: 400; line-height: 1.16; }
h1 { margin: 14px 0 20px; font-size: clamp(38px, 6vw, 68px); letter-spacing: -.025em; }
h2 { margin: 0 0 14px; font-size: clamp(30px, 4vw, 42px); letter-spacing: -.015em; }
h3 { margin: 0 0 8px; font-size: 24px; }
p { margin-top: 0; }
.lead { max-width: 650px; font-size: 17px; color: #4f5c63; line-height: 1.75; }
.section { padding: 76px 0; }
.section.compact { padding: 48px 0; }
.section-tint { background: var(--ivory); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 28px; margin-bottom: 28px; }
.section-heading p { color: var(--muted); margin-bottom: 3px; }
.text-link { color: var(--navy); font-size: 13px; font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--gold-light); padding-bottom: 4px; white-space: nowrap; }
.text-link:hover { color: var(--gold); }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 46px; padding: 11px 19px; border: 1px solid var(--navy); border-radius: 2px; background: var(--navy); color: white; text-decoration: none; font-size: 12px; font-weight: 700; letter-spacing: .055em; transition: transform .18s ease, background .18s ease; }
.button:hover { background: var(--navy-2); transform: translateY(-1px); }
.button.secondary { background: transparent; color: var(--navy); }
.button.secondary:hover { background: var(--ivory); }
.button.gold { background: var(--gold); border-color: var(--gold); color: #fff; }
.button.small { min-height: 40px; padding: 9px 14px; font-size: 11px; }
.hero { position: relative; overflow: hidden; background: var(--ivory); }
.hero::after { content: ""; position: absolute; right: -115px; top: -82px; width: 550px; height: 550px; border: 1px solid rgb(169 133 76 / 22%); border-radius: 50%; box-shadow: 0 0 0 38px rgb(169 133 76 / 5%), 0 0 0 88px rgb(169 133 76 / 4%); }
.hero-inner { position: relative; z-index: 1; width: min(1120px, calc(100% - 48px)); min-height: 490px; margin: 0 auto; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 65px; padding: 76px 0; }
.hero-copy { max-width: 660px; }
.hero-copy .lead { margin-bottom: 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-art { min-height: 320px; position: relative; display: grid; place-items: center; }
.hero-score { width: min(340px, 90%); aspect-ratio: .78; padding: 36px 32px; position: relative; overflow: hidden; background: linear-gradient(145deg, #203b50, #132635); color: var(--ivory); box-shadow: 0 26px 54px rgb(23 42 58 / 22%); transform: rotate(2deg); }
.hero-score::before, .hero-score::after { content: ""; position: absolute; left: -20%; width: 140%; height: 1px; background: rgb(197 166 109 / 38%); transform: rotate(-28deg); }
.hero-score::before { top: 36%; box-shadow: 0 15px rgb(197 166 109 / 38%), 0 30px rgb(197 166 109 / 38%), 0 45px rgb(197 166 109 / 38%), 0 60px rgb(197 166 109 / 38%); }
.hero-score::after { top: 68%; box-shadow: 0 15px rgb(197 166 109 / 38%), 0 30px rgb(197 166 109 / 38%), 0 45px rgb(197 166 109 / 38%), 0 60px rgb(197 166 109 / 38%); }
.hero-score-inner { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: space-between; text-align: center; border: 1px solid rgb(197 166 109 / 55%); padding: 20px 10px; }
.hero-score-label { color: var(--gold-light); font-size: 9px; letter-spacing: .25em; }
.hero-score-note { font: 38px/1 var(--serif); color: var(--gold-light); }
.hero-score-title { font: 28px/1.2 var(--serif); }
.hero-score-sub { font-size: 10px; letter-spacing: .14em; }
.category-grid, .arrangement-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.category-card { min-height: 220px; position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 27px; background: var(--paper); border: 1px solid var(--line); text-decoration: none; box-shadow: 0 5px 18px rgb(23 42 58 / 3%); transition: transform .18s ease, box-shadow .18s ease; }
.category-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.category-card::before { content: ""; position: absolute; left: 0; top: 0; width: 3px; height: 100%; background: var(--gold-light); }
.category-card .category-count { color: var(--muted); font-size: 12px; }
.category-glyph { color: var(--gold); font: 32px/1 var(--serif); }
.arrangement-card { min-width: 0; background: white; border: 1px solid var(--line); box-shadow: 0 4px 18px rgb(23 42 58 / 4%); }
.score-cover { min-height: 208px; padding: 21px; display: grid; place-items: center; position: relative; overflow: hidden; color: #fffdf8; text-align: center; background: linear-gradient(145deg, #29475b, #152c3c); text-decoration: none; }
.score-cover::before { content: ""; position: absolute; inset: 15px; border: 1px solid rgb(197 166 109 / 60%); }
.score-cover::after { content: ""; position: absolute; width: 210%; height: 100px; top: 46%; left: -55%; transform: rotate(-23deg); opacity: .36; background: repeating-linear-gradient(to bottom, transparent 0 12px, var(--gold-light) 12px 13px); }
.score-cover[data-tone="hymn"] { background: linear-gradient(145deg, #52604e, #263d39); }
.score-cover[data-tone="christmas"] { background: linear-gradient(145deg, #7a4d46, #3e3032); }
.score-cover[data-tone="classical"] { background: linear-gradient(145deg, #565879, #2b304b); }
.score-cover img { position: absolute; width: 100%; height: 100%; inset: 0; object-fit: cover; z-index: 1; }
.score-cover[data-has-image="true"] { background: #eee9df; }
.score-cover[data-has-image="true"]::before, .score-cover[data-has-image="true"]::after { display: none; }
.score-cover[data-has-image="true"] img { object-fit: contain; }
.cover-copy { position: relative; z-index: 2; max-width: 100%; display: flex; align-items: center; flex-direction: column; gap: 10px; text-shadow: 0 2px 8px rgb(0 0 0 / 36%); }
.cover-copy small { color: #e7d4a9; font-size: 9px; letter-spacing: .18em; text-transform: uppercase; }
.cover-copy strong { max-width: 250px; font: 24px/1.15 var(--serif); }
.cover-copy span { font-size: 10px; letter-spacing: .13em; text-transform: uppercase; }
.card-body { padding: 18px 19px 20px; }
.card-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 9px; }
.card-meta .category-label { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.grade-badge { display: inline-flex; width: fit-content; align-items: center; padding: 4px 8px; border: 1px solid #d7e1db; background: #edf3ee; color: #355640; border-radius: 99px; font-size: 10px; line-height: 1.4; font-weight: 700; white-space: nowrap; }
.grade-badge[data-grade*="Advanced"] { color: #6d5037; border-color: #e6d9c8; background: #f7efe3; }
.grade-badge[data-grade*="Intermediate"] { color: #35556f; border-color: #d4e0e8; background: #edf3f7; }
.grade-badge[data-grade*="Beginner"], .grade-badge[data-grade*="Elementary"], .grade-badge[data-grade="Easy"] { color: #3c654c; border-color: #d7e1db; background: #edf3ee; }
.card-title { display: block; color: var(--navy); font: 23px/1.2 var(--serif); text-decoration: none; }
.card-title:hover { color: var(--gold); }
.card-composer { color: var(--muted); font-size: 12px; margin: 5px 0 15px; }
.card-bottom { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 12px; }
.card-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; flex-wrap: wrap; }
.video-link { color: #765d35; font-size: 11px; font-weight: 700; letter-spacing: .035em; text-decoration: none; white-space: nowrap; }
.video-link:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.price { color: var(--navy); font-size: 14px; font-weight: 700; }
.detail-link { color: var(--navy); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-decoration: none; text-transform: uppercase; }
.detail-link:hover { color: var(--gold); }
.browse-band { background: var(--navy); color: white; padding: 53px 0; }
.browse-band-inner { display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.browse-band h2 { color: white; font-size: 34px; margin-bottom: 8px; }
.browse-band p { color: #d9e0e4; margin: 0; }
.browse-band .button { flex-shrink: 0; background: transparent; border-color: var(--gold-light); color: white; }
.browse-band .button:hover { background: rgb(255 255 255 / 8%); }
.page-banner { padding: 52px 0 46px; background: var(--ivory); border-bottom: 1px solid var(--line); }
.page-banner h1 { font-size: clamp(36px, 5vw, 54px); margin: 10px 0 12px; }
.page-banner p { color: var(--muted); margin: 0; }
.breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 0 19px; color: var(--muted); font-size: 12px; }
.breadcrumbs a { color: var(--navy); text-decoration: none; }
.breadcrumbs a:hover { color: var(--gold); text-decoration: underline; }
.breadcrumbs .separator { color: #a6a398; }
.drill-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.drill-link { min-height: 90px; display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 19px 20px; background: white; border: 1px solid var(--line); color: var(--navy); text-decoration: none; transition: border-color .18s ease, transform .18s ease; }
.drill-link-all { background: #fbf8f0; border-color: #d9c7a7; }
.drill-link:hover { border-color: var(--gold); transform: translateY(-2px); }
.drill-link strong { font: 21px/1.2 var(--serif); }
.drill-link span { color: var(--muted); font-size: 11px; }
.drill-arrow { color: var(--gold); font-size: 20px; }
.catalog-tools { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin: 0 0 25px; }
.catalog-tools p { margin: 0; color: var(--muted); font-size: 13px; }
.form-panel { margin-bottom: 28px; padding: 24px; background: white; border: 1px solid var(--line); }
.filter-form { display: grid; grid-template-columns: minmax(220px, 2fr) repeat(4, minmax(130px, 1fr)) auto; align-items: end; gap: 13px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { color: var(--navy); font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.field input, .field select { width: 100%; height: 43px; padding: 0 11px; background: var(--paper); border: 1px solid #d8d2c8; border-radius: 2px; color: var(--ink); font-size: 13px; }
.field input::placeholder { color: #778087; }
.filter-submit { height: 43px; white-space: nowrap; }
.filter-actions { display: flex; align-items: center; gap: 12px; margin-top: 13px; }
.clear-link { color: var(--muted); font-size: 12px; }
.results-summary { color: var(--muted); font-size: 13px; margin-bottom: 20px; }
.empty-state { padding: 46px 24px; text-align: center; border: 1px dashed var(--line); background: #fff; }
.empty-state h3 { margin-bottom: 8px; }
.detail-hero { padding: 44px 0 56px; background: var(--ivory); }
.detail-layout { display: grid; grid-template-columns: minmax(260px, .78fr) minmax(0, 1.22fr); gap: clamp(34px, 7vw, 84px); align-items: center; }
.detail-cover { max-width: 360px; width: 100%; justify-self: center; box-shadow: var(--shadow); }
.detail-cover .score-cover { min-height: 440px; }
.detail-copy h1 { font-size: clamp(38px, 5vw, 58px); margin: 10px 0 9px; }
.detail-composer { color: var(--muted); font: 19px/1.4 var(--serif); margin-bottom: 21px; }
.detail-tags { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 24px; }
.detail-tags .tag { padding: 5px 9px; background: rgb(255 255 255 / 75%); border: 1px solid var(--line); color: var(--ink); font-size: 11px; }
.detail-price { font: 26px/1.2 var(--serif); color: var(--navy); margin: 0 0 19px; }
.purchase-actions { display: flex; flex-wrap: wrap; gap: 11px; }
.purchase-note { color: var(--muted); font-size: 11px; margin: 12px 0 0; }
.detail-description { padding: 58px 0; }
.detail-description p { max-width: 760px; font-size: 16px; line-height: 1.8; white-space: pre-line; }
.detail-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 32px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fact { padding: 16px 20px 16px 0; }
.fact dt { color: var(--muted); font-size: 10px; letter-spacing: .13em; text-transform: uppercase; }
.fact dd { margin: 4px 0 0; color: var(--navy); font-size: 14px; font-weight: 600; }
.about-panel { padding: 64px; background: white; border: 1px solid var(--line); box-shadow: var(--shadow); }
.about-panel p { color: #4f5c63; font: 19px/1.85 var(--serif); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; margin-top: 34px; }
.contact-card { padding: 27px; background: white; border: 1px solid var(--line); }
.contact-card p { color: var(--muted); font-size: 14px; }
.contact-card a { color: var(--navy); font-weight: 700; }
.site-footer { background: var(--navy); color: white; padding: 50px 0 0; }
.footer-inner { width: min(1120px, calc(100% - 48px)); margin: 0 auto; display: grid; grid-template-columns: 1.4fr .8fr .8fr; gap: 42px; padding-bottom: 38px; }
.footer-wordmark { color: white; font: 25px/1.2 var(--serif); text-decoration: none; }
.footer-brand p { max-width: 270px; color: #c6d0d6; margin: 10px 0 0; font-size: 13px; }
.footer-nav, .footer-stores { display: flex; flex-direction: column; gap: 9px; }
.footer-nav a, .footer-stores a { color: #e3e8eb; font-size: 12px; text-decoration: none; }
.footer-nav a:hover, .footer-stores a:hover { color: var(--gold-light); }
.footer-stores span { margin-bottom: 3px; color: var(--gold-light); font-size: 10px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding: 15px max(24px, calc((100% - 1120px)/2)); border-top: 1px solid rgb(255 255 255 / 14%); color: #c6d0d6; font-size: 10px; }
.loading-state { padding: 80px 24px; text-align: center; color: var(--muted); }
@media (max-width: 950px) {
  .filter-form { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .filter-form .search-field { grid-column: span 2; }
  .category-grid, .arrangement-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .drill-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-inner { gap: 30px; }
}
@media (max-width: 700px) {
  .header-inner { min-height: 72px; padding: 0 20px; }
  .menu-toggle { display: block; }
  .primary-navigation { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 14px 24px rgb(23 42 58 / 9%); padding: 7px 20px 14px; }
  .primary-navigation.open { display: flex; }
  .primary-navigation a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .primary-navigation a:last-child { border-bottom: 0; }
  .container, .hero-inner, .footer-inner { width: min(100% - 36px, 560px); }
  .hero-inner { min-height: auto; grid-template-columns: 1fr; padding: 62px 0 42px; }
  .hero-art { min-height: 270px; }
  .hero-score { width: 220px; }
  .hero::after { width: 330px; height: 330px; right: -180px; top: 30%; }
  .section { padding: 58px 0; }
  .section-heading { display: block; }
  .section-heading .text-link { display: inline-block; margin-top: 7px; }
  .browse-band-inner { align-items: flex-start; flex-direction: column; }
  .page-banner { padding: 39px 0 34px; }
  .detail-layout { grid-template-columns: 1fr; gap: 34px; }
  .detail-cover { max-width: 270px; }
  .detail-cover .score-cover { min-height: 340px; }
  .detail-copy { text-align: center; }
  .detail-tags, .purchase-actions { justify-content: center; }
  .detail-copy .grade-badge { margin: 0 auto; }
  .detail-description { padding: 42px 0; }
  .about-panel { padding: 30px 25px; }
  .about-panel p { font-size: 17px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { padding: 14px 18px; flex-direction: column; gap: 4px; }
}
@media (max-width: 480px) {
  .wordmark strong { font-size: 18px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .button { width: 100%; }
  .category-grid, .arrangement-grid, .drill-list, .contact-grid { grid-template-columns: 1fr; }
  .category-card { min-height: 184px; }
  .score-cover { min-height: 190px; }
  .filter-form { grid-template-columns: 1fr 1fr; }
  .filter-form .search-field { grid-column: 1 / -1; }
  .filter-submit { grid-column: 1 / -1; }
  .form-panel { padding: 18px 14px; }
  .catalog-tools { align-items: flex-start; flex-direction: column; }
  .detail-facts { grid-template-columns: 1fr 1fr; }
  .fact { padding: 12px 10px 12px 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
.card-tune { font-size: 12px; letter-spacing: .02em; color: var(--muted); }
