:root {
  --bg: #faf8f4;
  --surface: #ffffff;
  --text: #24201b;
  --muted: #6f6860;
  --accent: #b4552d;
  --line: #e7e0d6;
  --radius: 14px;
  --maxw: 960px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(250, 248, 244, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 6px;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: middle;
}

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

.nav a {
  transition: color 0.2s ease;
}

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

/* Hero */
.hero {
  padding: 80px 24px 40px;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  letter-spacing: 0.01em;
  line-height: 1.15;
}

.hero-sub {
  margin: 0 0 20px;
  font-size: 1.15rem;
  color: var(--accent);
  font-weight: 600;
}

.hero-desc {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

/* Sections */
.section {
  padding: 40px 24px;
}

.section-title {
  margin: 0 0 24px;
  font-size: 1.4rem;
  position: relative;
  padding-left: 14px;
}

.section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.28em;
  bottom: 0.28em;
  width: 4px;
  border-radius: 4px;
  background: var(--accent);
}

/* Posts */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.post-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(80, 60, 40, 0.09);
}

.post-card time {
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.03em;
}

.post-card h3 {
  margin: 8px 0 10px;
  font-size: 1.1rem;
  line-height: 1.4;
}

.post-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

/* About / contact */
.about p,
.contact p {
  max-width: 680px;
  color: var(--muted);
  margin: 0 0 10px;
}

.contact-mail a {
  color: var(--accent);
  border-bottom: 1px solid currentColor;
}

/* Footer */
.site-footer {
  margin-top: 60px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.footer-inner {
  padding: 40px 24px;
  text-align: center;
}

.footer-brand {
  margin: 0 0 10px;
  font-weight: 700;
  font-size: 1.05rem;
}

.footer-icp {
  margin: 0 0 8px;
  font-size: 0.9rem;
}

.footer-icp a {
  color: var(--muted);
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-icp a:hover {
  color: var(--accent);
  border-color: currentColor;
}

.footer-copy {
  margin: 0;
  font-size: 0.82rem;
  color: #a19a90;
}

@media (max-width: 520px) {
  .nav {
    gap: 14px;
    font-size: 0.88rem;
  }
  .hero {
    padding-top: 56px;
  }
}
