/* 岁末冬至 · 个人博客 */

:root {
  --bg: #f6f1e6;
  --bg-elev: #fbf7ec;
  --ink: #1a1612;
  --ink-soft: #4a423a;
  --muted: #8a8074;
  --rule: #d9cfbd;
  --rule-soft: #e6dec9;
  --seal: #9a3220;
  --accent: #9a3220;
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", "Times New Roman", serif;
  --sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --mono: "IBM Plex Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --base-size: 17px;
  --measure: 36rem;
  --gutter: clamp(20px, 5vw, 56px);
  --tracking-hd: 0.04em;
  --tracking-cap: 0.18em;
  --row-gap: 22px;
}

[data-theme="dark"] {
  --bg: #14110d;
  --bg-elev: #1c1812;
  --ink: #ece3d2;
  --ink-soft: #c4b9a4;
  --muted: #7a7060;
  --rule: #2e271e;
  --rule-soft: #221c15;
  --seal: #c66a52;
  --accent: #c66a52;
}

[data-density="compact"] { --row-gap: 12px; }
[data-density="relaxed"] { --row-gap: 32px; }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: var(--base-size);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "palt";
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* subtle paper grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: radial-gradient(rgba(60,40,20,0.04) 1px, transparent 1px);
  background-size: 3px 3px;
}
[data-theme="dark"] body::before { mix-blend-mode: screen; opacity: 0.06; }

#root { position: relative; z-index: 1; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--seal); }

button { font-family: inherit; cursor: pointer; }

/* ---------------- Shell ---------------- */
.shell {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0 22px;
  border-bottom: 1px solid var(--rule);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 14px;
  cursor: pointer;
}
.brand-mark {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.12em;
}
.brand-sub {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: var(--tracking-cap);
  text-transform: uppercase;
  font-family: var(--sans);
}

.nav {
  display: flex;
  gap: 26px;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: var(--tracking-hd);
  color: var(--ink-soft);
}
.nav button {
  background: none;
  border: none;
  color: inherit;
  padding: 4px 0;
  font-size: inherit;
  letter-spacing: inherit;
  position: relative;
}
.nav button.active { color: var(--ink); }
.nav button.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1px;
  background: var(--ink);
}
.nav button:hover { color: var(--seal); }

.locale-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border: 1px solid var(--rule);
  border-radius: 2px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0;
}
.locale-toggle button {
  background: none;
  border: none;
  padding: 2px 2px;
  font: inherit;
  color: var(--muted);
  cursor: pointer;
  letter-spacing: 0;
}
.locale-toggle button.on { color: var(--seal); font-weight: 600; }
.locale-toggle button:hover { color: var(--ink); }
.locale-toggle .sep { color: var(--rule); margin: 0 1px; }

.en-loading {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.08em;
  padding: 8px 16px;
  border-radius: 2px;
  z-index: 100;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}

/* (year-head defined further down) */

/* Year tabs (Archive) */
.year-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 28px 0 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule-soft);
  font-family: var(--sans);
}
.year-tab {
  background: none;
  border: none;
  color: var(--ink-soft);
  padding: 6px 18px 6px 0;
  margin-right: 18px;
  border-right: 1px solid var(--rule);
  font-size: 14px;
  letter-spacing: 0.04em;
  cursor: pointer;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  white-space: nowrap;
  transition: color 0.2s;
}
.year-tab:last-child { border-right: none; }
.year-tab .yt-count {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}
.year-tab .yt-count::before { content: "("; }
.year-tab .yt-count::after  { content: ")"; }
.year-tab:hover { color: var(--seal); }
.year-tab.active { color: var(--ink); font-weight: 600; }
.year-tab.active .yt-count { color: var(--seal); }

/* tighten archive rows so titles dont feel cramped */
.year-block .article-row { padding: 18px 0; }
.year-block .row-title { letter-spacing: 0.02em; }

.footer {
  margin-top: 96px;
  padding: 36px 0 48px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.06em;
}
.footer .links { display: flex; gap: 18px; }
.footer .links a:hover { color: var(--seal); }

/* ---------------- Home ---------------- */
.hero {
  padding: 70px 0 56px;
  border-bottom: 1px solid var(--rule-soft);
  position: relative;
}
.hero-eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: var(--tracking-cap);
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 22px;
}
.hero-title {
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.15;
  margin: 0 0 18px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.hero-title .seal {
  display: inline-block;
  vertical-align: 0.18em;
  margin-left: 12px;
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--seal);
  color: var(--seal);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  line-height: 33px;
  letter-spacing: 0;
  border-radius: 3px;
  transform: rotate(-4deg);
  font-family: var(--serif);
}
.hero-lead {
  font-size: 22px;
  color: var(--ink);
  margin: 0 0 10px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.5;
}
.hero-sub {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 32em;
  line-height: 1.85;
  margin: 0 0 28px;
}
.hero-meta {
  display: flex;
  gap: 20px;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.06em;
}
.hero-meta span::before { content: "·"; margin-right: 20px; color: var(--rule); }
.hero-meta span:first-child::before { content: ""; margin: 0; }

/* category strip */
.cat-strip {
  margin: 36px 0 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.04em;
  border-top: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
  padding: 14px 0;
}
.cat-chip {
  background: none;
  border: none;
  color: var(--ink-soft);
  padding: 4px 14px 4px 0;
  margin-right: 14px;
  border-right: 1px solid var(--rule);
  white-space: nowrap;
  font-size: inherit;
  transition: color 0.2s;
}
.cat-chip:last-child { border-right: none; }
.cat-chip:hover { color: var(--seal); }
.cat-chip.active { color: var(--ink); font-weight: 600; }
.cat-chip .count {
  font-size: 10px;
  color: var(--muted);
  margin-left: 4px;
  font-weight: 400;
  vertical-align: 0.2em;
}

/* section heading */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 56px 0 18px;
}
.section-title {
  font-size: 13px;
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: var(--tracking-cap);
  text-transform: uppercase;
  color: var(--muted);
}
.section-aside {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* featured pinned */
.pinned {
  padding: 28px 0 32px;
  border-bottom: 1px solid var(--rule-soft);
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 28px;
  cursor: pointer;
}
.pinned:hover .pin-title { color: var(--seal); }
.pin-date {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
  line-height: 1.4;
}
.pin-date .y { display:block; font-size: 11px; opacity: 0.7; }
.pin-cat {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: var(--tracking-cap);
  text-transform: uppercase;
  color: var(--seal);
  margin-bottom: 10px;
}
.pin-title {
  font-size: 28px;
  line-height: 1.3;
  margin: 0 0 12px;
  font-weight: 500;
  transition: color 0.2s;
}
.pin-excerpt {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.8;
  margin: 0 0 14px;
  max-width: 34em;
}
.pin-meta {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
}

/* article list */
.article-list { list-style: none; padding: 0; margin: 0; }
.article-row {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 28px;
  padding: var(--row-gap) 0;
  border-bottom: 1px solid var(--rule-soft);
  align-items: baseline;
  cursor: pointer;
  transition: padding-left 0.25s ease;
}
.article-row:hover { padding-left: 8px; }
.article-row:hover .row-title { color: var(--seal); }
.row-date {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.row-main { min-width: 0; }
.row-cat {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: var(--tracking-cap);
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.row-title {
  font-size: 19px;
  line-height: 1.45;
  font-weight: 500;
  margin: 0;
  transition: color 0.2s;
}
.row-read {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
  white-space: nowrap;
  align-self: baseline;
}

.list-more {
  margin: 36px 0 12px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: var(--tracking-cap);
  text-transform: uppercase;
  color: var(--ink-soft);
  background: none;
  border: none;
  padding: 8px 0;
  border-bottom: 1px solid var(--ink-soft);
}
.list-more:hover { color: var(--seal); border-color: var(--seal); }

/* ---------------- Article view ---------------- */
.article {
  max-width: 640px;
  margin: 0 auto;
  padding: 56px 0 0;
}
.article-eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: var(--tracking-cap);
  text-transform: uppercase;
  color: var(--seal);
  margin-bottom: 22px;
}
.article-title {
  font-size: clamp(32px, 4.5vw, 44px);
  line-height: 1.25;
  margin: 0 0 22px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-wrap: balance;
}
.article-meta {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
  display: flex;
  gap: 20px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--rule-soft);
  margin-bottom: 44px;
}

.prose { font-size: 17px; line-height: 1.95; color: var(--ink); }
.prose > * + * { margin-top: 1.4em; }
.prose p { margin: 0; text-indent: 2em; }
.prose p.lead { text-indent: 0; font-size: 19px; color: var(--ink-soft); }
.prose h2 {
  font-size: 22px;
  margin-top: 2.4em;
  margin-bottom: 0.6em;
  font-weight: 500;
  letter-spacing: 0.02em;
  position: relative;
  padding-left: 18px;
}
.prose h2::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 8px; height: 8px;
  background: var(--seal);
  transform: rotate(45deg);
}
.prose h3 {
  font-size: 17px;
  margin-top: 2em;
  margin-bottom: 0.4em;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}
.prose ul {
  padding-left: 1.4em;
  margin: 1.2em 0;
}
.prose ul li {
  margin: 0.4em 0;
  list-style: none;
  position: relative;
}
.prose ul li::before {
  content: "·";
  position: absolute;
  left: -1.2em;
  color: var(--seal);
  font-weight: 700;
}
.prose code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--rule-soft);
  padding: 1px 6px;
  border-radius: 2px;
}
.prose a {
  color: var(--seal);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1px;
}
.prose a:hover { border-color: var(--seal); }
.art-figure {
  margin: 1.8em 0;
  padding: 36px;
  background: var(--rule-soft);
  border: 1px dashed var(--rule);
  text-align: center;
}
.art-figure-ph {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--muted);
}
.prose blockquote {
  border-left: 2px solid var(--rule);
  padding: 4px 0 4px 22px;
  margin: 0;
  color: var(--ink-soft);
  font-style: italic;
}
.prose hr {
  border: none;
  text-align: center;
  margin: 2.4em 0;
}
.prose hr::after {
  content: "❦";
  color: var(--muted);
  font-size: 18px;
}

.article-foot {
  margin-top: 64px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
}
.article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 28px;
}
.article-nav a {
  display: block;
  padding: 18px 0;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
  border-top: 1px solid var(--rule-soft);
}
.article-nav a:last-child { text-align: right; }
.article-nav .nav-label { display: block; margin-bottom: 6px; }
.article-nav .nav-title {
  font-family: var(--serif);
  color: var(--ink);
  font-size: 16px;
  letter-spacing: 0;
}
.article-nav a:hover .nav-title { color: var(--seal); }

/* TOC */
.toc {
  position: fixed;
  top: 120px;
  right: max(20px, calc((100vw - 880px) / 2 - 220px));
  width: 200px;
  font-family: var(--sans);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
  line-height: 1.8;
}
.toc-label {
  text-transform: uppercase;
  letter-spacing: var(--tracking-cap);
  color: var(--ink-soft);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
}
.toc a { display: block; padding: 2px 0; color: var(--muted); }
.toc a:hover, .toc a.active { color: var(--seal); }
@media (max-width: 1180px) { .toc { display: none; } }

/* read progress */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--seal);
  z-index: 100;
  transition: width 0.1s linear;
}

/* WeChat card (footer of articles in some variants — but per spec only About) */

/* ---------------- About ---------------- */
.about {
  padding: 64px 0 0;
  max-width: 720px;
  margin: 0 auto;
}
.about-title {
  font-size: clamp(36px, 5vw, 48px);
  margin: 0 0 36px;
  font-weight: 500;
  line-height: 1.2;
}
.about-prose { font-size: 18px; line-height: 1.95; color: var(--ink); }
.about-prose p { margin: 0 0 1.2em; }
.about-prose p.lead { font-size: 22px; color: var(--ink); line-height: 1.7; }

.about-list {
  margin: 32px 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}
.about-list li {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule-soft);
  font-size: 16px;
}
.about-list .k {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: var(--tracking-cap);
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 4px;
}

/* ---------------- WeChat card (paper-postcard) ---------------- */
.wechat-card {
  margin: 80px 0 24px;
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  background: var(--bg-elev);
  border: 1px solid var(--rule);
  overflow: hidden;
}
.wechat-card::before {
  content: "入山闻钟";
  position: absolute;
  top: 16px; right: 18px;
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 0.4em;
  color: var(--muted);
  writing-mode: vertical-rl;
  text-orientation: upright;
  opacity: 0.55;
}
.wechat-inner {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 44px;
  align-items: center;
  padding: 48px 48px 44px;
}
.wechat-text { min-width: 0; }
.wechat-text .wc-eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: var(--tracking-cap);
  text-transform: uppercase;
  color: var(--seal);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.wechat-text .wc-eyebrow::before {
  content: "";
  display: inline-block;
  width: 24px; height: 1px;
  background: var(--seal);
}
.wechat-text h3 {
  font-size: 28px;
  margin: 0 0 16px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.35;
}
.wechat-text h3 .wc-handle {
  color: var(--seal);
  border-bottom: 1px dashed var(--seal);
  padding-bottom: 2px;
}
.wechat-text p {
  font-size: 15px;
  color: var(--ink-soft);
  margin: 0 0 12px;
  line-height: 1.85;
  max-width: 28em;
}
.wc-meta {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  font-family: var(--sans);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.wc-meta span { display: inline-flex; align-items: center; gap: 6px; }
.wc-meta span::before {
  content: "";
  width: 4px; height: 4px;
  background: var(--seal);
  display: inline-block;
  transform: rotate(45deg);
}

.qr-frame {
  position: relative;
  width: 180px;
  height: 180px;
  padding: 14px;
  background: var(--bg);
  border: 1px solid var(--rule);
}
.qr-frame::before, .qr-frame::after,
.qr-frame > .c1, .qr-frame > .c2 {
  content: "";
  position: absolute;
  width: 10px; height: 10px;
  border-color: var(--seal);
  border-style: solid;
  border-width: 0;
}
.qr-frame::before { top: -3px; left: -3px; border-top-width: 1.5px; border-left-width: 1.5px; }
.qr-frame::after  { top: -3px; right: -3px; border-top-width: 1.5px; border-right-width: 1.5px; }
.qr-frame .c1     { bottom: -3px; left: -3px; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.qr-frame .c2     { bottom: -3px; right: -3px; border-bottom-width: 1.5px; border-right-width: 1.5px; }
.qr-frame img {
  width: 100%; height: 100%;
  display: block;
  filter: contrast(1.02);
  mix-blend-mode: multiply;
}
[data-theme="dark"] .qr-frame { background: #f6f1e6; }
[data-theme="dark"] .qr-frame img { mix-blend-mode: normal; }
.qr-caption {
  text-align: center;
  margin-top: 12px;
  font-family: var(--sans);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.18em;
}
.qr-wrap { display: flex; flex-direction: column; align-items: center; }

/* ---------------- Archive ---------------- */
.archive-head {
  padding: 64px 0 36px;
  border-bottom: 1px solid var(--rule);
}
.archive-title {
  font-size: clamp(32px, 4vw, 44px);
  margin: 0 0 12px;
  font-weight: 500;
}
.archive-sub {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.year-block { padding: 56px 0 8px; }
.year-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 14px;
}
.year-num {
  font-size: 52px;
  line-height: 1;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.year-meta {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ---------------- Search overlay ---------------- */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20,17,13,0.6);
  z-index: 200;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 12vh;
  backdrop-filter: blur(4px);
}
.search-box {
  width: min(640px, 90vw);
  background: var(--bg);
  border: 1px solid var(--rule);
  padding: 28px 32px;
}
.search-input {
  width: 100%;
  background: none;
  border: none;
  border-bottom: 1px solid var(--rule);
  padding: 8px 0 12px;
  font-family: var(--serif);
  font-size: 22px;
  color: var(--ink);
  outline: none;
}
.search-input::placeholder { color: var(--muted); }
.search-results {
  margin-top: 16px;
  max-height: 50vh;
  overflow-y: auto;
}
.search-result {
  padding: 14px 0;
  border-bottom: 1px solid var(--rule-soft);
  cursor: pointer;
}
.search-result:hover { color: var(--seal); }
.sr-cat {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: var(--tracking-cap);
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.sr-title { font-size: 16px; line-height: 1.4; }
.search-hint {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
  margin-top: 16px;
}

/* misc */
.empty {
  padding: 80px 0;
  text-align: center;
  color: var(--muted);
  font-style: italic;
}

/* ---------------- Mobile ---------------- */
@media (max-width: 720px) {
  :root { --base-size: 16px; --gutter: 20px; --row-gap: 18px; }
  .locale-toggle { padding: 3px 8px !important; font-size: 11px !important; }
  .nav { gap: 4px; }
  .hero-lead { font-size: 19px; }
  .hero-sub { font-size: 15.5px; line-height: 1.8; }
  .year-tabs { gap: 0; }
  .year-tab { margin-right: 10px; padding-right: 10px; font-size: 13px; }

  .topbar {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    padding: 18px 0 14px;
  }
  .brand-mark { font-size: 19px; letter-spacing: 0.08em; }
  .brand-sub { display: none; }
  .nav {
    flex: 1 1 100%;
    gap: 22px;
    font-size: 13px;
    overflow-x: auto;
    padding-top: 4px;
    -webkit-overflow-scrolling: touch;
  }
  .nav::-webkit-scrollbar { display: none; }

  .hero { padding: 40px 0 32px; }
  .hero-title { font-size: 38px; letter-spacing: 0; }
  .hero-title .seal { width: 28px; height: 28px; line-height: 25px; font-size: 12px; margin-left: 6px; }
  .hero-sub { font-size: 16.5px; line-height: 1.75; }
  .hero-eyebrow { margin-bottom: 16px; }
  .hero-meta { flex-wrap: wrap; gap: 8px 18px; font-size: 11px; }
  .hero-meta span::before { margin-right: 18px; }

  .cat-strip {
    margin: 28px -20px 32px;
    padding: 12px 20px;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .cat-strip::-webkit-scrollbar { display: none; }
  .cat-chip { padding: 4px 12px 4px 0; margin-right: 12px; flex-shrink: 0; }

  .section-head { margin: 40px 0 14px; }

  .pinned {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 22px 0 26px;
  }
  .pin-date { display: flex; gap: 6px; font-size: 11px; }
  .pin-date .y { display: inline; font-size: 11px; opacity: 1; }
  .pin-title { font-size: 22px; line-height: 1.35; }
  .pin-excerpt { font-size: 15px; }

  .article-row {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "meta read"
      "main main";
    gap: 6px 12px;
    padding: 16px 0;
  }
  .article-row:hover { padding-left: 0; }
  .row-date { grid-area: meta; font-size: 11px; }
  .row-read { grid-area: read; display: block; font-size: 11px; }
  .row-main { grid-area: main; }
  .row-cat { margin-bottom: 2px; }
  .row-title { font-size: 17px; line-height: 1.45; }

  /* Article view */
  .article { padding: 28px 0 0; }
  .article-title { font-size: 26px; line-height: 1.32; letter-spacing: 0; }
  .article-meta { flex-wrap: wrap; gap: 8px 16px; padding-bottom: 22px; margin-bottom: 28px; font-size: 11px; }
  .prose { font-size: 16.5px; line-height: 1.9; }
  .prose p { text-indent: 2em; }
  .prose p.lead { font-size: 17.5px; }
  .prose h2 { font-size: 19px; margin-top: 1.8em; padding-left: 14px; }
  .prose h2::before { width: 6px; height: 6px; top: 0.6em; }
  .prose h3 { font-size: 16.5px; }
  .prose blockquote { padding-left: 14px; font-size: 15.5px; }

  .article-foot { margin-top: 44px; }
  .article-nav { grid-template-columns: 1fr; gap: 8px; }
  .article-nav a:last-child { text-align: left; }

  /* Archive */
  .archive-head { padding: 36px 0 24px; }
  .year-block { padding: 28px 0 4px; }
  .year-head { grid-template-columns: 1fr; gap: 4px; margin-bottom: 12px; }
  .year-num { font-size: 40px; }

  /* About */
  .about { padding: 32px 0 0; }
  .about-title { font-size: 32px; margin-bottom: 24px; }
  .about-prose { font-size: 16.5px; }
  .about-prose p.lead { font-size: 19px; }
  .about-list li { grid-template-columns: 1fr; gap: 2px; padding: 12px 0; }
  .about-list .k { padding-top: 0; }

  /* WeChat card mobile */
  .wechat-card { margin: 48px 0 16px; }
  .wechat-card::before { display: none; }
  .wechat-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 28px 22px 26px;
    text-align: center;
  }
  .wechat-text .wc-eyebrow { justify-content: center; }
  .wechat-text h3 { font-size: 21px; }
  .wechat-text p { margin-left: auto; margin-right: auto; }
  .wc-meta { justify-content: center; }
  .qr-frame { width: 156px; height: 156px; }

  /* Footer */
  .footer { flex-direction: column; align-items: flex-start; gap: 12px; padding: 28px 0 36px; }

  /* Search */
  .search-overlay { padding-top: 6vh; }
  .search-box { padding: 22px 22px; }
  .search-input { font-size: 18px; }
}
