:root {
  color-scheme: light;
  --ink: #1f252b;
  --muted: #64707d;
  --line: #e4e8ec;
  --paper: #ffffff;
  --soft: #f7f8f6;
  --accent: #3d6f63;
  --accent-2: #8a5a44;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.75;
}

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

.wrap {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
}

.nav {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  color: var(--accent);
  font-size: 21px;
  font-weight: 700;
}

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

nav a:hover,
.record-box a,
.site-footer a {
  color: var(--accent);
}

.hero {
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}

.hero-inner {
  padding: 86px 0 92px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

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

h1 {
  margin-bottom: 18px;
  font-size: 44px;
  line-height: 1.18;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 28px;
  line-height: 1.25;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 20px;
  line-height: 1.35;
}

.lead {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
}

.section {
  padding: 68px 0;
}

.section-heading {
  margin-bottom: 26px;
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.topic-card,
.reading-card,
.article-card,
.daily-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: #ffffff;
}

.topic-card h2 {
  margin-bottom: 12px;
  font-size: 22px;
}

.post-list {
  display: grid;
  gap: 22px;
}

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

.post-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.post-item time {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 14px;
}

.post-item p,
.plain-text p,
.record-box p,
.topic-card p,
.reading-card p,
.article-card p,
.daily-card p,
.essay-item p,
.plan-list p,
.archive-list p {
  color: var(--muted);
}

.band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}

.plain-text,
.record-box {
  max-width: 760px;
}

.reading-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.article-card time {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 14px;
}

.essay-list {
  display: grid;
  gap: 32px;
}

.essay-item {
  border-bottom: 1px solid var(--line);
  padding-bottom: 30px;
}

.essay-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.essay-item time {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 14px;
}

.daily-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.plan-list {
  max-width: 820px;
  border-left: 3px solid var(--accent);
  padding-left: 20px;
}

.archive-list {
  max-width: 820px;
  border-left: 3px solid var(--line);
  padding-left: 20px;
}

.record-box {
  border-left: 3px solid var(--accent);
  padding-left: 20px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.footer-content {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 720px) {
  .wrap {
    width: min(100% - 28px, 920px);
  }

  .nav,
  .footer-content {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 14px 0;
  }

  nav {
    flex-wrap: wrap;
    gap: 10px 18px;
  }

  .intro-grid,
  .reading-grid,
  .article-grid,
  .daily-grid {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    padding: 58px 0 64px;
  }

  h1 {
    font-size: 34px;
  }

  .section {
    padding: 50px 0;
  }
}
