:root {
  --ink: #111;
  --link: #1155cc;
  --chrome: #222;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: #fff;
  color: var(--ink);
  font-family: Helvetica, Arial, ui-sans-serif, sans-serif;
}

.page {
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 28px 80px;
}

.chrome {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.lang {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.lang a {
  color: #888;
  text-decoration: none;
}

.lang a:hover { color: var(--ink); }

.lang a.active {
  color: var(--ink);
  border-bottom: 4px solid var(--ink);
  padding-bottom: 2px;
}

.lang-sep { color: #ccc; font-weight: 400; }

.pdf-btn {
  font-size: 18px;
  font-weight: 700;
  color: var(--chrome);
  text-decoration: none;
  border-bottom: 2px solid var(--chrome);
  padding-bottom: 2px;
}

.pdf-btn:hover { opacity: 0.7; }

.cv { font-size: 15.5px; line-height: 1.45; }

.name {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}

.header-body { margin-bottom: 8px; }

.md p { margin: 0 0 0.35em; }
.md p:last-child { margin-bottom: 0; }

.cv a {
  color: var(--link);
  text-decoration: underline;
}

.cv-section { margin-top: 26px; }

.cv-section h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 10px;
}

.job { margin: 0 0 22px; }
.job:last-child { margin-bottom: 0; }

.job p:first-child {
  font-size: 17px;
  margin-bottom: 2px;
}

.md ul {
  margin: 6px 0 0;
  padding-left: 1.35em;
}

.md li { margin: 0.15em 0; }

.md ul { list-style-type: disc; }
.md ul ul {
  list-style-type: circle;
  margin-top: 2px;
  margin-bottom: 4px;
}

.md strong { font-weight: 700; }
.md em { font-style: italic; }
.md strong em,
.md em strong { font-style: italic; font-weight: 700; }

@media (max-width: 640px) {
  .page { padding: 20px 16px 64px; }
  .lang { font-size: 22px; }
  .name { font-size: 24px; }
}

@media print {
  .chrome { display: none !important; }
  .page { padding: 0; max-width: none; }
  a { color: var(--link); }
}

body.is-pdf .chrome { display: none !important; }
body.is-pdf .page { padding: 12px 8px; }
