:root {
	--text: #1f2328;
	--muted: #656d76;
	--accent: #a6410c;
	--border: #e3e3e3;
	--bg: #ffffff;
	--bg-soft: #f7f5f2;
	color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
	:root { --text: #e6e6e6; --muted: #a0a0a0; --accent: #ff9d5c; --border: #343434; --bg: #141414; --bg-soft: #1d1d1d; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0; background: var(--bg); color: var(--text);
	font: 17px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
a { color: var(--accent); }
.wrap { max-width: 52rem; margin: 0 auto; padding: 0 1.1rem; }

.site-header { border-bottom: 1px solid var(--border); background: var(--bg-soft); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.4rem 1rem; padding-top: 0.8rem; padding-bottom: 0.8rem; }
.brand { font-weight: 800; font-size: 1.1rem; text-decoration: none; color: var(--text); letter-spacing: -0.01em; }
.brand span { color: var(--accent); }
.site-nav { display: flex; flex-wrap: wrap; gap: 0.3rem 1.1rem; font-size: 0.95rem; }
.site-nav a { text-decoration: none; color: var(--muted); font-weight: 600; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--accent); }

main { padding: 1.6rem 0 3rem; }
h1 { font-size: 1.9rem; line-height: 1.2; margin: 0 0 0.3rem; letter-spacing: -0.015em; }
h2 { font-size: 1.25rem; margin: 2rem 0 0.6rem; }
.lede { color: var(--muted); margin: 0 0 1.4rem; }

.set-songs { list-style: none; padding: 0; margin: 1rem 0; counter-reset: s; }
.set-songs li { counter-increment: s; border: 1px solid var(--border); border-radius: 10px; margin: 0 0 0.6rem; background: var(--bg); }
.set-songs a, .set-songs .nolink { display: flex; align-items: baseline; gap: 0.8rem; padding: 0.85rem 1rem; text-decoration: none; color: var(--text); font-size: 1.15rem; font-weight: 650; }
.set-songs a::before, .set-songs .nolink::before { content: counter(s); color: var(--accent); font-weight: 800; min-width: 1.2rem; }
.set-songs a:hover { background: var(--bg-soft); border-radius: 10px; }
.set-songs .key { margin-left: auto; font-size: 0.85rem; color: var(--muted); font-weight: 600; }
.set-songs .nolink { color: var(--muted); }
.btn {
	display: inline-block; padding: 0.55rem 1rem; border-radius: 8px; border: 1px solid var(--accent);
	color: var(--accent); text-decoration: none; font-weight: 700; font-size: 0.95rem; background: transparent; cursor: pointer;
}
.btn.primary { background: var(--accent); color: #fff; }
@media (prefers-color-scheme: dark) { .btn.primary { color: #141414; } }
.actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1rem 0 0; }

.history-set { border-top: 1px solid var(--border); padding: 0.9rem 0; }
.history-set h2 { margin: 0 0 0.3rem; font-size: 1.1rem; }
.history-set h2 a { color: var(--text); text-decoration: none; }
.history-set ul { margin: 0; padding-left: 1.2rem; }

.filter { width: 100%; padding: 0.6rem 0.8rem; font: inherit; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); color: var(--text); margin: 0.4rem 0 1rem; }
table.songs { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
table.songs th, table.songs td { text-align: left; padding: 0.5rem 0.4rem; border-bottom: 1px solid var(--border); vertical-align: top; }
table.songs th { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); cursor: pointer; user-select: none; white-space: nowrap; }
table.songs td.num { text-align: right; white-space: nowrap; }
table.songs th.num { text-align: right; }
.tag { display: inline-block; font-size: 0.72rem; font-weight: 700; padding: 0.05rem 0.4rem; border-radius: 4px; background: var(--bg-soft); border: 1px solid var(--border); color: var(--muted); margin-left: 0.3rem; vertical-align: 1px; }
.tag.stale { color: var(--accent); border-color: var(--accent); }
.toggle { font-size: 0.9rem; color: var(--muted); }

.song-notes { margin: 1rem 0; }
.song-notes pre { overflow-x: auto; font-size: 0.85rem; background: var(--bg-soft); padding: 0.8rem; border-radius: 8px; }
.song-notes .credits, .credits { font-size: 0.85rem; color: var(--muted); }
.video { position: relative; aspect-ratio: 16 / 9; max-width: 40rem; margin: 1rem 0; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 8px; }
.missing { color: var(--muted); font-style: italic; font-size: 0.9rem; }
.song-history-list { font-size: 0.95rem; }
.recordings ul { padding-left: 1.2rem; }

.set-nav { display: flex; justify-content: space-between; gap: 0.6rem; margin: 1.2rem 0; flex-wrap: wrap; }
.set-nav .set-name { font-size: 0.85rem; color: var(--muted); align-self: center; text-align: center; flex: 1; }
.set-nav a { text-decoration: none; font-weight: 700; }

.site-footer { border-top: 1px solid var(--border); color: var(--muted); font-size: 0.85rem; padding: 1.2rem 0 2rem; }
.print-only { display: none; }
@media print {
	.site-header, .site-footer, .mtr-chords-toolbar, .set-nav, .video, .actions { display: none !important; }
	body { font-size: 12pt; }
}
