/*
  resume.css: the résumé at /resume/. On screen a letter-size sheet on the site's night ground; in
  print and in the PDF, the sheet alone on US Letter with half-inch margins, two pages.
*/

:root {
  --ink: #16181c;
  --ink-2: #454a52;
  --rule: #d9d4ca;
  --accent: #b8431a;
  --ff-body-x: var(--ff-body, "Instrument Sans", system-ui, sans-serif);
  --ff-display-x: var(--ff-display, "Fraunces", Georgia, serif);
  --ff-mono-x: var(--ff-mono, "JetBrains Mono", ui-monospace, Menlo, monospace);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: #07090c; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; padding: 0 16px 48px; color: var(--ink); font: 400 10.5pt/1.45 var(--ff-body-x); }
html:not(.js) .needs-js { display: none; }

.toolbar {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  max-width: 8.5in; margin: 0 auto; padding: 18px 0;
  font: 500 12px/1 var(--ff-mono-x); letter-spacing: .06em; text-transform: uppercase;
}
.toolbar a { color: #9a9082; text-decoration: none; }
.toolbar a:hover { color: #f4ead8; }
.btn {
  display: inline-block; margin-left: 8px; padding: 9px 14px; border: 1px solid rgba(244, 234, 216, .24); border-radius: 6px;
  background: none; color: #f4ead8 !important; font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer;
}
.btn:hover { border-color: #ff6a2a; }

.sheet {
  max-width: 8.5in; margin: 0 auto; padding: 0.55in 0.6in 0.6in;
  background: #fbfaf7; border-radius: 4px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}

.head { border-bottom: 2px solid var(--ink); padding-bottom: 10px; margin-bottom: 4px; }
h1 { margin: 0; font: 400 28pt/1.05 var(--ff-display-x); letter-spacing: -.01em; }
.title { margin: 4px 0 6px; font-weight: 600; font-size: 11.5pt; }
.contact { margin: 0; font-size: 9.5pt; color: var(--ink-2); }
a { color: inherit; text-decoration: none; }
.contact a { border-bottom: 1px solid var(--rule); }

section { margin-top: 14px; }
h2 {
  margin: 0 0 6px; padding-bottom: 3px; border-bottom: 1px solid var(--rule);
  font: 600 8.5pt/1.2 var(--ff-mono-x); letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
}
p { margin: 0 0 6px; }
ul { margin: 4px 0 0; padding-left: 1.1em; }
li { margin: 0 0 3px; }
li::marker { color: var(--accent); }
code { font: 8.8pt var(--ff-mono-x); }
strong { font-weight: 600; }

.job { margin-bottom: 10px; break-inside: avoid-page; }
.job > header { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
h3 { margin: 0; font-size: 11pt; font-weight: 600; }
.when { margin: 0; font: 400 8.8pt/1 var(--ff-mono-x); color: var(--ink-2); white-space: nowrap; }
.role { margin: 1px 0 2px; font-style: italic; color: var(--ink-2); }
.conf { font-weight: 400; font-size: 9pt; color: var(--ink-2); }

.projects li { margin-bottom: 5px; }

.cols { display: grid; grid-template-columns: 1.7fr 1fr; gap: 24px; }
.skills { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; }
.skills dt { font-weight: 600; }
.skills dd { margin: 0; }
.edu { margin-bottom: 8px; }

@media (max-width: 700px) {
  body { font-size: 10pt; }
  .sheet { padding: 24px 20px; }
  .job > header { flex-direction: column; gap: 2px; }
  .cols { grid-template-columns: 1fr; }
  .skills { grid-template-columns: 1fr; }
  .skills dd { margin-bottom: 6px; }
}

@media print {
  @page { size: letter; margin: 0.5in; }
  html, body { background: #fff; padding: 0; }
  .toolbar { display: none; }
  .sheet { max-width: none; padding: 0; box-shadow: none; border-radius: 0; background: #fff; }
  /* A grid will not split across pages; in print the two columns stack. */
  .cols { display: block; }
  .cols > div + div { margin-top: 14px; }
  .edu { display: inline-block; width: 49%; vertical-align: top; }
  body { font-size: 10.2pt; line-height: 1.4; }
  section { margin-top: 11px; }
  li { margin-bottom: 2px; }
  .job { margin-bottom: 8px; }
  h2 { break-after: avoid-page; }
}
