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

:root {
  --bg: #0d1117;
  --text: #c9d1d9;
  --muted: #8b949e;
  --accent: #58a6ff;
  --accent-hover: #79c0ff;
  --border: #30363d;
  --heading: #e6edf3;
  --mono: "JetBrains Mono", "Fira Code", "SF Mono", Consolas, monospace;
}

html {
  height: 100%;
}

body {
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 580px;
  padding: 2rem 1.5rem;
}

/* ── Header ───────────────────────────────────────────── */

.header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 2px solid var(--border);
  box-shadow: 0 0 20px rgba(88, 166, 255, 0.15), 0 0 40px rgba(88, 166, 255, 0.05);
  flex-shrink: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.avatar:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(88, 166, 255, 0.25), 0 0 50px rgba(88, 166, 255, 0.1);
}

h1 {
  font-size: 1.6rem;
  color: var(--heading);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.tagline {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ── Project Links ───────────────────────────────────── */

.links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.links a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.15s;
}

.links a:hover {
  color: var(--accent);
}

.links .muted {
  color: var(--muted);
  font-weight: 400;
  font-size: 0.85rem;
}

.links svg {
  color: var(--muted);
  flex-shrink: 0;
}

/* ── Divider ─────────────────────────────────────────── */

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

/* ── Social Links ────────────────────────────────────── */

.elsewhere {
  display: flex;
  gap: 1.5rem;
  margin-left: calc(88px + 1.25rem);
}

.elsewhere a {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.15s;
}

.elsewhere a:hover {
  color: var(--accent);
}

.elsewhere svg {
  flex-shrink: 0;
}

/* ── Selection ───────────────────────────────────────── */

::selection {
  background-color: var(--accent);
  color: var(--bg);
}

/* ── Responsive ──────────────────────────────────────── */

@media (max-width: 500px) {
  body {
    align-items: flex-start;
  }

  .container {
    padding: 2.5rem 1.25rem;
  }

  .header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .avatar {
    width: 72px;
    height: 72px;
  }

  h1 {
    font-size: 1.3rem;
  }

  .tagline {
    font-size: 0.8rem;
  }

  .elsewhere {
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-left: 0;
  }
}
