/* ==========================================================
   屈雍随笔 — 个人博客样式表
   纯静态，无外部依赖
   ========================================================== */

:root {
  --bg: #fbfaf7;
  --bg-soft: #f4f1ea;
  --paper: #ffffff;
  --ink: #24211d;
  --ink-soft: #55504a;
  --ink-mute: #8b857d;
  --line: #e3ddd2;
  --line-strong: #cfc7b8;
  --accent: #8c5a3c;
  --accent-soft: #b98a6b;

  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Source Han Serif CN",
                "Songti SC", "SimSun", Georgia, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", sans-serif;

  --wrap: 1080px;
  --wrap-narrow: 720px;
}

* { box-sizing: border-box; }

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

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

img { max-width: 100%; display: block; }

a {
  color: inherit;
  text-decoration: none;
  transition: color .18s ease, border-color .18s ease, opacity .18s ease;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
}

.wrap-narrow {
  width: 100%;
  max-width: var(--wrap-narrow);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- 顶部导航 ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 250, 247, .88);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 19px;
  letter-spacing: .04em;
  color: var(--ink);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: var(--ink);
  color: #f7f3ea;
  font-size: 15px;
  font-family: var(--font-serif);
  letter-spacing: 0;
}

.brand:hover .brand-mark { background: var(--accent); }

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14.5px;
  color: var(--ink-soft);
}

.nav a {
  position: relative;
  padding: 4px 0;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width .22s ease;
}

.nav a:hover { color: var(--accent); }
.nav a:hover::after { width: 100%; }
.nav a.is-active { color: var(--ink); }
.nav a.is-active::after { width: 100%; background: var(--accent); }

/* ---------- 首页头部 ---------- */

.hero {
  padding: 92px 0 76px;
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 200px;
  align-items: center;
  gap: 56px;
}

.hero-eyebrow {
  font-size: 12.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 22px;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: 44px;
  line-height: 1.36;
  font-weight: 600;
  letter-spacing: .01em;
  margin: 0 0 24px;
  color: var(--ink);
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero p.lead {
  margin: 0;
  max-width: 34em;
  font-size: 16.5px;
  color: var(--ink-soft);
  line-height: 1.9;
}

.hero-meta {
  display: flex;
  gap: 22px;
  margin-top: 32px;
  font-size: 13.5px;
  color: var(--ink-mute);
  flex-wrap: wrap;
}

.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }

.dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--line-strong);
  display: inline-block;
}

.avatar {
  width: 176px;
  height: 176px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, #c8a68b 0%, #a9764f 45%, #7d4f31 100%);
  color: #fdf9f2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 62px;
  letter-spacing: .06em;
  box-shadow: 0 18px 40px -22px rgba(70, 46, 28, .55);
  user-select: none;
}

/* ---------- 区块标题 ---------- */

.section {
  padding: 68px 0;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 34px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}

.section-head h2 {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 600;
  margin: 0;
  letter-spacing: .06em;
}

.section-head .more {
  font-size: 13.5px;
  color: var(--accent);
  white-space: nowrap;
}

.section-head .more:hover { color: var(--ink); }

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

.post-list {
  display: flex;
  flex-direction: column;
}

.post-item {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 32px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.post-item:first-child { padding-top: 4px; }
.post-item:last-child { border-bottom: none; }

.post-date {
  font-family: var(--font-serif);
  font-size: 13px;
  color: var(--ink-mute);
  letter-spacing: .06em;
  padding-top: 4px;
}

.post-date .year {
  display: block;
  font-size: 22px;
  color: var(--line-strong);
  letter-spacing: .04em;
  line-height: 1.2;
}

.post-body h3 {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 600;
  margin: 0 0 10px;
  line-height: 1.55;
}

.post-body h3 a:hover { color: var(--accent); }

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

.post-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--ink-mute);
}

.tag {
  padding: 2px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-soft);
}

/* ---------- 页面标题区 ---------- */

.page-head {
  padding: 72px 0 46px;
  border-bottom: 1px solid var(--line);
}

.page-head .eyebrow {
  font-size: 12.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 16px;
}

.page-head h1 {
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 600;
  margin: 0 0 16px;
  letter-spacing: .02em;
}

.page-head p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 40em;
  font-size: 15.5px;
}

/* ---------- 正文排版 ---------- */

.prose {
  font-family: var(--font-serif);
  font-size: 17.5px;
  line-height: 2.05;
  color: #2c2925;
}

.prose > p { margin: 0 0 1.5em; }

.prose > p:first-of-type::first-letter {
  font-size: 3.1em;
  float: left;
  line-height: .92;
  padding: .06em .12em 0 0;
  color: var(--accent);
}

.prose h2 {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 600;
  margin: 2.4em 0 .9em;
  padding-left: 14px;
  border-left: 3px solid var(--accent-soft);
  line-height: 1.6;
}

.prose h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 2em 0 .7em;
}

.prose blockquote {
  margin: 1.9em 0;
  padding: 4px 0 4px 22px;
  border-left: 2px solid var(--line-strong);
  color: var(--ink-soft);
  font-style: normal;
}

.prose blockquote p:last-child { margin-bottom: 0; }

.prose ul, .prose ol { margin: 0 0 1.5em; padding-left: 1.4em; }
.prose li { margin-bottom: .55em; }

.prose hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 3em 0;
}

.prose a {
  color: var(--accent);
  border-bottom: 1px solid var(--accent-soft);
}

.prose strong { font-weight: 600; color: var(--ink); }

.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .88em;
  background: var(--bg-soft);
  padding: 2px 6px;
  border-radius: 4px;
}

/* ---------- 文章页头尾 ---------- */

.article-head {
  padding: 62px 0 34px;
}

.article-head .kicker {
  font-size: 12.5px;
  letter-spacing: .18em;
  color: var(--accent);
  margin: 0 0 18px;
}

.article-head h1 {
  font-family: var(--font-serif);
  font-size: 33px;
  line-height: 1.5;
  font-weight: 600;
  margin: 0 0 20px;
  letter-spacing: .01em;
}

.article-meta {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--ink-mute);
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}

.article-body { padding: 44px 0 20px; }

.article-foot {
  margin-top: 56px;
  padding: 24px 26px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.9;
  font-family: var(--font-sans);
}

.article-foot strong { color: var(--ink); }

.pager {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin: 44px 0 0;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.pager a { max-width: 46%; }
.pager .label {
  display: block;
  font-size: 12px;
  color: var(--ink-mute);
  letter-spacing: .1em;
  margin-bottom: 4px;
}
.pager a:hover { color: var(--accent); }
.pager .next { text-align: right; margin-left: auto; }

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

.about-grid {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 64px;
  align-items: start;
  padding: 48px 0 8px;
}

.fact-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 26px 24px;
  font-size: 14px;
}

.fact-card h3 {
  font-family: var(--font-serif);
  font-size: 16px;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  letter-spacing: .06em;
}

.fact-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 0;
  color: var(--ink-soft);
}

.fact-row dt, .fact-row .k { color: var(--ink-mute); flex: none; }
.fact-row .v { text-align: right; }

/* ---------- 联系页 ---------- */

.contact-list {
  display: grid;
  gap: 18px;
  margin-top: 8px;
}

.contact-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 24px;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.contact-item .k {
  font-family: var(--font-serif);
  font-size: 15px;
  color: var(--ink);
  letter-spacing: .04em;
}

.contact-item .v {
  font-size: 15px;
  color: var(--ink-soft);
  word-break: break-all;
}

.contact-item .v a {
  color: var(--accent);
  border-bottom: 1px solid var(--accent-soft);
}

.notice {
  margin-top: 40px;
  padding: 20px 24px;
  border-left: 3px solid var(--accent-soft);
  background: var(--bg-soft);
  border-radius: 0 8px 8px 0;
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.9;
}

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

.site-footer {
  margin-top: 60px;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 44px 0 34px;
  font-size: 13px;
  color: var(--ink-mute);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.footer-brand {
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--ink);
  letter-spacing: .06em;
}

.footer-brand span {
  display: block;
  font-family: var(--font-sans);
  font-size: 12.5px;
  color: var(--ink-mute);
  letter-spacing: .02em;
  margin-top: 6px;
}

.footer-nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  align-items: center;
}

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

.footer-bottom {
  padding-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  line-height: 1.9;
}

.footer-bottom .beian {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.footer-bottom a { color: var(--ink-soft); }
.footer-bottom a:hover { color: var(--accent); }

/* ---------- 响应式 ---------- */

@media (max-width: 860px) {
  .hero { padding: 60px 0 52px; }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .avatar {
    width: 108px;
    height: 108px;
    font-size: 38px;
    order: -1;
  }
  .hero h1 { font-size: 32px; }
  .about-grid { grid-template-columns: 1fr; gap: 34px; }
  .post-item { grid-template-columns: 1fr; gap: 10px; }
  .post-date { display: flex; align-items: baseline; gap: 8px; padding-top: 0; }
  .post-date .year { font-size: 14px; color: var(--ink-mute); }
  .article-head h1 { font-size: 26px; }
  .prose { font-size: 16.5px; line-height: 1.95; }
  .prose > p:first-of-type::first-letter { font-size: 2.6em; }
  .page-head { padding: 52px 0 34px; }
  .page-head h1 { font-size: 27px; }
}

@media (max-width: 620px) {
  .wrap, .wrap-narrow { padding: 0 20px; }
  .site-header .wrap { height: 58px; }
  .nav { gap: 16px; font-size: 13.5px; }
  .brand { font-size: 16.5px; }
  .brand-text { display: none; }
  .contact-item { grid-template-columns: 1fr; gap: 6px; }
  .section { padding: 48px 0; }
  .pager { flex-direction: column; }
  .pager .next { text-align: left; margin-left: 0; }
  .pager a { max-width: 100%; }
}
