:root {
  color-scheme: light dark;
  --bg: #0f1218;
  --surface: #171c26;
  --text: #e8ecf4;
  --muted: #9aa3b5;
  --accent: #6ea8fe;
  --border: #2a3140;
  --card: #1b2230;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f7fb;
    --surface: #ffffff;
    --text: #1a1f2b;
    --muted: #5c6578;
    --accent: #1a56c9;
    --border: #d9dee8;
    --card: #ffffff;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  background: var(--bg);
  color: var(--text);
}

a {
  color: var(--accent);
  text-decoration-thickness: 0.08em;
}

a:hover {
  text-decoration: underline;
}

.site-header {
  max-width: 52rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 1rem;
  border-bottom: 1px solid var(--border);
}

.site-header h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  letter-spacing: -0.02em;
}

.intro {
  margin: 0 0 1rem;
  color: var(--muted);
  max-width: 48rem;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

main {
  max-width: 52rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.section-title {
  margin: 0 0 1.25rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.repo-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

.repo-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.25rem 1.35rem;
}

.repo-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
}

.repo-card h3 a {
  color: inherit;
  text-decoration: none;
}

.repo-card h3 a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.repo-link-row {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem 0.35rem;
}

.repo-link-row .link-sep {
  color: var(--muted);
  user-select: none;
}

.repo-meta {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.repo-name {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.lang {
  padding: 0.1rem 0.45rem;
  border-radius: 0.35rem;
  background: var(--surface);
  border: 1px solid var(--border);
}

.summary {
  margin: 0;
  color: var(--text);
}

.site-footer {
  max-width: 52rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}
