:root {
  --bg: #ffffff;
  --fg: #1f2328;
  --muted: #59636e;
  --line: #d1d9e0;
  --card: #f6f8fa;
  --link: #0550ae;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1117;
    --fg: #e6edf3;
    --muted: #9198a1;
    --line: #30363d;
    --card: #151b23;
    --link: #79c0ff;
  }
}

/* Home, project and 404 pages */
body.site {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
body.site a { color: var(--link); }
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
}
.brand { font-weight: 700; text-decoration: none; color: var(--fg) !important; }
.brand span { color: var(--muted); font-weight: 500; }
.main-link { font-size: 14px; text-decoration: none; }
body.site main { max-width: 760px; margin: 0 auto; padding: 32px 20px 48px; }
body.site h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 8px; }
.lede { color: var(--muted); margin: 0 0 28px; }
.crumbs { font-size: 14px; margin: 0 0 16px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px 20px;
  margin: 0 0 16px;
}
.card h2 { font-size: 1.2rem; margin: 0 0 4px; }
.card h2 a { text-decoration: none; }
.card p { margin: 4px 0 8px; color: var(--muted); }
.nb-list { list-style: none; margin: 12px 0 0; padding: 0; }
.nb-list li { padding: 8px 0; border-top: 1px solid var(--line); }
.nb-list a { font-weight: 600; }
.meta { display: block; font-size: 13px; color: var(--muted); }
.project-link { font-size: 14px; margin: 12px 0 0 !important; }
body.site footer { text-align: center; color: var(--muted); font-size: 13px; padding: 24px 20px 32px; }

/* Bar shown above every notebook page */
.topbar {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 10px 20px;
  background: #f6f8fa;
  border-bottom: 1px solid #d1d9e0;
  font: 14px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: #59636e;
}
.topbar a { color: #0550ae; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.topbar .right { margin-left: auto; }
