:root {
  --bg: #0f1216;
  --surface: #161a20;
  --surface-2: #1c2129;
  --line: #262c36;
  --text: #e7eaee;
  --muted: #9aa3ae;
  --accent: #3ad1e0;
  --accent-ink: #06222a;
  --radius: 10px;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(15, 18, 22, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.top-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.mark { font-weight: 700; letter-spacing: -0.01em; text-decoration: none; white-space: nowrap; }
.mark span { color: var(--accent); margin-left: 0.35em; font-weight: 500; }
nav { display: flex; gap: 22px; }
nav a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; }
nav a:hover { color: var(--text); }

/* Hero */
.hero { padding: 96px 24px 72px; }
.eyebrow {
  font: 500 13px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--accent); margin: 0 0 20px;
}
h1 {
  font-size: clamp(32px, 5vw, 52px); line-height: 1.1; letter-spacing: -0.025em;
  font-weight: 700; margin: 0 0 24px; max-width: 18ch;
}
.lede { font-size: 18px; color: var(--muted); max-width: 60ch; margin: 0 0 32px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-block; padding: 10px 18px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--surface);
  text-decoration: none; font-weight: 500; font-size: 15px;
}
.btn:hover { border-color: #3a4350; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.08); }

/* Sections */
.section { padding: 56px 24px; border-top: 1px solid var(--line); }
h2 { font-size: 26px; letter-spacing: -0.015em; margin: 0 0 12px; }
.section-lede { color: var(--muted); max-width: 64ch; margin: 0 0 28px; }
h3.sub {
  font: 500 13px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--muted); margin: 48px 0 16px;
}
.muted { color: var(--muted); }

/* Project cards */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 28px; }
.card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; transition: border-color .15s, transform .15s;
}
.card:hover { border-color: #3a4350; transform: translateY(-2px); }
.card img { aspect-ratio: 40 / 21; object-fit: cover; width: 100%; border-bottom: 1px solid var(--line); }
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.card h3 { margin: 0 0 8px; font-size: 19px; letter-spacing: -0.01em; }
.card p { margin: 0 0 12px; color: var(--muted); font-size: 15px; }
.card .meta { font: 400 13px/1.4 var(--mono); color: var(--text); opacity: .8; }
.card .host { margin: auto 0 0; font: 400 13px/1.4 var(--mono); color: var(--accent); }

/* Lists */
.list { list-style: none; padding: 0; margin: 0; }
.list li { display: grid; grid-template-columns: 220px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.list a { font: 500 14px/1.6 var(--mono); color: var(--text); text-decoration: none; }
.list a:hover { color: var(--accent); }
.list span { color: var(--muted); font-size: 15px; }

.libs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.lib {
  display: flex; flex-direction: column; gap: 6px; padding: 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none;
}
.lib:hover { border-color: #3a4350; }
.lib code { font: 500 14px/1.4 var(--mono); color: var(--accent); }
.lib span { color: var(--muted); font-size: 14px; }

/* Jam */
.jam { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.jam p { max-width: 62ch; color: var(--muted); }
.jam .btn { flex-shrink: 0; }

.links { display: flex; flex-wrap: wrap; gap: 10px; }
.links a {
  padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px;
  text-decoration: none; font-size: 14px; color: var(--muted);
}
.links a:hover { color: var(--text); border-color: #3a4350; }

/* Footer */
.foot {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  padding: 28px 24px 40px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 14px;
}
.foot a { text-decoration: none; }
.foot a:hover { color: var(--text); }

@media (max-width: 760px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .hero { padding: 64px 16px 48px; }
  .section { padding: 44px 16px; }
  .cards, .libs { grid-template-columns: 1fr; }
  .list li { grid-template-columns: 1fr; gap: 2px; }
  .jam { flex-direction: column; align-items: flex-start; }
  nav { gap: 14px; }
  nav a:nth-child(2) { display: none; }
}
