:root {
  --text: #111;
  --muted: #555;
  --line: #e6e6e6;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, "Noto Sans", "Liberation Sans",
    sans-serif;
  font-size: 10.6pt;
  line-height: 1.36;
  background: #fff;
}

.page {
  max-width: 210mm;
  margin: 0 auto;
  padding: 12mm;
}

.layout {
  display: grid;
  grid-template-columns: 58mm 1fr;
  gap: 8mm;
}

.sidebar {
  border-right: 1px solid var(--line);
  padding-right: 7mm;
}

.main {
  padding-left: 0;
}

.photo {
  width: 48mm;
  height: 48mm;
  border-radius: 12mm;
  overflow: hidden;
  border: 1px solid var(--line);
  margin-bottom: 5mm;
}

.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

h1 {
  font-size: 19pt;
  line-height: 1.15;
  margin: 0 0 2mm 0;
  letter-spacing: 0.2px;
}

.title {
  font-size: 12pt;
  margin: 0 0 5mm 0;
  color: var(--muted);
}

.block {
  margin-bottom: 4.5mm;
}

.label {
  font-weight: 700;
  font-size: 10.5pt;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin: 0 0 2.5mm 0;
}

.muted {
  color: var(--muted);
}

.contact {
  display: grid;
  gap: 2mm;
}

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

.contact a:hover {
  text-decoration: underline;
}

ul {
  margin: 2mm 0 0 0;
  padding-left: 4.5mm;
}

li {
  margin: 1mm 0;
}

.skills ul {
  padding-left: 0;
  list-style: none;
  margin-top: 0;
}

.skills li {
  margin: 1.2mm 0;
}

.skills strong {
  font-weight: 700;
}

.proj {
  margin-bottom: 4mm;
  break-inside: avoid;
  page-break-inside: avoid;
}

.proj h3 {
  font-size: 12.5pt;
  margin: 0;
}

.proj .link {
  margin-top: 1mm;
  color: var(--muted);
  font-size: 10.8pt;
}

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

.proj .link a:hover {
  text-decoration: underline;
}

.hr {
  height: 1px;
  background: var(--line);
  margin: 3.5mm 0;
}

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

@media print {
  body {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .page {
    padding: 12mm;
  }
}
