/*
 * 山海炼物 — dark minimal theme
 * inspired by hello-friend-ng
 */

:root {
  --bg: #1a1a1a;
  --bg-alt: #242424;
  --fg: #d4d4d4;
  --fg-dim: #888;
  --accent: #e0af68;
  --accent-dim: #b8944a;
  --border: #333;
  --font: 'SF Mono', 'Cascadia Code', 'JetBrains Mono', 'Consolas', monospace;
  --font-serif: 'Noto Serif SC', 'Source Han Serif SC', serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { font-size: 16px; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.header {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: 0.05em;
}

.site-title:hover {
  color: var(--accent);
}

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

.nav-links a {
  color: var(--fg-dim);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

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

/* Main */
.main {
  flex: 1;
}

/* Hero (landing page) */
.hero {
  text-align: center;
  padding: 80px 0 60px;
}

.hero-brand {
  margin-bottom: 48px;
}

.hero-title {
  font-size: 3rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--fg);
  margin-bottom: 12px;
  font-family: var(--font-serif);
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--accent-dim);
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

.hero-desc {
  font-size: 0.875rem;
  color: var(--fg-dim);
  max-width: 400px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Social links */
.hero-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.social-link {
  color: var(--fg-dim);
  text-decoration: none;
  font-size: 0.875rem;
  cursor: pointer;
  transition: color 0.2s;
  border-bottom: 1px solid transparent;
}

.social-link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* WeChat QR */
.wechat-qr {
  margin-top: 20px;
  padding: 20px;
  border: 1px dashed var(--border);
  border-radius: 4px;
  color: var(--fg-dim);
  font-size: 0.8rem;
}

/* Post */
.post {
  padding-bottom: 60px;
}

.post-title {
  font-size: 1.75rem;
  font-weight: 400;
  margin-bottom: 8px;
  color: var(--fg);
}

.post-date {
  display: block;
  color: var(--fg-dim);
  font-size: 0.8rem;
  margin-bottom: 32px;
}

.post-content {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--fg);
}

.post-content p {
  margin-bottom: 16px;
}

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

.post-content a:hover {
  text-decoration: underline;
}

/* List */
.list-title {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 24px;
  color: var(--fg);
}

.list-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 60px;
}

.list-item {
  display: flex;
  gap: 16px;
  align-items: baseline;
}

.list-item-date {
  color: var(--fg-dim);
  font-size: 0.8rem;
  flex-shrink: 0;
  min-width: 85px;
}

.list-item-title {
  color: var(--fg);
  text-decoration: none;
  font-size: 0.95rem;
}

.list-item-title:hover {
  color: var(--accent);
}

/* Footer */
.footer {
  text-align: center;
  padding: 32px 0;
  color: var(--fg-dim);
  font-size: 0.75rem;
  border-top: 1px solid var(--border);
  margin-top: 48px;
}
