:root {
  --ink: #111;
  --muted: #777;
  --rule: #e6e6e6;
  --bg: #fff;
  --measure: 32rem;
  --gap: 2.5rem;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body {
  max-width: 80rem;
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
}

.masthead {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 4rem;
}

.portrait {
  width: 9rem;
  height: 9rem;
  object-fit: cover;
  border-radius: 50%;
  filter: grayscale(100%);
  flex-shrink: 0;
}

.intro {
  max-width: 28rem;
}

h1 {
  font-weight: 400;
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  margin: 0 0 0.5rem;
}

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

.social {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-top: 1rem;
}

.social a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--muted);
  border-bottom: none;
  transition: color 0.15s ease;
}

.social a:hover {
  color: var(--ink);
}

.social .resume-label {
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.bio code {
  font-size: 0.85em;
  background: #f4f4f4;
  padding: 0.05em 0.3em;
  border-radius: 3px;
}

.columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: var(--gap);
  align-items: start;
}

.col h2 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
  margin: 0 0 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--rule);
}

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

ol.timeline li,
ol.entries li {
  margin-bottom: 1.25rem;
}

.year {
  display: block;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  font-size: 0.8125rem;
  margin-bottom: 0.125rem;
}

.title {
  display: block;
  font-weight: 700;
}

.desc {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.45;
}

.desc + .desc {
  margin-top: 0.05rem;
}

.desc strong {
  font-weight: 600;
  color: var(--ink);
}

.authors {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.4;
}

.authors .me {
  font-weight: 700;
}

a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
}

a:hover { border-bottom-color: var(--ink); }

@media (max-width: 780px) {
  body { padding: 2.5rem 1.25rem 4rem; }
  .columns { grid-template-columns: 1fr; gap: 3rem; }
  .masthead {
    flex-direction: column;
    text-align: center;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
  }
  .portrait { width: 7rem; height: 7rem; }
}
