:root {
  --bg: #0E1116;
  --line: #262C36;
  --line-strong: #3A4250;
  --text: #D7DCE2;
  --text-bright: #F2F4F7;
  --text-muted: #AEB6C2;
  --text-dim: #8B95A3;
  --text-faint: #6F7986;
  --accent: #F5B54A;
  --accent-hover: #FFD58A;
  --live: #7EE787;
  --font: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
a:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.accent { color: var(--accent); }
.muted { color: var(--text-dim); }

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--bg);
  font-weight: 700;
  z-index: 10;
}
.skip-link:focus { top: 16px; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Header */
.site-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.logo {
  font-weight: 800;
  font-size: 18px;
  color: var(--text-bright);
  text-decoration: none;
}
.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
}
.nav-list a {
  color: var(--text-muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.nav-list a:hover { color: var(--text-bright); }

/* Prompts */
.prompt {
  margin: 0 0 20px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-dim);
}
.prompt .cmd { color: var(--text); }

/* Hero */
.hero { padding: 104px 0 88px; }
.hero .prompt { margin-bottom: 24px; }
.hero h1 {
  margin: 0;
  font-size: clamp(48px, 9vw, 88px);
  line-height: 1;
  font-weight: 800;
  color: var(--text-bright);
  letter-spacing: -0.035em;
}
.cursor {
  display: inline-block;
  width: 0.45em;
  height: 0.85em;
  margin-left: 0.12em;
  vertical-align: -0.09em;
  background: var(--accent);
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .cursor { animation: none; }
}
.lede {
  margin: 32px 0 0;
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 640px;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 44px;
}
.btn {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 24px;
  font-size: 15px;
  text-decoration: none;
  border-radius: 4px;
}
.btn-primary { background: var(--accent); color: var(--bg); font-weight: 700; }
.btn-primary:hover { background: var(--accent-hover); color: var(--bg); }
.btn-ghost { border: 1px solid var(--line-strong); color: var(--text-bright); }
.btn-ghost:hover { border-color: var(--text-dim); color: var(--text-bright); }

/* Sections */
.section { padding: 24px 0 88px; }

/* Projects */
.project-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.project {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
  padding: 28px 4px;
  border-bottom: 1px solid var(--line);
}
.hash { flex: 0 0 72px; font-size: 13px; color: var(--text-faint); }
.project-main { flex: 1 1 420px; min-width: 0; }
.project-main h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-bright);
}
.project-main p {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
}
.type { flex: 0 0 140px; font-size: 13px; color: var(--text-dim); }
.status { flex: 0 0 120px; font-size: 13px; }
.status::before { content: "● "; }
.status-live { color: var(--live); }
.status-review { color: var(--accent); }
.project-link {
  flex: 0 0 160px;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  font-weight: 700;
}
span.project-link { font-weight: 400; }

/* Side quests */
.side-quest {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px;
  border: 1px dashed var(--line-strong);
  border-radius: 6px;
  text-decoration: none;
  color: var(--text);
}
.side-quest:hover { border-color: var(--accent); color: var(--text); }
.side-quest-text { display: flex; flex-direction: column; min-width: 0; }
.side-quest-title { font-size: 20px; font-weight: 700; color: var(--text-bright); }
.side-quest-desc { margin-top: 8px; font-size: 15px; line-height: 1.6; color: var(--text-muted); }
.side-quest-cta { font-size: 14px; font-weight: 700; color: var(--accent); }

/* About */
.about {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
}
.about-text { flex: 1 1 480px; min-width: 0; }
.about-text .prompt { margin-bottom: 24px; }
.about-text p {
  margin: 0 0 18px;
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
}
.about-text p:last-child { margin-bottom: 0; }
.about-links {
  flex: 1 1 280px;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 15px;
}
.about-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text);
}
.about-links a:hover { color: var(--accent); }

/* Contact */
.contact { padding: 56px 0; border-top: 1px solid var(--line); }
.contact .prompt { margin-bottom: 16px; }
.contact-email {
  font-size: clamp(28px, 6vw, 44px);
  font-weight: 800;
  color: var(--text-bright);
  text-decoration: none;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}
.contact-email:hover { color: var(--accent); }

/* Footer */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 0 40px;
  font-size: 13px;
  color: var(--text-dim);
  border-top: 1px solid var(--line);
}

/* Small screens */
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .hero { padding: 64px 0 56px; }
  .section { padding: 16px 0 64px; }
  .project { gap: 8px 16px; padding: 24px 0; }
  .hash { flex-basis: 100%; }
  .project-main { flex-basis: 100%; }
  .type, .status { flex: 0 0 auto; }
  .project-link { flex: 1 0 100%; }
}
