:root {
  color-scheme: light;
  --background: #f7f8f3;
  --paper: #fffefa;
  --ink: #242b22;
  --muted: #555f50;
  --forest: #31513c;
  --line: #dfe4d8;
  --tint: #edf1e7;
  --gold: #f3ca7c;
  --sans: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif;
  --serif: "Noto Serif CJK SC", "Source Han Serif SC", "Songti SC", "SimSun", Georgia, serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--background);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.65;
}
a { color: inherit; text-underline-offset: .24em; }
a:focus-visible { outline: 2px solid #967031; outline-offset: 5px; }
h1, h2, h3, p { margin: 0; }
.wrap { width: min(70rem, calc(100% - 3rem)); margin-inline: auto; }
.skip-link {
  position: fixed;
  z-index: 3;
  top: 1rem;
  left: 1rem;
  padding: .5rem .85rem;
  background: var(--paper);
  transform: translateY(-180%);
}
.skip-link:focus { transform: none; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.header-inner { min-height: 5rem; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: .68rem;
  color: var(--ink);
  font: 700 1.34rem/1.05 Georgia, serif;
  letter-spacing: -.02em;
  text-decoration: none;
}
.brand small {
  display: block;
  margin-top: .35rem;
  color: var(--muted);
  font: 400 .72rem/1.2 var(--sans);
  letter-spacing: .12em;
}
.brand-mark {
  position: relative;
  display: inline-block;
  width: 2.38rem;
  height: 2.38rem;
  flex: 0 0 auto;
  border-radius: .65rem;
  background: var(--forest);
}
.brand-mark i {
  position: absolute;
  left: 50%;
  top: .35rem;
  width: .76rem;
  height: .62rem;
  transform: translateX(-50%);
  background: #f2d794;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.brand-mark i:nth-child(2) { top: .64rem; width: 1.09rem; height: .75rem; }
.brand-mark i:nth-child(3) { top: .92rem; width: 1.36rem; height: .89rem; }
.brand-mark::after {
  position: absolute;
  bottom: .33rem;
  left: calc(50% - .07rem);
  width: .14rem;
  height: .32rem;
  background: #f2d794;
  content: "";
}
nav { display: flex; align-items: center; gap: clamp(.9rem, 3vw, 2.15rem); }
nav a {
  padding-block: .48rem;
  color: var(--muted);
  font-size: .93rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
}
nav a:hover, nav a[aria-current] { color: var(--forest); text-decoration: underline; }
.home { padding-block: 2rem 3.5rem; }
.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 23rem;
  overflow: hidden;
  isolation: isolate;
  border-radius: 1.15rem;
  background: #263b2f;
  color: #fffdf6;
}
.hero-image, .hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-image { object-fit: cover; }
.hero::after {
  background: linear-gradient(90deg, rgba(14, 24, 17, .78), rgba(14, 24, 17, .46) 48%, transparent 84%);
  content: "";
}
.hero-content { padding: 2.75rem clamp(1.7rem, 6vw, 4.8rem); }
.eyebrow {
  display: flex;
  align-items: center;
  gap: .55rem;
  color: #ffe0a3;
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .16em;
}
.eyebrow span { width: 1.3rem; height: 1px; background: currentColor; }
.hero h1 {
  margin-block: .48rem .75rem;
  font: 700 clamp(2.65rem, 6vw, 4.55rem)/1.15 var(--serif);
  letter-spacing: .06em;
}
.hero-description { max-width: 31rem; color: #f2f1e8; font-size: 1.05rem; }
.hero-link {
  display: inline-flex;
  align-items: center;
  margin-top: 1.6rem;
  padding: .62rem 1rem;
  border-radius: .42rem;
  background: var(--gold);
  color: #282319;
  font-size: .95rem;
  font-weight: 700;
  text-decoration: none;
}
.hero-link:hover { background: #ffdd9d; }
.hero-link:focus-visible { outline-color: #fff3ce; }
.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(15rem, .35fr);
  align-items: start;
  gap: 1.65rem;
  margin-top: 2.55rem;
  scroll-margin-top: 1rem;
}
.section-title { margin-bottom: .9rem; font: 700 1.7rem/1.35 var(--serif); }
.post-list { display: grid; gap: .75rem; }
.post-card {
  position: relative;
  padding: 1.15rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: .72rem;
  background: var(--paper);
}
.post-card:hover, .post-card:focus-within { border-color: #aab9a4; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; color: var(--muted); font-size: .82rem; }
.topic-label {
  display: inline-block;
  padding: .16rem .52rem;
  border-radius: .27rem;
  background: var(--tint);
  color: var(--forest);
  font-size: .85rem;
  font-weight: 700;
}
.post-card h3 { margin-block: .42rem .25rem; font-size: 1.2rem; line-height: 1.42; }
.post-card h3 a { text-decoration: none; }
.post-card h3 a:hover, .post-card h3 a:focus-visible { color: var(--forest); text-decoration: underline; }
.post-card h3 a::after { position: absolute; inset: 0; content: ""; }
.post-card p, .sidebar p { color: var(--muted); }
.sidebar {
  margin-top: 3.15rem;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: .72rem;
  background: var(--tint);
}
.sidebar h2 { margin-top: .55rem; font-size: 1.1rem; }
.sidebar p { margin-block: .4rem .9rem; }
.sidebar a, .article-body a { color: var(--forest); font-weight: 600; }
.site-footer { margin-top: auto; border-top: 1px solid var(--line); }
.footer-inner { min-height: 4.4rem; color: var(--muted); font-size: .87rem; }
.footer-inner { display: grid; grid-template-columns: 1fr auto 1fr; }
.footer-identity { grid-column: 1; }
.footer-icp { grid-column: 2; justify-self: center; }
.footer-inner > a:last-child { justify-self: end; }
.footer-inner > a { white-space: nowrap; }
.footer-inner strong { color: var(--ink); font: 700 1rem Georgia, serif; }
.footer-domain { margin-left: .45rem; }
.reading { max-width: 49rem; padding-block: 2.4rem 4rem; }
.back-link { display: inline-block; margin-bottom: 1.2rem; color: var(--forest); font-weight: 600; }
.article {
  padding: clamp(1.25rem, 5vw, 3rem);
  border: 1px solid var(--line);
  border-radius: .92rem;
  background: var(--paper);
}
.article-header { padding-bottom: 1.4rem; border-bottom: 1px solid var(--line); }
.article-header h1 { margin-block: .55rem; font: 700 clamp(1.85rem, 4.5vw, 2.85rem)/1.28 var(--serif); }
.article-lead { color: var(--muted); font-size: 1.06rem; }
.article-body { line-height: 1.85; }
.article-body h2 { margin-block: 1.55rem .55rem; font-size: 1.25rem; }
.article-body p + p { margin-top: .8rem; }
.article-body ul { margin: .5rem 0 0; padding-left: 1.5rem; }
.article-body li + li { margin-top: .35rem; }
code { font-family: Consolas, "SFMono-Regular", monospace; }
p code { padding: .1rem .25rem; border-radius: .2rem; background: var(--tint); overflow-wrap: anywhere; }
pre {
  overflow-x: auto;
  margin-block: .7rem .95rem;
  padding: .95rem 1rem;
  border-radius: .48rem;
  background: #25382d;
  color: #fff6db;
  font-size: .9rem;
}
@media (max-width: 45rem) {
  .wrap { width: calc(100% - 2rem); }
  .home { padding-block: 1rem 2.4rem; }
  .hero { min-height: 21rem; }
  .hero-image { object-position: 55%; }
  .hero::after { background: linear-gradient(90deg, rgba(14, 24, 17, .79), rgba(14, 24, 17, .42)); }
  .home-grid { grid-template-columns: 1fr; gap: 1rem; margin-top: 1.65rem; }
  .sidebar { margin-top: 0; }
  .header-inner { min-height: 4.35rem; }
  .reading { padding-block: 1.3rem 2.2rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: .3rem .5rem; padding-block: .75rem; }
  .footer-icp { grid-column: 1 / -1; grid-row: 2; }
  .footer-inner > a:last-child { grid-column: 2; grid-row: 1; }
}
@media (max-width: 24rem) {
  .brand { gap: .42rem; font-size: 1.12rem; }
  .brand-mark { scale: .9; }
  nav { gap: .68rem; }
  nav a { font-size: .87rem; }
  .hero-content { padding-inline: 1.25rem; }
  .post-card { padding-inline: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
