:root {
  --text: #1a1a1a;
  --muted: #6b6b6b;
  --link: #0066cc;
  --rule: #ececec;
  --bg: #ffffff;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  max-width: 560px;
  margin: 0 auto;
  padding: 96px 32px;
}

.avatar {
  display: block;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 0 32px 0;
  background: #f2f2f2;
}

h1 {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 20px 0;
}

p {
  margin: 0 0 16px 0;
  color: var(--text);
}

a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration: none;
}

.socials {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
}

.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--muted);
  text-decoration: none;
  border-radius: 8px;
  transition: color 120ms ease, background-color 120ms ease, transform 120ms ease;
}

.socials a:hover {
  color: var(--text);
  background: #f5f5f5;
}

.socials a:active {
  transform: translateY(1px);
}

.socials svg {
  display: block;
}

@media (max-width: 600px) {
  main {
    padding: 64px 24px;
  }
  h1 {
    font-size: 28px;
  }
  body {
    font-size: 16px;
  }
  .avatar {
    width: 96px;
    height: 96px;
    margin-bottom: 24px;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #ededed;
    --muted: #9a9a9a;
    --link: #6ea8ff;
    --rule: #262626;
    --bg: #0f0f0f;
  }
  .avatar { background: #1a1a1a; }
  .socials a:hover { background: #1a1a1a; }
}
