:root {
  --bg: #0f1115;
  --bg-alt: #171a21;
  --text: #e8e9ec;
  --text-muted: #9aa0ab;
  --accent: #6ea8fe;
  --border: #262a33;
  --max-width: 640px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

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

a:hover,
a:focus {
  text-decoration: underline;
}

.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 1.5rem 2.5rem;
  text-align: center;
}

.avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border);
}

.hero h1 {
  margin: 1.25rem 0 0.25rem;
  font-size: 1.75rem;
}

.hero .title {
  margin: 0;
  color: var(--text-muted);
}

.contact-links {
  margin-top: 1.25rem;
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  flex-wrap: wrap;
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

section {
  margin-bottom: 2.5rem;
}

h2 {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
  margin-bottom: 1.25rem;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.timeline li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.timeline li:last-child {
  border-bottom: none;
}

.timeline-role {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
}

.timeline-role h3 {
  margin: 0;
  font-size: 1rem;
}

.timeline-date {
  color: var(--text-muted);
  font-size: 0.85rem;
  white-space: nowrap;
}

.timeline-company {
  margin: 0.15rem 0 0;
  color: var(--text-muted);
}

.timeline-desc {
  margin: 0.4rem 0 0;
}

footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

@media (max-width: 480px) {
  .hero {
    padding: 3rem 1.25rem 2rem;
  }

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