/* blog.css — depends on site.css tokens */

.wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 64px 24px 48px;
}

.page-head { margin-bottom: 12px; }

.page-head h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 56px;
  margin: 0 0 6px;
  line-height: 1;
}

.page-head p {
  font-size: 16px;
  color: #444;
  margin: 0;
  max-width: 540px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 36px 0 40px;
}

.tag-pill {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 6px 14px;
  border: 1px solid var(--line-grey);
  border-radius: 999px;
  background: transparent;
  color: #555;
  cursor: pointer;
}

.tag-pill.is-active {
  color: var(--paper);
  border-color: var(--ink);
  background: var(--ink);
  font-weight: 500;
}

.post-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 56px;
}

.post-card {
  border: 1px solid var(--line-grey);
  border-radius: 10px;
  padding: 26px 24px 22px;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

.post-card:hover {
  border-color: #c9c9c9;
  background: var(--hover-tint);
  transform: translateY(-2px);
}

.post-card .meta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--meta-grey);
  display: flex;
  gap: 10px;
  align-items: center;
}

.post-card .meta .dot-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--meta-grey);
  display: inline-block;
}

.post-card h2 {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  margin: 2px 0 0;
  line-height: 1.08;
}

.post-card p.excerpt {
  font-size: 14.5px;
  color: #4a4a4a;
  line-height: 1.55;
  margin: 0;
}

.post-card .tags {
  display: flex;
  gap: 8px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.post-card .tags span {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: #666;
  background: #f2f3f5;
  padding: 3px 9px;
  border-radius: 999px;
}

.post-card.featured {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  gap: 28px;
  padding: 30px 30px;
}

.post-card.featured .featured-text { flex: 1; }
.post-card.featured h2 { font-size: 38px; }

.post-card.featured .featured-mark {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 3px 10px;
  margin-bottom: 6px;
  display: inline-block;
  width: fit-content;
}

.pagination {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.pagination .dots { display: flex; align-items: center; gap: 18px; }
.pagination .dots .seg { width: 56px; height: 1px; background: var(--line-grey); }

.pagination .page-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: none;
  background: var(--line-grey);
  cursor: pointer;
  padding: 0;
  text-decoration: none;
  display: inline-block;
}

.pagination .page-dot.is-current {
  background: var(--ink);
  transform: scale(1.15);
}

.pagination .page-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--meta-grey);
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #555;
}

.empty-state .kaomoji {
  font-family: var(--font-mono);
  font-size: 22px;
  margin-bottom: 10px;
  display: block;
}

@media (max-width: 720px) {
  .page-head h1 { font-size: 42px; }
  .post-grid { grid-template-columns: 1fr; }
  .post-card.featured { flex-direction: column; align-items: flex-start; }
  .post-card.featured h2 { font-size: 30px; }
}
