
:root {
  --fg: #1a1a1a;
  --muted: #666;
  --accent: #6b2d5c;
  --bg: #fdfcf7;
  --card: #fff;
  --border: #e0dbce;
  --done: #2d7a3e;
  --pending: #999;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: 18px;
  line-height: 1.7;
  color: var(--fg);
  background: var(--bg);
}
.wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}
header.breadcrumbs {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border);
}
header.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
}
header.breadcrumbs a:hover { color: var(--accent); text-decoration: underline; }
header.breadcrumbs .sep { margin: 0 0.4rem; }
h1 {
  font-size: 1.9rem;
  margin: 0 0 1.5rem;
  color: var(--accent);
  font-weight: normal;
}
h2 {
  font-size: 1.4rem;
  margin: 2.2rem 0 0.8rem;
  color: var(--accent);
  font-weight: normal;
}
p { margin: 0 0 1rem; text-align: justify; }
strong { font-weight: bold; }
em { font-style: italic; }
a { color: var(--accent); }
a:hover { color: #4a1e42; }
ul.toc { list-style: none; padding: 0; margin: 0; }
ul.toc li {
  padding: 0.6rem 0.8rem;
  border-bottom: 1px dashed var(--border);
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
}
ul.toc li:last-child { border-bottom: none; }
ul.toc a {
  text-decoration: none;
  flex: 1;
  color: var(--fg);
}
ul.toc a:hover { color: var(--accent); text-decoration: underline; }
ul.toc .num {
  display: inline-block;
  min-width: 2.2rem;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: right;
}
ul.toc .he {
  color: var(--muted);
  font-size: 0.95rem;
  direction: rtl;
  font-family: 'David', 'Times New Roman', serif;
}
ul.toc .status {
  font-size: 0.85rem;
  color: var(--pending);
  min-width: 5rem;
  text-align: right;
}
ul.toc .status.done { color: var(--done); }
ul.toc li.pending a { color: var(--muted); pointer-events: none; }
.meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}
article {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2rem 2.2rem;
}
article p:first-of-type { margin-top: 0; }
nav.article-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.95rem;
}
nav.article-nav a { text-decoration: none; }
footer.footer {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}
footer.footer p { margin: 0.35rem 0; line-height: 1.5; }
footer.footer a { color: var(--muted); text-decoration: underline; }
footer.footer a:hover { color: var(--accent); }
