
:root {
  --bg: #05070a;
  --bg-alt: #0d1117;
  --fg: #f5f5f5;
  --muted: #9ca3af;
  --accent: #38bdf8;
  --accent-soft: rgba(56,189,248,0.16);
  --border: #1f2933;
  --font-stack: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
                sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
          "Liberation Mono", "Courier New", monospace;
}

* {
  box-sizing: border-box;
}

html {
  background: #020617; /* base color behind everything */
}

body {
  margin: 0;
  font-family: var(--font-stack);
  min-height: 100vh; /* make body at least viewport height */
  background-color: #020617;
  background-image: radial-gradient(circle at top, #111827 0, #020617 55%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--fg);
  line-height: 1.6;
}


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

a:hover {
  text-decoration: underline;
}

header.site-header {
  max-width: 960px;
  margin: 0 auto;
  padding: 3rem 1.5rem 0rem;
}

header.site-header h1 {
  font-size: 2.3rem;
  margin-bottom: 0.25rem;
}

header.site-header h2 {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--muted);
  margin-top: 0;
  margin-bottom: 1rem;
}

.tagline {
  max-width: 720px;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.pill {
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-size: 0.8rem;
    border: 1px solid var(--border);
  background: rgba(15,23,42,0.9);
}

.links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.nav-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
  margin-top: 0.75rem;
}

.nav-row a {
  color: var(--muted);
}

.nav-row a.active {
  color: var(--accent);
}

.nav-row a {
  color: var(--muted);
  padding: 0.4rem 0.9rem;
  border-radius: 0.6rem;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  background: rgba(255, 255, 255, 0.02);
}

.nav-row a:hover {
  color: var(--accent);
  border-color: rgba(56,189,248,0.35);
  background: rgba(56,189,248,0.06);
}

.nav-row a.active {
  color: var(--fg);
  background: rgba(56,189,248,0.15);
  border-color: rgba(56,189,248,0.4);
  font-weight: 600;
}

.nav-row {
  margin-top: 1.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}


main.site-main {
  max-width: 960px;
  margin: 0 auto 4rem;
  padding: 0 1.5rem 3rem;
}

h2.section-title {
  margin-top: 2.5rem;
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

h3 {
  margin-top: 2rem;
  margin-bottom: 0.4rem;
  font-size: 1.1rem;
}

.section-intro {
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 720px;
  margin-bottom: 1rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 0.75rem;
}

.card {
  background: linear-gradient(145deg,
              rgba(15,23,42,0.9),
              rgba(15,23,42,0.98));
  border-radius: 0.9rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  box-shadow: 0 10px 35px rgba(0,0,0,0.45);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right,
                              var(--accent-soft),
                              transparent 55%);
  opacity: 0.85;
  pointer-events: none;
}

.card-inner {
  position: relative;
  z-index: 1;
}

.card-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.15rem;
}

.card-title a {
  font-weight: 600;
  font-size: 0.98rem;
}

.repo-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.6);
  color: var(--muted);
  white-space: nowrap;
}

.card-subtitle {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.card-body {
  font-size: 0.86rem;
  color: #e5e7eb;
  margin-bottom: 0.6rem;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.meta span {
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(31,41,55,0.9);
  background: rgba(15,23,42,0.9);
}

footer.site-footer {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Responsive tweaks */
@media (max-width: 640px) {
  header.site-header {
    padding-top: 2.2rem;
  }
  header.site-header h1 {
    font-size: 1.7rem;
  }
}
