/* resume.css — the plain, fast, printable page. No JavaScript, no images.
   This is the page that has to work everywhere, forever. */

body { background: #16121f; }

.doc {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 var(--gutter) 80px;
}

/* --- Top bar ------------------------------------------------------ */

.doc__bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--panel-edge);
}
.doc__back {
  display: inline-block;
  padding: 8px 0;              /* lifts the tap target over 24px */
  font-family: var(--font-pixel);
  font-size: 10px;
  text-decoration: none;
  color: var(--text-dim);
}
.doc__back:hover { color: var(--lamp); }
.doc__bar-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.doc__bar .btn { min-height: 44px; padding: 10px 16px; font-size: 10px; }

/* --- Header ------------------------------------------------------- */

.doc__header { padding: 40px 0 8px; }

.doc__name {
  margin: 0;
  font-family: var(--font-pixel);
  font-size: clamp(18px, 4.5vw, 28px);
  line-height: 1.45;
}

.doc__role {
  margin: 16px 0 0;
  font-size: 1.15rem;
  color: var(--text-dim);
}

.doc__contact {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  font-size: 0.97rem;
}
.doc__contact a {
  display: inline-block;
  padding: 5px 0;              /* same, without loosening the line */
  text-underline-offset: 3px;
}

/* --- Sections ----------------------------------------------------- */

.doc h2 {
  margin: 56px 0 0;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--panel-edge);
  font-family: var(--font-pixel);
  font-size: 13px;
  line-height: 1.6;
  color: var(--lamp);
}

.job { margin-top: 32px; }

.job__head {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  align-items: baseline;
  justify-content: space-between;
}

.job__title { margin: 0; font-size: 1.12rem; line-height: 1.45; }
.job__org { color: var(--text); }

.job__dates {
  font-size: 0.9rem;
  color: var(--text-quiet);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.job ul { margin: 14px 0 0; padding-left: 1.15em; }
.job li { margin-bottom: 12px; color: var(--text-dim); }
.job li::marker { color: var(--grass); }

/* --- Skills / education ------------------------------------------- */

.facts { margin: 24px 0 0; }
.facts dt {
  font-weight: 700;
  color: var(--text);
  margin-top: 16px;
}
.facts dd { margin: 6px 0 0; color: var(--text-dim); }

.doc__footer {
  margin-top: 64px;
  padding-top: 20px;
  border-top: 1px solid var(--panel-edge);
  font-size: 0.92rem;
  color: var(--text-quiet);
}

/* --- Print: this is how the page becomes a PDF -------------------- */

@media print {
  @page { margin: 14mm; }

  body {
    background: #fff;
    color: #000;
    font-size: 10.5pt;
    line-height: 1.4;
  }
  .doc { max-width: none; padding: 0; }

  /* Navigation is meaningless on paper. */
  .doc__bar, .doc__footer, .skip-link { display: none; }

  .doc__header { padding: 0 0 4px; }
  .doc__name { font-family: var(--font-body); font-size: 20pt; color: #000; }
  .doc__role, .doc__contact, .job li, .facts dd { color: #222; }
  .doc__contact { gap: 2px 14px; font-size: 9pt; }
  .doc__contact a, .doc__back { padding: 0; }

  .doc h2 {
    margin: 16pt 0 0;
    font-family: var(--font-body);
    font-size: 11pt;
    color: #000;
    border-bottom: 1pt solid #999;
    break-after: avoid;
  }

  .job { margin-top: 10pt; break-inside: avoid; }
  .job__title, .job__org { color: #000; }
  .job__dates { color: #444; }
  .job li { margin-bottom: 3pt; }

  /* Spell out link targets, since a printed link can't be clicked. */
  .doc__contact a::after { content: " (" attr(href) ")"; font-size: 8pt; color: #555; }
  .doc__contact a[href^="mailto:"]::after { content: ""; }
  a { color: #000; text-decoration: none; }
}
