/* ===== ifindyou blog · base ===== */
:root {
  --bg: #faf9f7;
  --surface: #ffffff;
  --ink: #1c1b1a;
  --ink-soft: #5c5854;
  --ink-faint: #97928c;
  --line: #e8e4de;
  --accent: #b4532a;
  --accent-soft: #fdf3ee;
  --radius: 14px;
  --maxw: 720px;
  --serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== layout ===== */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== header ===== */
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(250, 249, 247, 0.9);
  backdrop-filter: saturate(180%) blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}

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

.brand {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }

.nav { display: flex; gap: 22px; font-size: 14.5px; }
.nav a { color: var(--ink-soft); }
.nav a:hover { color: var(--accent); text-decoration: none; }

/* ===== hero ===== */
.hero { padding: 56px 0 40px; }
.hero h1 {
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1.5;
  margin: 0 0 14px;
  font-weight: 600;
}
.hero p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15.5px;
}

/* ===== post list ===== */
.post-list { list-style: none; padding: 0; margin: 0 0 64px; }

.post-item {
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.post-item:last-child { border-bottom: 1px solid var(--line); }

.post-item h2 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 8px;
  line-height: 1.5;
}
.post-item h2 a { color: var(--ink); }
.post-item h2 a:hover { color: var(--accent); text-decoration: none; }

.post-meta {
  font-size: 13px;
  color: var(--ink-faint);
  margin-bottom: 10px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.post-item p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.8;
}

/* ===== article ===== */
.article { padding: 52px 0 72px; }

.article-header { margin-bottom: 34px; }
.article-header h1 {
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1.45;
  font-weight: 600;
  margin: 0 0 12px;
}

.article-body h2 {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  margin: 40px 0 14px;
  line-height: 1.5;
}
.article-body h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 28px 0 10px;
}
.article-body p { margin: 0 0 20px; }
.article-body ul, .article-body ol {
  margin: 0 0 20px;
  padding-left: 22px;
}
.article-body li { margin-bottom: 8px; }
.article-body blockquote {
  margin: 0 0 20px;
  padding: 2px 0 2px 18px;
  border-left: 3px solid var(--line);
  color: var(--ink-soft);
}
.article-body code {
  background: var(--accent-soft);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.article-body img {
  max-width: 100%;
  border-radius: var(--radius);
  margin: 8px 0 20px;
}

.back-link {
  display: inline-block;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-faint);
  width: 100%;
}

/* ===== footer ===== */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 30px 0 46px;
  font-size: 13px;
  color: var(--ink-faint);
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

/* ===== mobile ===== */
@media (max-width: 600px) {
  body { font-size: 15.5px; }
  .hero { padding: 38px 0 26px; }
  .hero h1 { font-size: 25px; }
  .article { padding: 36px 0 52px; }
  .article-header h1 { font-size: 25px; }
  .site-header .wrap { padding-top: 15px; padding-bottom: 15px; }
}
