/* Notes pages. Loaded after shared/theme.css; uses its tokens. */
body {
  font-size: 15px;
  line-height: 1.7;
  max-width: 620px;
  margin: 0 auto;
  padding: 0 24px 100px;
}
.top-bar { height: 3px; background: var(--accent); margin-bottom: 40px; }
.back-link {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 24px;
}
.back-link:hover { color: var(--soft); }
.label {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted-2);
  letter-spacing: 0.04em;
}

/* Index */
.name { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 12px; }
.bio { color: var(--soft); font-size: 14px; line-height: 1.75; }
.label.section {
  margin: 36px 0 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.note-row {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 14px;
  padding: 9px 12px;
  margin: 0 -12px;
  border-radius: 7px;
  text-decoration: none;
  transition: background 0.1s;
}
.note-row:hover { background: var(--surface); }
.note-title { font-size: 14px; color: var(--text); }
.note-row:hover .note-title { color: var(--accent); }
.note-date { font-family: var(--mono); font-size: 11px; color: var(--muted); grid-row: 1; grid-column: 2; }
.note-sub { font-size: 13px; color: var(--muted-2); grid-column: 1 / -1; }
.note-sub:empty { display: none; }
.empty { font-size: 13px; color: var(--muted); }

/* Note */
h1 { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; margin-bottom: 8px; }
.note-meta { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-bottom: 32px; }
article h2, article h3 { margin: 28px 0 10px; font-weight: 600; }
article h2 { font-size: 17px; }
article h3 { font-size: 15px; }
article p { margin-bottom: 14px; }
article ul, article ol { margin: 0 0 14px 20px; }
article li { margin-bottom: 4px; }
article a { color: var(--accent); text-decoration: none; border-bottom: 1px solid transparent; }
article a:hover { border-bottom-color: var(--accent); }
article img { max-width: 100%; height: auto; border-radius: 6px; }
article code { font-family: var(--mono); font-size: 13px; background: var(--surface); padding: 2px 5px; border-radius: 4px; }
article pre {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  overflow-x: auto;
  margin-bottom: 14px;
}
article pre code { background: none; padding: 0; }
article blockquote { border-left: 2px solid var(--accent); padding-left: 14px; color: var(--soft); margin-bottom: 14px; }
article table { border-collapse: collapse; width: 100%; margin-bottom: 14px; font-size: 14px; }
article th, article td { border-bottom: 1px solid var(--border); padding: 6px 8px; text-align: left; }
article th { font-family: var(--mono); font-size: 12px; color: var(--muted-2); font-weight: 400; }
article hr { border: 0; border-top: 1px solid var(--border); margin: 28px 0; }
li.task { list-style: none; margin-left: -20px; }
li.task input { accent-color: var(--accent); margin-right: 6px; }
.missing { color: var(--muted-2); border-bottom: 1px dashed var(--muted); cursor: help; }

.backlinks { margin-top: 48px; padding-top: 14px; border-top: 1px solid var(--border); }
.backlinks .label { margin-bottom: 8px; }
.backlinks a { display: block; font-size: 14px; color: var(--soft); text-decoration: none; padding: 3px 0; }
.backlinks a:hover { color: var(--accent); }
