:root {
  --bg: #0f172a;
  --panel: #161b22;
  --line: #30363d;
  --text: #e6edf3;
  --muted: #8b949e;
  --blue: #58a6ff;
  --green: #3fb950;
  --amber: #d29922;
}

* { box-sizing: border-box; }
body {
  max-width: 920px;
  margin: 0 auto;
  padding: 28px 20px;
  color: var(--text);
  background: var(--bg);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}
p { max-width: 70ch; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.profile {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 28px;
  align-items: center;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.avatar {
  width: 150px;
  height: 150px;
  border: 1px solid #79c0ff;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 35%;
}
h1 { margin: 0; font-size: 32px; line-height: 1.2; }
.subtitle { margin: 6px 0 14px; color: var(--muted); font-size: 19px; }
.intro { margin: 0; max-width: 650px; }
.available { margin: 14px 0 0; color: var(--green); }
.links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 16px; }
.button {
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  font-weight: bold;
}
.button:hover { border-color: var(--blue); text-decoration: none; }

section { padding: 25px 0; border-bottom: 1px solid var(--line); }
h2 { margin: 0 0 15px; font-size: 22px; }
section p { margin: 0 0 12px; }
section p:last-child { margin-bottom: 0; }
.about p { margin-bottom: 20px; }
.looking > p { margin-bottom: 20px; }
.about p,
.looking p,
.looking li { max-width: none; width: 100%; }
.looking li { margin-bottom: 10px; }

.columns { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.card {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  padding: 18px;
}
.card h3 { margin: 0 0 7px; color: var(--blue); font-size: 17px; }
.card p { margin: 0; color: var(--muted); }

.status {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 8px;
  border: 1px solid;
  border-radius: 12px;
  font-size: 12px;
  font-weight: bold;
  vertical-align: middle;
}
.status.done { color: var(--green); border-color: var(--green); }
.status.wip { color: var(--amber); border-color: var(--amber); }

.tags { margin-top: 14px; }
.tag {
  display: inline-block;
  margin: 3px 3px 0 0;
  padding: 2px 8px;
  border-radius: 12px;
  color: #0d1117;
  background: #79c0ff;
  font-size: 12px;
  font-weight: bold;
}

.looking ul { margin: 0 0 0 4%; padding-left: 20px; }
.timeline { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.timeline li { padding-left: 14px; border-left: 3px solid var(--line); }
.timeline strong { display: block; }
.timeline .when { display: block; color: var(--muted); font-size: 14px; }
.timeline p { margin: 4px 0 0; }

.group-title { margin: 0 0 8px; color: var(--muted); font-size: 14px; }
.skills-group + .skills-group { margin-top: 18px; }
.skills { display: flex; flex-wrap: wrap; gap: 9px; }
.skill {
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--panel);
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 22px;
  padding-top: 22px;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 600px) {
  body { padding: 20px 14px; }
  .profile { grid-template-columns: 1fr; text-align: center; }
  .avatar { margin: 0 auto; }
  .links, .skills { justify-content: center; }
  .columns { grid-template-columns: 1fr; }
  .intro, .available { margin-left: auto; margin-right: auto; }
}
