
:root{
  --bg:#ffffff;
  --fg:#111111;
  --muted:#5c5c5c;
  --link:#0b63ce;
  --border:#e6e6e6;
  --shadow: 0 10px 30px rgba(0,0,0,0.06);
}

[data-theme="dark"]{
  --bg:#0b0c10;
  --fg:#f2f3f5;
  --muted:#b6b8bf;
  --link:#7ab8ff;
  --border:#26283a;
  --shadow: 0 10px 30px rgba(0,0,0,0.35);
}

[data-theme="disco"]{
  --bg:#07070b;
  --fg:#ffffff;
  --muted:#d8d8e6;
  --link:#9ad6ff;
  --border:rgba(255,255,255,0.16);
  --shadow: 0 14px 40px rgba(0,0,0,0.45);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:-apple-system,BlinkMacSystemFont,"Inter","Helvetica Neue",Arial,sans-serif;
  background:var(--bg);
  color:var(--fg);
}

body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  opacity:0;
  z-index:-1;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,0,180,0.22), transparent 40%),
    radial-gradient(circle at 80% 25%, rgba(0,255,240,0.20), transparent 42%),
    radial-gradient(circle at 40% 80%, rgba(255,220,0,0.18), transparent 45%),
    radial-gradient(circle at 75% 75%, rgba(120,80,255,0.20), transparent 46%);
  filter: blur(10px) saturate(1.3);
}
[data-theme="disco"] body::before{
  opacity:1;
  animation: hue 8s linear infinite;
}
@keyframes hue{
  from{ filter: blur(10px) saturate(1.35) hue-rotate(0deg); }
  to{ filter: blur(10px) saturate(1.35) hue-rotate(360deg); }
}

a{color:var(--link); text-decoration:none}
a:hover{text-decoration:underline}

main{
  max-width: 980px;
  padding: 2.4rem 1.5rem 4rem;
  margin: auto;
}

.progress{
  position:fixed; top:0; left:0; height:3px; width:0;
  background:var(--link);
  z-index: 50;
}

nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  margin-bottom: 2.2rem;
}

.brandwrap{
  display:flex;
  align-items:center;
  gap:.75rem;
}

.siteicon{
  width:34px; height:34px;
  border-radius:50%;
  overflow:hidden;
  border:1px solid var(--border);
  box-shadow: var(--shadow);
  flex: 0 0 auto;
}
.siteicon img{width:100%; height:100%; object-fit:cover}

.brand{
  font-weight:700;
  letter-spacing:-0.02em;
}

.nav-links, .nav-right{
  display:flex; gap:.9rem; flex-wrap:wrap;
  color:var(--muted);
}
.nav-links a, .nav-right a{color:var(--muted)}
.nav-links a:hover, .nav-right a:hover{color:var(--fg); text-decoration:none}
.nav-right a[aria-current="true"]{color:var(--fg); font-weight:600}

.header{
  display:grid;
  grid-template-columns: 280px 1fr;
  gap: 1.8rem;
  align-items:start;
}
.avatar{
  width:280px; height:280px;
  border-radius: 50%;
  overflow:hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.avatar img{width:100%; height:100%; object-fit:cover}

h1{
  font-size: 2.35rem;
  margin: 0 0 .25rem 0;
  letter-spacing: -0.03em;
}
.quote{
  margin:.2rem 0 1rem 0;
  color:var(--muted);
  font-style: italic;
}
.p{
  margin: .75rem 0;
  line-height: 1.7;
  font-size: 1.03rem;
}
.links{
  margin-top: .9rem;
  color: var(--muted);
}

hr{
  border:0;
  border-top:1px solid var(--border);
  margin: 2rem 0;
}

h2{
  margin: 0 0 .75rem 0;
  font-size: 1.55rem;
  letter-spacing:-0.02em;
}

.proj{
  padding: 1.05rem 0;
  border-top: 1px solid var(--border);
}
.proj:first-of-type{border-top:0; padding-top:0;}
.proj-title{
  font-size: 1.05rem;
  font-weight: 700;
  margin:0 0 .25rem 0;
}
.proj-meta{
  color: var(--muted);
  font-size: .95rem;
  margin:0 0 .45rem 0;
}
.proj-desc{
  line-height:1.65;
  font-size: 1rem;
  margin:0;
  max-width: 70ch;
}

.proj-more{
  margin-top: .45rem;
  line-height: 1.65;
  color: var(--muted);
  font-size: .98rem;
  max-width: 78ch;
}

.media-strip{
  display:flex;
  gap:.55rem;
  margin-top: .75rem;
  flex-wrap:wrap;
}
.thumb{
  position:relative;
  width: 92px;
  height: 62px;
  border-radius: 10px;
  overflow:hidden;
  border:1px solid var(--border);
  box-shadow: var(--shadow);
  background: rgba(0,0,0,0.02);
}
.thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.more{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(0,0,0,0.55);
  color:#fff;
  font-weight:700;
  font-size: 1rem;
}

.footer{
  display:flex;
  justify-content:space-between;
  gap: 1rem;
  flex-wrap:wrap;
  border-top:1px solid var(--border);
  padding-top: 1.1rem;
  margin-top: 3.5rem;
  color: var(--muted);
  font-size: .95rem;
}

.center{
  min-height: calc(100vh - 120px);
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
}
.spinner{
  width:38px; height:38px;
  border-radius:50%;
  border:3px solid var(--border);
  border-top-color: var(--link);
  margin: 0 auto 14px;
  animation: spin 0.85s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 860px){
  .header{grid-template-columns: 1fr;}
  .avatar{width:220px; height:220px}
}
