:root {
  --bg: #0c0f0c;
  --panel: #121712;
  --fg: #c8d4c8;
  --heading: #e8f0e8;
  --muted: #7a8f7a;
  --line: #243024;
  --accent: #d4a017;
  --link: #7ec8a3;
  --code-bg: #1a221a;
  --code-fg: #b8e0c0;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: ui-monospace, "Sarasa Mono SC", "Cascadia Code", Consolas, "Microsoft YaHei", monospace;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.7;
  font-size: 14.5px;
  min-height: 100vh;
  background-image:
    linear-gradient(rgba(36, 48, 36, 0.35) 1px, transparent 1px);
  background-size: 100% 1.7em;
}
.shell {
  max-width: 820px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}
.bar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem 1.5rem;
  padding: 0.85rem 1rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  margin-bottom: 2rem;
}
.bar .brand {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.bar .brand::before { content: "# "; color: var(--muted); }
.bar .tag {
  color: var(--muted);
  font-size: 0.82rem;
  flex: 1 1 auto;
}
.bar nav a {
  color: var(--link);
  text-decoration: none;
  margin-left: 0.9rem;
  font-size: 0.85rem;
}
.bar nav a:hover { color: var(--accent); text-decoration: underline; }

.blurb {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 1.75rem;
  padding-left: 0.2rem;
}
.blurb::before { content: "// "; color: var(--accent); }

.posts { list-style: none; }
.posts li {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}
.posts .date {
  color: var(--accent);
  font-size: 0.78rem;
}
.posts .date::before { content: "["; }
.posts .date::after { content: "]"; }
.posts h2 {
  margin: 0.35rem 0;
  font-size: 1.05rem;
  font-weight: 700;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
.posts h2 a {
  color: var(--heading);
  text-decoration: none;
}
.posts h2 a:hover { color: var(--accent); }
.posts p {
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.65;
}

article.note {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 1.5rem 1.25rem 1.75rem;
}
article.note h1 {
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--heading);
  line-height: 1.35;
  margin-bottom: 0.4rem;
}
article.note .meta {
  color: var(--accent);
  font-size: 0.78rem;
  margin-bottom: 1.5rem;
}
article.note h2 {
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 1.08rem;
  color: var(--accent);
  margin: 1.7rem 0 0.65rem;
}
article.note h2::before { content: "## "; color: var(--muted); font-family: ui-monospace, Consolas, monospace; font-size: 0.9em; }
article.note p, article.note li {
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 0.95rem;
}
article.note p { margin: 0.85rem 0; }
article.note ul, article.note ol { margin: 0.85rem 0 0.85rem 1.25rem; }
article.note li { margin: 0.25rem 0; }
article.note a { color: var(--link); }

code {
  font-family: ui-monospace, "Sarasa Mono SC", Consolas, monospace;
  font-size: 0.88em;
  background: var(--code-bg);
  color: var(--code-fg);
  padding: 0.08em 0.32em;
}
pre {
  background: #060806;
  border: 1px solid var(--line);
  color: var(--code-fg);
  padding: 0.95rem 1rem;
  overflow-x: auto;
  margin: 1rem 0;
  font-size: 0.82rem;
  line-height: 1.55;
}
pre code { background: none; padding: 0; color: inherit; }

.back {
  display: inline-block;
  margin-top: 1.75rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
}
.back:hover { color: var(--accent); }

footer.site {
  margin-top: 2.75rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--line);
  text-align: left;
  font-size: 0.75rem;
  color: var(--muted);
}
footer.site a {
  color: var(--muted);
  text-decoration: none;
}
footer.site a:hover { color: var(--link); }
footer.site::before { content: "eof — "; }
