:root {
  color-scheme: light;
  --paper: #f4efe7;
  --ink: #1d2a26;
  --muted: #6e746d;
  --line: rgba(29, 42, 38, 0.16);
  --accent: #df5f3e;
  --accent-dark: #bd4529;
  --white: #fffdf9;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 87% 8%, rgba(223, 95, 62, 0.12), transparent 22rem),
    var(--paper);
}

a { color: inherit; }

.site-header,
main,
footer {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

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

.wordmark {
  font: 700 1.25rem/1 "Songti SC", "STSong", serif;
  text-decoration: none;
}

.wordmark span { color: var(--accent); }

nav { display: flex; align-items: center; gap: 28px; }
nav a { color: var(--muted); text-decoration: none; font-size: 0.94rem; }
nav a:hover { color: var(--ink); }

.nav-card {
  padding: 10px 16px;
  border: 1px solid var(--ink);
  border-radius: 999px;
}

.hero {
  padding: clamp(84px, 13vw, 164px) 0 clamp(92px, 14vw, 180px);
  max-width: 860px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.74rem;
  font-weight: 600;
}

h1,
h2,
h3 { font-family: "Songti SC", "STSong", serif; }

h1 {
  margin: 0;
  font-size: clamp(3.25rem, 8vw, 6.75rem);
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.hero-copy {
  max-width: 620px;
  margin: 36px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.9;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  transition: transform 180ms ease, background 180ms ease;
}

.button:hover { transform: translateY(-2px); }
.button-primary { color: white; background: var(--ink); }
.button-secondary { border: 1px solid var(--line); background: rgba(255, 255, 255, 0.32); }

.writing {
  padding: 96px 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(180px, 0.7fr) 2fr;
  gap: 56px;
}

.section-heading h2,
.about h2 { margin: 0; font-size: clamp(2rem, 4vw, 3rem); }

.post-list { border-top: 1px solid var(--ink); }
.post {
  min-height: 180px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 32px;
}

.post h3 { margin: 6px 0 10px; font-size: clamp(1.25rem, 2.4vw, 1.75rem); }
.post h3 a { text-decoration: none; }
.post p:not(.post-meta) { margin: 0; color: var(--muted); line-height: 1.7; }
.post-meta, .post time { color: var(--accent-dark); font-size: 0.78rem; }
.placeholder-post { opacity: 0.68; }

.about {
  max-width: 760px;
  margin: 32px 0 116px auto;
  padding-left: clamp(0px, 7vw, 96px);
}

.about > p:not(.eyebrow) { margin: 26px 0; color: var(--muted); font-size: 1.15rem; line-height: 1.9; }
.text-link { text-decoration-thickness: 1px; text-underline-offset: 6px; }

footer {
  min-height: 110px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 700px) {
  .site-header { min-height: 76px; }
  nav > a:not(.nav-card) { display: none; }
  .hero { padding-top: 76px; }
  .hero-actions { align-items: stretch; flex-direction: column; max-width: 300px; }
  .writing { grid-template-columns: 1fr; gap: 36px; padding: 72px 0; }
  .post { min-height: 160px; }
  footer { align-items: flex-start; flex-direction: column; justify-content: center; gap: 6px; }
  footer p { margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
