:root {
  --bg: #ffffff;
  --text: #1a1a1a;
  --text-muted: #666666;
  --border: #e5e5e5;
  --accent: #2d5a5a;
  --badge-bg: #f0f0f0;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16181d;
    --text: #e8e8e8;
    --text-muted: #9a9a9a;
    --border: #2c2f36;
    --accent: #7fb3b3;
    --badge-bg: #22252b;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
}

a {
  color: var(--accent);
}

header {
  border-bottom: 1px solid var(--border);
}

header nav {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-title {
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
}

.nav-links a {
  margin-left: 1.25rem;
  text-decoration: none;
  color: var(--text-muted);
}

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

main {
  max-width: 960px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

.intro h1 {
  margin-bottom: 0.25rem;
}

.headline {
  color: var(--text-muted);
  margin-top: 0;
}

.text-muted {
  color: var(--text-muted);
}

.links a {
  margin-right: 1rem;
}

.project-list {
  list-style: none;
  padding: 0;
}

.project-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.project-list a {
  text-decoration: none;
  font-weight: 500;
}

.project-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.project-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.project-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.project-card-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  flex-shrink: 0;
}

.project-card-body h3 {
  margin: 0 0 0.25rem;
}

.project-card-body p.text-muted {
  margin: 0;
}

.project-card-badges {
  margin: 0.5rem 0 0;
}

.badge {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: var(--badge-bg);
  color: var(--text-muted);
  font-size: 0.8rem;
}

.project-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.project-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 1rem;
  flex-shrink: 0;
}

.project-screenshot {
  max-width: 220px;
  width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
}

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

.footer-links a {
  margin-right: 1rem;
  color: var(--text-muted);
}
