:root {
  --bg: #0F1A17;
  --surface: #142420;
  --border: #223530;
  --text: #EEF3F1;
  --muted: #8CA39B;
  --accent: #2BB88E;
  --accent-tint: rgba(43, 184, 142, 0.1);
  --accent-tint-soft: rgba(43, 184, 142, 0.08);
  --muted-tint: rgba(140, 163, 155, 0.08);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #F4F7F5;
    --surface: #FFFFFF;
    --border: #DCE6E1;
    --text: #16211D;
    --muted: #6E7E78;
    --accent: #1F9E7A;
    --accent-tint: rgba(31, 158, 122, 0.1);
    --accent-tint-soft: rgba(31, 158, 122, 0.08);
    --muted-tint: rgba(110, 126, 120, 0.08);
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
}

body {
  font-family: 'JetBrains Mono', 'DejaVu Sans Mono', 'SF Mono', Menlo, monospace;
  font-size: 15px;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 64px 20px 60px;
}

main {
  width: 100%;
  max-width: 720px;
}

a { color: var(--accent); }

header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 8px;
  overflow: visible;
}

.rings-bg {
  position: absolute;
  top: 50%;
  left: -40px;
  width: 340px;
  height: 340px;
  transform: translateY(-50%);
  opacity: 0.06;
  color: var(--accent);
  pointer-events: none;
  z-index: 0;
}

.mark {
  flex: none;
  width: 56px;
  height: 56px;
  color: var(--accent);
  z-index: 1;
}

.wordmark {
  z-index: 1;
}

.wordmark h1 {
  margin: 0;
  font-size: 2.4em;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--text);
}

.wordmark .tagline {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.85em;
  letter-spacing: 0.02em;
}

.bio {
  margin: 32px 0 44px;
  color: var(--text);
  max-width: 58ch;
  padding-left: 20px;
  border-left: 2px solid var(--border);
}

section h2 {
  font-size: 0.78em;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin: 0 0 18px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}

section h2::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.projects {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.project {
  position: relative;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  padding: 16px 20px;
  background: var(--surface);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.project:hover {
  transform: translateX(2px);
  box-shadow: 0 0 0 1px var(--accent-tint-soft);
}

.project.is-private {
  border-left-color: var(--muted);
}

.project-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.project-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.project-name-row svg {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--accent);
}

.project-name {
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  font-size: 1.05em;
  letter-spacing: -0.01em;
}

.project-name:hover {
  color: var(--accent);
}

.badge {
  font-size: 0.7em;
  letter-spacing: 0.06em;
  border-radius: 3px;
  padding: 2px 7px;
  text-transform: lowercase;
}

.badge.public {
  color: var(--accent);
  background: var(--accent-tint);
}

.badge.private {
  color: var(--muted);
  background: var(--muted-tint);
}

.project-desc {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.9em;
  line-height: 1.6;
}

.project-links {
  margin-top: 10px;
  display: flex;
  gap: 14px;
}

.project-links a {
  font-size: 0.78em;
  color: var(--accent);
  text-decoration: none;
}

.project-links a:hover {
  text-decoration: underline;
}

.project-tags {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  font-size: 0.7em;
  color: var(--accent);
  background: var(--accent-tint-soft);
  border-radius: 3px;
  padding: 2px 7px;
}

footer {
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85em;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

footer a {
  color: var(--accent);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

@media (max-width: 480px) {
  body { padding: 44px 18px 40px; }
  .wordmark h1 { font-size: 1.9em; }
  .rings-bg { display: none; }
}

.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 12vh;
}

.error-page .mark {
  width: 88px;
  height: 88px;
  margin-bottom: 28px;
}

.error-code {
  margin: 0;
  font-size: 4.5em;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text);
}

.error-message {
  margin: 10px 0 32px;
  color: var(--muted);
}

.home-link {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.95em;
}

.home-link:hover {
  text-decoration: underline;
}
