/*
  Minimal, hand-written stylesheet.
  No webfonts, no external requests, no build step required to read this file.
  System font stack only -- it's fast and it's yours.
*/

:root {
  --bg: #fdfdfb;
  --fg: #1a1a1a;
  --muted: #5b5b5b;
  --line: #dddad2;
  --accent: #1db954; /* spotify green, used sparingly */
  --tile-bg: #f1efe9;
  --max-width: 42rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14141a;
    --fg: #f0f0ee;
    --muted: #a3a39c;
    --line: #33333b;
    --tile-bg: #1d1d24;
  }
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light dark;
}

body {
  margin: 0;
  padding: 0 1.25rem;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-bottom: 4rem;
}

a {
  color: var(--fg);
  text-decoration-color: var(--line);
  text-underline-offset: 2px;
}

a:hover {
  text-decoration-color: currentColor;
}

header.site-header {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 0 1rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2rem;
}

header.site-header .site-title {
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
}

header.site-header nav {
  display: flex;
  gap: 1.25rem;
}

header.site-header nav a {
  font-size: 0.95rem;
  color: var(--muted);
  text-decoration: none;
}

header.site-header nav a:hover,
header.site-header nav a[aria-current="page"] {
  color: var(--fg);
}

h1 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

h1 + p.lede {
  color: var(--muted);
  margin-top: 0;
}

footer.site-footer {
  max-width: var(--max-width);
  margin: 3rem auto 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

/* Playlist tile grid */

.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0 2.5rem;
  padding: 0;
  list-style: none;
}

.tile {
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--tile-bg);
}

.tile-embed {
  display: block;
  width: 100%;
  border: none;
}

.tile-body {
  display: block;
  padding: 0.6rem 0.75rem 0.75rem;
}

.tile-desc {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
}

.tile-meta {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
}

.tile-meta a {
  color: var(--muted);
}

.tiles-note {
  font-size: 0.85rem;
  color: var(--muted);
}
