:root {
  color-scheme: light;
  --bg: #f7f4ee;
  --surface: #ffffff;
  --text: #1f2328;
  --muted: #5d6673;
  --border: #ded8cc;
  --accent: #0f766e;
  --accent-strong: #0b5f59;
  --code-bg: #eef1f3;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  text-underline-offset: 0.18em;
}

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

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

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0;
}

.brand {
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
}

nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

nav a {
  text-decoration: none;
}

.hero {
  min-height: 62vh;
  display: grid;
  align-content: center;
  padding: 72px 0 96px;
  border-bottom: 1px solid var(--border);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  line-height: 1.12;
}

h1 {
  max-width: 820px;
  font-size: clamp(3.2rem, 14vw, 8rem);
}

h2 {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
}

.lead,
.page-heading p,
.article-header p {
  max-width: 680px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.18rem;
}

.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: 0 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(180px, 0.7fr) minmax(0, 1.3fr);
  gap: 48px;
  padding: 72px 0;
  border-bottom: 1px solid var(--border);
}

.text-block p {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 28px;
  align-items: start;
}

.contact-links {
  display: grid;
  gap: 12px;
}

.contact-links a {
  display: grid;
  gap: 4px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}

.contact-links span,
.wechat-card span {
  color: var(--muted);
  font-size: 0.85rem;
}

.contact-links strong,
.wechat-card strong {
  color: var(--text);
  font-size: 1.02rem;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.wechat-card {
  margin: 0;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
}

.wechat-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 6px;
  background: #ffffff;
}

.wechat-card figcaption {
  display: grid;
  gap: 2px;
  margin-top: 12px;
}

.page-heading {
  padding: 72px 0 40px;
}

.post-list {
  display: grid;
  gap: 18px;
  padding-bottom: 72px;
}

.post-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
}

.post-card h2 {
  margin-top: 10px;
  font-size: 1.45rem;
}

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

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--muted);
  font-size: 0.9rem;
}

.article {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 56px 0 80px;
}

.article-header {
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.article-header h1 {
  font-size: clamp(2.2rem, 8vw, 4.5rem);
}

.back-link {
  display: inline-block;
  margin-bottom: 32px;
  color: var(--muted);
  text-decoration: none;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tag-list span {
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.86rem;
}

.prose {
  padding-top: 28px;
}

.prose :where(h2, h3) {
  margin-top: 2em;
  line-height: 1.25;
}

.prose p,
.prose li {
  color: #30363d;
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.prose pre {
  overflow-x: auto;
  padding: 18px;
  border-radius: 8px;
  background: #1f2328;
  color: #f6f8fa;
}

.prose code {
  padding: 0.12em 0.28em;
  border-radius: 4px;
  background: var(--code-bg);
  font-size: 0.92em;
}

.prose pre code {
  padding: 0;
  background: transparent;
}

.site-footer {
  padding: 32px 0;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

@media (max-width: 720px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    min-height: auto;
    padding: 52px 0 72px;
  }

  .section-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 52px 0;
  }

  .contact-panel {
    grid-template-columns: 1fr;
  }

  .wechat-card {
    width: min(220px, 100%);
  }
}
