:root {
  --text: #1a1a1a;
  --muted: #8a8a8a;
  --link-underline: #c9c9c9;
  --bg: #fbfbfb;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "neue-haas-grotesk-text", "Helvetica Neue", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  line-height: 1.6;
}
main {
  max-width: 545px;
  margin: 0 auto;
  padding: 158px 24px 96px;
}
p + p { margin-top: 17px; }
a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--link-underline);
  text-underline-offset: 2.5px;
  text-decoration-thickness: 1px;
}
a:hover { text-decoration-color: #8a8a8a; }

/* Inline brand marks, set at text height and aspect-locked to the source art */
.logo {
  display: inline-block;
  vertical-align: -0.18em;
  margin-right: 0.22em;
}
/* Faces sits smaller and higher than the shared rule — the wide arc reads heavy on the baseline */
.logo-faces      { width: 1.765em; height: 0.945em; vertical-align: -0.06em; }
.logo-perhaps    { width: 1.064em; height: 1.05em; }
.logo-workspace  { width: 1.138em; height: 1.05em; }
.logo-interfaces { width: 1.123em; height: 1.05em; }
.logo-fintual    { width: 1.05em;  height: 1.05em; }
.logo-evml       { width: 1.05em;  height: 1.05em; }
/* Wide horizontal mark, so it takes the Faces treatment rather than the square rule */
.logo-ode        { width: 1.585em; height: 0.70em; vertical-align: -0.02em; }
.logo-google     { width: 1.034em; height: 1.05em; }
.logo-spot       { width: 1.325em; height: 1.05em; }

/* ---- Resume ---------------------------------------------------------- */
.resume-name {
  font-size: 1.125em;
  font-weight: 500;
}
.section-title {
  font-weight: 500;
  margin-top: 40px;
}
.section-title:first-child { margin-top: 0; }
.resume-name + .section-title { margin-top: 28px; }
.entry { margin-top: 22px; }
.entry-role { font-weight: 500; }
.entry-dates { color: var(--muted); }
.entry p + p { margin-top: 0; }
.entry-body { margin-top: 4px; }
.contact { margin-top: 22px; }
.contact p + p { margin-top: 0; }

/* ---- Cover letters --------------------------------------------------- */
.signoff { margin-top: 28px; }
/* Medium, not the browser's default bold — emphasis here is a change of
   weight within the paragraph, not a shout. */
strong { font-weight: 500; }

@media (max-width: 640px) {
  main { padding-top: 80px; }
}

/* ---- Letter-format PDF (generated with `node build-pdf.js`) ---------- */
@page {
  size: letter;
  margin: 1.15in 1.3in;
}
@media print {
  body {
    background: #fff;
    font-size: 10.5pt;
    line-height: 1.55;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  main {
    max-width: none;
    margin: 0;
    padding: 0;
  }
  p + p { margin-top: 0.62em; }
  p { orphans: 2; widows: 2; }

  /* In the combined PDF the resume starts on its own sheet */
  .page + .page { page-break-before: always; }

  /* The resume carries far more content, so it sets tighter to hold one sheet */
  .resume { font-size: 9pt; line-height: 1.36; }
  .resume .section-title { margin-top: 12px; }
  .resume .resume-name + .section-title { margin-top: 11px; }
  .resume .entry { margin-top: 7px; }
  .resume .entry-body { margin-top: 1px; }
  .resume .contact { margin-top: 11px; }

  /* Keep an entry from splitting across a page boundary */
  .entry, .contact { page-break-inside: avoid; }
}
