:root {
  color-scheme: light;
  --paper: #f7fbff;
  --ink: #102033;
  --muted: #5d6f82;
  --line: #c9d9e8;
  --accent: #b84f16;
  --accent-soft: #ffe7d5;
  --blue: #0d4f8b;
  --blue-soft: #e6f1fb;
  --max: 760px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: ui-serif, "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", Georgia, serif;
  font-size: 18px;
  line-height: 1.78;
}

a {
  color: var(--blue);
  text-decoration-color: color-mix(in srgb, var(--accent), transparent 38%);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--accent);
}

.site-header,
.site-footer {
  width: min(calc(100% - 32px), 1040px);
  margin: 0 auto;
}

.site-header {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.site-name {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0;
}

nav {
  display: flex;
  gap: 18px;
  font-size: 15px;
  color: var(--muted);
}

nav a {
  text-decoration: none;
}

main {
  width: min(calc(100% - 32px), 1040px);
  margin: 0 auto;
}

.intro {
  max-width: 820px;
  padding: 72px 0 56px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.intro h1,
.article-header h1 {
  margin: 0;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: 0;
}

.intro h1 {
  color: #0a3a68;
}

.intro p:last-child {
  max-width: 650px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 20px;
}

.post-list {
  display: grid;
  gap: 0;
  padding: 8px 0 80px;
  border-top: 1px solid var(--line);
}

.post-list-item {
  border-bottom: 1px solid var(--line);
}

.post-list-item a {
  display: block;
  padding: 26px 0 28px;
  text-decoration: none;
}

.post-list-item a:hover h2 {
  color: var(--accent);
}

.post-list-item h2 {
  margin: 6px 0 8px;
  color: var(--blue);
  font-size: 28px;
  line-height: 1.28;
  letter-spacing: 0;
}

.post-list-item p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.post-date,
.article-meta {
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
  font-size: 14px;
}

.article-shell {
  width: min(calc(100% - 32px), var(--max));
}

.article {
  padding: 64px 0 80px;
}

.article.compact {
  min-height: 58vh;
}

.article-header {
  margin-bottom: 42px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 18px;
}

.article-meta p {
  margin: 0;
}

.article-body h1 {
  display: none;
}

.article-body h2,
.article-body h3 {
  margin: 44px 0 14px;
  line-height: 1.34;
  letter-spacing: 0;
}

.article-body p,
.article-body ul,
.article-body ol,
.article-body blockquote {
  margin: 0 0 1.15em;
}

.article-body img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 28px auto;
  border: 1px solid var(--line);
}

.article-body blockquote {
  margin: 28px 0;
  padding: 18px 22px;
  border-left: 4px solid var(--blue);
  background: var(--blue-soft);
  color: #17324b;
}

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

.article-body strong {
  color: #8d3d12;
  font-weight: 800;
}

.site-footer {
  padding: 28px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
  font-size: 13px;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 640px) {
  body {
    font-size: 17px;
    line-height: 1.74;
  }

  .site-header {
    min-height: 66px;
  }

  .intro {
    padding: 48px 0 40px;
  }

  .intro h1,
  .article-header h1 {
    font-size: 34px;
  }

  .intro p:last-child {
    font-size: 18px;
  }

  .post-list-item h2 {
    font-size: 23px;
  }

  .article {
    padding: 42px 0 64px;
  }
}
