:root {
  color-scheme: light;
  --paper: #f1f0ea;
  --ink: #17201c;
  --muted: #626b65;
  --rule: #838c83;
  --accent: #27684e;
  --sans: Inter, ui-sans-serif, system-ui, sans-serif;
  --serif: ui-serif, Georgia, "Times New Roman", serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 32px; }
body { margin: 0; background: var(--paper); color: var(--ink); line-height: 1.6; }
::selection { background: var(--ink); color: var(--paper); }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
h1:focus-visible, .record-section:focus-visible { outline: 2px solid var(--accent); outline-offset: 8px; }
h1, h2, h3, p, dl { margin: 0; }
h1, h2, h3 { font-weight: 500; }
p + p { margin-top: 16px; }
strong { font-weight: 600; }
dd { margin: 0; }
.muted { color: var(--muted); }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  padding: 10px 18px;
  transform: translateY(-180%);
  background: var(--ink);
  color: var(--paper);
}
.skip-link:focus { transform: none; }
.skip-link:hover { color: var(--paper); }

main { max-width: 1320px; margin: auto; padding: 56px 6vw 0; }
main:focus-visible { outline: 2px solid var(--accent); outline-offset: 8px; }
.layout { display: grid; grid-template-columns: minmax(300px, .4fr) minmax(0, 1fr); gap: clamp(48px, 6vw, 80px); }
.identity-column, .record-column { min-width: 0; overflow-wrap: anywhere; }
.eyebrow, .section-heading, .date, .identity-facts dt,
.identity-links, .section-nav, .site-footer, .resume-download { font-family: var(--mono); }
.eyebrow { color: var(--muted); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
h1 { margin: 22px 0 24px; font-family: var(--serif); font-size: clamp(54px, 6.5vw, 90px); line-height: .88; letter-spacing: -.07em; }
h1 > span { display: block; white-space: nowrap; }
.identity-role { max-width: 29ch; font-size: 16px; line-height: 1.28; text-wrap: pretty; }
.identity-facts { display: grid; gap: 16px; margin-top: 42px; }
.identity-facts dt { margin-bottom: 3px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.identity-facts dd { font-size: 13px; }
.section-nav { display: grid; gap: 12px; margin-top: 70px; font-size: 12px; }
.section-nav a,
.identity-links a,
.site-footer nav a {
  display: inline-flex;
  align-items: center;
  min-block-size: 24px;
}
.section-nav a { position: relative; flex: 0 0 auto; width: fit-content; text-decoration: none; }
.section-nav a::before { position: absolute; top: 0; bottom: 0; left: -12px; width: 1px; background: transparent; content: ""; }
.section-nav a:hover::before, .section-nav a:focus-visible::before { background: var(--accent); }
.identity-links { display: grid; gap: 14px; margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--rule); font-size: 12px; }
.identity-links > a { width: fit-content; overflow-wrap: anywhere; }
.identity-links > div { display: flex; flex-wrap: wrap; gap: 14px 22px; }
.resume-download { display: inline-block; padding-block: 6px; font-size: 12px; }
.identity-links .resume-download { margin-top: 0; }

.record-section { padding: 0 0 48px; scroll-margin-top: 30px; }
.section-heading {
  display: flex;
  align-items: baseline;
  margin-bottom: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
}
.section-heading h2 { font-family: var(--serif); font-size: clamp(28px, 4vw, 54px); line-height: 1; font-weight: 500; letter-spacing: -.045em; }
.section-aside { margin-left: auto; color: var(--muted); font-size: 11px; letter-spacing: 0; white-space: nowrap; }
.lead { max-width: 600px; margin-bottom: 28px; color: #46514a; font-size: clamp(18px, 2.2vw, 27px); line-height: 1.25; letter-spacing: -.02em; }
.overview > p:not(.lead) { max-width: 68ch; color: #4a4b44; font-size: 16px; }
.job { padding: 20px 0; border-top: 1px solid var(--rule); }
.job:first-of-type { border-top: 0; padding-top: 0; }
.job-heading, .small-record header { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.job h3 { font-size: 21px; font-weight: 500; letter-spacing: -.025em; line-height: 1.3; }
.job-role { margin-top: 3px; font-size: 15px; }
.date { color: var(--muted); font-size: 11px; white-space: nowrap; }
.job-context { margin: 12px 0 17px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.subroles { color: var(--muted); font-size: 13px; }
.job-summary { max-width: 68ch; color: #46514a; font-size: 16px; line-height: 1.55; }
.skills-list > div { display: grid; grid-template-columns: 150px 1fr; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.skills-list > div:first-child { padding-top: 0; }
.skills-list > div:last-child { border-bottom: 0; }
.skills-list dt { color: var(--muted); font-size: 13px; }
.skills-list dd { font-size: 15px; line-height: 1.7; }
.small-record + .small-record { margin-top: 23px; padding-top: 23px; border-top: 1px solid var(--rule); }
.small-record h3 { font-size: 18px; letter-spacing: -.02em; }
.small-record p:not(.date):not(.job-role) { margin-top: 12px; font-size: 15px; }
.small-record .job-role { color: var(--muted); font-size: 13px; }

.site-footer { display: flex; justify-content: space-between; gap: 24px; width: min(calc(100% - 12vw), calc(1320px - 12vw)); margin: 10px auto 0; padding: 22px 0 36px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 11px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 12px 24px; }

@media (min-width: 741px) {
  .identity { position: sticky; top: 40px; }
}

@media (max-width: 1050px) {
  .layout { grid-template-columns: minmax(220px, .8fr) minmax(0, 1.65fr); gap: 40px; }
  main { padding-inline: 32px; }
  .small-record header { flex-direction: column; gap: 5px; }
  .skills-list > div { grid-template-columns: 115px 1fr; gap: 16px; }
  .site-footer { width: calc(100% - 64px); }
}

@media (max-width: 740px) {
  main { padding: 36px 22px 0; }
  .layout { display: block; }
  .identity { padding-bottom: 42px; }
  h1 { margin-block: 17px 20px; font-size: clamp(52px, 10vw, 65px); }
  h1 > span { display: inline; }
  .identity-role { font-size: 16px; }
  .section-nav { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 25px; font-size: 12px; }
  .section-nav a { padding-block: 4px; }
  .identity-links { gap: 10px; margin-top: 24px; padding-top: 16px; }
  .identity-links a { padding-block: 4px; }
  .identity-links > div { gap: 10px 22px; }
  .lead { font-size: 27px; }
  .record-section { padding-bottom: 40px; }
  .section-heading { margin-bottom: 22px; }
  .job-heading { flex-direction: column; align-items: flex-start; gap: 8px; }
  .job h3 { font-size: 24px; }
  .small-record header { display: block; }
  .small-record .date { margin-top: 5px; }
  .site-footer { display: block; width: calc(100% - 44px); }
  .site-footer nav { gap: 12px 18px; margin-top: 14px; }
  .site-footer nav a { padding-block: 4px; }
}

@media (max-width: 480px) {
  .skills-list > div { grid-template-columns: 1fr; gap: 5px; }
}

@media print {
  :root { --paper: #fff; --ink: #000; --muted: #444; --rule: #888; --accent: #000; }
  @page { margin: 16mm; }
  .section-nav, .site-footer, .skip-link, .resume-download { display: none; }
  main { max-width: none; padding: 0; }
  .layout { display: block; }
  .identity { position: static; padding-bottom: 24px; }
  h1 { margin-block: 10px; font-size: 36pt; }
  h1 > span { display: inline; }
  .identity-role { font-size: 12pt; }
  .identity-facts { margin-top: 16px; padding-top: 14px; }
  .identity-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 12px; padding-top: 12px; }
  .identity-links a { text-decoration: none; }
  .lead { max-width: none; margin-bottom: 14px; font-size: 18pt; }
  .overview > p:not(.lead), .job-summary, .skills-list dd,
  .small-record p:not(.date):not(.job-role) { font-size: 11pt; }
  .record-section { padding-bottom: 24px; }
  .section-heading { margin-bottom: 14px; break-after: avoid; }
  .job-heading, .small-record header { flex-direction: row; }
  .job, .small-record, .skills-list > div { break-inside: avoid; }
  .job + .job { margin-top: 18px; padding-top: 18px; }
  .skills-list > div { grid-template-columns: 140px 1fr; }
  p, li { orphans: 3; widows: 3; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media (forced-colors: active) {
  :root {
    --paper: Canvas;
    --ink: CanvasText;
    --muted: CanvasText;
    --rule: CanvasText;
    --accent: LinkText;
  }

  a:focus-visible, h1:focus-visible, .record-section:focus-visible, main:focus-visible { outline-color: Highlight; }
  .skip-link { background: CanvasText; color: Canvas; }
  .skip-link:hover { color: Canvas; }
}
