:root {
  --ink: #2b2a26;
  --ink-soft: #6f6a60;
  --accent: #9a3412;
  --paper: #faf8f3;
  --line: #e4ded2;
  --serif-en: Georgia, "Times New Roman", serif;
  --serif-cn: "Noto Serif SC", "Source Han Serif SC", "Songti SC", SimSun, "宋体", serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--serif-en), var(--serif-cn);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.75;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

.container {
  width: min(720px, calc(100% - 40px));
  margin: 0 auto;
}

/* ---- header ---- */
.site-header {
  border-bottom: 1px solid var(--line);
  padding: 22px 0 18px;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}

.site-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 2px;
}

.site-nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 15px;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
  transition: color .15s, border-color .15s;
}

.site-nav a:hover { color: var(--ink); }

.site-nav a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ---- notes ---- */
main {
  flex: 1;
  padding: 34px 0 50px;
}

.note {
  padding: 26px 0 30px;
  border-bottom: 1px solid var(--line);
}

.note h2 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
}

.note h2 a {
  color: var(--ink);
  text-decoration: none;
  transition: color .15s;
}

.note h2 a:hover { color: var(--accent); }

.note-meta {
  margin: 6px 0 14px;
  color: var(--ink-soft);
  font-size: 13.5px;
}

.note-meta .tag { color: var(--accent); }

.note-body {
  color: var(--ink);
  font-size: 15.5px;
}

.note-body p { margin-bottom: 10px; }
.note-body p:last-child { margin-bottom: 0; }

.empty-tip {
  color: var(--ink-soft);
  text-align: center;
  padding: 40px 0;
}

/* ---- footer ---- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 20px 0 24px;
  color: var(--ink-soft);
  font-size: 13.5px;
  text-align: center;
}

.site-footer a {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px dotted var(--ink-soft);
  transition: color .15s;
}

.site-footer a:hover { color: var(--accent); }
