:root {
  color-scheme: light;
  --ink: #10231a;
  --muted: #617068;
  --paper: #f3f7f1;
  --panel: #ffffff;
  --line: #d8e2d7;
  --green: #1f6f43;
  --green-soft: #dff0e4;
  --lime: #b7e46b;
  --shadow: 0 24px 70px rgba(24, 61, 39, .09);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 12%, rgba(183, 228, 107, .22), transparent 28rem),
    radial-gradient(circle at 92% 35%, rgba(82, 164, 115, .12), transparent 30rem),
    var(--paper);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.7;
}

a { color: inherit; text-decoration: none; }

.site-header {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.02em;
}

.brand img { width: 32px; height: 32px; }

nav { display: flex; gap: 28px; font-size: 14px; color: var(--muted); }
nav a:hover { color: var(--ink); }

main, footer {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  position: relative;
  overflow: hidden;
  margin-top: 28px;
  padding: clamp(56px, 10vw, 122px) clamp(28px, 7vw, 88px);
  border: 1px solid rgba(31, 111, 67, .14);
  border-radius: 36px;
  background: rgba(255, 255, 255, .72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.eyebrow, .section-kicker {
  color: var(--green);
  font: 700 11px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .16em;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  max-width: 820px;
  margin: 22px 0 26px;
  font-size: clamp(48px, 8.4vw, 96px);
  line-height: 1.06;
  letter-spacing: -.065em;
  font-weight: 850;
}

.lede {
  max-width: 680px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.75;
}

.hero-links { display: flex; align-items: center; gap: 28px; }

.primary-link {
  display: inline-flex;
  padding: 13px 22px;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  font-weight: 700;
  font-size: 14px;
}

.quiet-link {
  color: var(--green);
  border-bottom: 1px solid rgba(31, 111, 67, .3);
  font-size: 14px;
  font-weight: 650;
}

.signal {
  position: absolute;
  right: 7%;
  bottom: 18%;
  width: 260px;
  height: 180px;
  opacity: .8;
  transform: rotate(-7deg);
}

.signal span {
  position: absolute;
  display: block;
  width: 108px;
  height: 42px;
  border-radius: 50%;
  background: var(--lime);
  border: 1px solid rgba(31, 111, 67, .15);
}

.signal span:nth-child(1) { left: 0; top: 20px; transform: rotate(18deg); }
.signal span:nth-child(2) { left: 85px; top: 0; background: var(--green-soft); transform: rotate(-12deg); }
.signal span:nth-child(3) { left: 145px; top: 52px; transform: rotate(24deg); }
.signal span:nth-child(4) { left: 68px; top: 88px; background: var(--green-soft); transform: rotate(7deg); }
.signal span:nth-child(5) { left: 12px; top: 118px; transform: rotate(-20deg); }

.topics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 28px 4px 0;
}

.topics span {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .55);
  color: var(--muted);
  font: 600 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.featured {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr);
  gap: 56px;
  margin-top: 44px;
  padding: clamp(32px, 6vw, 64px);
  border-radius: 32px;
  background: var(--ink);
  color: #eef7ed;
}

.featured .section-kicker { color: var(--lime); }
.featured h2 { margin: 14px 0 18px; font-size: clamp(32px, 4.7vw, 54px); line-height: 1.15; letter-spacing: -.045em; }
.featured p { max-width: 650px; color: #adc0b2; }
.featured a { color: var(--lime); font-weight: 700; }
.featured dl { align-self: end; margin: 0; border-top: 1px solid rgba(255,255,255,.16); }
.featured dl div { display: flex; justify-content: space-between; gap: 24px; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.16); }
.featured dt { color: #8fa396; font-size: 12px; }
.featured dd { margin: 0; font-size: 14px; font-weight: 650; text-align: right; }

.articles { margin-top: 92px; }
.section-head { display: flex; align-items: end; justify-content: space-between; margin-bottom: 26px; }
.section-head h2, .about h2 { margin: 10px 0 0; font-size: clamp(32px, 4vw, 48px); letter-spacing: -.04em; }
.count { color: var(--muted); font: 600 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }

.post-row {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) 92px;
  gap: 28px;
  align-items: start;
  padding: 30px 0;
  border-top: 1px solid var(--line);
}

.post-row:last-child { border-bottom: 1px solid var(--line); }
.post-row time { padding-top: 4px; color: var(--muted); font: 600 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.post-row a { display: inline-block; margin-bottom: 8px; font-size: clamp(22px, 3vw, 30px); line-height: 1.35; font-weight: 750; letter-spacing: -.035em; }
.post-row a:hover { color: var(--green); }
.post-row p { max-width: 720px; margin: 0; color: var(--muted); font-size: 15px; }
.post-tag { justify-self: end; padding: 6px 10px; border-radius: 999px; background: var(--green-soft); color: var(--green); font-size: 12px; font-weight: 700; }

.about {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 56px;
  margin: 90px 0 30px;
  padding: 44px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: rgba(255,255,255,.56);
}
.about p { margin: 44px 0 0; color: var(--muted); font-size: 17px; }

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  padding: 40px 4px 48px;
  color: var(--muted);
  font-size: 12px;
}

.site-footer a {
  color: var(--green);
  border-bottom: 1px solid rgba(31, 111, 67, .3);
}

/* Article pages */
.article-shell { max-width: 860px; margin: 42px auto 100px; }
.article-header { padding: clamp(36px, 7vw, 72px); border: 1px solid var(--line); border-radius: 32px; background: rgba(255,255,255,.74); box-shadow: var(--shadow); }
.article-header h1 { margin: 18px 0; font-size: clamp(40px, 7vw, 68px); line-height: 1.1; }
.article-meta { display: flex; flex-wrap: wrap; gap: 18px; color: var(--muted); font: 600 12px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; }
.article-body { padding: clamp(28px, 6vw, 64px) 4px; font-size: 17px; }
.article-body h2 { margin: 56px 0 18px; font-size: 30px; letter-spacing: -.03em; }
.article-body h3 { margin-top: 36px; font-size: 21px; }
.article-body p, .article-body li { color: #34473b; }
.article-body code { padding: 3px 6px; border-radius: 5px; background: #e4ece3; color: #174d31; font-size: .88em; }
.article-body pre { overflow: auto; padding: 22px; border-radius: 18px; background: #10231a; color: #dceadd; }
.article-body pre code { padding: 0; background: transparent; color: inherit; }
.article-body blockquote { margin: 30px 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--green); color: var(--muted); }
.article-body table { width: 100%; border-collapse: collapse; margin: 26px 0; }
.article-body th, .article-body td { padding: 12px 15px; border: 1px solid var(--line); text-align: left; }
.article-body th { background: var(--green-soft); }
.article-footer { display: flex; justify-content: space-between; gap: 20px; padding-top: 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }

@media (max-width: 780px) {
  .site-header { min-height: 76px; }
  nav { gap: 16px; }
  .signal { opacity: .2; right: -60px; }
  .featured, .about { grid-template-columns: 1fr; }
  .post-row { grid-template-columns: 54px minmax(0, 1fr); gap: 16px; }
  .post-tag { display: none; }
  .about p { margin-top: 0; }
  footer { flex-direction: column; }
}

@media (max-width: 520px) {
  .site-header, main, footer { width: min(100% - 24px, 1120px); }
  nav a:nth-child(2) { display: none; }
  .hero { margin-top: 12px; border-radius: 26px; }
  .hero-links { align-items: flex-start; flex-direction: column; gap: 16px; }
  .featured, .about { padding: 28px; border-radius: 24px; }
  .post-row { grid-template-columns: 1fr; gap: 8px; }
  .post-row time { order: 2; }
  .article-shell { margin-top: 18px; }
  .article-header { border-radius: 24px; }
}
