/* Board / Hat pages — LANizinski.com */

.board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.board-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s, transform 0.15s;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.board-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  text-decoration: none;
}

.board-card .hat-icon {
  font-size: 1.75rem;
  line-height: 1;
}

.board-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.board-card p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 0;
}

.board-card .tag {
  margin-top: 4px;
}

.board-card .post-count {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 0.75rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

/* Hat page layout */
.hat-header {
  padding: 60px 0 40px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}

.hat-header .hat-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 12px;
}

.hat-header h1 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.hat-header p {
  color: var(--text-muted);
  max-width: 500px;
}

/* Post list on hat pages */
.post-list {
  list-style: none;
  padding: 0;
}

.post-list li {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.post-list li:last-child {
  border-bottom: none;
}

.post-list .post-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  display: block;
  margin-bottom: 4px;
}

.post-list .post-title:hover {
  color: var(--accent-text);
}

.post-list .post-date {
  color: var(--text-dim);
  font-size: 0.8rem;
  font-family: var(--font-mono);
}

.post-list .post-excerpt {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 8px;
  line-height: 1.5;
}

/* Post page */
.post-content {
  max-width: 700px;
}

.post-content h1 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.post-content .post-meta {
  color: var(--text-dim);
  font-size: 0.85rem;
  font-family: var(--font-mono);
  margin-bottom: 32px;
}

.post-content p {
  margin-bottom: 16px;
  line-height: 1.7;
}

.post-content h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 32px 0 12px;
}

.post-content ul, .post-content ol {
  margin: 16px 0;
  padding-left: 24px;
}

.post-content li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.back-link {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--text-muted);
  font-size: 0.9rem;
  text-decoration: none;
}

.back-link:hover {
  color: var(--accent-text);
}

@media (max-width: 768px) {
  .board-grid {
    grid-template-columns: 1fr;
  }
}
