:root{
  /* Light mode */
  --bg:#ffffff;
  --bg-gradient:linear-gradient(180deg, #fafafa 0%, #ffffff 100%);
  --surface:#f6f8fa;
  --surface-2:#eef1f4;
  --border:#d1d9e0;
  --border-subtle:#e5e9ed;
  --text:#1f2328;
  --text-muted:#656d76;
  --accent:#ef4444;
  --accent-hover:#dc2626;
  --accent-subtle:rgba(239,68,68,0.12);
  --code-bg:#f6f8fa;
  --shadow:0 1px 3px rgba(31,35,40,0.08), 0 2px 8px rgba(31,35,40,0.04);
  --shadow-lg:0 8px 24px rgba(31,35,40,0.12);
  --container:1100px;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

/* Dark mode - Vercel/GitHub inspired */
[data-theme="dark"]{
  --bg:#0d1117;
  --bg-gradient:linear-gradient(180deg, #0d1117 0%, #0d1117 50%, #111820 100%);
  --surface:#161b22;
  --surface-2:#1c2128;
  --border:#30363d;
  --border-subtle:#21262d;
  --text:#e6edf3;
  --text-muted:#8b949e;
  --accent:#f87171;
  --accent-hover:#fca5a5;
  --accent-subtle:rgba(248,113,113,0.15);
  --code-bg:#161b22;
  --shadow:0 1px 3px rgba(0,0,0,0.24), 0 2px 8px rgba(0,0,0,0.16);
  --shadow-lg:0 8px 24px rgba(0,0,0,0.32);
}

*{box-sizing:border-box;margin:0;padding:0}
body{background:var(--bg);background-image:var(--bg-gradient);color:var(--text);min-height:100vh;transition:background 0.2s ease,color 0.2s ease}
a{color:var(--accent);text-decoration:none;transition:color 0.15s ease}
a:hover{color:var(--accent-hover)}
.container{max-width:var(--container);margin:0 auto;padding:28px}

/* Header */
.site-header{
  border-bottom:1px solid var(--border-subtle);
  background:var(--bg);
  position:sticky;
  top:0;
  z-index:100;
  backdrop-filter:blur(12px);
}
[data-theme="dark"] .site-header{background:rgba(13,17,23,0.85)}
.header-inner{display:flex;align-items:center;justify-content:space-between}
.logo{color:var(--text);font-weight:700;font-size:20px;text-decoration:none;letter-spacing:-0.3px}
.logo:hover{color:var(--text)}
.nav{display:flex;align-items:center;gap:4px}
.nav a{color:var(--text-muted);padding:8px 12px;border-radius:6px;font-size:14px;font-weight:500;transition:color 0.15s,background 0.15s}
.nav a:hover{color:var(--text);background:var(--surface)}

/* Theme toggle */
.theme-toggle{
  background:var(--surface);
  border:1px solid var(--border-subtle);
  border-radius:6px;
  width:36px;
  height:36px;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  margin-left:8px;
  transition:all 0.15s ease;
}
.theme-toggle:hover{border-color:var(--border);background:var(--surface-2)}
.theme-toggle svg{width:18px;height:18px;stroke:var(--text-muted);fill:none;stroke-width:2;transition:stroke 0.15s}
.theme-toggle:hover svg{stroke:var(--text)}

/* GitHub nav link */
.nav a.github-link{
  background:var(--surface);
  border:1px solid var(--border-subtle);
  border-radius:6px;
  width:36px;
  height:36px;
  display:flex;
  align-items:center;
  justify-content:center;
  margin-left:8px;
  padding:0;
  transition:all 0.15s ease;
  color:var(--text-muted);
}
.nav a.github-link:hover{border-color:var(--border);background:var(--surface-2);color:var(--text)}
.nav a.github-link svg{width:18px;height:18px;fill:currentColor;transition:fill 0.15s}
.sun-icon{display:block}
.moon-icon{display:none}
[data-theme="dark"] .sun-icon{display:none}
[data-theme="dark"] .moon-icon{display:block}

/* Hero */
.hero{padding:56px 0 40px;text-align:left}
.hero h1{
  font-size:48px;
  margin:0 0 16px;
  font-weight:700;
  letter-spacing:-1.5px;
  line-height:1.1;
  color:var(--text);
}
.lede{color:var(--text-muted);max-width:640px;font-size:18px;line-height:1.6}
.btn{
  background:var(--accent);
  color:#ffffff;
  padding:12px 20px;
  border-radius:8px;
  text-decoration:none;
  font-weight:600;
  font-size:14px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-top:28px;
  transition:all 0.15s ease;
  border:none;
  cursor:pointer;
}
.btn:hover{background:var(--accent-hover);color:#ffffff;transform:translateY(-1px)}

/* Features/Cards */
.features{padding:32px 0 48px}
.features h2{font-size:24px;font-weight:600;margin-bottom:6px;color:var(--text)}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:16px;margin-top:16px}
.card{
  background:var(--surface);
  padding:20px;
  border-radius:12px;
  border:1px solid var(--border-subtle);
  transition:all 0.2s ease;
}
.card:hover{
  border-color:var(--border);
  box-shadow:var(--shadow);
  transform:translateY(-2px);
}
.card h3{color:var(--text);font-size:16px;font-weight:600;margin-bottom:8px}
.card p{color:var(--text-muted);font-size:14px;line-height:1.5}
.more{margin-top:16px}
.more a{color:var(--text-muted);font-size:14px;font-weight:500}
.more a:hover{color:var(--accent)}

/* Footer */
.site-footer{border-top:1px solid var(--border-subtle);padding:24px 0;margin-top:48px;color:var(--text-muted);font-size:14px}
.site-footer a{color:var(--text-muted)}
.site-footer a:hover{color:var(--text)}

/* Forms & Inputs */
input,textarea{
  padding:10px 12px;
  border-radius:8px;
  border:1px solid var(--border);
  background:var(--surface);
  color:var(--text);
  font-size:14px;
  transition:border-color 0.15s,box-shadow 0.15s;
}
input:focus,textarea:focus{
  outline:none;
  border-color:var(--accent);
  box-shadow:0 0 0 3px var(--accent-subtle);
}
input::placeholder,textarea::placeholder{color:var(--text-muted)}

.contact-form{display:flex;flex-direction:column;gap:12px;max-width:700px}

@media (max-width:700px){
  .hero h1{font-size:32px}
  .header-inner{padding:0 8px}
}

/* Blog styles */
.post-list{display:grid;gap:12px}
.post-list:empty{display:none}
.post{
  background:var(--surface);
  padding:28px 32px;
  border-radius:12px;
  border:1px solid var(--border-subtle);
  transition:box-shadow 0.2s ease,border-color 0.2s ease;
  display:flex;
  flex-direction:column;
  position:relative;
}
.post::before{
  content:'';
  position:absolute;
  left:0;
  top:20px;
  bottom:20px;
  width:3px;
  background:var(--accent);
  border-radius:0 2px 2px 0;
}
.post:hover{
  border-color:var(--border);
  box-shadow:var(--shadow-lg);
}
.post h2,.post h3{margin:0 0 12px;font-size:24px;font-weight:700;letter-spacing:-0.5px;line-height:1.3}
.post h2 a,.post h3 a{color:var(--text);text-decoration:none;transition:color 0.15s}
.post h2 a:hover,.post h3 a:hover{color:var(--accent)}
.post .meta{display:flex;gap:10px;align-items:center;margin-bottom:16px;color:var(--text-muted);font-size:13px}
.post .tag,.tag{
  background:var(--accent-subtle);
  color:var(--accent);
  padding:3px 10px;
  border-radius:20px;
  font-size:12px;
  font-weight:500;
}
.post .excerpt{
  color:var(--text-muted);
  margin:0 0 20px;
  font-size:15px;
  line-height:1.65;
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.post a.read-more{
  display:inline-flex;
  align-items:center;
  gap:6px;
  color:var(--accent);
  font-size:14px;
  font-weight:500;
  transition:gap 0.15s ease;
}
.post a.read-more:hover{gap:10px;color:var(--accent-hover)}

/* Blog hero */
.blog-hero{padding:48px 0 24px;border-bottom:1px solid var(--border-subtle);margin-bottom:24px}
.blog-hero .title{font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;font-size:32px;font-weight:600;color:var(--text);display:flex;align-items:center;gap:8px}
.blog-hero .cursor{width:3px;height:28px;background:var(--accent);border-radius:1px;animation:blink 1s steps(2,end) infinite}
@keyframes blink{50%{opacity:0}}
.blog-hero .subtitle{color:var(--text-muted);margin-top:8px;font-size:15px}

/* Search */
.post-search{margin-top:20px;display:flex;gap:8px}
.post-search input{flex:1;min-width:0;background:var(--surface)}
.post-search input:focus{border-color:var(--accent)}
.post-search button{
  padding:10px 16px;
  border-radius:8px;
  background:var(--surface);
  color:var(--text-muted);
  border:1px solid var(--border-subtle);
  cursor:pointer;
  font-weight:500;
  font-size:14px;
  transition:all 0.15s ease;
}
.post-search button:hover{border-color:var(--border);color:var(--text);background:var(--surface-2)}

/* Code blocks */
pre{
  background:var(--code-bg);
  padding:16px;
  border-radius:8px;
  color:var(--text);
  overflow-x:auto;
  font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
  font-size:13px;
  border:1px solid var(--border-subtle);
  margin:16px 0;
}
[data-theme="dark"] pre{background:#0d1117}
code{font-family:inherit;font-size:inherit}

/* Featured Post */
.featured-section{
  margin-bottom:32px;
}
.featured-post{
  background:var(--surface);
  padding:28px 32px;
  border-radius:12px;
  border:1px solid var(--border-subtle);
  position:relative;
  transition:box-shadow 0.2s ease,border-color 0.2s ease;
}
.featured-post::before{
  content:'';
  position:absolute;
  left:0;
  top:20px;
  bottom:20px;
  width:3px;
  background:var(--accent);
  border-radius:0 2px 2px 0;
}
.featured-post:hover{
  box-shadow:var(--shadow-lg);
  border-color:var(--border);
}
.featured-post h2{
  font-size:24px;
  font-weight:700;
  margin:0 0 12px;
  letter-spacing:-0.5px;
  line-height:1.3;
}
.featured-post h2 a{color:var(--text);text-decoration:none;transition:color 0.15s}
.featured-post h2 a:hover{color:var(--accent)}
.featured-post .meta{
  display:flex;
  gap:10px;
  align-items:center;
  color:var(--text-muted);
  font-size:13px;
  margin-bottom:16px;
}
.featured-post .excerpt{
  color:var(--text-muted);
  margin:0 0 20px;
  font-size:15px;
  line-height:1.65;
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.featured-post .read-more{
  display:inline-flex;
  align-items:center;
  gap:6px;
  color:var(--accent);
  font-size:14px;
  font-weight:500;
  transition:gap 0.15s ease;
}
.featured-post .read-more:hover{gap:10px;color:var(--accent-hover)}

@media (max-width:900px){
  .featured-post,.post{padding:24px 20px}
  .featured-post h2,.post h2,.post h3{font-size:20px}
  .blog-hero .title{font-size:26px}
}

/* Blog layout with sidebar */
.blog-layout{display:grid;grid-template-columns:1fr 280px;gap:24px;align-items:start}
.sidebar{position:sticky;top:80px}
.sidebar .panel{
  background:var(--surface);
  padding:16px 20px;
  border-radius:12px;
  margin-bottom:12px;
  border:1px solid var(--border-subtle);
}
.sidebar h4{margin:0 0 12px;font-size:12px;font-weight:600;color:var(--text-muted);text-transform:uppercase;letter-spacing:0.5px}
.sidebar ul{list-style:none;padding:0;margin:0}
.sidebar li{margin:8px 0}
.sidebar li a{color:var(--text-muted);font-size:14px}
.sidebar li a:hover{color:var(--accent)}
.tag-list{display:flex;flex-wrap:wrap;gap:6px}
.tag-btn{
  background:transparent;
  border:1px solid var(--border-subtle);
  padding:6px 12px;
  border-radius:20px;
  color:var(--text-muted);
  cursor:pointer;
  font-size:13px;
  font-weight:500;
  transition:all 0.15s ease;
}
.tag-btn:hover{border-color:var(--border);color:var(--text)}
.tag-btn.active{background:var(--accent);color:#ffffff;border-color:var(--accent)}

/* Sidebar search */
.sidebar-search{display:flex;gap:8px}
.sidebar-search input{
  flex:1;
  min-width:0;
  padding:10px 12px;
  font-size:13px;
  background:var(--surface-2);
}
.sidebar-search button{
  flex-shrink:0;
  padding:10px 14px;
  font-size:13px;
  font-weight:500;
  color:var(--text-muted);
  background:transparent;
  border:1px solid var(--border-subtle);
  border-radius:8px;
  cursor:pointer;
  transition:all 0.15s;
}
.sidebar-search button:hover{color:var(--text);border-color:var(--border)}

@media (max-width:900px){.blog-layout{grid-template-columns:1fr}.sidebar{position:static}}

/* About page */
.container h1{font-size:32px;font-weight:700;margin-bottom:16px;letter-spacing:-0.5px}
.container h2{font-size:20px;font-weight:600;margin:32px 0 12px;color:var(--text)}
.container > p{color:var(--text-muted);line-height:1.6;max-width:720px}

/* Team Section */
.team-section{margin-top:64px;padding-top:48px;border-top:1px solid var(--border-subtle)}
.team-header{margin-bottom:40px}
.team-header h2{font-size:24px;font-weight:700;margin:0 0 8px;color:var(--text);letter-spacing:-0.5px}
.team-header p{color:var(--text-muted);font-size:15px;margin:0}

.team-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:24px;
}

.team-card{
  background:var(--surface);
  padding:28px 24px;
  border-radius:16px;
  border:1px solid var(--border-subtle);
  text-align:center;
  transition:transform 0.2s ease,box-shadow 0.2s ease,border-color 0.2s ease;
  display:flex;
  flex-direction:column;
  align-items:center;
}
.team-card:hover{
  transform:translateY(-4px);
  box-shadow:var(--shadow-lg);
  border-color:var(--border);
}

.team-avatar{
  width:72px;
  height:72px;
  border-radius:50%;
  margin-bottom:16px;
  background:linear-gradient(135deg,var(--surface-2) 0%,var(--border) 100%);
  position:relative;
  overflow:hidden;
}
.team-avatar::after{
  content:'';
  position:absolute;
  inset:0;
  background:linear-gradient(135deg,transparent 40%,rgba(255,255,255,0.1) 100%);
  border-radius:50%;
}
[data-theme="dark"] .team-avatar{
  background:linear-gradient(135deg,#1c2128 0%,#30363d 100%);
}

.team-card h3{
  font-size:16px;
  font-weight:600;
  color:var(--text);
  margin:0 0 4px;
}
.team-card .role{
  font-size:13px;
  font-weight:500;
  color:#3b82f6;
  margin:0 0 12px;
}
[data-theme="dark"] .team-card .role{
  color:#60a5fa;
}
.team-card .bio{
  font-size:13px;
  color:var(--text-muted);
  line-height:1.5;
  margin:0 0 16px;
}

.team-links{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  flex-wrap:nowrap;
  margin-top:auto;
}

.linkedin-btn{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:8px 14px;
  border-radius:8px;
  background:rgba(59,130,246,0.12);
  color:#3b82f6;
  font-size:13px;
  font-weight:500;
  text-decoration:none;
  transition:all 0.15s ease;
  border:1px solid transparent;
}
[data-theme="dark"] .linkedin-btn{
  background:rgba(96,165,250,0.15);
  color:#60a5fa;
}
.linkedin-btn:hover{
  background:#3b82f6;
  color:#ffffff;
  border-color:#3b82f6;
}
[data-theme="dark"] .linkedin-btn:hover{
  background:#60a5fa;
  border-color:#60a5fa;
}
.linkedin-btn svg{
  width:14px;
  height:14px;
  fill:currentColor;
}

.github-btn{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:8px 14px;
  border-radius:8px;
  background:rgba(31,35,40,0.08);
  color:var(--text);
  font-size:13px;
  font-weight:500;
  text-decoration:none;
  transition:all 0.15s ease;
  border:1px solid transparent;
}
[data-theme="dark"] .github-btn{
  background:rgba(255,255,255,0.08);
  color:var(--text);
}
.github-btn:hover{
  background:var(--text);
  color:var(--bg);
  border-color:var(--text);
}
[data-theme="dark"] .github-btn:hover{
  background:#ffffff;
  color:#0d1117;
  border-color:#ffffff;
}
.github-btn svg{
  width:14px;
  height:14px;
  fill:currentColor;
}

@media (max-width:1100px){
  .team-grid{grid-template-columns:repeat(2,1fr);gap:20px}
}
@media (max-width:600px){
  .team-grid{grid-template-columns:1fr;gap:16px}
  .team-section{margin-top:48px;padding-top:32px}
}

/* Tools Page */
.tools-hero{
  padding:48px 0 32px;
  border-bottom:1px solid var(--border-subtle);
  margin-bottom:24px;
}
.tools-hero h1{
  font-size:32px;
  font-weight:700;
  margin:0 0 8px;
  letter-spacing:-0.5px;
  color:var(--text);
}
.tools-subtitle{
  color:var(--text-muted);
  font-size:15px;
  margin:0;
}

/* Tools Filters */
.tools-filters{
  display:flex;
  flex-wrap:wrap;
  gap:16px;
  align-items:center;
  margin-bottom:24px;
}
.tools-search{
  flex:1;
  min-width:200px;
  max-width:300px;
}
.tools-search input{
  width:100%;
  padding:10px 14px;
  border-radius:8px;
  border:1px solid var(--border);
  background:var(--surface);
  color:var(--text);
  font-size:14px;
}
.tools-search input:focus{
  outline:none;
  border-color:var(--accent);
  box-shadow:0 0 0 3px var(--accent-subtle);
}
.tools-tags{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}
.tools-tag-btn{
  background:transparent;
  border:1px solid var(--border-subtle);
  padding:6px 12px;
  border-radius:20px;
  color:var(--text-muted);
  cursor:pointer;
  font-size:13px;
  font-weight:500;
  transition:all 0.15s ease;
}
.tools-tag-btn:hover{
  border-color:var(--border);
  color:var(--text);
}
.tools-tag-btn.active{
  background:var(--accent);
  color:#ffffff;
  border-color:var(--accent);
}

/* Tools Grid */
.tools-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px;
}

/* Tool Card */
.tool-card{
  background:var(--surface);
  border:1px solid var(--border-subtle);
  border-radius:12px;
  padding:24px;
  display:flex;
  flex-direction:column;
  transition:transform 0.2s ease,box-shadow 0.2s ease,border-color 0.2s ease;
}
.tool-card:hover{
  transform:translateY(-3px);
  box-shadow:var(--shadow-lg);
  border-color:var(--border);
}
.tool-card-content{
  flex:1;
}
.tool-header{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:6px;
}
.tool-name{
  font-size:18px;
  font-weight:600;
  color:var(--text);
  margin:0;
}
.tool-status{
  font-size:11px;
  font-weight:600;
  padding:3px 8px;
  border-radius:12px;
  text-transform:uppercase;
  letter-spacing:0.3px;
}
.tool-status.status-wip{
  background:rgba(234,179,8,0.15);
  color:#ca8a04;
}
[data-theme="dark"] .tool-status.status-wip{
  background:rgba(250,204,21,0.15);
  color:#facc15;
}
.tool-status.status-archived{
  background:var(--surface-2);
  color:var(--text-muted);
}
.tool-tagline{
  color:var(--text-muted);
  font-size:14px;
  margin:0 0 12px;
  font-weight:500;
}
.tool-tags{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-bottom:12px;
}
.tool-tag{
  background:var(--accent-subtle);
  color:var(--accent);
  padding:3px 10px;
  border-radius:20px;
  font-size:11px;
  font-weight:500;
}
.tool-description{
  color:var(--text-muted);
  font-size:14px;
  line-height:1.6;
  margin:0;
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.tool-card-footer{
  margin-top:16px;
  padding-top:16px;
  border-top:1px solid var(--border-subtle);
}
.tool-meta{
  font-size:12px;
  color:var(--text-muted);
  margin-bottom:12px;
}
.tool-buttons{
  display:flex;
  gap:8px;
}
.tool-btn{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:8px 14px;
  border-radius:8px;
  font-size:13px;
  font-weight:500;
  text-decoration:none;
  transition:all 0.15s ease;
}
.tool-btn-github{
  background:var(--text);
  color:var(--bg);
}
.tool-btn-github:hover{
  background:var(--text-muted);
  color:var(--bg);
}
[data-theme="dark"] .tool-btn-github{
  background:#ffffff;
  color:#0d1117;
}
[data-theme="dark"] .tool-btn-github:hover{
  background:#e6edf3;
  color:#0d1117;
}
.tool-btn-docs{
  background:var(--surface-2);
  color:var(--text);
  border:1px solid var(--border-subtle);
}
.tool-btn-docs:hover{
  border-color:var(--border);
  background:var(--surface);
  color:var(--text);
}

/* Tools Empty State */
.tools-empty{
  text-align:center;
  padding:48px 24px;
  color:var(--text-muted);
}
.tools-empty p{
  margin:0;
  font-size:15px;
}

/* Tools Responsive */
@media (max-width:1024px){
  .tools-grid{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:640px){
  .tools-grid{grid-template-columns:1fr}
  .tools-filters{flex-direction:column;align-items:stretch}
  .tools-search{max-width:none}
  .tools-hero h1{font-size:28px}
}
