:root {
  color-scheme: light dark;
  --paper: #fcfcfb;
  --ink: #24292f;
  --secondary: #56616b;
  --accent: #315a77;
  --rule: #dce1e4;
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #171b20; --ink: #e6eaee; --secondary: #a7b3bd; --accent: #a8c9e6; --rule: #3a434c; }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1.1875rem/1.65 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-text-size-adjust: 100%;
}
main {
  max-width: 1152px;
  margin-inline: auto;
  padding: clamp(40px, 6vw, 96px) clamp(24px, 5vw, 48px) 64px;
}
.profile-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 152px;
  gap: 32px;
  align-items: center;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--rule);
}
h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); letter-spacing: -.042em; font-weight: 650; line-height: 1.12; margin: 0 0 12px; }
.role { font-size: clamp(1.1rem, 2.7vw, 1.45rem); font-weight: 450; line-height: 1.4; margin: 0 0 12px; }
.details { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; color: var(--secondary); font-size: 1.0625rem; margin: 0; }
.details a { white-space: nowrap; }
a { color: var(--accent); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.portrait { display: block; width: 152px; height: 152px; }
.content { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, .47fr); column-gap: 48px; margin-top: 36px; }
h2 { font-size: 1.25rem; line-height: 1.4; font-weight: 650; letter-spacing: -.012em; margin: 0 0 14px; }
p { margin: 0 0 19px; }
.bio p:last-child { margin-bottom: 0; }
.bio section + section { margin-top: 30px; }
.career { border-left: 1px solid var(--rule); padding-left: 28px; align-self: start; font-size: 1.0625rem; line-height: 1.45; }
.career h2 { font-size: 1.125rem; margin-bottom: 17px; }
.current-employer { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-bottom: 16px; border-bottom: 1px solid var(--rule); margin-bottom: 13px; }
.current-employer strong { font-weight: 600; }
.date { font-size: .975rem; color: var(--secondary); font-variant-numeric: tabular-nums; white-space: nowrap; }
.career-table { border-collapse: collapse; width: 100%; }
.career-table th { font-size: .9rem; font-weight: 550; color: var(--secondary); text-align: left; padding: 0 0 8px; }
.career-table td { vertical-align: baseline; padding: 6px 0; }
.career-table td:first-child { padding-right: 12px; }
.career-table :is(th, td):last-child { text-align: right; }
.via { display: block; font-size: .9rem; color: var(--secondary); margin-top: 1px; }
@media screen and (max-width: 850px) {
  main { max-width: 720px; }
  .content { grid-template-columns: minmax(0, 1fr); gap: 32px; margin-top: 28px; }
  .career { border-left: 0; border-top: 1px solid var(--rule); padding: 26px 0 0; }
  .career h2 { font-size: 1.25rem; }
  .career-table td { padding-block: 8px; }
}
@media screen and (max-width: 500px) {
  body { font-size: 1.0625rem; }
  main { padding-top: 32px; }
  .profile-header { grid-template-columns: minmax(0, 1fr) 86px; gap: 15px; align-items: start; padding-bottom: 24px; }
  .portrait { width: 86px; height: 86px; }
  h1 { font-size: clamp(1.85rem, 7.3vw, 2.3rem); margin-bottom: 9px; }
  .details { font-size: .94rem; gap: 2px 12px; }
  .role { margin-bottom: 9px; }
  .career { font-size: 1rem; }
  .date { font-size: .94rem; }
}
@media screen and (max-width: 340px) {
  main { padding-inline: 19px; }
  .profile-header { grid-template-columns: minmax(0, 1fr) 68px; gap: 11px; }
  .portrait { width: 68px; height: 68px; }
  h1 { font-size: 1.8rem; }
}
/* Home, About, and errors use one theme and the same keyboard focus style. */
.standalone { max-width: 800px; }
.standalone header { margin-bottom: 32px; }
.standalone section + section { margin-top: 28px; }
.site-footer { display: flex; flex-wrap: wrap; column-gap: 16px; row-gap: 4px; margin-top: 36px; padding-top: 16px; border-top: 1px solid var(--rule); color: var(--secondary); font-size: .875rem; }
