/* ============================================================
   jimkirk.org - print stylesheet
   One clean white document for printing and for the generated PDF.
   Loaded with media="print" from _includes/head/custom.html, so a
   browser's Ctrl+P on any page produces a light, readable sheet,
   and tools/resume-pdf renders the resume PDF from the same rules.
   Type: Inter (self-hosted, SIL OFL 1.1) with Arial as fallback.
   ============================================================ */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  src: url("../fonts/inter-400-normal.otf") format("opentype");
}
@font-face {
  font-family: "Inter";
  font-style: italic;
  font-weight: 400;
  src: url("../fonts/inter-400-italic.otf") format("opentype");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  src: url("../fonts/inter-700-normal.otf") format("opentype");
}

/* ---- page box: Letter, 15mm sides, name and page number in the footer ---- */
@page {
  size: Letter;
  margin: 12mm 15mm 14mm 15mm;

  @bottom-left {
    content: string(docname);
    font-family: "Inter", Arial, Helvetica, sans-serif;
    font-size: 7.8pt;
    color: #666;
  }
  @bottom-right {
    content: "Page " counter(page) " of " counter(pages);
    font-family: "Inter", Arial, Helvetica, sans-serif;
    font-size: 7.8pt;
    color: #666;
  }
}

/* ---- light tokens, so every var()-driven rule in design.css goes to paper ---- */
:root,
html[data-theme="dark"] {
  --bg:            #ffffff;
  --bg-elev:       #ffffff;
  --bg-elev-2:     #f4f4f4;
  --bg-deep:       #ffffff;
  --ink:           #111111;
  --ink-dim:       #333333;
  --ink-faint:     #555555;
  --line:          #c8c8c8;
  --line-soft:     #e2e2e2;
  --accent:        #111111;
  --accent-ink:    #111111;
  --accent-soft:   #eeeeee;
  --shadow:        none;

  --global-bg-color:                  #ffffff;
  --global-footer-bg-color:           #ffffff;
  --global-text-color:                #111111;
  --global-text-color-light:          #333333;
  --global-link-color:                #111111;
  --global-link-color-hover:          #111111;
  --global-link-color-visited:        #111111;
  --global-base-color:                #111111;
  --global-border-color:              #c8c8c8;
  --global-dark-border-color:         #e2e2e2;
  --global-masthead-link-color:       #111111;
  --global-masthead-link-color-hover: #111111;
}

html,
body {
  background: #ffffff !important;
  color: #111111;
}

body {
  font-family: "Inter", Arial, Helvetica, "Liberation Sans", sans-serif;
  font-size: 9.8pt;
  line-height: 1.24;
  margin: 0;
  padding: 0;
}

/* ---- no site chrome on paper ---- */
.masthead,
.page__footer,
.sidebar,
.page__meta,
.page__share,
.notice,
.greedy-nav,
.resume-download {
  display: none !important;
}

/* ---- flat, full-width content: no max-width, no centering, no sidebar offset ---- */
#main,
.page,
.page__inner-wrap,
.page__content,
.archive {
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  background: none !important;
  border: 0 !important;
}

/* ---- header block: name, title, contact, headshot (print only) ---- */
.resume-print-head {
  display: table;
  width: 100%;
  margin: 0 0 10pt;
  padding-bottom: 7pt;
  /* no rule here: the amber marks under the labels are the only section device
     on the page, and a heavier rule up top competed with them */
  border-bottom: 0;
}
.resume-print-head__text,
.resume-print-head__photo {
  display: table-cell;
  vertical-align: middle;
}
.resume-print-head__photo {
  width: 1.15in;
  text-align: right;
}
.resume-print-head__photo img {
  width: .92in;
  height: .92in;
  border-radius: 50%;
}
.resume-print-head__name {
  string-set: docname content(text);
  font-family: "Inter", Arial, Helvetica, sans-serif;
  font-size: 21pt;
  font-weight: 700;
  letter-spacing: -.005em;
  line-height: 1.1;
  margin: 0;
  padding: 0;
  border: 0;
  color: #111111;
}
.resume-print-head__role {
  font-size: 11pt;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #333333;
  margin: 3pt 0 0;
}
.resume-print-head__contact {
  font-size: 9.4pt;
  color: #333333;
  margin: 4pt 0 0;
}

/* ---- the page's own H1 is the site title; the header block replaces it ---- */
.page__title {
  display: none !important;
}

/* ---- section headings ----
   The label is small, grey and widely tracked, and the mark under it is the
   site's amber: a short rule rather than a full-width one, enough to close a
   section without turning the resume into a table. The employer names below are
   deliberately the largest thing in an entry, so nothing up here competes with
   them. Jim picked this treatment over a grey band (2026-11-22). */
.archive h2:not(.archive__subtitle) {
  font-family: "Inter", Arial, Helvetica, sans-serif;
  font-size: 9.4pt;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .17em;
  color: #6b6b6b;
  border-bottom: 0 !important;
  padding: 0 !important;
  margin: 18pt 0 3pt !important;
  break-after: avoid;
  break-inside: avoid;
}
/* the markdown "---" under each heading becomes the amber rule */
.archive h2:not(.archive__subtitle) + hr {
  display: block;
  border: 0 !important;
  width: 58px;
  height: 2pt;
  background: #ff9f1c;
  margin: 0 0 9pt !important;
}

/* ---- body copy ---- */
.archive p,
.archive li {
  color: #111111;
}
.archive p {
  margin: 0 0 5pt;
  break-inside: avoid;
  orphans: 2;
  widows: 2;
}
.archive ul {
  margin: 0 0 7pt;
  padding-left: 13pt;
}
.archive li {
  margin: 0 0 2.5pt;
  break-inside: avoid;
}
.archive a {
  color: #111111 !important;
  text-decoration: none !important;
}

/* company line: <p><a href><strong>COMPANY</strong></a></p>
   The employer is the largest thing in an entry and carries no tracking, so
   the eye never confuses it with the section label above it. */
.archive p > a > strong {
  font-size: 11.6pt;
  font-weight: 700;
  letter-spacing: 0;
  color: #000000;
}
/* role line: <p><strong>Title</strong><br><em>dates</em></p>
   (the em is not the only element child here, which is what separates the
   date range from an italic word inside a sentence) */
.archive p > strong:only-child {
  font-size: 10.3pt;
  font-weight: 700;
  color: #1a1a1a;
}
.archive p > em:not(:only-child) {
  font-size: 9.1pt;
  color: #666666;
}

/* ---- work experience: one block per role, so a page break never strands a
        company name at the foot of a page ---- */
section.job {
  margin: 0 0 7.5pt;
}
.job__role {
  break-inside: avoid;
}
section.job > .job__role:last-child {
  margin-bottom: 0;
}
