:root {
  --ink: #1c1917;
  --paper: #faf9f6;
  --muted: #78716c;
  --accent: #9a3412;
  --rule: #e7e5e4;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; }
body {
  font-family: "Songti SC", "Noto Serif SC", "Source Han Serif SC", Georgia, serif;
  background: var(--paper); color: var(--ink);
  line-height: 1.9; font-size: 17px;
  background-image: radial-gradient(circle at 1px 1px, rgba(0,0,0,0.035) 1px, transparent 0);
  background-size: 28px 28px;
}
.shell { max-width: 720px; margin: 0 auto; padding: 0 1.5rem; }

/* ---------- header ---------- */
header.site { padding: 4rem 0 2.5rem; text-align: center; }
.site h1.brand { font-size: 2.6rem; font-weight: 900; letter-spacing: .35em; text-indent: .35em; }
.site h1.brand a { color: inherit; text-decoration: none; }
.site .tagline { margin-top: .8rem; color: var(--muted); font-size: .85rem; letter-spacing: .5em; text-indent: .5em; }
.site .stamp {
  margin: 1.6rem auto 0; width: 46px; height: 46px; line-height: 44px;
  border: 2px solid var(--accent); border-radius: 50%;
  color: var(--accent); font-size: 1.15rem; font-weight: 700;
  transform: rotate(-6deg); opacity: .85;
}

/* ---------- nav ---------- */
nav.main {
  display: flex; justify-content: center; gap: 2.5rem;
  border-top: 1px solid var(--rule); border-bottom: 3px double var(--ink);
  padding: .8rem 0; margin-bottom: 3.5rem; font-size: .95rem;
}
nav.main a { color: var(--muted); text-decoration: none; letter-spacing: .2em; }
nav.main a:hover { color: var(--accent); }

/* ---------- post list ---------- */
.section-label {
  font-size: .8rem; letter-spacing: .4em; color: var(--accent);
  margin-bottom: 1.6rem; display: flex; align-items: center; gap: 1rem;
}
.section-label::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
ul.posts { list-style: none; }
ul.posts li { padding: 1.15rem 0; border-bottom: 1px dashed var(--rule); }
ul.posts a.item { display: block; text-decoration: none; color: inherit; transition: padding-left .2s; }
ul.posts a.item:hover { padding-left: .6rem; color: var(--accent); }
ul.posts .title { font-size: 1.15rem; font-weight: 700; }
ul.posts time {
  display: block; font-size: .78rem; color: var(--muted);
  font-family: ui-monospace, monospace; letter-spacing: .1em;
}
ul.posts .excerpt { font-size: .88rem; color: var(--muted); margin-top: .3rem; }

/* ---------- article ---------- */
article.post { padding: 1rem 0 0; }
article.post h1.title { font-size: 1.9rem; font-weight: 900; line-height: 1.5; margin-bottom: .6rem; }
article.post .meta {
  color: var(--muted); font-size: .8rem; letter-spacing: .15em;
  padding-bottom: 1.6rem; border-bottom: 3px double var(--ink); margin-bottom: 2rem;
}
article.post p { margin-bottom: 1.4rem; text-align: justify; }
article.post blockquote {
  border-left: 3px solid var(--accent); padding: .2rem 0 .2rem 1.2rem;
  color: var(--muted); margin: 1.6rem 0; font-style: italic;
}
.back { display: inline-block; margin-top: 2.5rem; color: var(--muted); text-decoration: none; font-size: .9rem; letter-spacing: .2em; }
.back:hover { color: var(--accent); }

/* ---------- footer ---------- */
footer.site {
  margin-top: 5rem; padding: 2rem 0 3rem; text-align: center;
  border-top: 1px solid var(--rule); color: var(--muted); font-size: .8rem; letter-spacing: .2em;
}
footer.site a { color: inherit; }

@media (max-width: 560px) {
  .site h1.brand { font-size: 2rem; }
  nav.main { gap: 1.4rem; }
}
@media (prefers-color-scheme: dark) {
  :root { --ink: #d6d3d1; --paper: #141210; --muted: #8a8580; --rule: #2c2926; --accent: #d97706; }
  body { background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.04) 1px, transparent 0); }
}
