:root {
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-feature-settings: "zero" 1;
  font-size: 10.2px;
  line-height: 1.28;
  color: #111;
  background: #fff;
}

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

.cv {
  max-width: 190mm;
  margin: 0 auto;
  padding: 15mm 0 10mm;
}

.cv-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  border-bottom: 1px solid #aaa;
  padding-bottom: 1em;
  margin-bottom: 1em;
}

.cv-title h1 {
  font-size: 30px;
  font-weight: 950;
  line-height: 1;
  margin: 0 0 2px;
  letter-spacing: -0.05em;
}

.cv-label {
  font-size: 12px;
  font-weight: 500;
  color: #888;
  margin: 0 0 6px;
  letter-spacing: 0.025em;
}

.cv-contact {
  font-size: 9px;
}

.cv-contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  justify-content: flex-end;
}

.cv-contact-list li {
  white-space: nowrap;
}

.cv-contact-list li::after {
  content: "·";
  margin-left: 8px;
  color: #888;
}

.cv-contact-list li:last-child::after {
  content: "";
  margin: 0;
}

.cv-contact-list a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.cv-icon {
  display: inline-flex;
  width: 10px;
  height: 10px;
  color: #222;
}

.cv-icon-svg {
  width: 10px;
  height: 10px;
}

.cv-summary {
  margin-bottom: 10px;
}

.cv-summary p {
  margin: 0 0 4px;
}

.cv-section {
  margin-bottom: 12px;
  break-inside: avoid;
}

.cv-section h2 {
  font-size: 16px;
  font-weight: 900;
  margin: 16px 0 9px;
  text-transform: none;
  letter-spacing: -0.02em;
  color: #111;
}

.cv-experience {
  margin: 8px 0 12px;
}

.cv-experience h2 {
  font-weight: 900;
}

.cv-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.cv-column {
  min-width: 0;
}

.cv-skill {
  margin-bottom: 8px;
}

.cv-skill h3 {
  font-size: 11px;
  margin: 0 0 3px;
  font-weight: 700;
}

.cv-inline-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cv-inline-list li {
  display: inline;
  margin-right: 6px;
  color: #333;
}

.cv-inline-list li::after {
  content: "·";
  margin-left: 6px;
  color: #888;
}

.cv-inline-list li:last-child::after {
  content: "";
  margin: 0;
}

.cv-list,
.cv-strengths,
.cv-compact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cv-list li,
.cv-strengths li,
.cv-compact-item {
  margin-bottom: 6px;
}

.cv-compact-list-spaced .cv-compact-item {
  margin-bottom: 10px;
}

.cv-strengths strong {
  font-weight: 600;
}

.cv-item {
  margin-bottom: 8px;
  break-inside: avoid;
}

.cv-experience .cv-item {
  padding-bottom: 8px;
  border-bottom: 0.35pt solid #cfcfcf;
}

.cv-experience .cv-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.cv-section-projects .cv-item {
  margin-bottom: 16px;
}

.cv-work-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.cv-logo-wrap {
  width: 24px;
  flex: 0 0 24px;
}

.cv-logo {
  width: 22px;
  height: 22px;
  object-fit: contain;
  margin-top: 2px;
}

.cv-work-content {
  flex: 1;
}

.cv-meta {
  font-size: 8.8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #555;
  margin-bottom: 2px;
}

.cv-meta-right {
  margin-left: auto;
  text-align: right;
  white-space: nowrap;
  font-size: 8.6px;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.045em;
}

.cv-role {
  font-size: 12.4px;
  font-weight: 500;
  margin-bottom: 2px;
  color: #222;
}

.cv-compact-list .cv-role {
  font-size: 10px;
  font-weight: 600;
}

.cv-role-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.cv-position {
  font-weight: 700;
  color: #000;
}

.cv-company {
  font-weight: 500;
  color: #333;
}

.cv-summary-text {
  margin: 0 0 4px;
  color: #333;
}

.cv-bullets {
  margin: 0 0 4px;
  padding-left: 52px;
  list-style: none;
  font-size: 9.2px;
  line-height: 1.2;
}

.cv-bullets li {
  margin-bottom: 1px;
  position: relative;
}

.cv-bullets li::before {
  content: "•";
  position: absolute;
  left: -18px;
  color: #666;
}

.cv-tags {
  font-size: 8.8px;
  color: #555;
  margin: 0;
  padding-left: 0;
}

.cv-tags-work {
  padding-left: 32px;
}

.cv-project-roles {
  margin-bottom: 4px;
}

::selection {
  background: #dfff4f;
  color: #111;
}

::-moz-selection {
  background: #dfff4f;
  color: #111;
}

.cv-muted {
  font-size: 8.8px;
  color: #555;
}

.cv-footer {
  margin-top: 6px;
  font-size: 8px;
  color: #777;
  text-align: right;
  letter-spacing: 0.02em;
}

@media print {
  @page {
    size: A4;
    margin: 16mm 8mm 8mm;
    padding: 0;
  }
  .cv {
    padding: 0;
  }

  .cv-page-1 {
    page-break-after: always;
  }

  .cv-page-2 {
    padding-top: 2mm;
  }

  .cv-page {
    position: relative;
    min-height: 277mm;
    padding-bottom: 8mm;
  }

  .cv-footer {
    position: absolute;
    bottom: 0;
    right: 0;
    margin: 0;
  }

  .cv-header,
  .cv-summary,
  .cv-experience {
    page-break-after: avoid;
  }

  .cv-section,
  .cv-item,
  .cv-compact-item {
    page-break-inside: avoid;
  }
}
