/* Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --text: #1a1a1a;
  --text-light: #555;
  --text-lighter: #888;
  --border: #e5e5e5;
  --bg: #ffffff;
  --accent: #2563eb;
  --max-width: 680px;
  --font: 'Georgia', 'Times New Roman', serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 18px;
}

/* Layout */
header, main, footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header / Nav */
header {
  padding-top: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-sans);
  font-size: 15px;
}

.site-name {
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-links a {
  color: var(--text-light);
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

/* Main sections */
main {
  padding-top: 56px;
  padding-bottom: 80px;
}

section {
  margin-bottom: 56px;
}

/* Hero */
.hero h1 {
  font-size: 2rem;
  font-weight: normal;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.chinese-name {
  font-size: 1rem;
  font-weight: normal;
  color: var(--text-light);
  margin-left: 12px;
  white-space: nowrap;
}

.pronunciation {
  font-size: 0.8rem;
  color: var(--text-lighter);
  margin-left: 6px;
  font-style: italic;
}

.tagline {
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.5;
}

/* About */
h2 {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-lighter);
  margin-bottom: 20px;
}

.about p {
  margin-bottom: 16px;
  color: var(--text);
}

.about p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Writing / post list */
.post-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.post-item {
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

.post-date {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--text-lighter);
  display: block;
  margin-bottom: 6px;
}

.post-item h2 {
  font-family: var(--font);
  font-size: 1.2rem;
  font-weight: normal;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text);
  margin-bottom: 8px;
}

.post-item h2 a {
  color: var(--text);
}

.post-item h2 a:hover {
  color: var(--accent);
  text-decoration: none;
}

.post-excerpt {
  font-size: 16px;
  color: var(--text-light);
}

/* Page header (blog page) */
.page-header h1 {
  font-size: 1.8rem;
  font-weight: normal;
  margin-bottom: 10px;
}

.page-header p {
  color: var(--text-light);
  font-size: 16px;
}

/* Connect */
.connect-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 16px;
}

/* Empty state */
.empty-state {
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--text-lighter);
  font-style: italic;
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  padding-bottom: 40px;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--text-lighter);
}

/* Post pages */
.post-content {
  margin-top: 40px;
}

.post-content h1 {
  font-size: 1.8rem;
  font-weight: normal;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

.post-meta {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--text-lighter);
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.post-content p { margin-bottom: 20px; }
.post-content h2 { font-family: var(--font); font-size: 1.3rem; font-weight: bold; text-transform: none; letter-spacing: 0; color: var(--text); margin: 40px 0 16px; }
.post-content ul, .post-content ol { margin: 0 0 20px 24px; }
.post-content li { margin-bottom: 8px; }
.post-content blockquote { border-left: 3px solid var(--border); padding-left: 20px; color: var(--text-light); margin: 32px 0; font-style: italic; }
.post-content hr { border: none; border-top: 1px solid var(--border); margin: 40px 0; }

/* Responsive */
@media (max-width: 600px) {
  body { font-size: 17px; }
  .hero h1 { font-size: 1.6rem; }
  nav { flex-direction: column; align-items: flex-start; gap: 12px; }
}
