:root{
  --bg:#0b0b0c;
  --bg-alt:#141416;
  --fg:#f2f2f0;
  --fg-dim:#9a9a9c;
  --border:#2a2a2d;
  --accent:#f2f2f0;
  --radius:10px;
}

[data-theme="light"]{
  --bg:#fbfbfa;
  --bg-alt:#f0f0ee;
  --fg:#111112;
  --fg-dim:#5c5c5f;
  --border:#dcdcda;
  --accent:#111112;
}

*{box-sizing:border-box;}

html,body{
  margin:0;
  padding:0;
  background:var(--bg);
  color:var(--fg);
  font-family:"IBM Plex Mono","JetBrains Mono",ui-monospace,SFMono-Regular,Menlo,monospace;
  transition:background .2s ease, color .2s ease;
}

#frame{
  max-width:720px;
  margin:0 auto;
  padding:72px 24px 48px;
}

/* theme toggle */
.theme-toggle{
  position:fixed;
  top:16px;
  right:16px;
  width:32px;
  height:32px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid var(--border);
  border-radius:50%;
  background:var(--bg-alt);
  color:var(--fg);
  cursor:pointer;
  z-index:10;
}
.theme-toggle:hover{border-color:var(--fg-dim);}

/* header */
#header{text-align:center;margin-bottom:32px;}

.avatar{
  width:120px;
  height:120px;
  margin:0 auto 20px;
  border-radius:50%;
  border:1px solid var(--border);
  background:var(--bg-alt);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:14px;
  letter-spacing:.05em;
  color:var(--fg-dim);
}
.avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:50%;
  display:block;
}

h1{
  font-size:22px;
  font-weight:600;
  letter-spacing:-.01em;
  margin:0 0 6px;
}

.role{
  margin:0 0 18px;
  font-size:13px;
  color:var(--fg-dim);
}
.role .dim{color:var(--border);}

.bio{
  max-width:480px;
  margin:0 auto;
  font-size:13.5px;
  line-height:1.7;
  color:var(--fg-dim);
}

/* social */
#social{
  display:flex;
  justify-content:center;
  gap:16px;
  margin:28px 0 44px;
}
#social a{
  color:var(--fg-dim);
  display:flex;
  align-items:center;
  justify-content:center;
  width:36px;
  height:36px;
  border:1px solid var(--border);
  border-radius:8px;
  transition:color .15s ease, border-color .15s ease;
}
#social a:hover{color:var(--fg);border-color:var(--fg-dim);}

/* projects */
#projects{
  display:flex;
  flex-direction:column;
  gap:1px;
  background:var(--border);
  border:1px solid var(--border);
  border-radius:var(--radius);
  overflow:hidden;
}
.project-date {
  display: block;
  margin-top: 6px;
  font-size: 10.5px;
  color: var(--fg-dim);
}
.project{
  display:flex;
  align-items:center;
  gap:16px;
  padding:16px;
  background:var(--bg);
  text-decoration:none;
  color:inherit;
  transition:background .15s ease;
}
.project:hover{background:var(--bg-alt);}

.thumb{
  flex:0 0 56px;
  width:56px;
  height:56px;
  border-radius:8px;
  border:1px solid var(--border);
  background:var(--bg-alt);
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--fg-dim);
}

.meta h3{
  margin:0 0 4px;
  font-size:14px;
  font-weight:600;
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}

.tag{
  font-size:10.5px;
  font-weight:400;
  color:var(--fg-dim);
}

.meta p{
  margin:0;
  font-size:12.5px;
  line-height:1.6;
  color:var(--fg-dim);
}

.section-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  margin:0 0 16px;
  padding-bottom:14px;
  border-bottom:1px solid var(--border);
}

.section-title{
  font-size:18px;
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:var(--fg);
  margin:3px 0 0;
  padding:0;
  border:0;
}
.project-filter{
  flex-shrink:0;
}

.project-filter select{
  appearance:none;
  min-width:180px;
  height:38px;
  padding:0 32px 0 13px;
  background:var(--bg-alt);
  color:var(--fg);
  border:1px solid var(--border);
  border-radius:7px;
  font-family:inherit;
  font-size:12px;
  cursor:pointer;
  outline:none;
}

.project-filter select:hover{
  border-color:var(--fg-dim);
}

/* footer */
#footer{
  margin-top:56px;
  text-align:center;
  font-size:11.5px;
  color:var(--fg-dim);
}
#footer a{color:var(--fg-dim);}
#footer a:hover{color:var(--fg);}

/* post page */
.post{max-width:640px;margin:0 auto;padding:72px 24px 64px;}
.post-back{
  display:inline-block;
  font-size:12px;
  color:var(--fg-dim);
  text-decoration:none;
  margin-bottom:32px;
  border-bottom:1px solid var(--border);
  padding-bottom:2px;
}
.post-back:hover{color:var(--fg);}
.post-image{
  width:100%;
  aspect-ratio:16/9;
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:var(--bg-alt);
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--fg-dim);
  margin-bottom:28px;
  overflow:hidden;
}
.youtube-container {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.youtube-container iframe {
  width: 100% !important;
  height: 100% !important;
  border: 0;
  display: block;
}
.post-image img{width:100%;height:100%;object-fit:cover;display:block;}
.post h1{font-size:20px;margin:0 0 6px;}
.post .tag{font-size:11px;}
.post-desc{font-size:13.5px;line-height:1.8;color:var(--fg-dim);margin-top:18px;}

/* responsive */
@media (max-width:480px){
  #frame{padding:64px 16px 40px;}
  .project{padding:14px;gap:12px;}
  .thumb{flex-basis:48px;width:48px;height:48px;}
}
