/* boshjerns.com/cv: one-column CV. Colours and type follow style.css.
   tools/cv_export.py inlines this file into Josh-Berns-CV.html and drops the marked dark and actions blocks. */
:root {
  --bg: #f5f5f3;
  --sheet: #ffffff;
  --border: rgba(20, 22, 28, 0.09);
  --rule: rgba(20, 22, 28, 0.16);
  --text: #16181d;
  --text-2: #3d414a;
  --muted: #6c707a;
  --accent: #2c56c9;
  --accent-ink: #ffffff;
  --shadow: 0 1px 2px rgba(16, 18, 24, 0.04), 0 8px 24px rgba(16, 18, 24, 0.06);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --st-merged: #6b46c1; --st-open: #1b7a43; --st-bug: #ad430c; --st-rep: #585d68;
  color-scheme: light;
}
/* dark:start */
@media screen and (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1013;
    --sheet: #1a1c22;
    --border: rgba(255, 255, 255, 0.08);
    --rule: rgba(255, 255, 255, 0.14);
    --text: #ececef;
    --text-2: #c2c5cd;
    --muted: #8b8f99;
    --accent: #8eaefc;
    --accent-ink: #0f1013;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
    --st-merged: #b8a0ff; --st-open: #63d18f; --st-bug: #ffa56e; --st-rep: #a5a9b2;
    color-scheme: dark;
  }
}
/* dark:end */

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 15.5px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

/* actions:start */
.bar {
  width: min(840px, 100% - 32px);
  margin: 0 auto;
  padding: 20px 0 16px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
}
.bar .back { color: var(--text-2); font-size: 15px; font-weight: 500; text-decoration: none; }
.bar .back:hover { color: var(--accent); }
.dl { display: flex; gap: 8px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 9px 16px;
  font: 600 14px/1.2 var(--font);
  color: var(--accent-ink);
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  text-align: center;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn.ghost { color: var(--text); background: transparent; border-color: var(--rule); }
/* actions:end */

.sheet {
  width: min(840px, 100% - 32px);
  margin: 0 auto 48px;
  padding: 56px 64px;
  background: var(--sheet);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.doc .sheet { margin-top: 32px; }

.cv-head { display: grid; grid-template-columns: 1fr auto; gap: 16px 36px; align-items: start; }
.cv-head h1 { font-size: 34px; line-height: 1.1; letter-spacing: -0.025em; font-weight: 700; margin: 0 0 10px; }
.sheet .headline { margin: 0 0 10px; font-size: 17px; font-weight: 500; line-height: 1.45; color: var(--text); text-wrap: balance; }
.sheet .where { font-size: 14px; line-height: 1.6; color: var(--muted); }
.where span { display: block; }
.contact { list-style: none; margin: 0; padding: 4px 0 0; font-size: 14px; line-height: 1.7; text-align: right; }
.contact a { color: var(--text-2); text-decoration: none; }
.contact a:hover { color: var(--accent); text-decoration: underline; }

.sheet section { margin-top: 28px; }
.sheet h2 {
  margin: 0 0 14px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--rule);
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent);
}
.sheet p { margin: 0; color: var(--text-2); }

.job { margin: 0 0 20px; }
.job:last-child { margin-bottom: 0; }
.job-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 16px; }
.job h3 { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.4; }
.job h3 .role { font-weight: 400; color: var(--text-2); }
.when { font-size: 14px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.job ul, .proj { margin: 6px 0 0; padding-left: 18px; }
.job li, .proj li { margin: 3px 0; color: var(--text-2); }
.job li::marker, .proj li::marker { color: var(--muted); }
.proj { margin: 0; }
.proj b, .kv dt { color: var(--text); font-weight: 600; }

.kv { margin: 0; display: grid; gap: 6px; }
.kv div { display: grid; grid-template-columns: 104px 1fr; gap: 16px; }
.kv dt { margin: 0; }
.kv dd { margin: 0; color: var(--text-2); overflow-wrap: anywhere; }

/* open source contributions: generated by tools/oss_contrib.py between the oss markers in cv/index.html */
.sheet p.oss-lead { margin: 0 0 12px; }
.oss-grp { margin: 0 0 12px; }
.oss-kv ul { list-style: none; margin: 0; padding: 0; }
.oss-kv li { margin: 0 0 3px; }
.oss-kv li:last-child { margin-bottom: 0; }
.oss-q { color: var(--text); }
.oss-more { color: var(--muted); }
.oss-grp:last-child { margin-bottom: 0; }
.oss-grp h3 { margin: 0 0 3px; font-size: 15px; font-weight: 600; line-height: 1.4; }
.oss-grp h3 span { margin-left: 6px; font-size: 13px; font-weight: 400; color: var(--muted); }
.oss-grp ul { list-style: none; margin: 0; padding: 0; }
.oss-grp li { margin: 4px 0; color: var(--text-2); }
.st {
  --st: var(--st-rep);
  display: inline-block; margin-right: 3px; padding: 0 7px; border: 1px solid var(--st); border-radius: 999px;
  color: var(--st); font-size: 11px; font-weight: 600; line-height: 1.55; white-space: nowrap; vertical-align: 1px;
}
.st-merged { --st: var(--st-merged); }
.st-open { --st: var(--st-open); }
.st-bug { --st: var(--st-bug); }
.oss-ref { font-weight: 600; }
.oss-logo { width: 1em; height: 1em; margin-right: 4px; border-radius: 2px; vertical-align: -0.14em; }
.oss-logo-si { border-radius: 0; fill: currentColor; }
.oss-res { color: var(--text); }

/* technologies and 'Where I used it': generated by tools/tech_stack.py between the tech and techuse markers */
.sheet p.tech-lead { margin: 0 0 12px; font-size: 14px; color: var(--muted); }
.tech-kv dd { line-height: 1.85; }
.ti { display: inline-block; margin-right: 11px; white-space: nowrap; color: var(--text-2); }
.ti-ico { width: 1em; height: 1em; margin-right: 4px; vertical-align: -0.13em; fill: currentColor; }
.ti sup { margin-left: 1px; font-size: 0.66em; line-height: 0; }
.ti sup a { color: var(--muted); text-decoration: none; font-variant-numeric: tabular-nums; }
.ti sup a:hover { color: var(--accent); }
.uses-list { margin: 0; padding-left: 2.1em; font-size: 14px; line-height: 1.5; }
.uses-list li { margin: 3px 0; color: var(--text-2); }
.uses-list li::marker { color: var(--muted); font-variant-numeric: tabular-nums; }
.uses-list b { color: var(--text); font-weight: 600; }

@media (max-width: 600px) {
  body { font-size: 15px; }
  .bar { padding: 16px 0 12px; }
  .dl { width: 100%; }
  .dl .btn { flex: 1; }
  .sheet { padding: 24px 20px; border-radius: 14px; margin-bottom: 32px; }
  .doc .sheet { margin-top: 16px; }
  .cv-head { grid-template-columns: 1fr; gap: 12px; }
  .cv-head h1 { font-size: 30px; }
  .sheet .headline { font-size: 16px; }
  .contact { padding: 0; text-align: left; line-height: 1.75; }
  .sheet section { margin-top: 24px; }
  .job h3 { font-size: 15.5px; }
  .when { white-space: normal; }
  .kv { gap: 10px; }
  .kv div { grid-template-columns: 1fr; gap: 0; }
}
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }

@page { size: Letter; margin: 0.5in 0.6in 0.55in; }
@media print {
  :root { --text: #000; --text-2: #111; --muted: #444; --rule: #9a9a9a; --accent: #000; }
  html, body { background: #fff; }
  body { font-size: 9.4pt; line-height: 1.36; }
  .sheet p, .job li, .proj li { text-wrap: pretty; }
  .bar { display: none !important; }
  .sheet, .doc .sheet { width: auto; margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; background: #fff; }
  a, .contact a { color: inherit; text-decoration: underline; text-decoration-color: #b4b4b4; text-decoration-thickness: 0.5pt; text-underline-offset: 2pt; }
  .cv-head { gap: 8pt 24pt; }
  .cv-head h1 { font-size: 23pt; margin-bottom: 5pt; }
  .sheet .headline { font-size: 11pt; margin-bottom: 5pt; }
  .sheet .where, .contact { font-size: 9pt; line-height: 1.5; }
  .contact { padding-top: 2pt; }
  .sheet section { margin-top: 8pt; }
  .sheet h2 { font-size: 8.6pt; margin-bottom: 5pt; padding-bottom: 3pt; break-after: avoid; page-break-after: avoid; }
  .job { margin-bottom: 7pt; break-inside: avoid; page-break-inside: avoid; }
  .job h3 { font-size: 10.6pt; }
  .when { font-size: 9.2pt; }
  .job ul { margin-top: 2pt; }
  .job li, .proj li { margin: 1.5pt 0; }
  .proj li, .kv div { break-inside: avoid; page-break-inside: avoid; }
  .kv { gap: 2pt; }
  .kv div { grid-template-columns: 84pt 1fr; gap: 8pt; }
  .sheet p.oss-lead { margin-bottom: 4pt; }
  .oss-grp { margin-bottom: 6pt; }
  .oss-grp h3 { font-size: 10.2pt; margin-bottom: 1pt; break-after: avoid; page-break-after: avoid; }
  .oss-grp h3 span { font-size: 8.6pt; }
  .oss-grp li { margin: 2pt 0; break-inside: avoid; page-break-inside: avoid; }
  .oss-kv li { margin: 0; break-inside: avoid; page-break-inside: avoid; }
  .st { font-size: 6.6pt; padding: 0 3pt; border-width: 0.6pt; }
  .oss-kv .st { display: inline-block; min-width: 34pt; text-align: center; line-height: 1.3; }
  .oss-kv .st-bug { min-width: 0; }
  .sheet p.tech-lead { margin-bottom: 4pt; font-size: 8.6pt; }
  .tech-kv { display: block; }
  .tech-kv div { display: block; margin: 0 0 1pt; }
  .tech-kv dt { display: inline; margin-right: 5pt; font-size: 8.9pt; }
  .tech-kv dd { display: inline; line-height: 1.26; font-size: 8.9pt; }
  .ti { margin-right: 6pt; }
  .uses-list { padding-left: 1.9em; font-size: 7.5pt; line-height: 1.22; columns: 2; column-gap: 16pt; }
  .uses-list li { margin: 0; break-inside: avoid; page-break-inside: avoid; }
  .uses-list b { display: none; } /* footnote style in the PDF: the number points back to the Technologies entry */
}
