:root {
  --bg: #0f0f0f;
  --bg-soft: #1a1a1a;
  --text: #f5f5f5;
  --text-muted: #a3a3a3;
  --accent: #22c55e;
  --accent-hover: #16a34a;
  --border: #2a2a2a;
  --max-width: 960px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.site-header {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
}

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

.site-header nav {
  display: flex;
  gap: 1.5rem;
}

.site-header nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
}

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

/* Hero */
.hero {
  padding: 4rem 0;
  text-align: center;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
}

.hero-tagline {
  margin: 0;
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 36ch;
  margin-left: auto;
  margin-right: auto;
}

/* Projects preview */
.projects-preview {
  padding: 3rem 0 4rem;
}

.projects-preview h2 {
  margin: 0 0 1.5rem;
  font-size: 1.5rem;
  font-weight: 600;
}

.project-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .project-cards {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

.project-card {
  padding: 1.5rem;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.project-card h3 {
  margin: 0 0 0.25rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.project-card h3 a {
  color: var(--text);
  text-decoration: none;
}

.project-card h3 a:hover {
  color: var(--accent);
}

.project-subtitle {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.project-card p:last-of-type {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: var(--bg);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
}

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

/* Footer */
.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Project page (e.g. Hang) */
.page-header {
  padding: 2rem 0 1rem;
}

.page-header .breadcrumb {
  margin: 0 0 0.5rem;
  font-size: 0.875rem;
}

.page-header .breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}

.page-header .breadcrumb a:hover {
  color: var(--accent);
}

.page-header h1 {
  margin: 0 0 0.25rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
}

.page-header .subtitle {
  margin: 0;
  font-size: 1.125rem;
  color: var(--text-muted);
}

.project-content {
  padding: 0 0 4rem;
}

.project-content p {
  margin: 0 0 1rem;
  color: var(--text-muted);
  max-width: 65ch;
}

.project-content .cta-row {
  margin-top: 2rem;
}

.project-content .cta-row .btn {
  margin-right: 0.75rem;
  margin-bottom: 0.5rem;
}
