/* ------------------------------------------------------------------
   Printable CV (A4). Navy header band, one blue accent, three key
   facts under the header, tinted sidebar, dates in a left gutter.
   Screen shows the same sheet on a grey backdrop.
   ------------------------------------------------------------------ */

:root {
  --ink: #111827;
  --ink-2: #374151;
  --ink-3: #5b6472;
  --rule: #d1d5db;
  --accent: #1d4ed8;
  --accent-2: #047857;
  --violet: #7c3aed;
  --mint: #34d399;
  --navy: #050b14;
  --navy-text: #b6c2d3;
  --sky: #60a5fa;
  --panel: #f0f5fb;
  --panel-rule: #c7d6ea;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Space Grotesk", var(--font-sans);
}

@page { size: A4; margin: 0; }

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: #e9ecef;
  font-size: 10pt;
  line-height: 1.42;
  -webkit-font-smoothing: antialiased;
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
a { color: inherit; text-decoration: none; }
p, ul, h1, h2, h3 { margin: 0; }
ul { padding: 0; list-style: none; }

/* ---------- the sheet ---------- */
.page {
  width: 210mm; min-height: 297mm; margin: 24px auto;
  padding: 0 16mm 12mm;
  background: #fff;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .18);
}
@media screen and (max-width: 820px) { .page { width: 100%; margin: 0; padding: 0 16px 20px; } }

/* ---------- header band ---------- */
.cv-head {
  display: flex; gap: 6mm; align-items: center;
  margin: 0 -16mm 3.5mm; padding: 8mm 16mm 5.5mm;
  background: var(--navy); color: #fff;
}
@media screen and (max-width: 820px) { .cv-head { margin: 0 -16px 16px; padding: 20px 16px 16px; } }
.cv-head__photo { width: 22mm; height: 22mm; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 1.2mm var(--navy), 0 0 0 1.8mm var(--sky); }
.cv-head__text { flex: 1 1 auto; min-width: 0; }
.cv-head h1 { font-family: var(--font-display); font-size: 22pt; font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; color: #fff; }
.cv-head__headline { margin-top: 2px; font-size: 11.5pt; font-weight: 600; color: #fff; }
.cv-head__headline .hl { color: var(--sky); }
.cv-head__looking { margin-top: 2.4mm; font-size: 9.4pt; color: #fff; }
.cv-head__looking b { display: block; font-weight: 600; color: var(--mint); }
.cv-head__meta { margin: 0 0 1.6mm; display: flex; align-items: center; gap: 1.2mm; font-size: 8.8pt; color: var(--navy-text); }
.cv-head__contact { flex: none; margin-left: auto; align-self: center; display: flex; flex-direction: column; align-items: flex-end; gap: 1.6mm; font-size: 8.8pt; color: var(--navy-text); }
.cv-head__contact li { display: inline-flex; align-items: center; gap: 1.4mm; white-space: nowrap; }
.cv-head__contact a:hover { color: #fff; }
.cv-head svg { width: 1.15em; height: 1.15em; fill: none; stroke: var(--sky); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
@media screen and (max-width: 820px) {
  .cv-head { flex-wrap: wrap; }
  .cv-head__contact { flex-basis: 100%; margin-left: 0; align-items: flex-start; }
}

/* ---------- key facts ---------- */
.cv-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3mm; margin: 0 0 2.8mm; }
.cv-stat { padding: 1.3mm 3mm; border: 0.6pt solid #dbe4f0; border-radius: 2mm; background: #f6f9fd; }
.cv-stat__value { font-family: var(--font-display); font-weight: 700; font-size: 14pt; color: var(--accent); line-height: 1; }
.cv-stat__value small { font-size: 8pt; font-weight: 600; color: var(--ink-2); margin-left: 1mm; }
.cv-stat:nth-child(2) .cv-stat__value { color: var(--violet); }
.cv-stat:nth-child(3) .cv-stat__value { color: var(--accent-2); }
.cv-stat__label { font-size: 7.8pt; color: var(--ink-3); margin-top: .8mm; line-height: 1.25; }
@media screen and (max-width: 820px) { .cv-stats { grid-template-columns: 1fr; } }

/* ---------- body columns ---------- */
.cv-body { display: grid; grid-template-columns: 1fr 52mm; gap: 7mm; }
@media screen and (max-width: 820px) { .cv-body { grid-template-columns: 1fr; } }

.cv-section + .cv-section { margin-top: 3mm; }
.cv-section h2 {
  font-family: var(--font-display); font-size: 8.2pt; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); padding-bottom: 1.6mm; margin-bottom: 2.8mm; border-bottom: 0.75pt solid var(--accent);
}
.cv-section h2 { display: flex; align-items: baseline; gap: 3mm; }
.cv-section__when { font-family: var(--font-sans); font-size: 8.6pt; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ink-3); }
.cv-section__when:empty { display: none; }

.cv-prose p + p { margin-top: 1.8mm; }
.cv-prose { color: var(--ink-2); font-size: 8.8pt; line-height: 1.36; }

/* jobs: date gutter on the left */
.cv-job { display: grid; grid-template-columns: 24mm 1fr; gap: 0 4mm; break-inside: avoid; }
.cv-job--single { grid-template-columns: 1fr; }
.cv-job + .cv-job { margin-top: 4mm; }
.cv-job__when { font-size: 8.6pt; font-weight: 600; color: var(--accent); padding-top: 1.1pt; line-height: 1.35; }
.cv-job__role { font-family: var(--font-display); font-size: 11pt; font-weight: 700; letter-spacing: -0.01em; }
.cv-job__rolerow { display: flex; justify-content: space-between; align-items: baseline; gap: 4mm; }
.cv-job__role-when { font-size: 8.6pt; font-weight: 600; color: var(--accent); white-space: nowrap; }
.cv-job__rolerow--past { margin-top: .4mm; }
.cv-job__rolerow--past .cv-job__role { font-size: 9.6pt; font-weight: 600; color: var(--ink-2); }
.cv-job__rolerow--past .cv-job__role-when { color: var(--ink-3); }
.cv-job__rolerow--past + .cv-job__company { margin-top: 1.2mm; }
.cv-job__company { font-size: 9.4pt; font-weight: 600; color: var(--ink-2); }
.cv-job__company span { font-weight: 400; color: var(--ink-3); }
.cv-job__intro { margin-top: 1.2mm; color: var(--ink-2); font-size: 8.8pt; line-height: 1.36; }
.cv-job__products { margin-top: 1.4mm; font-size: 8.8pt; line-height: 1.36; color: var(--ink-2); }
.cv-job__products b { color: var(--ink); font-weight: 600; }
.cv-job__bullets { margin-top: 1.8mm; display: grid; gap: .9mm; }
.cv-job__bullets li { position: relative; padding-left: 3.4mm; color: var(--ink-2); font-size: 8.8pt; line-height: 1.36; }
.cv-job__bullets li::before { content: ""; position: absolute; left: 0; top: 1.35mm; width: 1.6mm; height: 1.6mm; border-radius: 50%; background: var(--accent); }
.cv-job__bullets li b { color: var(--ink); font-weight: 600; }
.cv-side .cv-job { grid-template-columns: 1fr; gap: 0; }
.cv-side .cv-job__when { font-size: 8.4pt; }
.cv-job--edu b { font-size: 9.4pt; color: var(--ink); }
.cv-job--edu .cv-job__company { font-weight: 400; }

/* sidebar panel */
.cv-side { background: var(--panel); padding: 2.6mm; border-radius: 2.5mm; align-self: start; }
.cv-side .cv-section h2 { border-bottom-color: var(--panel-rule); }
.cv-skill-group + .cv-skill-group { margin-top: 2mm; }
.cv-skill-group h3 { font-size: 8.6pt; font-weight: 700; color: var(--accent); margin-bottom: .6mm; break-after: avoid; }
.cv-skill-group p { font-size: 8.1pt; color: var(--ink-2); line-height: 1.32; }
.cv-skill-group { break-inside: avoid; }

.cv-langs li { font-size: 9pt; color: var(--ink-2); display: flex; justify-content: space-between; gap: 6px; }
.cv-langs b { color: var(--ink); font-weight: 600; }

.cv-foot { margin-top: 2.5mm; padding-top: 1.5mm; border-top: 0.5pt solid var(--rule); font-size: 7.4pt; color: var(--ink-3); }

/* ---------- print ---------- */
@media print {
  body { background: #fff; }
  .page { width: auto; min-height: 0; margin: 0; padding: 0 15mm 6mm; box-shadow: none; }
  .cv-head { margin: 0 -15mm 3.5mm; padding: 7mm 15mm 5mm; break-inside: avoid; }
  .cv-section h2 { break-after: avoid; }
}
