@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/static/fonts/IBMPlexMono-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/static/fonts/IBMPlexMono-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #111;
  --muted: #5c5c5c;
  --paper: #fff;
  --canvas: #e8e7e3;
  font-family: 'IBM Plex Mono', ui-monospace, 'Courier New', monospace;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
  font-variant-ligatures: none;
}
* { box-sizing: border-box; }
body { margin: 0; padding: 32px 16px 64px; font-size: 1rem; line-height: 1.5; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover, button:hover { color: var(--paper); background: var(--ink); text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--ink); outline-offset: 5px; }
p, h1, h2, h3, ul, ol { margin: 0; }
h1 { font-size: 1.5rem; line-height: 1.25; }
h2 { font-size: 1.25rem; font-weight: 700; line-height: 1.5; letter-spacing: -.01em; }
h3 { font-size: 1rem; font-weight: 700; line-height: inherit; }
.page-nav { max-width: 46rem; margin: 0 auto 14px; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-size: .8125rem; }
.resume-actions { display: flex; gap: 20px; align-items: baseline; }
.resume-actions > :is(a, button) {
  display: block;
  font: inherit;
  line-height: inherit;
  color: inherit;
  padding: 9px 0;
  background: transparent;
  border: 0;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-box: trim-both cap alphabetic;
  cursor: pointer;
}
.resume-actions > :is(a, button):hover { color: var(--paper); background: var(--ink); text-decoration: none; }
.paper { max-width: 46rem; margin: auto; padding: 44px 48px 48px; border: 1px solid var(--ink); background: var(--paper); }
.identity { margin-bottom: 36px; }
.intro { margin-top: 8px; }
address { display: flex; flex-direction: column; align-items: flex-start; margin-top: 16px; font-size: .8125rem; font-style: normal; line-height: 1.7; overflow-wrap: anywhere; }
.career { padding: 0; list-style: none; }
.stage + .stage { margin-top: 24px; }
.stage-body { display: grid; grid-template-columns: 3ch minmax(0, 1fr); column-gap: 1ch; margin-top: 12px; }
.arrow { position: relative; display: block; width: 3ch; margin: 4px 0 -4px; }
.arrow::before { content: ''; position: absolute; top: 0; bottom: 1px; left: 50%; border-left: 1.5px solid; transform: translateX(-50%); }
.arrow svg { position: absolute; width: 10px; height: 6px; bottom: 0; left: 50%; transform: translateX(-50%); }
.job { break-inside: avoid; }
.job + .job { margin-top: 20px; }
.job-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; column-gap: 12px; }
.dates { color: var(--muted); font-size: .875rem; }
.job ul { padding-left: 2ch; list-style: '- '; margin-top: 4px; }
.job li + li { margin-top: 2px; }
.aside { color: var(--muted); font-size: .8125rem; }
.next { margin: 24px 0 0 4ch; }
.next a { display: inline-block; }
.next p + p { font-size: .8125rem; color: var(--muted); margin-top: 4px; }
.home-extra { border-top: 1px dashed var(--muted); margin-top: 40px; padding-top: 32px; }
.projects { padding: 0; margin-top: 20px; list-style: none; }
.projects li + li { margin-top: 18px; }
.projects h3 { font-weight: 400; }
.projects p { color: var(--muted); font-size: .875rem; }
.lore { margin-top: 36px; }
.lore p { margin-top: 16px; }
footer { margin-top: 36px; font-size: .875rem; }
footer > a { display: inline-block; margin-top: 8px; }
.skip-link { position: absolute; top: -100px; background: var(--paper); padding: 8px; }
.skip-link:focus { top: 8px; }
@media screen and (max-width: 600px) {
  body { padding-top: 20px; padding-bottom: 24px; }
  .page-nav { font-size: .75rem; }
  .page-nav { flex-wrap: wrap; row-gap: 12px; }
  .resume-actions { gap: 20px; }
  .paper { padding: 28px 20px 32px; }
  .identity { margin-bottom: 28px; }
  .stage-body { grid-template-columns: 2ch minmax(0, 1fr); }
  .arrow { width: 2ch; }
  .next { margin-left: 3ch; }
  .dates { font-size: .8125rem; }
}
/* Zero page margin leaves no room for browser headers/footers; .paper carries the spacing. */
@page { size: A4 portrait; margin: 0; }
@media print {
  :root { --canvas: #fff; background: white; }
  /* Print always uses a white page. */
  body {
    margin: 0;
    padding: 0;
    color: var(--ink);
    background: white;
    font-size: 10pt;
    line-height: 1.35;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .page-nav, .skip-link, .home-extra, .next { display: none; }
  .paper { width: auto; max-width: none; margin: 0; padding: 16mm 18mm; border: 0; background: white; box-shadow: none; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
  h1 { font-size: 18pt; }
  h2 { font-size: 12pt; }
  h3 { font-size: 10pt; }
  h1, h2, h3 { break-after: avoid; }
  .identity, .stage, .job { break-inside: avoid; }
  p, li { orphans: 2; widows: 2; }
  .identity { margin-bottom: 24pt; }
  .intro { margin-top: 6pt; }
  address { display: flex; flex-direction: row; flex-wrap: wrap; margin-top: 10pt; font-size: 9pt; column-gap: 16pt; }
  .stage + .stage { margin-top: 20pt; }
  .stage-body { grid-template-columns: 3ch minmax(0, 1fr); margin-top: 9pt; }
  .arrow { width: 3ch; }
  .job + .job { margin-top: 14pt; }
  .dates, .aside { font-size: 9pt; }
  .arrow::before { border-left-width: .75pt; }
  a { text-decoration: none; }
}
