/* CV: two A4 pages. Same palette as the website's calm state. */
@font-face { font-family: "Anton"; src: url("assets/fonts/Anton-Regular.woff") format("woff"); }
@font-face { font-family: "Fira Sans"; font-weight: 400; src: url("assets/fonts/FiraSans-Regular.woff") format("woff"); }
@font-face { font-family: "Fira Sans"; font-weight: 400; font-style: italic; src: url("assets/fonts/FiraSans-Italic.woff") format("woff"); }
@font-face { font-family: "Fira Sans"; font-weight: 500; src: url("assets/fonts/FiraSans-Medium.woff") format("woff"); }
@font-face { font-family: "Fira Sans"; font-weight: 600; src: url("assets/fonts/FiraSans-SemiBold.woff") format("woff"); }
@font-face { font-family: "Fira Sans"; font-weight: 700; src: url("assets/fonts/FiraSans-Bold.woff") format("woff"); }

:root { --paper: #D9D5D0; --ink: #191B14; --soft: #55574E; --olive: #4A5632; --line: #C9C5BF; --m: 15mm; }
@page { size: A4; margin: 0; }
* { box-sizing: border-box; }
html { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
body { margin: 0; background: #8f8c88; color: var(--ink); font: 400 9.6pt/1.45 "Fira Sans", system-ui, sans-serif; }
h1, h2, h3 { font-family: "Anton", Impact, sans-serif; font-weight: 400; margin: 0; line-height: 1; }
p { margin: 0; }

.bar { display: flex; justify-content: space-between; align-items: center; padding: 2px 8px; background: var(--ink); color: var(--paper); font-size: 14px; position: sticky; top: 0; z-index: 5; }
.bar a { color: inherit; display: inline-block; padding: 8px; margin-right: 4px; }
.bar a[aria-current] { font-weight: 700; text-decoration: none; }
.bar button { font: inherit; font-weight: 600; background: var(--paper); color: var(--ink); border: 0; padding: 6px 12px; cursor: pointer; }

.page { width: 210mm; height: 297mm; background: #fff; margin: 8mm auto; position: relative; overflow: hidden; box-shadow: 0 4px 30px rgba(0, 0, 0, .35); break-after: page; }
.page:last-child { break-after: auto; }

/* header band: the studio backdrop, with the cut-out portrait standing in it */
.head { background: var(--paper); height: 62mm; padding: 0 var(--m); display: flex; justify-content: space-between; align-items: flex-end; overflow: hidden; }
.head__text { align-self: center; }
.head h1 { font-size: 46pt; letter-spacing: .01em; }
.head__title { font-size: 13.5pt; font-weight: 600; color: var(--olive); margin-top: 3mm; }
.head__contact { margin-top: 5mm; font-size: 9.6pt; font-weight: 500; display: flex; flex-wrap: wrap; gap: 1mm 5mm; }
.head__img { height: 58mm; width: auto; margin-right: -4mm; display: block; }

.cols { display: grid; grid-template-columns: minmax(0, 1fr) 53mm; gap: 9mm; padding: 8mm var(--m) 0; }
.page--2 .cols { padding-top: 10mm; }
.profile { font-size: 11.2pt; line-height: 1.45; margin-bottom: 7mm; }

.block { margin-bottom: 6.5mm; }
.block h2 { font-size: 15pt; padding-bottom: 1.6mm; margin-bottom: 3.2mm; border-bottom: 1.4pt solid var(--ink); }
aside .block h2 { font-size: 13pt; }
aside { font-size: 9pt; line-height: 1.42; }

.job { margin-bottom: 5mm; break-inside: avoid; }
.job header { display: flex; justify-content: space-between; align-items: baseline; gap: 4mm; }
.job h3 { font-size: 14pt; }
.when { font-variant-numeric: tabular-nums; font-weight: 600; font-size: 9pt; color: var(--soft); white-space: nowrap; }
.role { color: var(--olive); font-weight: 600; margin: 1mm 0 1.6mm; }
.job ul { margin: 0; padding-left: 4mm; }
.job li { margin-bottom: 1.1mm; padding-left: .5mm; }
.job li::marker { color: var(--olive); }

.row { display: grid; grid-template-columns: 24mm minmax(0, 1fr); gap: 3mm; padding: 1.5mm 0; border-bottom: .6pt solid var(--line); }
.row:last-child { border-bottom: 0; }

.edu, .skill { display: flex; flex-direction: column; margin-bottom: 3.4mm; }
.edu b, .skill b, .lng b { font-weight: 600; }
.skill b { color: var(--olive); }
.muted { color: var(--soft); }
.lng { display: flex; flex-direction: column; margin-bottom: 1.5mm; }
.lng span { color: var(--soft); }

.pfoot { position: absolute; left: var(--m); right: var(--m); bottom: 8mm; display: flex; justify-content: space-between; font-size: 8pt; color: var(--soft); border-top: .6pt solid var(--line); padding-top: 2mm; }

@media print {
  body { background: #fff; }
  .bar { display: none; }
  .page { margin: 0; box-shadow: none; }
}
@media screen and (max-width: 820px) {
  #cv { zoom: .46; }
}

/* stack figure inside the current job */
.fig { margin: 3mm 0 0; }
.fig figcaption { font-family: "Anton", sans-serif; font-size: 11pt; margin-bottom: 2mm; }
.fig__grid { display: grid; grid-template-columns: 6.5mm minmax(0, 1fr) 6.5mm; grid-template-rows: repeat(5, 5.6mm); gap: 1mm; }
.fig__row { grid-column: 2; border: .9pt solid var(--ink); display: flex; align-items: center; justify-content: space-between; gap: 3mm; padding: 0 2.4mm; }
.fig__row b { font-family: "Anton", sans-serif; font-weight: 400; font-size: 10pt; white-space: nowrap; }
.fig__row span { font-size: 7.6pt; color: var(--soft); text-align: right; line-height: 1.2; }
.fig__rail { grid-row: 1 / -1; background: var(--olive); color: #fff; display: flex; align-items: center; justify-content: center; }
.fig__rail--l { grid-column: 1; }
.fig__rail--r { grid-column: 3; }
.fig__rail--b { grid-column: 1 / -1; grid-row: 6; height: 4.5mm; }
.fig__grid .fig__rail--b span { writing-mode: horizontal-tb; letter-spacing: .3em; font-size: 8pt; }
.fig__rail span { writing-mode: vertical-rl; font-family: "Anton", sans-serif; font-size: 9pt; letter-spacing: .05em; }
.fig__rail--l span { transform: rotate(180deg); }

.head__contact a { color: inherit; text-decoration: none; }
