/* templates/styles.css - minimal, clean responsive styles */
:root {
  --max: 920px;
  --muted: #666;
  --accent: #3D52A0;
  --accent-light: #7091E6;
  --accent-lighter: #8697C4;
  --bg: #EDE8F5;
  --bg-light: #ADBBDA;
  --text-dark: #3D52A0;
  --text-light: #EDE8F5;
}
* {
  box-sizing: border-box;
}
body {
  font-family: Inter, ui-sans-serif, system-ui, Segoe UI, Roboto, "Helvetica Neue", Arial;
  line-height: 1.45;
  color: var(--text-dark);
  margin: 0;
  background: var(--bg);
}
.container {
  max-width: var(--max);
  margin: 28px auto;
  padding: 0 18px;
}
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  border-bottom: 1px solid var(--accent-lighter);
}
.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}
.brand img {
  width: 36px;
  height: 36px;
  margin-right: 10px;
}
nav a {
  margin-left: 14px;
  text-decoration: none;
  color: var(--muted);
}
.hero {
  padding: 28px 0;
}
.hero h1 {
  font-size: 32px;
  margin: 0;
}
.lead {
  color: var(--muted);
  margin-top: 8px;
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.project-card {
  border: 1px solid var(--accent-lighter);
  border-radius: 8px;
  padding: 10px;
  display: flex;
  align-items: center;
  background: var(--bg-light);
}
.project-card a.project-link {
  display: flex;
  text-decoration: none;
  color: inherit;
  width: 100%;
}
.project-left {
  width: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-right: 10px;
}
.project-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 8px;
}
.project-logo.placeholder {
  width: 64px;
  height: 64px;
  background: var(--muted);
  border-radius: 8px;
}
.project-body h2 {
  margin: 0 0 6px 0;
  font-size: 18px;
}
.project-body .desc {
  margin: 0;
  color: var(--muted);
}
.meta {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cta {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 6px;
  background: var(--accent);
  color: var(--text-light);
  text-decoration: none;
}
.project-full {
  max-width: 900px;
  margin: 0 auto;
}
.project-header {
  display: flex;
  gap: 16px;
  align-items: center;
}
.project-header-logo {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 8px;
}
.muted {
  color: var(--muted);
}
.site-footer {
  padding: 24px;
  text-align: center;
  color: var(--muted);
  border-top: 1px solid var(--accent-lighter);
  margin-top: 40px;
}
.contributors-list a {
  margin-right: 8px;
  text-decoration: none;
  color: var(--muted);
}
@media (max-width: 600px) {
  .project-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .brand span {
    display: none;
  }
}
#search {
  width: 100%;
  max-width: 480px;
  padding: 12px 14px;
  border: 1px solid var(--accent-lighter);
  border-radius: 6px;
  font-size: 16px;
  margin-top: 18px;
}
.projects-grid.limited .project-card:nth-child(n+7) {
  display: none;
}
.projects-grid.limited.expanded .project-card {
  display: flex;
}
.show-more {
  margin: 12px 0;
  padding: 8px 12px;
  border: none;
  background: var(--accent);
  color: var(--text-light);
  border-radius: 6px;
  cursor: pointer;
}
.category {
  margin-bottom: 40px;
}
.category h2 {
  margin-bottom: 18px;
  color: var(--accent);
}
.search-results {
  margin-top: 40px;
}
