:root {
  --bg: #1c1917;
  --bg-card: #292524;
  --ink: #f5f0e8;
  --muted: #a8a29a;
  --line: #d6c4a8;
  --rule: #3f3a36;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", Georgia, serif;
  line-height: 1.7;
  font-size: 1.05rem;
}
main { max-width: 42rem; margin: 0 auto; padding: 2.25rem 1.25rem 4rem; }
main.wide { max-width: 46rem; }
a { color: var(--line); }
a:hover { color: #fff8ee; }
.site-nav {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; margin-bottom: 1.75rem; font-size: 0.92rem;
}
.brand { color: var(--ink); text-decoration: none; letter-spacing: 0.06em; font-weight: 650; }
header.hero { text-align: center; margin-bottom: 2rem; }
header.hero img.cover {
  width: 9rem; height: 9rem; border-radius: 1rem; object-fit: cover;
  border: 1px solid color-mix(in srgb, var(--line) 40%, transparent);
}
h1 { font-size: 1.85rem; font-weight: 650; letter-spacing: 0.04em; margin: 1rem 0 0.4rem; }
.lede, .meta, .hint, .caption { color: var(--muted); }
.lede { margin: 0; font-size: 0.98rem; }
.meta { font-size: 0.9rem; margin: 0 0 0.9rem; }
section.card, article.card {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 1rem;
  padding: 1.15rem 1.2rem 1.25rem;
  margin-bottom: 1.1rem;
}
h2 {
  font-size: 1.25rem;
  margin: 2.2rem 0 0.8rem;
  letter-spacing: 0.03em;
}
h2.kicker {
  font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--line); margin: 0 0 0.7rem; font-weight: 650;
}
h3 { font-size: 1.08rem; margin: 1.5rem 0 0.5rem; }
.row { display: flex; gap: 0.5rem; align-items: stretch; }
#feed-url, .feed-url {
  flex: 1; min-width: 0; background: #1c1917; color: var(--ink);
  border: 1px solid #57534e; border-radius: 0.55rem; padding: 0.55rem 0.7rem;
  font: 0.85rem/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
button, .btn {
  appearance: none; border: 1px solid var(--line); background: transparent;
  color: var(--ink); border-radius: 0.55rem; padding: 0.55rem 0.85rem;
  cursor: pointer; font: inherit; font-size: 0.9rem; text-decoration: none;
  display: inline-flex; align-items: center; white-space: nowrap;
}
button:hover, .btn:hover { background: #3f3a36; }
.apps { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.85rem; }
.hint { font-size: 0.88rem; margin: 0.75rem 0 0; }
audio { width: 100%; margin: 0.2rem 0 0.85rem; }
footer { color: var(--muted); font-size: 0.8rem; text-align: center; margin-top: 1.5rem; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.88em; }
figure { margin: 1.2rem 0; }
figure img { width: 100%; height: auto; border-radius: 0.6rem; display: block; border: 1px solid var(--rule); }
.caption { font-size: 0.86rem; margin: 0.45rem 0 0; }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; margin: 1rem 0 1.2rem; }
th, td { border: 1px solid var(--rule); padding: 0.5rem 0.6rem; text-align: left; vertical-align: top; }
th { color: var(--line); font-weight: 650; }
.toc { list-style: none; padding: 0; margin: 0; }
.toc li { margin: 0.25rem 0; }
.toc a { text-decoration: none; }
.toc .d1 { padding-left: 1rem; font-size: 0.95rem; }
.layers { list-style: none; padding: 0; margin: 1rem 0 1.4rem; }
.layers li {
  background: #1c1917; border: 1px solid var(--rule); border-radius: 0.7rem;
  padding: 0.85rem 1rem; margin: 0; position: relative;
}
.layers li + li { margin-top: 1.15rem; }
.layers li + li::before {
  content: ""; position: absolute; left: 1.4rem; top: -1.15rem;
  width: 1px; height: 1.15rem; background: var(--line); opacity: 0.5;
}
.layers strong { display: block; color: var(--line); }
.layers span { color: var(--muted); font-size: 0.92rem; }
ol.steps { padding-left: 1.2rem; }
ol.steps li { margin: 0.7rem 0; }
ol.steps strong { display: block; }
blockquote.quote {
  margin: 1.2rem 0; padding: 0.2rem 0 0.2rem 1rem;
  border-left: 3px solid var(--line); color: var(--ink);
}
blockquote.quote cite { display: block; color: var(--muted); font-style: normal; font-size: 0.88rem; margin-top: 0.4rem; }
.callout {
  border: 1px solid var(--line); border-radius: 0.8rem;
  padding: 0.9rem 1rem; margin: 1.2rem 0;
}
.callout strong { display: block; color: var(--line); margin-bottom: 0.25rem; }
.props { width: 100%; margin: 0.8rem 0 1.1rem; }
.props th { width: 5rem; }
