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

:root {
  --bg: #0d1117;
  --fg: #e6edf3;
  --muted: #8b949e;
  --accent: #58a6ff;
  --accent-hover: #79c0ff;
  --border: #30363d;
  --surface: #161b22;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  min-height: 100dvh;
  padding: 4rem 1.5rem;
}

main {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

/* ── Header ── */

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

h1 {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.github-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.github-link:hover {
  color: var(--accent-hover);
  border-color: var(--accent-hover);
  background: rgba(88, 166, 255, 0.08);
}

/* ── Bio ── */

.bio p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--muted);
}

/* ── Links ── */

.links h2 {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 1rem;
}

.links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.links ul:empty + .links-empty {
  display: block;
}

.links-empty {
  display: none;
  color: var(--muted);
  font-size: 0.9rem;
}

.link-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  transition: border-color 0.15s;
}

.link-item:hover {
  border-color: var(--accent);
}

.link-item a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
}

.link-item a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.link-item .desc {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.link-item .meta {
  color: var(--border);
  font-size: 0.78rem;
  margin-top: 0.15rem;
}

code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.85em;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.1em 0.4em;
}
