
:root{
  --bg: #0b0c10;
  --fg: #e5e7eb;
  --muted:#9ca3af;
  --card:#111827;
  --accent:#60a5fa;
  --accent-2:#34d399;
  --border:#1f2937;
}

:root.light{
  --bg:#ffffff;
  --fg:#111827;
  --muted:#4b5563;
  --card:#f3f4f6;
  --accent:#2563eb;
  --accent-2:#059669;
  --border:#e5e7eb;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  background:var(--bg);
  color:var(--fg);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  line-height:1.6;
}

.container{max-width:1050px;margin:0 auto;padding:24px}
a{color:var(--accent);text-decoration:none}
a:hover{text-decoration:underline}

.site-header{
  border-bottom:1px solid var(--border);
  background:rgba(0,0,0,0.05);
  position:sticky;top:0;backdrop-filter:saturate(180%) blur(8px);z-index:50
}
.site-header .container{display:flex;align-items:center;justify-content:space-between;gap:16px}
.brand{font-weight:700}
.logo{display:inline-grid;place-items:center;width:28px;height:28px;border-radius:8px;background:var(--accent);color:white;margin-right:8px;font-weight:900}

nav{display:flex;gap:12px;align-items:center}
nav a{padding:6px 10px;border-radius:8px}
nav a:hover{background:var(--card)}
#themeToggle{border:1px solid var(--border);background:transparent;color:var(--fg);padding:6px 10px;border-radius:8px;cursor:pointer}

.site-footer{
  margin-top:40px;border-top:1px solid var(--border);padding:24px 0;color:var(--muted)
}

.home .hero{padding:56px 0}
h1{font-size:clamp(28px,5vw,44px);margin:0 0 12px}
h2{font-size:clamp(20px,3vw,28px);margin:24px 0 8px}
h3{margin:12px 0 4px}

.tagline{color:var(--muted)}
.btn{display:inline-block;background:var(--accent);color:white;padding:10px 14px;border-radius:12px;margin-right:10px}
.btn.secondary{background:var(--card);border:1px solid var(--border);color:var(--fg)}

.cards{list-style:none;display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px;padding:0}
.card{background:var(--card);border:1px solid var(--border);border-radius:16px;padding:16px}

.grid.projects{list-style:none;display:grid;grid-template-columns:1fr;gap:16px;padding:0}
.project{background:var(--card);border:1px solid var(--border);border-radius:16px;padding:16px}
.meta{color:var(--muted);font-size:0.95rem}

.resume-summary .chips{display:flex;flex-wrap:wrap;gap:8px;padding-left:0;list-style:none}
.resume-summary .chips li{background:var(--card);border:1px solid var(--border);padding:6px 10px;border-radius:999px}

@media (min-width: 820px){
  .grid.projects{grid-template-columns:repeat(2,1fr)}
}
