:root {
  --bg: #0e1014;
  --panel: #171a21;
  --panel-2: #1f2430;
  --text: #e8ecf1;
  --muted: #97a1b5;
  --accent: #5fb0ff;
  --accent-2: #ffb86b;
  --ok: #7bdcb5;
  --border: #262b38;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(0,0,0,.35);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: radial-gradient(1200px 800px at 20% 0%, #1b2030 0%, var(--bg) 60%) fixed;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

header.site {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}

header.site h1 {
  font-size: 28px;
  margin: 0;
  letter-spacing: -0.01em;
}

header.site .tag {
  color: var(--muted);
  font-size: 14px;
}

h2.section {
  font-size: 18px;
  margin: 40px 0 16px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

.card {
  display: block;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  color: inherit;
  text-decoration: none;
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}

.card:hover {
  text-decoration: none;
  transform: translateY(-2px);
  border-color: #3a4256;
  background: var(--panel-2);
}

.card .title {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 6px;
}

.card .by {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 12px;
}

.card .desc {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

.badge {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--panel-2);
  color: var(--muted);
  border: 1px solid var(--border);
  margin-left: 8px;
  vertical-align: middle;
}

.badge.new { color: var(--accent-2); border-color: var(--accent-2); }

footer.site {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.back {
  display: inline-block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 16px;
}

.back::before { content: "← "; }
