/* ── Tokens ─────────────────────────────────────────── */
:root {
  --bg: #0a0a0a;
  --text: #f5f5f5;
  --text-muted: #888;
  --accent: #00FF67;
  --card-bg: #111;
  --card-border: #222;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #fff;
    --text: #1a1a1a;
    --text-muted: #666;
    --card-bg: #fafafa;
    --card-border: #e0e0e0;
  }
}

/* ── Reset & base ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Hero ──────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 6rem 1rem 3rem;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ── Projects ──────────────────────────────────────── */
.projects {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1rem 4rem;
  flex: 1;
}

.projects h2 {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

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

/* ── Card ──────────────────────────────────────────── */
.project-card {
  border: 1px solid var(--card-border);
  border-radius: 12px;
  background: var(--card-bg);
  transition: transform 0.2s, box-shadow 0.2s;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.project-card a {
  display: block;
  padding: 2rem;
  text-decoration: none;
  color: inherit;
}

.project-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.75rem;
}

.project-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--accent);
}

.project-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ── Footer ────────────────────────────────────────── */
footer {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}
