@font-face {
  font-family: 'BodyMono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('Courier New'), local('CourierNew'),
       url('/fonts/courier-prime.woff2') format('woff2');
}

@font-face {
  font-family: 'HeadingSerif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('Georgia'),
       url('/fonts/playfair-display.woff2') format('woff2');
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #fff;
  --fg: #111;
  --muted: #555;
  --border: #ddd;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #3a3a3a;
    --fg: #f0f0f0;
    --muted: #bbb;
    --border: #555;
  }
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'BodyMono', 'Courier New', Courier, monospace;
  font-size: 1rem;
  line-height: 1.6;
  max-width: 680px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

a {
  color: var(--fg);
}

a:hover {
  opacity: 0.6;
}

header {
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
}

header h1 {
  font-family: 'HeadingSerif', Georgia, 'Times New Roman', serif;
  font-size: 2rem;
  letter-spacing: 0.02em;
}

header h1 a {
  text-decoration: none;
}

.tagline {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

nav {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
}

nav a {
  margin-right: 1rem;
  text-decoration: none;
  color: var(--muted);
}

nav a:hover {
  color: var(--fg);
  opacity: 1;
}

h1, h2, h3 {
  font-family: 'HeadingSerif', Georgia, 'Times New Roman', serif;
  line-height: 1.3;
}

h1 { font-size: 1.75rem; margin-bottom: 0.5rem; }
h2 { font-size: 1.25rem; margin-bottom: 1.5rem; }

.lirico-list {
  list-style: none;
}

.lirico-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.lirico-list li:last-child {
  border-bottom: none;
}

.lirico-list a {
  text-decoration: none;
}

.lirico-list a:hover {
  text-decoration: underline;
  opacity: 1;
}

.lirico-meta {
  color: var(--muted);
  font-size: 0.8rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.artist-list {
  list-style: none;
  columns: 2;
}

.artist-list li {
  padding: 0.35rem 0;
}

.artist-list a {
  text-decoration: none;
}

.artist-list a:hover {
  text-decoration: underline;
  opacity: 1;
}

.lirico-header {
  margin-bottom: 2rem;
}

.lirico-header .original {
  color: var(--muted);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.lirico-header .original a {
  color: var(--muted);
}

.lirico-body {
  white-space: pre-wrap;
  line-height: 1.8;
}

footer {
  margin-top: 4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--muted);
}
