/* V2 Design System - Buffett-style */
:root {
  --bg: #faf8f2;
  --paper: #fff;
  --text: #2d3748;
  --text-light: #718096;
  --accent: #c0392b;
  --accent-gold: #d4a574;
  --border: #e8e4df;
  --tag-bg: #fdf2f0;
  --sidebar-width: 280px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: "Noto Serif SC", Georgia, serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: var(--sidebar-width);
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  background: var(--paper);
  border-right: 1px solid var(--border);
  overflow-y: auto;
  padding: 1.5rem 1rem;
}
.sidebar-header { margin-bottom: 1.5rem; text-align: center; }
.sidebar-title { font-size: 1.1rem; font-weight: 700; color: var(--accent); letter-spacing: 2px; }
.sidebar-subtitle { font-size: 0.75rem; color: var(--text-light); }
.search-box {
  width: 100%; padding: 0.6rem 0.8rem;
  border: 1px solid var(--border); border-radius: 6px;
  font-size: 0.85rem; font-family: inherit; margin-bottom: 1rem;
}
.nav-section { margin-bottom: 1.2rem; }
.nav-label {
  font-size: 0.75rem; font-weight: 700; color: var(--text-light);
  text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 0.5rem; display: flex; justify-content: space-between;
}
.nav-items { list-style: none; }
.nav-item {
  display: block; padding: 0.35rem 0.5rem; font-size: 0.85rem;
  color: var(--text); text-decoration: none; border-radius: 4px;
}
.nav-item:hover { background: var(--tag-bg); }
.nav-item .count { float: right; color: var(--text-light); font-size: 0.75rem; }
.main {
  margin-left: var(--sidebar-width); flex: 1; max-width: 1200px; padding: 2rem 3rem;
}
.hero { border-bottom: 2px solid var(--accent); padding-bottom: 2rem; margin-bottom: 2rem; }
.hero-eyebrow { font-size: 0.8rem; color: var(--accent); text-transform: uppercase; letter-spacing: 3px; }
.hero-title { font-size: 2.5rem; font-weight: 900; line-height: 1.2; margin: 0.5rem 0 1rem; }
.hero-subtitle { font-size: 1rem; color: var(--text-light); max-width: 600px; }
.stats-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 2rem 0; }
.stat-card {
  background: var(--paper); border: 1px solid var(--border);
  border-radius: 8px; padding: 1.2rem; text-align: center; text-decoration: none;
}
.stat-value { font-size: 2rem; font-weight: 900; color: var(--accent); display: block; }
.stat-label { font-size: 0.8rem; color: var(--text-light); margin-top: 0.3rem; }
.tags-cloud { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 2rem 0; }
.tag {
  display: inline-block; padding: 0.4rem 0.8rem; background: var(--tag-bg);
  color: var(--accent); border-radius: 4px; font-size: 0.8rem; text-decoration: none;
  transition: all 0.2s; border: 1px solid transparent;
}
.tag:hover { background: var(--accent); color: #fff; transform: translateY(-1px); }
.tag .count { opacity: 0.6; font-size: 0.7rem; margin-left: 2px; }
.section { margin: 3rem 0; }
.section-title {
  font-size: 1.3rem; border-bottom: 2px solid var(--border);
  padding-bottom: 0.5rem; margin-bottom: 1rem;
}
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; }
.card {
  background: var(--paper); border: 1px solid var(--border);
  border-radius: 8px; padding: 1.2rem; transition: transform 0.2s;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.card-title { font-size: 1rem; font-weight: 700; color: var(--text); text-decoration: none; display: block; }
.card-title:hover { color: var(--accent); }
.card-meta { font-size: 0.75rem; color: var(--text-light); margin-top: 0.3rem; }
.top-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.top-table th, .top-table td { padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--border); text-align: left; }
.top-table th { background: var(--tag-bg); font-weight: 600; color: var(--accent); }
.top-table a { color: var(--text); text-decoration: none; }
.top-table a:hover { color: var(--accent); }
.cooccur-table { width: 100%; font-size: 0.85rem; }
.cooccur-bar { display: inline-block; height: 12px; background: var(--accent); border-radius: 2px; vertical-align: middle; margin-right: 0.5rem; }
.footer { margin-top: 4rem; padding-top: 2rem; border-top: 1px solid var(--border); text-align: center; font-size: 0.8rem; color: var(--text-light); }
@media (max-width: 768px) {
  .sidebar { display: none; }
  .main { margin-left: 0; padding: 1rem; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .hero-title { font-size: 1.8rem; }
}
#graph { width: 100%; height: 600px; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; }
blockquote { background: var(--tag-bg); border-left: 3px solid var(--accent); padding: 1rem 1.5rem; margin: 0.8rem 0; border-radius: 0 8px 8px 0; }
