:root {
  --bg: #0a0a0a;
  --surface: #141414;
  --border: #222;
  --text: #e0e0e0;
  --muted: #888;
  --accent: #4ecdc4;
  --politics: #e74c3c;
  --ai: #3498db;
  --memes: #f39c12;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

.nav {
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 100;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
}
.nav-links { display: flex; gap: 1.5rem; }
.nav-links a { color: var(--muted); font-size: 0.9rem; }
.nav-links a:hover { color: var(--text); text-decoration: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.hero { text-align: center; margin-bottom: 3rem; }
.hero h1 { font-size: 2.5rem; font-weight: 800; }
.hero .date { color: var(--muted); margin-top: 0.5rem; }

.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}
.category-column h2 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 1rem;
  transition: border-color 0.2s;
}
.card:hover { border-color: var(--accent); }
.card a { color: var(--text); display: block; padding: 1.2rem; }
.card h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.card .excerpt { font-size: 0.85rem; color: var(--muted); margin-bottom: 0.5rem; }
.card time { font-size: 0.75rem; color: var(--muted); }
.flag { background: var(--accent); color: var(--bg); padding: 2px 8px; border-radius: 4px; font-size: 0.75rem; margin-left: 0.5rem; }

.article-list { display: flex; flex-direction: column; }
.list-item a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.list-item a:hover { background: var(--surface); text-decoration: none; }
.list-item .title { flex: 1; }
.list-item time { color: var(--muted); font-size: 0.85rem; white-space: nowrap; }

.cat-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
}
.cat-badge.politics { background: var(--politics); color: #fff; }
.cat-badge.ai { background: var(--ai); color: #fff; }
.cat-badge.memes { background: var(--memes); color: #fff; }

.section-header { margin-bottom: 2rem; }
.section-header h1 { font-size: 2rem; }

.article { max-width: 720px; margin: 0 auto; }
.article header { margin-bottom: 2rem; }
.article h1 { font-size: 2rem; margin-top: 0.5rem; }
.article-meta { display: flex; align-items: center; gap: 1rem; margin-bottom: 0.5rem; }
.article-content { font-size: 1.05rem; line-height: 1.8; }
.article-content p { margin-bottom: 1.2rem; }
.article-content h2 { margin: 2rem 0 1rem; }
.article-content blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
  color: var(--muted);
  margin: 1.5rem 0;
}

.sources, .flagged { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.sources h3, .flagged h3 { margin-bottom: 1rem; }
.tweet {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
}
.tweet cite { display: block; margin-top: 0.5rem; color: var(--muted); font-size: 0.85rem; }

.article-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.archive-month { margin-bottom: 2rem; }
.archive-month h2 { font-size: 1.4rem; margin-bottom: 1rem; }
.archive-day { margin-bottom: 1rem; }
.archive-day h3 { font-size: 1rem; color: var(--muted); margin-bottom: 0.5rem; }

.empty { color: var(--muted); font-style: italic; }

.day-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.day-nav-center { text-align: center; }
.day-nav-link {
  font-size: 0.9rem;
  color: var(--accent);
  text-decoration: none;
  min-width: 120px;
}
.day-nav-link.prev { text-align: left; }
.day-nav-link.next { text-align: right; }
.day-nav-link.disabled { color: var(--border); pointer-events: none; }
.day-nav-link:hover { text-decoration: underline; }

.footer {
  text-align: center;
  padding: 2rem;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
  margin-top: 3rem;
}

@media (max-width: 768px) {
  .categories-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.8rem; }
  .nav-links { gap: 0.8rem; font-size: 0.8rem; }
}
