/* zdat site — minimal stylesheet */

*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.1rem;
  line-height: 1.65;
  color: #222;
  background: #fff;
  max-width: 680px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

a { color: #1a5276; }
a:visited { color: #4a235a; }
a:hover { text-decoration: none; }

h1, h2, h3 {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.5rem 0;
}
h1 { font-size: 1.4rem; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1rem; color: #555; }

/* Site header */

.site-header {
  border-bottom: 1px solid #ddd;
  padding-bottom: 0.75rem;
  margin-bottom: 2rem;
}
.site-header h1 a {
  color: #222;
  text-decoration: none;
}

/* Index: post summaries */

.post-summary {
  margin-bottom: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid #eee;
}
.post-summary:last-of-type { border-bottom: none; }

.post-meta {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.85rem;
  color: #777;
  margin-bottom: 0.25rem;
  display: flex;
  gap: 1rem;
  align-items: baseline;
}

.counts {
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

/* Post page */

.post-header {
  margin-bottom: 1.5rem;
}

.post-header time {
  display: block;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.85rem;
  color: #777;
  margin-top: 0.25rem;
}

.post-url {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.85rem;
  margin-top: 0.25rem;
  word-break: break-all;
}

.post-content {
  margin-bottom: 1.5rem;
}
.post-content p { margin: 0 0 1rem 0; }

/* Social counts on post page */

.social-counts {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.9rem;
  color: #555;
  display: flex;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  padding: 0.75rem 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

/* Replies */

.replies {
  margin-top: 2rem;
}

.reply {
  margin-bottom: 1.25rem;
  padding-left: 1rem;
  border-left: 3px solid #eee;
}

.reply-meta {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.85rem;
  color: #777;
  margin-bottom: 0.25rem;
  display: flex;
  gap: 0.75rem;
}

.reply-author { color: #1a5276; }

.reply-content p { margin: 0 0 0.5rem 0; }

/* Raw JSON link */

.raw-link {
  margin-top: 1.5rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.8rem;
  color: #aaa;
}
.raw-link a { color: #aaa; }

/* Pagination */

.pagination {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.9rem;
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  color: #777;
}
.pagination .disabled { color: #ccc; }
.page-info { flex: 1; text-align: center; color: #aaa; }

/* Tags */

.post-tags {
  margin-top: 0.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.75rem;
  color: #777;
  background: #f4f4f4;
  border-radius: 3px;
  padding: 0.1rem 0.45rem;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.tag:hover { background: #e8e8e8; color: #444; }
.tag:visited { color: #777; }

.tag-filter {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.85rem;
  color: #888;
  margin: 0.25rem 0 0 0;
}

.tag-clear {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.8rem;
  color: #aaa;
  margin-left: 0.75rem;
  text-decoration: none;
  vertical-align: middle;
}
.tag-clear:hover { color: #666; }

/* Tombstone / empty / 404 */

.tombstone, .empty, .not-found {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #888;
  font-style: italic;
}