:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --text: #1a1a1a;
  --muted: #6b6b6b;
  --border: #e6e6e6;
  --max-width: 640px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111111;
    --text: #f2f2f2;
    --muted: #9a9a9a;
    --border: #2a2a2a;
  }
}

* {
  box-sizing: border-box;
}

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

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

.avatar {
  display: block;
  width: 7rem;
  height: 7rem;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1.75rem;
}

h1 {
  font-size: 1.7rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 1rem;
  letter-spacing: -0.01em;
}

.intro {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0 0 3rem;
}

h2 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 600;
  margin: 0 0 1.5rem;
}

.item {
  padding: 1.25rem 0;
  border-top: 1px solid var(--border);
}

.item:last-child {
  padding-bottom: 0;
}

.item-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}

.role {
  font-weight: 600;
}

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

.company {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.15rem;
}

.item p {
  margin: 0.5rem 0 0;
  font-size: 0.95rem;
}

footer {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
}

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

footer a:hover {
  text-decoration: underline;
}
