:root {
  color-scheme: light;
  font-family: system-ui, sans-serif;
  line-height: 1.55;
  color: #172c25;
  background: #f5f8f5;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: #135f49; text-underline-offset: .18em; }
a:hover { color: #093f30; }
:focus-visible { outline: 3px solid #087959; outline-offset: 4px; }
.shell { width: min(880px, calc(100% - 36px)); margin-inline: auto; }
.site-header { background: #e6f2e9; border-bottom: 1px solid #cbdfd1; }
.site-header nav { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.wordmark { display: inline-flex; align-items: center; gap: 8px; font-size: 1.17rem; font-weight: 800; text-decoration: none; }
.nav-link, .back { font-size: .92rem; font-weight: 650; }
main { padding-block: clamp(28px, 6vw, 58px) 24px; }
h1, h2, h3, p { margin: 0; }
h1 { margin-top: 10px; font-size: clamp(2rem, 6vw, 3.5rem); line-height: 1.08; letter-spacing: -.045em; overflow-wrap: anywhere; }
h2 { margin-top: 28px; font-size: 1.3rem; }
h3 { font-size: 1.02rem; }
.byline, .scope, footer { color: #415a50; }
.byline { margin-top: 8px; }
.answer { margin: 18px 0 22px; max-width: 66ch; font-size: 1.1rem; }
.scope { margin-block: 3px 14px; font-size: .9rem; }
.search { margin: 24px 0 15px; }
.search label { display: block; margin-bottom: 5px; font-weight: 650; }
.search input { width: min(100%, 460px); min-height: 46px; padding: 9px 13px; border: 1px solid #809a8b; border-radius: 8px; font: inherit; }
#search-empty:empty { display: none; }
#search-empty { margin-top: 10px; }
.song-list, .sources { padding: 0; list-style: none; }
.song-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.song-list a { display: block; height: 100%; padding: 11px 14px; border: 1px solid #d4e2d7; border-radius: 9px; background: #fff; text-decoration: none; }
.song-list a:hover { border-color: #79a88e; background: #edf7ef; }
.song-list span { display: block; color: #405a4d; font-size: .84rem; }
.region-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.region-card { padding: 15px; border: 1px solid #d4e2d7; border-radius: 10px; background: #fff; }
.region-card p { margin-top: 7px; }
.status { display: inline-block; border-radius: 5px; padding: 1px 8px; font-size: .87rem; font-weight: 700; background: #e9efed; color: #314940; }
.status.playable { background: #daf0e4; color: #16503a; }
.status.removed { background: #f6e6df; color: #762e24; }
.status.uncertain { background: #faedce; color: #644304; }
.sources { display: flex; flex-wrap: wrap; gap: 3px 14px; margin: 10px 0 0; font-size: .84rem; }
.context, footer { font-size: .88rem; }
.context { margin-top: 12px; }
footer { padding-block: 16px 30px; border-top: 1px solid #d4e2d7; }

@media (max-width: 540px) {
  .song-list, .region-grid { grid-template-columns: 1fr; }
}
