:root {
  --bg: #000000;
  --border: #2A2727;
  --accent: #FFF100;
  --text: #F3F4F6;
  --text-muted: #B3B3B3;
  --text-dim: #6B7280;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Raleway', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
}

.brand-icon {
  height: 2rem;
  width: 2rem;
}

.brand-wordmark {
  height: 1rem;
  width: auto;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.site-nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: color 0.15s;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}

.hero {
  margin-bottom: 3rem;
}

.hero h1 {
  font-size: 2rem;
  margin: 0 0 0.5rem;
}

.hero p {
  color: var(--text-muted);
  max-width: 60ch;
  margin: 0;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, background-color 0.15s;
}

.project-card:hover {
  border-color: var(--accent);
  background-color: rgba(255, 241, 0, 0.03);
}

.project-card img.project-logo {
  height: 2.5rem;
  width: auto;
  margin-bottom: 1rem;
  object-fit: contain;
}

.project-card h2 {
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
}

.project-card .tagline {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0 0 1rem;
  flex: 1;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag {
  font-size: 0.75rem;
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
}

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

.detail-header img {
  height: 3rem;
  width: auto;
}

.detail-header h1 {
  margin: 0;
  font-size: 1.75rem;
}

.detail-body {
  color: var(--text-muted);
  max-width: 70ch;
}

.detail-body h2 {
  color: var(--text);
  font-size: 1.1rem;
  margin-top: 2rem;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.btn {
  display: inline-block;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.5rem 1rem;
  text-decoration: none;
  color: var(--text);
  font-size: 0.9rem;
  transition: border-color 0.15s, color 0.15s;
}

.btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.screenshot {
  max-width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin: 1.5rem 0;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-dim);
  font-size: 0.85rem;
}

.site-footer a {
  color: var(--text-dim);
  text-decoration: none;
}

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

.footer-social {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-social svg {
  display: block;
}

.back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.9rem;
}

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