:root {
  --bg: #ffffff;
  --fg: #1f2328;
  --muted: #59636e;
  --link: #0b5fff;
  --rule: #e4e7eb;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115;
    --fg: #e6e8eb;
    --muted: #98a1ab;
    --link: #7aa7ff;
    --rule: #262a31;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 20px 40px;
}

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

.profile {
  display: flex;
  gap: 28px;
  align-items: center;
  margin-bottom: 40px;
}
.photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 25%;
  flex-shrink: 0;
}
h1 { margin: 0 0 4px; font-size: 2rem; line-height: 1.2; }
.email { margin: 0 0 10px; color: var(--muted); }
.social { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.95rem; }

section { margin-bottom: 34px; }
h2 {
  font-size: 1.15rem;
  margin: 0 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--rule);
}
p { margin: 0 0 12px; }
ul { margin: 0; padding-left: 1.2em; }
ul.plain { list-style: none; padding: 0; }
ul.plain li { margin-bottom: 12px; }

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

footer {
  margin-top: 48px;
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 520px) {
  .profile { flex-direction: column; text-align: center; }
  .social { justify-content: center; }
}
