/* MJRchive minimal theme — light/dark aware, accessible, no JS */

:root {
  --bg: #0c0c0e;
  --fg: #eaeaec;
  --muted: #a9a9b0;
  --card: #16161a;
  --ink-soft: #b8b8bf;
  --accent: #e3d5a7; /* warm neutral for focus rings */
  --radius: 14px;
  --shadow: 0 8px 22px rgba(0,0,0,.28);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f7f8;
    --fg: #15151a;
    --muted: #646470;
    --card: #ffffff;
    --ink-soft: #6e6e79;
    --shadow: 0 6px 16px rgba(0,0,0,.10);
  }
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap { max-width: 720px; margin: 0 auto; padding: 28px 18px 40px; }

header { margin-bottom: 10px; }

.brand {
  margin: 0;
  letter-spacing: .2px;
  font-size: clamp(1.8rem, 4vw, 2.2rem);
  font-weight: 700;
}
.brand .thin { font-weight: 300; color: var(--ink-soft); }

.tagline { margin:.25rem 0 1.5rem; color: var(--muted); }

nav.list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 8px;
}
@media (min-width: 560px) { nav.list { grid-template-columns: 1fr 1fr; } }

.card, .list a {
  display: block;
  text-decoration: none;
  color: var(--fg);
  background: var(--card);
  padding: 14px 16px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.04);
}
@media (prefers-color-scheme: light) {
  .card, .list a { border-color: rgba(0,0,0,.06); }
}
.list a:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(0,0,0,.32); }
.list a:focus-visible, a.btn:focus-visible, .back a:focus-visible, audio:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 10px;
}

.back { margin-bottom: 10px; }
.back a { color: var(--muted); text-decoration: none; }
.back a:hover { color: var(--fg); }

.song h1 { margin: .25rem 0 .75rem; font-size: clamp(1.5rem, 3.6vw, 2rem); }
.song p.meta { color: var(--muted); margin-top: .25rem; }

.player { width: 100%; margin: .5rem 0 1rem; }

.downloads { margin-top: .75rem; }
.downloads h2 {
  font-size: .95rem; color: var(--muted); font-weight: 600; letter-spacing: .3px;
  text-transform: uppercase; margin: .5rem 0 .5rem;
}
.downloads ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
@media (min-width: 560px) { .downloads ul { grid-template-columns: repeat(5, 1fr); } }

a.btn {
  display: block; text-align: center; padding: 10px 12px; border-radius: 12px;
  background: var(--card); color: var(--fg); text-decoration: none; border: 1px solid rgba(255,255,255,.06);
}
@media (prefers-color-scheme: light) { a.btn { border-color: rgba(0,0,0,.08); } }
a.btn:hover { filter: brightness(1.05); }
a.btn.small { font-size: .95rem; }

.note { margin-top: 1rem; color: var(--muted); }

footer { margin-top: 28px; color: var(--muted); }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .list a:hover { transform: none; }
}