/* kinesinships.com/streams — public study-log viewer.
   Static page; fetches data.json (generated by scripts/gen_streams_site.py). */
:root {
  --bg: #0f1117;
  --panel: #171a23;
  --panel-2: #1d212c;
  --line: #2a2f3b;
  --text: #e6e8ee;
  --muted: #9aa3b2;
  --accent: #6ea8fe;
  --accent-2: #4ade80;
  --live: #ff4d6d;
  --code-bg: #11141c;
  --radius: 14px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 860px; margin: 0 auto; padding: 32px 20px 80px; }

.site-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.site-head h1 { font-size: 26px; margin: 0; letter-spacing: -0.01em; }
.site-head .by { color: var(--muted); font-size: 14px; }
.tagline { color: var(--muted); margin: 0 0 28px; font-size: 15px; }
.crumb { margin: 0 0 18px; font-size: 14px; }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.03em;
  padding: 2px 9px; border-radius: 999px; text-transform: uppercase;
}
.badge.live { background: rgba(255,77,109,.15); color: var(--live); }
.badge.live .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--live);
  animation: pulse 1.4s infinite; }
.badge.yt { background: rgba(110,168,254,.14); color: var(--accent); }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .25; } }

/* stream list (index) */
.stream-card {
  display: block; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 20px; margin-bottom: 14px;
  transition: border-color .15s, transform .05s;
}
.stream-card:hover { border-color: var(--accent); text-decoration: none; transform: translateY(-1px); }
.stream-card .row { display: flex; align-items: center; gap: 10px; }
.stream-card h2 { margin: 0; font-size: 19px; color: var(--text); }
.stream-card .meta { color: var(--muted); font-size: 13px; margin-top: 6px; }

/* timeline (stream page) */
.note {
  position: relative; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 18px 14px; margin: 0 0 14px;
}
.note .ts {
  display: inline-block; font-variant-numeric: tabular-nums; font-weight: 700;
  font-size: 13px; padding: 3px 9px; border-radius: 8px; margin-bottom: 8px;
  background: var(--panel-2); color: var(--accent); border: 1px solid var(--line);
}
.note .ts.plain { color: var(--muted); }
a.note .ts:hover { background: var(--accent); color: #0b0d12; }
.note h3 { margin: 4px 0 6px; font-size: 17px; }
.note .slug { color: var(--muted); font-size: 12px; font-family: ui-monospace, Menlo, monospace; }
.note .body { color: #d4d8e2; }
.note .body p { margin: 8px 0; }
.note .body h2, .note .body h3, .note .body h4 { margin: 12px 0 6px; }
.note .body code { background: var(--code-bg); padding: 1px 5px; border-radius: 5px;
  font-family: ui-monospace, Menlo, monospace; font-size: 13.5px; }
.note .body pre { background: var(--code-bg); border: 1px solid var(--line);
  border-radius: 10px; padding: 12px 14px; overflow-x: auto; }
.note .body pre code { background: none; padding: 0; }
.note .body ul, .note .body ol { margin: 8px 0; padding-left: 22px; }

.section-h { font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--muted); margin: 36px 0 14px; border-bottom: 1px solid var(--line); padding-bottom: 6px; }

.diary { background: var(--panel-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px 18px; margin-bottom: 12px; }
.diary summary { cursor: pointer; font-weight: 600; }
.diary .body { margin-top: 10px; color: #d4d8e2; }

.empty { color: var(--muted); padding: 40px 0; text-align: center; }
.foot { color: var(--muted); font-size: 12px; margin-top: 40px; text-align: center; }
