:root {
  color-scheme: light;
  --bg: #f6f2ec;
  --surface: #fffdf9;
  --ink: #23211f;
  --muted: #6d675f;
  --line: #ded4c6;
  --accent: #1f6f64;
  --accent-strong: #0f5148;
  --warm: #b85c38;
  --shadow: 0 18px 48px rgba(61, 46, 29, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(222, 212, 198, 0.72);
  background: rgba(246, 242, 236, 0.86);
  backdrop-filter: blur(14px);
}

.nav {
  display: flex;
  max-width: 1120px;
  height: 68px;
  margin: 0 auto;
  padding: 0 24px;
  align-items: center;
  justify-content: space-between;
}

.brand {
  color: var(--accent-strong);
  font-size: 22px;
  font-weight: 800;
}

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

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

main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 46px 24px 80px;
}

.hero {
  display: grid;
  min-height: 520px;
  align-items: center;
  gap: 42px;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.75fr);
}

.hero-copy h1 {
  max-width: 760px;
  margin: 12px 0 22px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.05;
}

.eyebrow {
  margin: 0;
  color: var(--warm);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.intro {
  max-width: 660px;
  margin: 0;
  color: var(--muted);
  font-size: 19px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.primary-btn,
.secondary-btn {
  display: inline-flex;
  min-height: 46px;
  padding: 0 20px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent);
  border-radius: 6px;
  font-weight: 700;
}

.primary-btn {
  background: var(--accent);
  color: #fff;
}

.secondary-btn {
  color: var(--accent-strong);
}

.profile-panel,
.post-card,
.article-detail,
.about {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.profile-panel {
  padding: 28px;
}

.avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: #dce9e5;
}

.profile-panel h2 {
  margin: 18px 0 4px;
  font-size: 28px;
}

.profile-panel p {
  margin: 0;
  color: var(--muted);
}

.stats {
  display: grid;
  margin: 28px 0 0;
  gap: 10px;
  grid-template-columns: repeat(3, 1fr);
}

.stats div {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.stats dt {
  font-size: 22px;
  font-weight: 800;
}

.stats dd {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.section {
  margin-top: 84px;
}

.section-head,
.split,
.about {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  justify-content: space-between;
}

.section h2 {
  margin: 8px 0 0;
  font-size: 34px;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
}

.filter.active,
.filter:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

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

.post-card {
  padding: 24px;
}

.post-card[hidden] {
  display: none;
}

.post-meta {
  margin: 0 0 12px;
  color: var(--warm);
  font-size: 13px;
  font-weight: 700;
}

.post-card h3 {
  margin: 0;
  font-size: 23px;
  line-height: 1.35;
}

.post-card p:not(.post-meta) {
  margin: 14px 0 22px;
  color: var(--muted);
}

.post-card a {
  color: var(--accent-strong);
  font-weight: 800;
}

.note-list {
  width: min(100%, 720px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.note-list li {
  display: grid;
  padding: 18px 0;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  grid-template-columns: 42px minmax(0, 1fr);
}

.note-list span {
  color: var(--accent);
  font-weight: 800;
}

.note-list p {
  margin: 0;
}

.article-detail,
.about {
  padding: 28px;
}

.article-detail p {
  color: var(--muted);
}

blockquote {
  margin: 24px 0 0;
  padding-left: 18px;
  border-left: 4px solid var(--accent);
  color: var(--accent-strong);
  font-size: 20px;
  font-weight: 700;
}

.about {
  align-items: center;
}

.about > p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.contact-row a {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--accent-strong);
  font-weight: 700;
}

.footer {
  padding: 34px 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
}

@media (max-width: 760px) {
  .nav {
    height: auto;
    padding: 16px;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

  main {
    padding: 28px 16px 56px;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    font-size: 44px;
  }

  .intro {
    font-size: 16px;
  }

  .section {
    margin-top: 58px;
  }

  .section-head,
  .split,
  .about {
    flex-direction: column;
  }

  .post-grid {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: 1fr;
  }
}
