:root {
  --bg: #0f1419;
  --surface: #1a2332;
  --surface-hover: #243044;
  --text: #e7ecf3;
  --text-muted: #9aa8bc;
  --accent: #3b82f6;
  --accent-soft: rgba(59, 130, 246, 0.15);
  --border: #2d3a4f;
  --success: #22c55e;
  --warning: #eab308;
  --max-width: 960px;
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover { text-decoration: underline; }

code {
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.9em;
  background: var(--surface);
  padding: 0.15em 0.4em;
  border-radius: 4px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(15, 20, 25, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-header nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

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

.nav-links {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

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

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

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

.hero {
  padding: 4rem 0 3rem;
}

.eyebrow {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 0.75rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  max-width: 22ch;
}

.lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 60ch;
  margin: 0 0 1.25rem;
}

.hero-highlights {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  display: grid;
  gap: 0.65rem;
  max-width: 62ch;
}

.hero-highlights li {
  color: var(--text-muted);
  padding-left: 1rem;
  border-left: 2px solid var(--border);
}

.hero-highlights strong {
  color: var(--text);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-block;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover { background: #2563eb; text-decoration: none; }

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover { background: var(--surface-hover); text-decoration: none; }

.principles {
  margin-bottom: 3rem;
}

.principles blockquote {
  margin: 0;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-muted);
  font-style: italic;
}

.section {
  margin-bottom: 3.5rem;
}

.section h2 {
  font-size: 1.5rem;
  margin: 0 0 0.75rem;
}

.section-intro {
  color: var(--text-muted);
  margin: 0 0 1.5rem;
}

.writing-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0.75rem 0 0;
}

.signals-grid {
  display: grid;
  gap: 1rem;
  margin: 0 0 1.5rem;
}

@media (min-width: 768px) {
  .signals-grid { grid-template-columns: repeat(3, 1fr); }
}

.signal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
}

.signal-card h3 {
  margin: 0 0 0.45rem;
  font-size: 0.95rem;
  color: var(--text);
}

.signal-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.platform-flow {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 768px) {
  .platform-flow { grid-template-columns: repeat(3, 1fr); }
}

.platform-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
}

.platform-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.45rem;
}

.platform-step h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.platform-step p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.platform-detail {
  margin-top: 0.65rem !important;
}

.platform-outcome {
  margin: 0;
  padding: 1rem 1.15rem;
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-muted);
}

.project-tier {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}

.project-signal {
  margin-top: 0.85rem !important;
  font-size: 0.9rem !important;
  color: var(--text) !important;
}

.skills-grid,
.project-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .project-grid { grid-template-columns: 1fr; }
}

.skill-card,
.project-card,
.oss-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}

.skill-card h3,
.project-card h3,
.oss-item h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.skill-card p,
.project-card p,
.oss-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

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

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

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 1rem 0 0.75rem;
  padding: 0;
}

.tags li {
  font-size: 0.75rem;
  padding: 0.2rem 0.55rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
}

.project-link {
  font-size: 0.9rem;
  font-weight: 600;
}

.oss-list {
  display: grid;
  gap: 0.75rem;
}

.badge {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  vertical-align: middle;
}

.badge.merged {
  background: rgba(34, 197, 94, 0.15);
  color: var(--success);
}

.badge.open {
  background: rgba(234, 179, 8, 0.15);
  color: var(--warning);
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.contact-links a {
  font-weight: 600;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.site-footer p { margin: 0; }

@media (max-width: 600px) {
  .nav-links { display: none; }
  .hero { padding-top: 2.5rem; }
}
