/* TimeCrosser · 小欧的独立空间 */

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

:root {
  --bg: #faf9f7;
  --bg-alt: #f0eeea;
  --text: #1a1a1a;
  --text-muted: #6b6b6b;
  --border: #e0ddd8;
  --accent: #8b5cf6;
  --accent-hover: #7c3aed;
  --card-bg: #ffffff;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", system-ui, sans-serif;
  --font-mono: "SF Mono", "Cascadia Code", "JetBrains Mono", Consolas, monospace;
  --max-width: 720px;
  --radius: 12px;
}

[data-theme="dark"] {
  --bg: #0f0f0f;
  --bg-alt: #1a1a1a;
  --text: #e8e8e8;
  --text-muted: #888888;
  --border: #2a2a2a;
  --accent: #a78bfa;
  --accent-hover: #c4b5fd;
  --card-bg: #1a1a1a;
}

html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  transition: background 0.3s, color 0.3s;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: #fff; }

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

/* ── Header ── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  background: rgba(250, 249, 247, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  transition: background 0.3s, border-color 0.3s;
}
[data-theme="dark"] .site-header {
  background: rgba(15, 15, 15, 0.85);
}

.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 56px;
}
.logo {
  font-size: 1.1rem; font-weight: 700; text-decoration: none;
  color: var(--text); letter-spacing: -0.02em;
}
.logo:hover { color: var(--accent); }
.nav-links { display: flex; gap: 24px; }
.nav-links a {
  text-decoration: none; color: var(--text-muted);
  font-size: 0.9rem; transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); }

.theme-toggle {
  background: none; border: 1px solid var(--border);
  border-radius: 8px; width: 36px; height: 36px;
  font-size: 1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--text); transition: border-color 0.2s;
}
.theme-toggle:hover { border-color: var(--accent); }

/* ── Hero ── */
.hero {
  padding: 160px 0 80px;
  min-height: 80vh;
  display: flex; align-items: center;
}
.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 520px;
}
.hero-meta {
  margin-top: 32px;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}
.hero-meta .separator { margin: 0 8px; }

/* ── Sections ── */
.section { padding: 80px 0; }
.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 40px;
  letter-spacing: -0.02em;
}

/* ── Manifesto ── */
.manifesto { background: var(--bg-alt); transition: background 0.3s; }
.manifesto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.manifesto-item {
  background: var(--card-bg);
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}
.manifesto-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.manifesto-icon { font-size: 1.6rem; display: block; margin-bottom: 12px; }
.manifesto-item h3 { font-size: 1.1rem; margin-bottom: 8px; }
.manifesto-item p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }

/* ── Latest ── */
.latest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.latest-card {
  display: block;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.latest-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.card-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.latest-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.latest-card p { font-size: 0.9rem; color: var(--text-muted); }
.card-link {
  display: inline-block; margin-top: 12px;
  font-size: 0.9rem; color: var(--accent);
  font-weight: 500;
}

/* ── Quote ── */
.quote-section { padding: 60px 0; }
.quote {
  text-align: center;
  padding: 40px 0;
}
.quote p {
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.8;
  color: var(--text-muted);
}
.quote cite {
  display: block; margin-top: 16px;
  font-style: normal; font-size: 0.9rem;
  color: var(--text-muted);
}

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.footer-content {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
  margin-bottom: 12px;
}
.footer-brand { display: flex; flex-direction: column; gap: 2px; }
.footer-brand strong { color: var(--text); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--text-muted); text-decoration: none; }
.footer-links a:hover { color: var(--accent); }
.footer-meta { font-family: var(--font-mono); font-size: 0.8rem; }

/* ── Responsive ── */
@media (max-width: 600px) {
  .hero { padding: 120px 0 60px; min-height: auto; }
  .section { padding: 60px 0; }
  .nav-links { gap: 16px; }
  .manifesto-grid, .latest-grid { grid-template-columns: 1fr; }
}

/* ── Subpages ── */
.page-header { padding: 120px 0 40px; }
.page-header h1 { font-size: 2.5rem; font-weight: 800; letter-spacing: -0.03em; }
.page-header .date { font-family: var(--font-mono); font-size: 0.85rem; color: var(--text-muted); margin-top: 8px; }
.page-content { padding-bottom: 80px; }
.page-content p { margin-bottom: 1.5rem; color: var(--text-muted); }
.page-content p:last-child { margin-bottom: 0; }

/* ── Article figures ── */
.page-content figure { margin: 32px 0; }
.page-content figure img { width: 100%; border-radius: 8px; display: block; }
.page-content figcaption { font-size: 0.85rem; color: var(--text-muted); text-align: center; margin-top: 10px; font-style: italic; }