:root {
  --text: #1a1a1a;
  --muted: #5f5f5f;
  --accent: #2457c5;
  --border: #e3e3e3;
  --bg: #ffffff;
  --max-width: 680px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #ededed;
    --muted: #9a9a9a;
    --accent: #6d9bff;
    --border: #333333;
    --bg: #121212;
  }
}

* {
  box-sizing: border-box;
}

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

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

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

.header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.photo {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

h1 {
  font-size: 1.6rem;
  font-weight: 600;
  margin: 0;
}

.title {
  margin: 0.2rem 0 0.6rem;
  color: var(--muted);
  font-size: 1rem;
}

.contact {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0 1rem;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
}

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

.contact a:hover {
  text-decoration: underline;
}

.contact svg {
  width: 0.95em;
  height: 0.95em;
  margin-right: 0.35em;
  vertical-align: -0.12em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bio {
  margin: 0 0 2.5rem;
  font-size: 1.02rem;
}

section {
  margin-bottom: 2.5rem;
}

h2 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}

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

.timeline > li {
  margin-bottom: 1.4rem;
}

.timeline > li:last-child {
  margin-bottom: 0;
}

.timeline-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 0.5rem;
  margin-bottom: 0.2rem;
}

.role {
  font-weight: 600;
}

.company {
  color: var(--accent);
}

.company::before {
  content: "· ";
  color: var(--muted);
}

.dates {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.88rem;
  white-space: nowrap;
}

.timeline p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
}

.tags li {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.85rem;
  color: var(--text);
}

.plain-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
}

.plain-list li {
  margin-bottom: 0.4rem;
}

.plain-list li:last-child {
  margin-bottom: 0;
}

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

  .header {
    gap: 1rem;
  }

  .photo {
    width: 64px;
    height: 64px;
  }

  .dates {
    margin-left: 0;
  }

  .contact {
    flex-direction: column;
    gap: 0.15rem 0;
  }

  .contact + .contact {
    margin-top: 0.15rem;
  }
}
