:root {
  color-scheme: light;
  --ink: #15191c;
  --soft: #424b52;
  --muted: #59636b;
  --line: #d9dfe2;
  --paper: #fff;
  --field: #edf0f1;
  --accent: #b38a2d;
}
* { box-sizing: border-box; }
html { background: var(--field); color: var(--ink); font-family: "interstate", Arial, "Helvetica Neue", Helvetica, sans-serif; font-size: 16px; line-height: 1.48; }
body { margin: 0; padding: 28px 20px 48px; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #785c1d; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.workbench { width: min(100%, 210mm); margin: 0 auto 18px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.workbench p { margin: 0; font-size: 0.78rem; }
.workbench strong { display: block; letter-spacing: 0.08em; }
.workbench span { display: block; color: var(--muted); }
button { border: 1px solid var(--ink); border-radius: 4px; background: var(--ink); color: white; padding: 11px 15px; font: inherit; font-size: 0.78rem; cursor: pointer; }
button:hover { background: #333c43; }
.sheet { position: relative; width: min(100%, 210mm); min-height: 297mm; margin: 0 auto 24px; padding: 14mm 16mm 24mm; background: var(--paper); box-shadow: 0 12px 40px rgb(21 25 28 / 9%); }
p, h1, h2, h3, dl { margin-top: 0; }
p { margin-bottom: 10px; }
.masthead { border-top: 5px solid var(--accent); border-bottom: 2px solid var(--ink); padding: 17px 0 15px; }
.kicker { margin-bottom: 10px; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.11em; text-transform: uppercase; }
.page-number { color: var(--accent); font-size: 0.8rem; font-weight: 700; letter-spacing: normal; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
.page-footer { position: absolute; bottom: 14mm; right: 16mm; text-align: right; line-height: 1; }
h1 { margin-bottom: 9px; font-size: 2.85rem; line-height: 1.06; letter-spacing: -0.045em; }
.role { margin-bottom: 4px; font-size: 1.45rem; font-weight: 700; line-height: 1.2; }
.specialty { margin-bottom: 14px; font-size: 0.84rem; font-weight: 700; }
.contact { color: var(--soft); font-size: 0.8rem; font-style: normal; overflow-wrap: anywhere; }
.contact p { margin-bottom: 4px; }
.availability { margin: 9px 0 0; font-size: 0.78rem; font-weight: 700; }
main section { margin-top: 20px; }
h2 { margin-bottom: 10px; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; }
main h2 { color: var(--accent); print-color-adjust: exact; -webkit-print-color-adjust: exact; }
.profile p { font-size: 0.89rem; color: var(--soft); }
strong { color: var(--ink); }
.skill-list { margin-bottom: 0; border-top: 1px solid var(--line); }
.skill-list > div { padding: 9px 0; border-bottom: 1px solid var(--line); }
dt { margin-bottom: 2px; font-size: 0.8rem; font-weight: 700; }
dd { margin: 0; color: var(--soft); font-size: 0.83rem; }
.job { margin-top: 13px; }
h3 { margin-bottom: 3px; font-size: 0.96rem; line-height: 1.3; }
.employer { font-weight: 400; }
.dates { margin-bottom: 7px; color: var(--muted); font-size: 0.77rem; }
.job ul { margin: 0; padding-left: 18px; }
.job li, .job > p:not(.dates) { font-size: 0.84rem; color: var(--soft); }
.job li + li { margin-top: 4px; }
.job + .job { padding-top: 13px; border-top: 1px solid var(--line); }
.continuation-heading { padding-bottom: 12px; border-bottom: 1px solid var(--accent); font-size: 0.8rem; font-weight: 700; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
.qualification { padding: 9px 0; border-top: 1px solid var(--line); }
.qualification h3 { font-size: 0.88rem; }
.qualification p { margin-bottom: 0; font-size: 0.8rem; color: var(--muted); }
@media screen and (max-width: 600px) {
  body { padding: 12px 0 24px; }
  .workbench { padding: 0 18px; align-items: flex-start; flex-direction: column; }
  .sheet { min-height: 0; padding: 26px 22px 60px; margin-bottom: 14px; }
  .page-footer { bottom: 22px; right: 22px; }
  h1 { font-size: 2.3rem; }
  .role { font-size: 1.3rem; }
}
@media print {
  @page { size: A4; margin: 12mm 14mm; }
  html { background: white; font-size: 10pt; line-height: 1.35; }
  body { padding: 0; }
  .workbench { display: none !important; }
  .sheet { width: auto; min-height: 265mm; margin: 0; padding: 0 0 8mm; box-shadow: none; }
  .page-footer { top: 261mm; bottom: auto; right: 0; }
  .sheet + .sheet { break-before: page; }
  .masthead { padding: 10px 0; border-top-width: 3px; }
  h1 { font-size: 27pt; }
  .role { font-size: 16pt; }
  .specialty { font-size: 10pt; margin-bottom: 8px; }
  .kicker { font-size: 8pt; margin-bottom: 7px; }
  .page-number { font-size: 9pt; }
  .contact, .availability { font-size: 9pt; }
  main section { margin-top: 13px; }
  h2 { font-size: 9pt; margin-bottom: 7px; break-after: avoid; }
  .profile p, dd, .job li, .job > p:not(.dates) { font-size: 10pt; }
  dt { font-size: 10pt; }
  .skill-list > div { padding: 5px 0; break-inside: avoid; }
  h3 { font-size: 11pt; break-after: avoid; }
  .dates { font-size: 9pt; break-after: avoid; }
  .job { margin-top: 9px; break-inside: avoid; }
  .job + .job { padding-top: 9px; }
  .job li + li { margin-top: 2px; }
  .qualification { padding: 7px 0; break-inside: avoid; }
  .qualification h3 { font-size: 10pt; }
  .qualification p, .continuation-heading { font-size: 9pt; }
  .primary { min-height: 265mm; display: flex; flex-direction: column; justify-content: space-between; line-height: 1.35; }
  .primary > header, .primary > section { flex: 0 0 auto; }
  .primary .masthead { padding: 8px 0; }
  .primary .specialty { margin-bottom: 6px; }
  .primary .availability { margin-top: 6px; }
  .primary section { margin-top: 10px; }
  .primary h2 { margin-bottom: 6px; }
  .primary .profile p { margin-bottom: 0; }
  .primary .skill-list > div { padding: 3px 0; }
  .primary dt, .primary dd { display: inline; margin: 0; }
  .primary dt::after { content: " : "; }
  .primary .job { margin-top: 7px; }
  .primary .job + .job { padding-top: 7px; }
  .primary .dates { margin-bottom: 5px; }
  .primary .job li + li { margin-top: 3px; }
  a { text-decoration: none; }
}
