/* Print-ready CV (assets/nikolay-baakh-cv-print.html). Kept separate from site.css:
   A4 page geometry, light theme, and a Print / Save as PDF bar hidden when printing. */

@font-face {
  font-family: 'Inter';
  src: url('../fonts/InterVariable.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
/* The CV was designed with Roboto Mono; the site's JetBrains Mono file stands in for it */
@font-face {
  font-family: 'Roboto Mono';
  src: url('../fonts/JetBrainsMono-var.woff2') format('woff2');
  font-weight: 100 800;
  font-display: swap;
}

/* ── Reset ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Page setup ──────────────────────────────────────── */
@page {
  size: A4;
  margin: 0;
}

html, body {
  width: 210mm;
  min-height: 297mm;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 9pt;
  line-height: 1.5;
  color: #1a1a2e;
  background: #fff;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

/* ── Print button (hidden in print) ─────────────────── */
.print-bar {
  background: #0B0C0E;
  padding: 0.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.print-bar-note {
  font-family: 'Roboto Mono', monospace;
  font-size: 0.7rem;
  color: #9ca3af;
  letter-spacing: 0.06em;
}
.print-bar-note span { color: #007BFF; }
.print-btn {
  font-family: 'Roboto Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: #0063CC;
  color: #fff;
  border: none;
  padding: 0.5rem 1.25rem;
  cursor: pointer;
}
.print-btn:hover { background: #004FA3; }

@media print {
  .print-bar { display: none; }
  html, body { width: auto; }
}

/* ── Layout ──────────────────────────────────────────── */
.page {
  display: grid;
  grid-template-columns: 62mm 1fr;
  min-height: 297mm;
}

/* ── Left sidebar ────────────────────────────────────── */
.sidebar {
  background: #0f1923;
  color: #e2e8f0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.sidebar-header {
  background: #007BFF;
  padding: 28pt 18pt 22pt;
}

.sidebar-name {
  font-size: 18pt;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.sidebar-title {
  font-family: 'Roboto Mono', monospace;
  font-size: 7pt;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 5pt;
}

.sidebar-body {
  padding: 18pt 16pt;
  display: flex;
  flex-direction: column;
  gap: 18pt;
  flex: 1;
}

.s-section-label {
  font-family: 'Roboto Mono', monospace;
  font-size: 6pt;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #4da3ff;
  margin-bottom: 8pt;
  border-bottom: 1px solid rgba(0,123,255,0.25);
  padding-bottom: 4pt;
}

.s-item {
  margin-bottom: 6pt;
}

.s-item-label {
  font-family: 'Roboto Mono', monospace;
  font-size: 6pt;
  color: #94a3b8;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 2pt;
}

.s-item-value {
  font-size: 8pt;
  color: #cbd5e1;
  line-height: 1.4;
}

.s-item-value a {
  color: #93c5fd;
  text-decoration: none;
}

.s-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4pt;
}

.s-tag {
  font-family: 'Roboto Mono', monospace;
  font-size: 6pt;
  letter-spacing: 0.06em;
  padding: 2pt 5pt;
  background: rgba(0,123,255,0.15);
  color: #93c5fd;
  border: 0.5pt solid rgba(0,123,255,0.3);
}

.s-tag-neutral {
  font-family: 'Roboto Mono', monospace;
  font-size: 6pt;
  letter-spacing: 0.06em;
  padding: 2pt 5pt;
  background: rgba(255,255,255,0.05);
  color: #94a3b8;
  border: 0.5pt solid rgba(255,255,255,0.1);
}

.s-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1pt;
  background: rgba(255,255,255,0.05);
}
.s-stat {
  background: #0f1923;
  padding: 8pt 6pt;
}
.s-stat-num {
  font-size: 14pt;
  font-weight: 800;
  color: #f8fafc;
  line-height: 1;
}
.s-stat-num span { color: #007BFF; }
.s-stat-label {
  font-size: 6.5pt;
  color: #94a3b8;
  margin-top: 2pt;
  line-height: 1.3;
}

/* ── Right main content ──────────────────────────────── */
.main {
  padding: 28pt 22pt 22pt 22pt;
  display: flex;
  flex-direction: column;
  gap: 16pt;
}

.m-section {
  display: flex;
  flex-direction: column;
  gap: 10pt;
}

.m-section-label {
  font-family: 'Roboto Mono', monospace;
  font-size: 6pt;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #0063CC;
  padding-bottom: 4pt;
  border-bottom: 1.5pt solid #007BFF;
  margin-bottom: 2pt;
}

.m-summary {
  font-size: 8.5pt;
  color: #374151;
  line-height: 1.75;
}

/* Experience item */
.exp-item {
  padding-bottom: 10pt;
  border-bottom: 0.5pt solid #e5e7eb;
}
.exp-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8pt;
  margin-bottom: 2pt;
}

.exp-role {
  font-size: 9.5pt;
  font-weight: 700;
  color: #111827;
  line-height: 1.2;
}

.exp-date {
  font-family: 'Roboto Mono', monospace;
  font-size: 6pt;
  color: #6b7280;
  letter-spacing: 0.06em;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 2pt;
}

.exp-company {
  font-size: 8pt;
  color: #0063CC;
  font-weight: 500;
  margin-bottom: 5pt;
}

.exp-bullets {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 3pt;
}

.exp-bullets li {
  display: flex;
  gap: 6pt;
  font-size: 8pt;
  color: #4b5563;
  line-height: 1.5;
}

.exp-bullets li::before {
  content: '—';
  color: #007BFF;
  flex-shrink: 0;
  font-weight: 600;
}

.exp-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 3pt;
  margin-top: 5pt;
}
.exp-stack-tag {
  font-family: 'Roboto Mono', monospace;
  font-size: 5.5pt;
  letter-spacing: 0.05em;
  padding: 1.5pt 4pt;
  background: #f3f4f6;
  color: #4b5563;
  border: 0.5pt solid #e5e7eb;
}

/* Education item */
.edu-item {
  display: flex;
  flex-direction: column;
  gap: 1.5pt;
  padding-bottom: 8pt;
  border-bottom: 0.5pt solid #e5e7eb;
}
.edu-item:last-child { border-bottom: none; padding-bottom: 0; }
.edu-degree {
  font-size: 8.5pt;
  font-weight: 600;
  color: #111827;
}
.edu-institution {
  font-size: 7.5pt;
  color: #0063CC;
}
.edu-date {
  font-family: 'Roboto Mono', monospace;
  font-size: 6pt;
  color: #6b7280;
}

/* Page break control */
.no-break { page-break-inside: avoid; }

/* Helpers that replaced inline style attributes (the site CSP forbids those) */
.mt3 { margin-top: 3pt; }
.mt6 { margin-top: 6pt; }
.lang-row { display: flex; justify-content: space-between; align-items: center; }
.fw600 { font-weight: 600; }
.print-bar-note a { color: inherit; text-decoration: none; }
.muted { color: #6b7280; }

/* Phones and narrow windows: reflow the A4 sheet into one readable column (screen only) */
@media screen and (max-width: 820px) {
  html, body { width: auto; min-height: 0; }
  body { zoom: 1.25; }
  .print-bar { flex-wrap: wrap; padding: .6rem 1rem; }
  .page { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .main { padding: 20pt 16pt; }
  .exp-header { flex-wrap: wrap; }
}
