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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #f5f5f5;
  color: #333;
  min-height: 100vh;
}

header {
  background: #1a1a2e;
  color: #fff;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header h1 { font-size: 1.5rem; font-weight: 600; }
header a { color: #aaa; text-decoration: none; font-size: 0.9rem; }
header a:hover { color: #fff; }

main { max-width: 1200px; margin: 2rem auto; padding: 0 1rem; }

.category { margin-bottom: 2rem; }
.category h2 {
  font-size: 1.1rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  padding-bottom: 0.25rem;
  border-bottom: 2px solid #ddd;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.tile {
  background: #fff;
  border-radius: 8px;
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  text-decoration: none;
  color: inherit;
  display: block;
  transition: box-shadow 0.15s, transform 0.15s;
}

.tile:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transform: translateY(-2px);
}

.tile h3 { font-size: 1rem; margin-bottom: 0.35rem; color: #1a1a2e; }
.tile p { font-size: 0.85rem; color: #666; line-height: 1.4; }

.tile .badge {
  display: inline-block;
  font-size: 0.7rem;
  background: #e8e8e8;
  color: #888;
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  margin-top: 0.5rem;
}

.tile .badge.private { background: #fff3cd; color: #856404; }

@media (max-width: 768px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .grid { grid-template-columns: 1fr; } }
