:root {
  --bg: #fbfbfc;
  --panel: #ffffff;
  --line: #e5e7eb;
  --text: #16181d;
  --muted: #6b7280;
  --accent: #4f46e5;
  --accent-soft: #eef2ff;
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.muted { color: var(--muted); }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1000px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.brand img { border-radius: 8px; }
.site-header nav { display: flex; gap: 1.4rem; }
.site-header nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
}
.site-header nav a:hover { color: var(--text); }
.site-header nav a[aria-current="page"] { color: var(--text); font-weight: 600; }

main { max-width: 1000px; margin: 0 auto; padding: 0 1.5rem 6rem; }
main.narrow { max-width: 720px; }

.hero {
  text-align: center;
  padding: 4rem 0 3rem;
}
.hero-logo { border-radius: 20px; margin-bottom: 1.25rem; }
.hero h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -0.03em; margin: 0 0 1rem; }
.lede { color: var(--muted); font-size: 1.08rem; margin: 0 auto 2rem; max-width: 34rem; }
.hero .lede { margin-left: auto; margin-right: auto; }

.cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.75rem; }

.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1.15rem;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.06s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { background: #4338ca; }
.btn.ghost { border-color: var(--line); background: var(--panel); }
.btn.ghost:hover { border-color: #cbd5e1; }

.featured { margin-top: 2rem; }
.featured h2 { font-size: 1.05rem; letter-spacing: -0.01em; margin: 0 0 1rem; }

.project-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.project-card:hover { border-color: #c7d2fe; box-shadow: 0 8px 24px rgba(79,70,229,0.07); }
.project-card h3 { margin: 0 0 0.35rem; font-size: 1.15rem; letter-spacing: -0.01em; }
.project-card p { margin: 0; color: var(--muted); font-size: 0.96rem; }
.project-link { white-space: nowrap; color: var(--accent); font-weight: 600; font-size: 0.92rem; }
.muted-card { cursor: default; border-style: dashed; }

.project-list { display: grid; gap: 1rem; }
.tags { font-size: 0.82rem !important; color: var(--muted) !important; margin-top: 0.6rem !important; }

h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); letter-spacing: -0.025em; }
h2 { margin-top: 2.5rem; }
main.narrow ul { padding-left: 1.2rem; }
main.narrow li { margin: 0.4rem 0; }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  max-width: 1000px;
  margin: 0 auto;
  padding: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 640px) {
  .project-card { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .hero { padding-top: 2.5rem; }
}

.footer-right { display: inline-flex; align-items: center; gap: 0.75rem; }
.social { display: inline-flex; color: var(--muted); }
.social svg { width: 18px; height: 18px; }
.social:hover { color: var(--text); }
