/* Field Notes — 极简静态博客样式 */
*, *::before, *::after { box-sizing: border-box; }

:root {
  --bg: #fdfcf9;
  --fg: #1f2328;
  --muted: #69707a;
  --border: #e8e4db;
  --accent: #0d5c8c;
  --code: #f5f3ee;
  --radius: 8px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131518;
    --fg: #d7dbe0;
    --muted: #8f979f;
    --border: #262a30;
    --accent: #84c0e0;
    --code: #1b1f24;
  }
}

html {
  font-size: 17px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.75;
  font-size: 1rem;
}

.wrap {
  max-width: 46rem;
  margin: 0 auto;
  padding: 2.5rem 1.4rem 4rem;
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}
a:hover { border-bottom-color: var(--accent); }

/* 顶部 */
.site-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.6rem;
}
.site-title {
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  border: none;
  color: var(--fg);
}
.site-title .tagline {
  color: var(--muted);
  font-weight: 400;
  margin-left: 0.55rem;
  font-size: 0.82rem;
}
nav {
  display: flex;
  gap: 1.2rem;
  font-size: 0.9rem;
}
nav a { color: var(--muted); border: none; }
nav a:hover { color: var(--fg); }

/* 首页简介 */
.intro { margin: 0 0 2.8rem; }
.intro h1 {
  font-size: 1.75rem;
  line-height: 1.3;
  margin: 0 0 0.7rem;
  font-weight: 680;
  letter-spacing: -0.01em;
}
.intro p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* 文章列表 */
.post-list { list-style: none; margin: 0; padding: 0; }
.post-item { padding: 1.15rem 0; border-bottom: 1px solid var(--border); }
.post-item:first-child { padding-top: 0; }
.post-item:last-child { border-bottom: none; }
.post-meta {
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.02em;
  margin-bottom: 0.25rem;
}
.post-title {
  font-size: 1.08rem;
  font-weight: 600;
  margin: 0 0 0.3rem;
  line-height: 1.45;
}
.post-title a { color: var(--fg); border: none; }
.post-title a:hover { color: var(--accent); }
.post-summary {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* 页脚 */
.site-foot {
  margin-top: 3.5rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* 文章页 */
.post-head { margin-bottom: 2.2rem; }
.post-head h1 {
  font-size: 1.6rem;
  line-height: 1.35;
  margin: 0 0 0.6rem;
  font-weight: 680;
}
.post-head .post-meta { font-size: 0.82rem; }

article p { margin: 0 0 1.1rem; }
article h2 {
  font-size: 1.15rem;
  margin: 2rem 0 0.8rem;
  font-weight: 650;
}
article ul, article ol { padding-left: 1.3rem; margin: 0 0 1.1rem; }
article li { margin: 0.25rem 0; }

code {
  background: var(--code);
  padding: 0.12em 0.4em;
  border-radius: 4px;
  font-size: 0.86em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
pre {
  background: var(--code);
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 0 0 1.2rem;
}
pre code { background: none; padding: 0; font-size: 0.84rem; }

blockquote {
  margin: 0 0 1.2rem;
  padding-left: 1rem;
  border-left: 3px solid var(--border);
  color: var(--muted);
}

.back {
  display: inline-block;
  margin-top: 0.4rem;
  font-size: 0.88rem;
  border: none;
}

/* 404 / 关于 */
.center { padding: 3.5rem 0; }
.center h1 {
  font-size: 2.6rem;
  margin: 0 0 0.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.center p { color: var(--muted); }

@media (max-width: 520px) {
  html { font-size: 16px; }
  .wrap { padding: 2rem 1.1rem 3rem; }
  .intro h1 { font-size: 1.5rem; }
  .post-head h1 { font-size: 1.35rem; }
  .site-title .tagline { display: none; }
}
