:root{
  --bg:#0b0f19;
  --panel:#111827;
  --text:#e5e7eb;
  --muted:#9ca3af;
  --brand:#60a5fa;
  --brand2:#34d399;
  --border:rgba(255,255,255,.08);
  --shadow: 0 12px 40px rgba(0,0,0,.45);
  --radius:16px;
  --max: 1080px;
}
:root.light{
  --bg:#f7f8fb;
  --panel:#ffffff;
  --text:#111827;
  --muted:#4b5563;
  --brand:#2563eb;
  --brand2:#059669;
  --border:rgba(17,24,39,.10);
  --shadow: 0 10px 30px rgba(2,6,23,.08);
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background: radial-gradient(900px 450px at 30% 0%, rgba(96,165,250,.18), transparent 60%),
              radial-gradient(900px 450px at 75% 10%, rgba(52,211,153,.14), transparent 55%),
              var(--bg);
  color:var(--text);
  line-height:1.6;
}
a{color:inherit}
.container{max-width:var(--max); margin:0 auto; padding: 0 18px;}
header{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  border-bottom: 1px solid var(--border);
}
.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding: 14px 0;
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
}
.brand-badge{
  width: 34px; height: 34px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  box-shadow: var(--shadow);
}
.brand-text{font-weight:750; letter-spacing:.2px;}
.navlinks{
  display:flex;
  gap:14px;
  align-items:center;
  flex-wrap:wrap;
}
.navlinks a{
  text-decoration:none;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--muted);
}
.navlinks a[aria-current="page"]{
  color: var(--text);
  background: color-mix(in srgb, var(--panel) 85%, transparent);
  border: 1px solid var(--border);
}
button{
  font: inherit;
  color: inherit;
  background: none;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 10px;
  cursor:pointer;
}
button:hover{background: color-mix(in srgb, var(--panel) 65%, transparent)}
main{padding: 42px 0 62px;}
.hero{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 22px;
  align-items: center;
}
@media (max-width: 860px){
  .hero{grid-template-columns: 1fr; }
}
.card{
  background: color-mix(in srgb, var(--panel) 92%, transparent);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-card{padding: 26px;}
.kicker{
  display:inline-flex;
  gap:8px;
  align-items:center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}
h1{margin:12px 0 10px; font-size: clamp(30px, 4vw, 44px); line-height:1.15;}
p{margin: 0 0 12px;}
.muted{color: var(--muted)}
.actions{display:flex; gap:10px; flex-wrap:wrap; margin-top: 14px;}
.primary{
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  border: none;
  color: white;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration:none;
  font-weight: 650;
}
.primary:hover{filter: brightness(1.05)}
.secondary{
  text-decoration:none;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
}
.grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 980px){ .grid{grid-template-columns: repeat(2, 1fr);} }
@media (max-width: 620px){ .grid{grid-template-columns: 1fr;} }
.section-title{
  margin: 34px 0 12px;
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap: 12px;
}
.section-title h2{margin:0; font-size: 22px;}
.pill{
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
}
.project{
  padding: 16px;
  display:flex;
  flex-direction:column;
  gap: 10px;
}
.project h3{margin:0; font-size: 18px;}
.tags{display:flex; flex-wrap:wrap; gap:6px;}
.tag{
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
}
.project-links{display:flex; gap:10px; flex-wrap:wrap; margin-top:auto;}
.project-links a{
  text-decoration:none;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  color: var(--text);
}
.project-links a:hover{background: color-mix(in srgb, var(--panel) 65%, transparent)}
.sidebar{padding: 18px;}
.profile{
  display:flex;
  gap: 12px;
  align-items:center;
}
.profile img{
  width: 74px; height: 74px;
  border-radius: 18px;
  border: 1px solid var(--border);
  object-fit: cover;
  background: #0b0f19;
}
.list{margin: 14px 0 0; padding: 0; list-style:none; display:grid; gap: 8px;}
.list a{color: var(--muted); text-decoration:none}
.list a:hover{color: var(--text)}
footer{
  border-top: 1px solid var(--border);
  padding: 22px 0;
  color: var(--muted);
}
.two-col{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 860px){ .two-col{grid-template-columns: 1fr;} }

.prose{padding: 20px;}
.prose h2{margin-top:0}
.embed{
  width:100%;
  height: 78vh;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}
.notice{
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  color: var(--muted);
}
