:root {
  --bg:     #0a0a0a;
  --fg:     #e8e8e8;
  --accent: #FF3131;
  --dim:    #888888;
  --line:   #1e1e1e;
}
[data-theme="light"] {
  --bg:     #f0efec;
  --fg:     #111111;
  --accent: #cc1a1a;
  --dim:    #333333;
  --line:   #d0d0d0;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
body {
  font-family: 'Share Tech Mono', monospace;
  font-size: 16px;
  background: var(--bg);
  color: var(--fg);
  min-height: 100vh;
}

.topbar {
  display: flex;
  align-items: center;
  padding: 0.85rem 2rem;
  border-bottom: 1px solid var(--line);
  position: relative;
  gap: 1.5rem;
}

.nav { display: flex; gap: 2rem; }
.nav-link { font-size: 0.82rem; letter-spacing: 0.12em; color: var(--fg); text-decoration: none; }
.nav-link:hover, .nav-link.active { color: var(--accent); }

.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--fg);
  font-size: 1.1rem;
  padding: 0;
  flex-shrink: 0;
}

.theme-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  user-select: none;
  margin-left: auto;
  flex-shrink: 0;
}
.tl-label { font-size: 0.72rem; letter-spacing: 0.1em; color: var(--fg); opacity: 0.45; transition: opacity 0.15s; }
.tl-label.on { opacity: 1; color: var(--accent); }
.tl-track { position: relative; width: 44px; height: 18px; border: 1px solid var(--fg); }
.tl-thumb {
  position: absolute;
  top: 2px; left: 2px;
  width: 15px; height: 12px;
  background: var(--accent);
  transition: left 0.15s ease;
}
[data-theme="light"] .tl-thumb { left: 25px; }

.container { max-width: 960px; margin: 0 auto; padding: 0 2rem; }

.main-section {
  display: flex;
  gap: 4.5rem;
  padding: 2.5rem 0 4.5rem;
  align-items: flex-start;
}

.profile-side { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }
.profile-box { width: 220px; height: 220px; border: 1px solid var(--dim); padding: 6px; }
.profile-box img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ascii-title {
  margin-top: 0.9rem;
  color: var(--accent);
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.9rem;
  line-height: 1.35;
  letter-spacing: 0;
  white-space: pre;
  text-align: left;
}
.social-links { display: flex; gap: 1.1rem; margin-top: 0.75rem; }
.social-links a { color: var(--fg); font-size: 1.1rem; text-decoration: none; }
.social-links a:hover { color: var(--accent); }

.kv-list { list-style: none; display: flex; flex-direction: column; gap: 2.2rem; }
.kv-key { display: block; font-size: 0.82rem; letter-spacing: 0.16em; color: var(--accent); margin-bottom: 0.5rem; }
.kv-value { font-size: 0.97rem; line-height: 1.85; }

.divider { height: 1px; background: var(--accent); }

.sec { padding: 3.5rem 0; }
.sec-text { font-size: 0.97rem; line-height: 1.85; margin: 0.55rem 0 1.1rem; max-width: 620px; }
.dim-text { font-size: 0.9rem; color: var(--dim); margin-top: 0.6rem; }
.accent-link { font-size: 0.9rem; color: var(--accent); text-decoration: none; }
.accent-link:hover { text-decoration: underline; }

.search-bar {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 1.2rem 0 1rem;
  border: 1px solid var(--dim);
  padding: 0.55rem 0.9rem;
  max-width: 420px;
}
.search-bar i { color: var(--dim); font-size: 0.88rem; flex-shrink: 0; }
.search-bar input {
  background: none;
  border: none;
  outline: none;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.92rem;
  color: var(--fg);
  width: 100%;
}
.search-bar input::placeholder { color: var(--dim); }

.table-wrap { overflow-x: auto; }
.repo-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.repo-table th,
.repo-table td { padding: 0.65rem 1rem; text-align: left; border: 1px solid var(--line); vertical-align: top; }
.repo-table th { font-size: 0.78rem; letter-spacing: 0.12em; color: var(--accent); background: var(--line); white-space: nowrap; }
.repo-table td:first-child { white-space: nowrap; color: var(--accent); }
.repo-table td:nth-child(2) { color: var(--dim); }
.repo-table td:last-child { white-space: nowrap; }
.repo-table a { color: var(--accent); text-decoration: none; }
.repo-table a:hover { text-decoration: underline; }
.repo-table tbody tr:hover td { background: var(--line); }

.team-grid { display: flex; flex-wrap: wrap; gap: 2rem; margin-top: 1.2rem; }
.member-card { display: flex; flex-direction: column; align-items: center; gap: 0.55rem; text-decoration: none; }
.member-avatar { width: 82px; height: 82px; border: 1px solid var(--dim); padding: 4px; }
.member-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.member-name { font-size: 0.8rem; color: var(--dim); letter-spacing: 0.06em; }
.member-card:hover .member-avatar { border-color: var(--accent); }
.member-card:hover .member-name { color: var(--accent); }

.footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 2rem;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--fg);
  text-align: center;
}

@media (max-width: 640px) {
  .burger { display: block; }
  .nav {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    z-index: 100;
    padding: 0.4rem 2rem;
  }
  .nav.open { display: flex; }
  .nav-link { padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
  .nav-link:last-child { border-bottom: none; }

  .main-section { flex-direction: column; align-items: center; padding: 2rem 0 3rem; gap: 2.5rem; }
  .profile-box  { width: 170px; height: 170px; }
  .ascii-title  { font-size: 0.72rem; }
  .info-side    { width: 100%; }
  .search-bar   { max-width: 100%; }
  .team-grid    { gap: 1.5rem; }
}
