
:root {
  --bg: #0b0d10;
  --panel: #14181d;
  --line: #2a3138;
  --text: #f4f6f8;
  --muted: #9aa3ad;
  --blue: #3ea5f8;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}
a { color: var(--blue); }
.top {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 28px;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.top nav { margin-left: auto; display: flex; gap: 16px; }
.top nav a { color: var(--muted); text-decoration: none; font-size: 14px; }
.top nav a:hover { color: var(--text); }
.shell { display: grid; grid-template-columns: 230px 1fr; min-height: calc(100vh - 61px); }
.side {
  border-right: 1px solid var(--line);
  padding: 22px 16px;
}
.side a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 14px;
}
.side a:hover { color: var(--text); background: #1b2127; }
.side a.here { color: var(--text); background: #1b2127; }
article { max-width: 760px; padding: 36px 40px 80px; }
h1 { font-size: 36px; letter-spacing: -0.03em; margin: 0 0 12px; font-weight: 600; }
h2 { font-size: 22px; margin: 32px 0 8px; letter-spacing: -0.02em; }
p, li { color: #d5dbe1; }
.lede { font-size: 18px; color: var(--muted); }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.92em; color: #e7eef5; }
.shot { margin: 28px 0; }
.shot img { display: none; width: 100%; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); }
.shot img.is-loaded { display: block; }
.shot figcaption { color: var(--muted); font-size: 13px; margin-top: 8px; }
@media (max-width: 800px) {
  .shell { grid-template-columns: 1fr; }
  .side { border-right: 0; border-bottom: 1px solid var(--line); display: flex; gap: 4px; overflow-x: auto; }
  .side a { white-space: nowrap; }
  article { padding: 28px 20px 64px; }
}
