:root {
  --bg: #0c0c0c;
  --text: #ededed;
  --body: #d4d4d4;
  --muted: #8f8f8f;
  --line: #5a5a5a;
  --avatar-bg: #1f1f1f;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font: 16px/1.65 Geist, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 640px;
  margin: 0 auto;
  padding: 120px 16px 80px;
}

header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}

.avatar {
  flex: none;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--avatar-bg);
  box-shadow: 0 0 0 1px var(--line);
}

h1 {
  margin: 0 0 20px;
  color: var(--text);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

section + section {
  margin-top: 40px;
}

p,
ul {
  margin: 0;
}

p + p {
  margin-top: 16px;
}

ul {
  margin-top: 16px;
  padding: 0;
  list-style: none;
}

li + li {
  margin-top: 12px;
}

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s;
}

a:hover {
  text-decoration-color: var(--text);
}

li a,
.name {
  color: var(--text);
}

.desc {
  color: var(--muted);
}

footer {
  margin-top: 48px;
  color: var(--muted);
}

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

.grid {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 16px;
}

.grid circle {
  fill: #ededed;
}

.grid .l0 { fill: #1f1f1f; }
.grid .l1 { fill: #4a4a4a; }
.grid .l2 { fill: #7a7a7a; }
.grid .l3 { fill: #b0b0b0; }

.grid circle:hover {
  stroke: var(--text);
  stroke-width: 1.5;
}

.grid text {
  fill: var(--muted);
  font: 10px Geist, ui-sans-serif, system-ui, sans-serif;
}

@media (max-width: 480px) {
  main {
    padding-top: 64px;
  }

  header {
    gap: 16px;
  }

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

  /* Labels shrink with the grid on phones and become unreadable. */
  .grid text {
    display: none;
  }
}
