:root {
  --ink: #1d2423;
  --muted: #5d6866;
  --line: #e4e1d8;
  --bg: #f7f6f2;
  --card: #fff;
  --teal: #14796c;
  --teal-dark: #0e5c52;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font: 18px/1.7 "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}
a { color: var(--teal-dark); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
img { max-width: 100%; height: auto; }
.site-header, main, .site-footer { width: min(var(--max), calc(100% - 32px)); margin-inline: auto; }
.site-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 22px 0 18px;
}
.brand { display: flex; gap: 12px; align-items: center; color: inherit; text-decoration: none; }
.brand img { width: 46px; height: 46px; object-fit: contain; }
.brand strong { display: block; font-size: 22px; letter-spacing: 0.08em; }
.brand small { display: block; color: var(--muted); font-size: 13px; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.site-header nav a { color: var(--ink); text-decoration: none; font-size: 16px; }
.site-header nav a:hover { color: var(--teal); }
main { padding-bottom: 48px; }
h1, h2 { line-height: 1.35; font-weight: 700; }
h1 { font-size: 34px; margin: 0 0 8px; }
.intro { padding: 8px 0 12px; }
.intro p { max-width: 42rem; color: var(--muted); }
.section-head, .info-links { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.info-links { flex-wrap: wrap; justify-content: flex-start; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  min-height: 100%;
}
.card:hover { border-color: #b7ddd7; }
.card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; background: #eceae4; }
.card span { display: flex; flex-direction: column; gap: 8px; padding: 14px 14px 16px; }
.card strong { font-size: 18px; line-height: 1.45; }
.card em, .byline, .kicker { color: var(--muted); font-style: normal; font-size: 14px; }
.entry { max-width: 44rem; }
.entry .hero { width: 100%; border-radius: 12px; margin: 8px 0 18px; }
.content p, .content ul, .content ol, .content blockquote { margin: 0 0 1em; }
.content h2, .content h3 { margin: 1.4em 0 0.4em; }
.content ul, .content ol { padding-left: 1.3em; }
.content blockquote { margin-left: 0; padding: 0.2em 0 0.2em 1em; border-left: 3px solid var(--teal); color: #33403e; }
.content img { border-radius: 8px; }
.content table { width: 100%; border-collapse: collapse; font-size: 16px; }
.content th, .content td { border-bottom: 1px solid var(--line); padding: 6px 8px; vertical-align: top; }
.taglist, .tag-index a { text-decoration: none; }
.taglist { display: flex; flex-wrap: wrap; gap: 8px; }
.taglist a, .tag-index a {
  background: #e7f5f2;
  color: var(--teal-dark);
  border-radius: 999px;
  padding: 4px 10px;
}
.tag-index { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.tag-index li { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.tag-index span { color: var(--muted); font-size: 14px; }
.pager { display: flex; gap: 16px; align-items: center; margin-top: 22px; }
.search input {
  width: min(100%, 520px);
  font: inherit;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: white;
}
.comments { margin-top: 36px; }
.comments ol { list-style: none; padding: 0; }
.comments li { border-top: 1px solid var(--line); padding: 12px 0; }
.comments header { color: var(--muted); font-size: 14px; }
.site-footer { color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); padding: 22px 0 40px; }
@media (max-width: 720px) {
  .site-header { flex-direction: column; align-items: flex-start; }
  h1 { font-size: 28px; }
}
