
:root {
  color-scheme: dark;
  --background: #0d1117;
  --surface: #161b22;
  --text: #d8dee9;
  --muted: #8b949e;
  --border: #30363d;
  --link: #58a6ff;
  --link-hover: #79c0ff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont,
    "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--background);
}

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

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

a:focus-visible {
  outline: 2px solid var(--link-hover);
  outline-offset: 3px;
  border-radius: 2px;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

/* Layout */

.layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 65px;
  padding-top: 50px;
  padding-bottom: 70px;
}

/* Profile */

.profile {
  font-size: 14px;
  color: var(--muted);
}

.avatar {
  display: block;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  object-fit: cover;
}

.profile p {
  margin: 5px 0;
}

.profile .profile-name {
  margin: 18px 0 0;
  font-size: 21px;
  font-weight: 700;
  color: var(--text);
}

.location,
.profile-links a {
  display: grid;
  grid-template-columns: 18px auto;
  align-items: center;
  column-gap: 8px;
  line-height: 1.5;
}

.location svg {
  width: 16px;
  height: 16px;
  justify-self: center;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.profile-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
}

.profile-links a {
  width: fit-content;
}

.profile-links svg {
  width: 16px;
  height: 16px;
  justify-self: center;
  fill: currentColor;
  color: var(--muted);
  transition: color 0.15s ease;
}

.profile-links a:hover svg {
  color: var(--link-hover);
}

/* Main content */

.content {
  min-width: 0;
}

.content h1 {
  margin: 0 0 22px;
  font-size: 30px;
  line-height: 1.3;
}

.content h2 {
  margin-top: 38px;
  padding-bottom: 8px;
  font-size: 22px;
  border-bottom: 1px solid var(--border);
}

.content h3 {
  margin: 26px 0 10px;
  font-size: 18px;
  line-height: 1.4;
}

.content ul {
  padding-left: 24px;
}

.content li {
  margin-bottom: 6px;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 20px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.site-footer p {
  margin: 0;
}

/* Mobile */

@media (max-width: 700px) {
  .layout {
    grid-template-columns: 1fr;
    gap: 35px;
    padding-top: 30px;
  }

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

  .content h1 {
    font-size: 26px;
  }

  .content h2 {
    font-size: 20px;
  }
}
