:root {
  --paper: #fbfaf7;
  --ink: #202124;
  --muted: #62615d;
  --line: #ded9cf;
  --green: #335c4a;
  --green-dark: #203a30;
  --blue: #315e7e;
  --gold: #b47b35;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(31, 37, 35, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 20;
  background: var(--ink);
  color: var(--white);
  padding: 10px 14px;
  border-radius: 4px;
  transition: top 160ms ease;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(222, 217, 207, 0.82);
  background: rgba(251, 250, 247, 0.92);
  backdrop-filter: blur(16px);
}

.nav {
  width: min(1120px, calc(100% - 40px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-weight: 700;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: 18px;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-menu a {
  padding: 8px 12px;
  border-radius: 4px;
  color: #383936;
  font-size: 14px;
  text-decoration: none;
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
  background: #ece7dd;
  outline: none;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: transparent;
  place-items: center;
  padding: 10px;
}

.nav-toggle span:not(.sr-only) {
  width: 20px;
  height: 2px;
  background: var(--ink);
  display: block;
  margin: 2px 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.hero {
  position: relative;
  min-height: clamp(520px, 74vh, 760px);
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(251, 250, 247, 0.92) 0%, rgba(251, 250, 247, 0.72) 38%, rgba(251, 250, 247, 0.18) 76%),
    linear-gradient(0deg, rgba(251, 250, 247, 0.92) 0%, rgba(251, 250, 247, 0) 30%);
}

.hero-content {
  position: relative;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 112px 0 88px;
}

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

h1,
h2,
h3 {
  margin: 0;
  font-family: "Songti SC", "STSong", "SimSun", serif;
  line-height: 1.22;
}

h1 {
  max-width: 650px;
  font-size: clamp(44px, 7vw, 86px);
}

.hero-copy {
  max-width: 600px;
  margin: 22px 0 0;
  color: #464742;
  font-size: clamp(17px, 2vw, 21px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-weight: 700;
  text-decoration: none;
}

.button.primary {
  background: var(--green-dark);
  color: var(--white);
}

.button.secondary {
  border-color: var(--green-dark);
  color: var(--green-dark);
  background: rgba(255, 255, 255, 0.42);
}

.section {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 84px 0;
}

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

.section-heading h2,
.two-column h2 {
  font-size: clamp(30px, 4vw, 44px);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 32px;
  align-items: start;
}

.bio {
  font-size: 19px;
  color: #3e403b;
}

.bio p:first-child {
  margin-top: 0;
}

.profile-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
  padding: 24px;
}

dl {
  margin: 0;
}

dl div + div {
  border-top: 1px solid var(--line);
  margin-top: 16px;
  padding-top: 16px;
}

dt {
  color: var(--muted);
  font-size: 13px;
}

dd {
  margin: 4px 0 0;
  font-weight: 700;
}

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

.post-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 72px;
  gap: 22px;
  align-items: start;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.post-card:last-child {
  border-bottom: 1px solid var(--line);
}

.post-card time,
.post-card span {
  color: var(--muted);
  font-size: 14px;
}

.post-card h3 {
  font-size: 22px;
}

.post-card h3 a {
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.post-card p {
  margin: 8px 0 0;
  color: var(--muted);
}

.two-column {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: start;
}

.two-column p {
  color: var(--muted);
  font-size: 17px;
}

.link-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.link-list li {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.link-list a {
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.link-list span {
  color: var(--muted);
  white-space: nowrap;
}

.muted-band {
  width: 100%;
  max-width: none;
  padding: 84px max(20px, calc((100vw - 1120px) / 2));
  background: #e9eee9;
}

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

.reading-grid article {
  min-height: 172px;
  border: 1px solid rgba(51, 92, 74, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  padding: 22px;
}

.reading-grid h3 {
  font-size: 20px;
}

.reading-grid p {
  margin-bottom: 0;
}

.footer {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 42px 0;
  display: flex;
  justify-content: space-between;
  gap: 28px;
  border-top: 1px solid var(--line);
}

.footer p {
  margin: 6px 0 0;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 16px;
  align-items: start;
}

.footer-links a {
  color: var(--blue);
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.page-main {
  min-height: calc(100vh - 72px);
}

.page-title {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 86px 0 28px;
  border-bottom: 1px solid var(--line);
}

.page-title h1 {
  max-width: 780px;
  font-size: clamp(42px, 7vw, 72px);
}

.page-title p:last-child {
  max-width: 680px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 42px;
  align-items: start;
}

.prose {
  max-width: 760px;
  font-size: 18px;
}

.prose h1 {
  font-size: clamp(38px, 6vw, 64px);
}

.prose h2 {
  margin-top: 42px;
  font-size: 30px;
}

.prose p,
.prose li {
  color: #3e403b;
}

.prose a {
  color: var(--blue);
  text-underline-offset: 5px;
}

.post-detail {
  padding-top: 78px;
}

.back-link {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--blue);
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

@media (max-width: 820px) {
  .nav {
    height: 64px;
  }

  .nav-toggle {
    display: grid;
  }

  .nav-menu {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 72px;
    display: none;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .nav-menu.is-open {
    display: grid;
  }

  .nav-menu a {
    padding: 11px 12px;
  }

  .hero {
    min-height: 560px;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(251, 250, 247, 0.66) 0%, rgba(251, 250, 247, 0.94) 62%),
      linear-gradient(90deg, rgba(251, 250, 247, 0.76), rgba(251, 250, 247, 0.2));
  }

  .hero-content {
    padding: 96px 0 64px;
  }

  .intro-grid,
  .two-column,
  .article-layout,
  .reading-grid {
    grid-template-columns: 1fr;
  }

  .post-card {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .post-card span {
    justify-self: start;
  }

  .footer {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .nav,
  .section,
  .page-title,
  .hero-content,
  .footer {
    width: min(100% - 28px, 1120px);
  }

  .brand small {
    display: none;
  }

  .hero {
    min-height: 600px;
  }

  .button {
    width: 100%;
  }

  .section,
  .muted-band {
    padding-top: 64px;
    padding-bottom: 64px;
  }
}
