:root {
  --accent: #509BE5;
  --accent-dim: #1a9e8f;
  --bg: #000;
  --bg-raised: #111;
  --bg-card: #141414;
  --border: #2a2a2a;
  --border-subtle: #1e1e1e;
  --text: #fff;
  --text-muted: #999;
  --text-dim: #bdbdbd;
  --red: #ff4444;
}

/* ── Reset ── */
* { box-sizing: border-box; }

body {
  background-color: var(--bg);
  margin: 0;
  padding: 0;
  font-family: 'Arial', sans-serif;
  color: var(--text);
}

/* ── Header banner ── */
header {
  width: 100%;
  height: 250px;
  background-image: url('header.png');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

/* ── Navbar ── */
.navbar {
  display: flex;
  justify-content: center;
  background-color: var(--bg-raised);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.nav-item { display: inline-block; }

.nav-link {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  padding: 5px 10px;
  border-radius: 4px;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent);
}

/* ── Main content area ── */
main {
  margin-bottom: 80px;
}

.content {
  padding: 2rem 1.5rem;
  max-width: 820px;
  margin: 0 auto;
}

/* ── Section heading ── */
.section-heading {
  font-size: 1.8rem;
  margin-bottom: 0.2rem;
  color: var(--accent);
}

.section-sub {
  color: var(--text-muted);
  font-style: italic;
  margin-top: 0;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

/* ── Project cards ── */
.project-card {
  margin-top: 2rem;
  padding: 1.6rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background-color: var(--bg-card);
  border-left: 3px solid var(--accent);
}

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

.project-header h3 {
  margin: 0;
  font-size: 1.35rem;
  color: var(--text);
}

/* ── Status badges ── */
.status-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.55rem;
  border-radius: 20px;
}

.status-badge.stable {
  background: #1a3a2a;
  color: #86efac;
  border: 1px solid #2a5a3a;
}

.status-badge.wip {
  background: #3a2a1a;
  color: #fde68a;
  border: 1px solid #5a4a2a;
}

.status-badge.archived {
  background: #2a2a2a;
  color: #999;
  border: 1px solid #3a3a3a;
}

/* ── Project content ── */
.project-tagline {
  font-style: italic;
  color: var(--text-dim);
  margin: 0.3rem 0 1rem;
  font-size: 0.95rem;
}

.project-screenshot {
  display: block;
  max-width: 55%;
  height: auto;
  border-radius: 5px;
  border: 1px solid var(--border);
  margin: 1rem 0;
}

.project-meta {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  font-size: 0.9rem;
  color: var(--text-dim);
}

.project-meta li {
  margin-bottom: 0.3rem;
}

.meta-label {
  display: inline-block;
  min-width: 70px;
  color: var(--text-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-right: 0.5rem;
}

.project-description {
  font-size: 0.95rem;
  color: var(--text-dim);
  line-height: 1.7;
}

.project-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.2rem;
  flex-wrap: wrap;
}

.project-links a {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  background: #1e1e1e;
  color: var(--accent);
  border: 1px solid var(--border);
  transition: background 0.2s, color 0.2s;
}

.project-links a:hover {
  background: var(--accent);
  color: #000;
}

/* ── Typewriter (used elsewhere) ── */
.typewriter {
  font-family: monospace;
  letter-spacing: 2px;
  font-size: 1.5em;
}

/* ── Misc link styles (used on other pages) ── */
.github-link, .discord-link {
  display: inline-block;
  margin-top: 10px;
  color: #00ff00;
  text-decoration: none;
  font-size: 1.1rem;
}

.github-link:hover, .discord-link:hover {
  color: #00cc00;
}

.quote {
  font-style: italic;
  font-size: 1.2em;
  color: var(--text);
  padding: 10px;
  margin: 20px 0;
}

/* ── News styles (used on other pages) ── */
.news-links {
  margin-top: 0.75rem;
  font-size: 0.95em;
}

.news-links a {
  text-decoration: none;
  font-weight: 600;
}

.news-links span {
  margin: 0 0.5rem;
  opacity: 0.5;
}

.news-meta {
  margin-top: 0.75rem;
  opacity: 0.75;
}

/* ── Footer ── */
footer {
  background-color: var(--bg-raised);
  color: var(--text-muted);
  text-align: center;
  padding: 12px 0;
  position: fixed;
  bottom: 0;
  width: 100%;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
}