:root {
  --bg:             #0a0a0a;
  --surface:        #111111;
  --surface-hover:  #161616;
  --border:         #1f1f1f;
  --text:           #ededed;
  --text-muted:     #888888;

  --status-released-bg:        #0d2818;
  --status-released-text:      #4ade80;
  --status-dev-bg:             #0d1e35;
  --status-dev-text:           #60a5fa;
  --status-experimental-bg:    #2a1d08;
  --status-experimental-text:  #fbbf24;
  --status-archived-bg:        #1a1a1a;
  --status-archived-text:      #6b7280;

  --font:      system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: ui-monospace, 'Cascadia Code', 'Fira Code', monospace;

  --radius:    8px;
  --max-w:     1100px;
  --pad:       clamp(1.25rem, 5vw, 2.5rem);
}

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul[role="list"] { list-style: none; }

/* ── Container ─────────────────────────── */

.c {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* ── Header ─────────────────────────────── */

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

header .c {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1rem;
  gap: 2rem;
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  letter-spacing: -0.01em;
  color: var(--text);
}

header ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}

header ul a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color 120ms;
}

header ul a:hover { color: var(--text); }

/* ── Sections ───────────────────────────── */

section { border-top: 1px solid var(--border); }

section .c { padding-block: clamp(3rem, 7vw, 5.5rem); }

.section-label {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* ── Hero ───────────────────────────────── */

#hero { border-top: none; }

#hero .c {
  padding-block: clamp(5rem, 12vw, 9rem);
  text-align: center;
}

#hero h1 {
  font-size: clamp(2.5rem, 5.5vw, 4.25rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 1.25rem;
}

.hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.0625rem);
  color: var(--text-muted);
  max-width: 520px;
  margin-inline: auto;
  margin-bottom: 2.5rem;
  line-height: 1.65;
}

.hero-ctas {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 120ms, color 120ms, border-color 120ms;
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
  border: 1px solid var(--text);
}

.btn-primary:hover { background: #c8c8c8; border-color: #c8c8c8; }

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.btn-ghost:hover { color: var(--text); border-color: #333; background: var(--surface); }

/* ── Projects grid ──────────────────────── */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.project-card {
  background: var(--surface);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  transition: background 120ms;
}

.project-card:hover { background: var(--surface-hover); }

.project-card--placeholder { opacity: 0.4; }

.card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.badge {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.badge-released     { background: var(--status-released-bg);     color: var(--status-released-text); }
.badge-dev          { background: var(--status-dev-bg);           color: var(--status-dev-text); }
.badge-experimental { background: var(--status-experimental-bg); color: var(--status-experimental-text); }
.badge-archived     { background: var(--status-archived-bg);     color: var(--status-archived-text); }

.card-type {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.card-title {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.card-description {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
}

.card-links {
  margin-top: 0.75rem;
  display: flex;
  gap: 1rem;
}

.card-link {
  font-size: 0.8125rem;
  color: var(--text-muted);
  transition: color 120ms;
}

.card-link:hover { color: var(--text); }

/* ── About ──────────────────────────────── */

.about-text {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 560px;
}

/* ── Footer ─────────────────────────────── */

footer {
  border-top: 1px solid var(--border);
}

footer .c {
  padding-block: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
}

.footer-nav a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color 120ms;
}

.footer-nav a:hover { color: var(--text); }

footer small {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ── Focus ──────────────────────────────── */

:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ── Responsive ─────────────────────────── */

@media (max-width: 600px) {
  header ul { display: none; }
}
