@font-face {
  font-family: "Source Sans 3";
  src: url("./assets/source-sans-3.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #fdfdfb;
  --ink: #232521;
  --muted: #61645e;
  --rule: #dddeda;
  --accent: #426454;
  font: 100%/1.5 "Source Sans 3", system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
}

* { box-sizing: border-box; }
body, h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; }
.page { max-width: 66rem; margin: auto; padding: 0 clamp(1.25rem, 5vw, 4rem); }
a { color: inherit; text-decoration-color: #93968f; text-underline-offset: .2em; }
a:hover { text-decoration-color: currentColor; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
nav { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem 1.35rem; }

.masthead {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 1.5rem 0 1.3rem;
  border-bottom: 1px solid var(--rule);
}
.name { font-size: 1.16rem; font-weight: 600; letter-spacing: -.02em; }
.masthead nav { font-size: .98rem; color: var(--muted); }
.masthead a { text-decoration: none; }
.masthead a:hover { text-decoration: underline; }
h2 abbr { text-decoration: underline dashed #93968f 1px; text-underline-offset: .25em; cursor: help; }

.intro {
  display: grid;
  grid-template-columns: 0.94fr 1.06fr;
  align-items: center;
  gap: 1rem;
  padding-block: clamp(2.75rem, 6vw, 4.75rem);
}
h1 {
  margin-left: -.045em;
  font-size: clamp(3.1rem, 5.8vw, 4.6rem);
  font-weight: 600;
  letter-spacing: -.065em;
  line-height: 1.04;
}
.bio > p { max-width: 33ch; font-size: 1.22rem; line-height: 1.45; margin-top: 1.1rem; }
.map { display: block; width: 100%; height: auto; overflow: visible; }
.journey { fill: none; stroke: #92998e; stroke-width: 1; stroke-dasharray: 2.5 4; }
.former circle { fill: #7c807a; stroke: var(--paper); stroke-width: 1.8; }
.map text { font: 600 17px "Source Sans 3", system-ui, sans-serif; fill: #52564f; paint-order: stroke; stroke: var(--paper); stroke-width: 4px; stroke-linejoin: round; }
.map tspan { font-size: 14px; font-weight: 400; }
.map .present text { fill: var(--accent); }
.halo { fill: #e4ece4; stroke: #91a596; stroke-width: 1; }
.pin { fill: var(--accent); }

.section {
  display: grid;
  grid-template-columns: minmax(9rem, 23%) minmax(0, 1fr);
  gap: 1.4rem;
  border-top: 1px solid var(--rule);
  padding-block: 2.2rem 2.5rem;
  font-size: 1.12rem;
}
h2 { font-size: 1.35rem; line-height: 1.35; font-weight: 600; letter-spacing: -.035em; scroll-margin-top: 1.5rem; }
.roles h2 { font-size: 1.13rem; font-weight: 600; line-height: 1.4; }
.work { max-width: 65ch; text-wrap: pretty; }
.role-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .8rem; }
.role-head h3 { font-size: 1.22rem; line-height: 1.35; font-weight: 600; letter-spacing: -.02em; }
.role-meta { color: var(--muted); font-size: 1rem; }
.current-role > p { margin-top: .8rem; }
.current-role strong { font-weight: 600; }
.current-role + .current-role { margin-top: 1.6rem; }
.earlier { list-style: none; margin-top: 1.7rem; padding-top: 1.3rem; border-top: 1px solid var(--rule); font-size: 1rem; }
.earlier li { display: grid; grid-template-columns: 6.2rem 1fr; gap: .8rem; align-items: baseline; }
.earlier li + li { margin-top: .5rem; }
.earlier strong { font-weight: 600; }
.projects { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 1.5rem 2.2rem; }
.projects a { font-weight: 600; }
.projects p { margin-top: .15rem; color: var(--muted); font-size: 1rem; }
.pursuits { margin: 0; max-width: 65ch; text-wrap: pretty; }
.pursuits div { display: grid; grid-template-columns: 7.8rem 1fr; gap: .8rem; align-items: baseline; }
.pursuits div + div { margin-top: .5rem; }
.pursuits dt { font-weight: 600; }
.pursuits dd { margin: 0; }
.icon { width: 1.05em; height: 1.05em; margin-right: .5em; vertical-align: -.16em; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.work-history { padding-block: clamp(2.75rem, 6vw, 4.75rem); }
.roles { list-style: none; margin-top: 2.25rem; }
.roles li { display: grid; grid-template-columns: 9.3rem 1fr; gap: .8rem; align-items: baseline; }
.roles li + li { margin-top: 1.05rem; }
.period { color: var(--muted); font-size: .98rem; font-variant-numeric: tabular-nums; }
.roles p { color: var(--muted); font-size: 1.04rem; }
.roles .role-note { max-width: 62ch; margin-top: .4rem; color: var(--ink); }
footer.section { padding-bottom: 3rem; }

@media (max-width: 48rem) {
  .intro { grid-template-columns: 1fr; gap: 1.3rem; padding-bottom: 2rem; }
  .intro figure { width: min(100%, 31rem); justify-self: center; }
  .bio > p { max-width: 42ch; }
  .section { grid-template-columns: 1fr; gap: 1.1rem; padding-block: 1.65rem 1.9rem; }
  .professional { gap: 1.75rem; }
}
@media (max-width: 30rem) {
  .masthead { padding-block: 1.05rem; }
  .masthead nav { gap: .75rem; }
  .roles li { grid-template-columns: 1fr; gap: .1rem; }
  .map text { font-size: 19px; }
  .map tspan { font-size: 16px; }
}
