/* 生活研究 —— 全站样式（纯静态、无外部依赖） */

:root {
  --bg: #fbfaf8;
  --paper: #ffffff;
  --ink: #23272b;
  --ink-soft: #4a5056;
  --muted: #7a828b;
  --line: #e7e3db;
  --accent: #3f6d5f;
  --accent-soft: #edf3f0;
  --measure: 44rem;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: 0.012em;
}

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); }

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- 页头 ---------- */

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header .wrap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1rem;
  padding-bottom: 0.9rem;
}

.brand {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink);
  border-bottom: 0;
}
.brand span {
  display: block;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-top: 0.15rem;
}

.nav {
  display: flex;
  gap: 1.1rem;
  flex-wrap: wrap;
  font-size: 0.92rem;
}
.nav a { color: var(--ink-soft); }
.nav a.active { color: var(--accent); font-weight: 600; }

/* ---------- 首页 ---------- */

.hero {
  padding: 4.5rem 0 2.5rem;
}
.hero h1 {
  font-size: 2.35rem;
  line-height: 1.25;
  margin: 0 0 1rem;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.hero p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.02rem;
}
.hero .rule {
  width: 3rem;
  height: 2px;
  background: var(--accent);
  margin: 1.6rem 0 0;
}

section.block {
  padding: 2.2rem 0;
  border-top: 1px solid var(--line);
}

.block-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1.2rem;
}
.block-title h2 {
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  font-weight: 600;
  color: var(--muted);
  margin: 0;
  text-transform: uppercase;
}
.block-title a { font-size: 0.85rem; }

/* ---------- 文章列表 ---------- */

.post-list { list-style: none; margin: 0; padding: 0; }

.post-list li {
  padding: 1.05rem 0;
  border-bottom: 1px dashed var(--line);
}
.post-list li:last-child { border-bottom: 0; }

.post-list .date {
  font-variant-numeric: tabular-nums;
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.post-list .ttl {
  display: block;
  font-size: 1.02rem;
  margin-top: 0.15rem;
}
.post-list .desc {
  display: block;
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

/* ---------- 卡片 / 网格 ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr));
  gap: 1rem;
}

.tile {
  display: block;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 6px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.tile:hover { border-color: var(--accent); }

.tile .thumb {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--accent-soft), #dfe7e3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #93a8a0;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
}
.tile .thumb.t2 { background: linear-gradient(135deg, #f2ece2, #e6dccd); color: #b3a48e; }
.tile .thumb.t3 { background: linear-gradient(135deg, #e9eef5, #d9e3ee); color: #93a4b8; }
.tile .thumb.t4 { background: linear-gradient(135deg, #f5eaea, #ecdcdc); color: #b89393; }

.tile .cap {
  padding: 0.65rem 0.8rem 0.8rem;
  font-size: 0.86rem;
  color: var(--ink-soft);
}
.tile .cap small {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  margin-top: 0.1rem;
}

/* ---------- 正文 ---------- */

article.prose { padding: 3rem 0 4rem; }

article.prose .meta {
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  margin-bottom: 0.6rem;
}

article.prose h1 {
  font-size: 1.85rem;
  line-height: 1.35;
  margin: 0 0 1.8rem;
  letter-spacing: 0.02em;
  font-weight: 600;
}

article.prose h2 {
  font-size: 1.16rem;
  margin: 2.4rem 0 0.8rem;
  letter-spacing: 0.02em;
}

article.prose p { margin: 0 0 1.15rem; }

article.prose blockquote {
  margin: 1.6rem 0;
  padding: 0.2rem 0 0.2rem 1.1rem;
  border-left: 2px solid var(--accent);
  color: var(--ink-soft);
  font-size: 0.95rem;
}

article.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88em;
  background: var(--accent-soft);
  padding: 0.1em 0.35em;
  border-radius: 3px;
}

article.prose ul { padding-left: 1.3rem; }
article.prose li { margin-bottom: 0.4rem; }

.backlink {
  display: inline-block;
  margin-top: 2.5rem;
  font-size: 0.9rem;
}

/* ---------- 页脚 ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 2rem;
  padding: 2.2rem 0 3rem;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.9;
}
.site-footer a { color: var(--muted); }
.site-footer .fgrid {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.site-footer .filing {
  margin-top: 0.6rem;
}

/* ---------- 关于页 ---------- */

.about dt {
  font-weight: 600;
  margin-top: 1.2rem;
  font-size: 0.95rem;
}
.about dd { margin: 0.2rem 0 0; color: var(--ink-soft); }

@media (max-width: 480px) {
  .hero { padding: 3rem 0 1.8rem; }
  .hero h1 { font-size: 1.85rem; }
  article.prose h1 { font-size: 1.5rem; }
  .site-header .wrap { padding-top: 0.85rem; padding-bottom: 0.7rem; }
  .nav { gap: 0.85rem; font-size: 0.86rem; }
}
