:root {
  --bg:      #0c0b09;
  --bg2:     #131210;
  --bg3:     #1a1815;
  --border:  #2a2520;
  --amber:   #e8a030;
  --amber2:  #c07820;
  --text:    #d4c9b8;
  --muted:   #5a5048;
  --dim:     #3a3028;
  --font:    'IBM Plex Mono', monospace;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  font-size: 14px;
  line-height: 1.6;
}
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--dim); border-radius: 2px; }
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 28px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--amber);
  letter-spacing: 0.04em;
}
.nav-logo span { color: var(--muted); }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-link {
  font-size: 0.72rem;
  color: var(--muted);
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
  letter-spacing: 0.03em;
}
.nav-link:hover, .nav-link.active { color: var(--text); background: var(--bg3); }
.nav-gh {
  font-size: 0.72rem;
  color: var(--amber);
  text-decoration: none;
  padding: 5px 12px;
  border: 1px solid var(--amber2);
  border-radius: 4px;
  margin-left: 8px;
  display: flex; align-items: center; gap: 6px;
  transition: background 0.15s;
}
.nav-gh:hover { background: rgba(232,160,48,0.08); }
.nav-ham {
  display: none;
  background: none; border: 1px solid var(--border);
  color: var(--muted); padding: 5px 7px; border-radius: 4px; cursor: pointer;
  transition: color 0.15s;
}
.nav-ham:hover { color: var(--text); }
.nav-mob {
  display: none; flex-direction: column;
  padding: 8px 20px 12px;
  border-top: 1px solid var(--border);
  gap: 2px;
}
.nav-mob.open { display: flex; }
.nav-mob a {
  font-size: 0.8rem; color: var(--muted);
  text-decoration: none; padding: 8px 10px; border-radius: 4px;
  transition: color 0.15s;
}
.nav-mob a:hover { color: var(--text); }
@media (max-width: 600px) {
  .nav-links { display: none; }
  .nav-ham { display: flex; align-items: center; }
}
header {
  padding-top: 100px;
  padding-bottom: 60px;
  max-width: 860px;
  margin: 0 auto;
  padding-left: 28px;
  padding-right: 28px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 600px) {
  header {
    grid-template-columns: 1fr;
    padding-top: 80px;
    gap: 28px;
  }
}
.avatar-col { padding-top: 4px; }
.avatar-wrap {
  position: relative;
  width: 110px;
  flex-shrink: 0;
}
.avatar-wrap img {
  width: 110px; height: 110px;
  object-fit: cover;
  display: block;
  border: 1px solid var(--border);
  transform: rotate(-1.5deg);
  filter: sepia(15%) contrast(1.05);
  transition: filter 0.3s, transform 0.3s;
}
.avatar-wrap img:hover {
  filter: sepia(0%) contrast(1.1);
  transform: rotate(0deg);
}
.avatar-wrap::after {
  content: '';
  position: absolute;
  inset: 3px;
  border: 1px solid var(--amber2);
  opacity: 0.3;
  transform: rotate(1.5deg);
  pointer-events: none;
}
.header-text {}
.header-prompt {
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}
.header-prompt span { color: var(--amber); }
h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin-bottom: 4px;
}
.username {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.bio-list {
  list-style: none;
  margin-bottom: 20px;
}
.bio-list li {
  font-size: 0.8rem;
  color: var(--text);
  padding: 2px 0;
  display: flex; align-items: center; gap: 8px;
}
.bio-list li::before {
  content: '›';
  color: var(--amber);
  font-size: 1rem;
  flex-shrink: 0;
}
.bio-list li.tagline {
  color: var(--muted);
  font-style: italic;
  margin-top: 4px;
}
.bio-list li.tagline::before { content: '#'; font-size: 0.75rem; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.btn {
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 3px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 7px;
  letter-spacing: 0.04em;
  transition: all 0.15s;
}
.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
}
.btn-outline:hover { border-color: var(--dim); color: var(--text); }
.btn-amber {
  background: var(--amber);
  border: 1px solid var(--amber);
  color: #0c0b09;
  font-weight: 700;
}
.btn-amber:hover { background: #f0b040; }
.scroll-hint {
  margin-top: 32px;
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  transition: opacity 0.4s;
}
.bounce-animate { animation: bdown 2s ease-in-out infinite; }
@keyframes bdown { 0%,100%{transform:translateY(0)} 50%{transform:translateY(6px)} }
main {
  border-top: 1px solid var(--border);
}
.main-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 28px 80px;
}
.section {
  padding: 48px 0 0;
  margin-bottom: 0;
}
.sec-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px;
}
.sec-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.archive-list { list-style: none; }
.archive-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.archive-item:last-child { border-bottom: none; }
.archive-item:hover { padding-left: 4px; }
.arch-icon-wrap {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
}
.arch-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 3px;
}
.arch-desc {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.55;
}
.link-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 0;
}
@media (max-width: 500px) { .link-grid { grid-template-columns: 1fr; } }
.link-card {
  background: var(--bg);
  display: block;
  text-decoration: none;
  padding: 16px 18px;
  position: relative;
  overflow: hidden;
  transition: background 0.15s;
}
.link-card:hover { background: var(--bg2); }
.link-card:hover .lc-arrow { transform: translate(2px, -2px); }
.lc-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.05;
  transition: opacity 0.3s;
  pointer-events: none;
}
.link-card:hover .lc-img { opacity: 0.09; }
.lc-tag {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.lc-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
  display: flex; align-items: center; justify-content: space-between;
}
.lc-arrow {
  font-size: 0.8rem;
  color: var(--amber);
  transition: transform 0.2s;
  flex-shrink: 0;
}
.lc-sub { font-size: 0.72rem; color: var(--muted); }
.popup-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 999;
  align-items: center; justify-content: center;
  padding: 16px;
  background: rgba(12,11,9,0.92);
}
.popup-overlay.open { display: flex; animation: fadein 0.18s ease; }
@keyframes fadein { from{opacity:0} to{opacity:1} }
.popup-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  max-width: 360px; width: 100%;
  animation: slideup 0.22s cubic-bezier(.16,1,.3,1);
}
@keyframes slideup { from{opacity:0;transform:translateY(16px)} to{opacity:1;transform:none} }
.popup-head {
  padding: 16px 18px 14px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.popup-head h3 {
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
}
.popup-close {
  background: none; border: none;
  color: var(--muted); cursor: pointer; font-family: var(--font);
  font-size: 0.75rem; padding: 2px 6px;
  transition: color 0.15s;
}
.popup-close:hover { color: var(--text); }
.popup-body { padding: 14px 18px 18px; }
.donate-row {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: padding-left 0.15s;
}
.donate-row:last-child { border-bottom: none; }
.donate-row:hover { padding-left: 6px; }
.donate-row img {
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  object-fit: cover;
  flex-shrink: 0;
}
.dr-label { font-size: 0.82rem; font-weight: 700; color: #fff; }
.dr-sub { font-size: 0.7rem; color: var(--muted); }
.dr-arrow { margin-left: auto; color: var(--amber); font-size: 0.8rem; flex-shrink: 0; }
.cred-section {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between;
  align-items: flex-end; flex-wrap: wrap; gap: 16px;
}
.cred-title {
  font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.18em; color: var(--muted);
  text-transform: uppercase; margin-bottom: 8px;
}
.cred-item {
  font-size: 0.75rem; color: #8a9080;
  padding: 2px 0; display: flex; align-items: center; gap: 8px;
}
.cred-item::before {
  content: '';
  width: 4px; height: 4px; border-radius: 50%;
  background: #5a8060; flex-shrink: 0;
}
.sig { font-size: 0.62rem; color: var(--muted); text-align: right; }
.cursor {
  display: inline-block;
  width: 2px; height: 1em;
  background: var(--amber);
  vertical-align: text-bottom;
  animation: blink 1.1s step-end infinite;
  margin-left: 2px;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }
