:root {
  --bg: #fbfaf7;
  --fg: #23201c;
  --muted: #6f6a61;
  --line: #e3ded4;
  --accent: #1f5c4a;
  --accent-soft: #eaf2ee;
  --code-bg: #f1eee7;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16181a;
    --fg: #e6e3dc;
    --muted: #9b968c;
    --line: #2e3234;
    --accent: #7fc4a8;
    --accent-soft: #1d2a26;
    --code-bg: #22262a;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Noto Serif SC", "Songti SC", "Source Han Serif SC", Georgia, serif;
  font-size: 17px;
  line-height: 1.9;
  letter-spacing: .01em;
}
.wrap { max-width: 760px; margin: 0 auto; padding: 0 24px; }
header.site {
  border-bottom: 1px solid var(--line);
  padding: 28px 0 22px;
}
header.site .inner {
  max-width: 760px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
}
header.site a.brand {
  color: var(--fg); text-decoration: none; font-weight: 600; font-size: 18px;
  letter-spacing: .06em; font-family: "Noto Sans SC", "PingFang SC", sans-serif;
}
header.site nav a {
  color: var(--muted); text-decoration: none; font-size: 14px; margin-left: 18px;
  font-family: "Noto Sans SC", "PingFang SC", sans-serif;
}
header.site nav a:hover { color: var(--accent); }

article { padding: 56px 0 40px; }
.kicker {
  font-family: "Noto Sans SC", "PingFang SC", sans-serif;
  font-size: 13px; letter-spacing: .18em; color: var(--accent);
  text-transform: uppercase; margin: 0 0 14px;
}
h1 {
  font-size: 34px;
  text-wrap: balance; line-height: 1.35; margin: 0 0 14px; font-weight: 700;
  letter-spacing: -.01em;
}
.subtitle { color: var(--muted); font-size: 18px; margin: 0 0 22px; line-height: 1.7; }
.meta {
  font-family: "Noto Sans SC", "PingFang SC", sans-serif;
  font-size: 13px; color: var(--muted); padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}
.meta span + span::before { content: "·"; margin: 0 8px; color: var(--line); }

h2 {
  font-size: 23px; margin: 46px 0 16px; line-height: 1.5; font-weight: 700;
}
h3 { font-size: 18px; margin: 30px 0 10px; font-weight: 700; }
p { margin: 0 0 18px; overflow-wrap: break-word; }
ul, ol { margin: 0 0 20px; padding-left: 24px; }
li { margin-bottom: 10px; overflow-wrap: anywhere; }
strong { font-weight: 700; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }

blockquote {
  margin: 26px 0; padding: 4px 0 4px 20px;
  border-left: 3px solid var(--accent);
  color: var(--muted); font-style: normal;
}
blockquote p:last-child { margin-bottom: 0; }

.callout {
  background: var(--accent-soft);
  border-radius: 4px;
  padding: 18px 22px;
  margin: 26px 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout .label {
  font-family: "Noto Sans SC", "PingFang SC", sans-serif;
  font-size: 12px; letter-spacing: .14em; color: var(--accent);
  display: block; margin-bottom: 6px;
}

.table-wrap { overflow-x: auto; margin: 26px 0; }
table { border-collapse: collapse; width: 100%; font-size: 15px; line-height: 1.7; }
th, td { border-bottom: 1px solid var(--line); padding: 11px 12px; text-align: left; vertical-align: top; }
th {
  font-family: "Noto Sans SC", "PingFang SC", sans-serif;
  font-size: 13px; color: var(--muted); font-weight: 600; letter-spacing: .04em;
  border-bottom-width: 2px;
}
.nowrap { white-space: nowrap; }

td:first-child { white-space: nowrap; font-weight: 600; }

.flow { margin: 28px 0; padding: 0; list-style: none; counter-reset: step; }
.flow li {
  counter-increment: step; position: relative; padding-left: 46px; margin-bottom: 14px;
}
.flow li::before {
  content: counter(step);
  position: absolute; left: 0; top: 2px;
  width: 28px; height: 28px; line-height: 28px; text-align: center;
  border: 1px solid var(--accent); border-radius: 50%;
  font-size: 13px; color: var(--accent);
  font-family: "Noto Sans SC", "PingFang SC", sans-serif;
}

hr { border: 0; border-top: 1px solid var(--line); margin: 42px 0; }

footer.site {
  border-top: 1px solid var(--line);
  padding: 26px 0 50px; color: var(--muted); font-size: 13px;
  font-family: "Noto Sans SC", "PingFang SC", sans-serif;
}

/* index */
.list { padding: 56px 0; }
.list h1 { font-size: 30px; margin-bottom: 8px; }
.list .lead { color: var(--muted); margin-bottom: 34px; }
.post-item { display: block; text-decoration: none; color: inherit; padding: 24px 0; border-top: 1px solid var(--line); }
.post-item:last-child { border-bottom: 1px solid var(--line); }
.post-item:hover h2 { color: var(--accent); }
.post-item h2 { margin: 0 0 8px; font-size: 21px; }
.post-item .date {
  font-family: "Noto Sans SC", "PingFang SC", sans-serif;
  font-size: 12px; color: var(--muted); letter-spacing: .08em;
}
.post-item p { margin: 8px 0 0; color: var(--muted); font-size: 15px; }

@media (max-width: 600px) {
  body { font-size: 16px; }
  h1 { font-size: 27px; }
  h2 { font-size: 20px; }
  .wrap { padding: 0 18px; }
  article { padding-top: 36px; }
}
