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

:root {
  --bg: #f8f8f6;
  --surface: #ffffff;
  --border: #e8e8e4;
  --text: #1a1a1a;
  --muted: #6b6b6b;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --radius: 14px;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

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

/* Header */
header {
  text-align: center;
  margin-bottom: 64px;
}

.avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  letter-spacing: 0.02em;
}

h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

#tagline {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 20px;
}

.github-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.15s;
}
.github-link:hover { color: var(--accent); }

/* Section */
.section-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 20px;
}

/* Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

/* Card */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 22px 18px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.18s, border-color 0.18s, transform 0.18s;
}
.card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(37,99,235,0.1);
  transform: translateY(-2px);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.repo-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}

.lang {
  font-size: 0.72rem;
  font-weight: 500;
  background: #f0f4ff;
  color: var(--accent);
  border-radius: 20px;
  padding: 2px 9px;
  white-space: nowrap;
}

.desc {
  font-size: 0.875rem;
  color: var(--muted);
  flex: 1;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}

.updated {
  font-size: 0.75rem;
  color: #aaa;
}

.arrow {
  color: var(--muted);
  transition: color 0.15s, transform 0.15s;
}
.card:hover .arrow {
  color: var(--accent);
  transform: translate(2px, -2px);
}

/* Footer */
footer {
  margin-top: 64px;
  text-align: center;
  font-size: 0.8rem;
  color: #ccc;
}

@media (max-width: 480px) {
  .page { padding: 40px 16px 32px; }
  h1 { font-size: 1.6rem; }
  .grid { grid-template-columns: 1fr; }
}
