/* One stylesheet for the whole site. */

:root {
  --bg: #fbfaf7;
  --text: #1f1f1f;
  --muted: #6b6b6b;
  --accent: #b04a2f;
  --line: #e4e1da;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151515;
    --text: #e8e6e1;
    --muted: #9a978f;
    --accent: #e0805f;
    --line: #2c2b28;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  line-height: 1.7;
}

.wrap {
  max-width: 42rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

/* Header and navigation */
header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem 1.5rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1rem;
  margin-bottom: 2.5rem;
}

.site-name {
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--text);
  text-decoration: none;
}

nav a {
  margin-left: 1.25rem;
  color: var(--muted);
  text-decoration: none;
  font-family: system-ui, sans-serif;
  font-size: 0.95rem;
}
nav a:first-child { margin-left: 0; }
nav a:hover { color: var(--accent); }

/* Text */
h1, h2 { line-height: 1.25; }
h1 { font-size: 2rem; margin: 0 0 0.5rem; }
a { color: var(--accent); }

.date {
  color: var(--muted);
  font-family: system-ui, sans-serif;
  font-size: 0.9rem;
}

/* Post list on the home page */
.post-list { list-style: none; padding: 0; }
.post-list li { margin-bottom: 1.75rem; }
.post-list a {
  font-size: 1.3rem;
  text-decoration: none;
  color: var(--text);
}
.post-list a:hover { color: var(--accent); }

/* Now-playing banner: a little card whose text crawls by */
.now-playing {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: system-ui, sans-serif;
}
.now-playing[hidden] { display: none; }

.np-art {
  width: 46px;
  height: 46px;
  border-radius: 5px;
  object-fit: cover;
  flex: none;
}

.np-text { flex: 1; min-width: 0; }

.np-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.np-line {
  overflow: hidden;
  white-space: nowrap;
  line-height: 1.35;
  /* fade the text in and out at the edges of the square */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 1rem, #000 calc(100% - 1rem), transparent);
          mask-image: linear-gradient(to right, transparent, #000 1rem, #000 calc(100% - 1rem), transparent);
}
.np-title { font-weight: 600; font-size: 0.98rem; }
.np-sub { color: var(--muted); font-size: 0.88rem; }

.np-reel { display: inline-flex; }
.np-half { display: inline-flex; }
.np-item { padding-right: 3rem; }

@keyframes np-slide {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

footer {
  margin-top: 4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: system-ui, sans-serif;
  font-size: 0.85rem;
}
