:root {
  --paper: #fffdf8;
  --ink: #17181b;
  --muted: #5f6269;
  --line: #d8d5cd;
  --cyan: #008ebd;
  --magenta: #c41f70;
  --orange: #ef5b12;
  --sans: "Open Sans", "Noto Sans", Arial, sans-serif;
  --mono: "Noto Sans Mono", "DejaVu Sans Mono", monospace;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #e9e7e1;
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.42;
}

a {
  color: inherit;
  text-underline-offset: 0.18em;
}

.cv-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  width: min(calc(100% - 2rem), 210mm);
  margin: 1rem auto;
  font-family: var(--mono);
  font-size: 0.72rem;
}

.cv-actions .download {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  padding: 0.5rem 0.8rem;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
}

.cv-actions .download-icon {
  width: 0.85rem;
  height: 0.85rem;
}

.cv-page {
  position: relative;
  width: 210mm;
  min-height: 297mm;
  margin: 0 auto 2rem;
  padding: 15mm 16mm 13mm;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 20px 60px rgba(23, 24, 27, 0.16);
}

.cv-accent-bar {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  height: 2.4mm;
}

.cv-accent-bar span:nth-child(1) {
  background: var(--cyan);
}

.cv-accent-bar span:nth-child(2) {
  background: var(--magenta);
}

.cv-accent-bar span:nth-child(3) {
  background: var(--orange);
}

.cv-header {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: flex-end;
  padding-bottom: 7mm;
  border-bottom: 1.5px solid var(--ink);
}

.cv-kicker {
  margin: 0 0 2mm;
  color: var(--magenta);
  font-family: var(--mono);
  font-size: 7.5pt;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: 32pt;
  letter-spacing: -0.055em;
  line-height: 0.95;
}

.cv-title {
  margin: 2.5mm 0 0;
  color: var(--muted);
  font-size: 12pt;
  font-weight: 650;
}

address {
  display: grid;
  gap: 1mm;
  font-family: var(--mono);
  font-size: 7.7pt;
  font-style: normal;
  text-align: right;
}

.cv-summary {
  display: grid;
  grid-template-columns: 27mm 1fr;
  gap: 7mm;
  padding: 6mm 0;
  border-bottom: 1px solid var(--line);
}

h2 {
  margin: 0 0 4mm;
  font-family: var(--mono);
  font-size: 8.7pt;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.cv-summary h2 {
  margin: 0;
}

.cv-summary p {
  margin: 0;
  font-size: 9.8pt;
}

.flow-arrow {
  position: relative;
  display: inline-block;
  width: 1.05em;
  height: 0.72em;
  margin-inline: 0.06em;
  overflow: hidden;
  color: inherit;
  text-indent: -999px;
  vertical-align: -0.06em;
}

.flow-arrow::before {
  position: absolute;
  top: 0.34em;
  right: 0.1em;
  left: 0.08em;
  height: 0.11em;
  border-radius: 999px;
  background: currentColor;
  content: "";
}

.flow-arrow::after {
  position: absolute;
  top: 0.2em;
  right: 0.08em;
  width: 0.3em;
  height: 0.3em;
  border-top: 0.11em solid currentColor;
  border-right: 0.11em solid currentColor;
  content: "";
  transform: rotate(45deg);
}

.cv-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(42mm, 0.85fr);
  gap: 8mm;
  padding-top: 6mm;
}

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

.cv-primary > section + section,
.cv-sidebar > section + section {
  margin-top: 6mm;
}

.cv-entry + .cv-entry {
  margin-top: 4.5mm;
}

.entry-heading {
  display: flex;
  justify-content: space-between;
  gap: 5mm;
  align-items: flex-start;
}

.entry-heading h3,
.project-entry h3,
.skill-block h3 {
  margin: 0;
  font-size: 9.8pt;
}

.entry-heading p {
  margin: 0.6mm 0 0;
  color: var(--muted);
  font-size: 8.2pt;
  font-weight: 600;
}

.entry-timing {
  position: relative;
  flex: 0 0 auto;
  min-width: 22mm;
  padding-right: 5mm;
  text-align: right;
}

.entry-timing > span {
  display: block;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7.4pt;
}

.cv-link-icon {
  display: block;
  width: 3.8mm;
  height: 3.8mm;
  color: var(--ink);
  text-decoration: none;
}

.cv-link-icon svg {
  display: block;
  width: 3.2mm;
  height: 3.2mm;
  margin: 0.3mm;
}

.entry-timing .cv-link-icon {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
}

ul {
  margin: 2.2mm 0 0;
  padding-left: 4.2mm;
}

li {
  padding-left: 1mm;
  font-size: 8.2pt;
}

li + li {
  margin-top: 1.3mm;
}

li::marker {
  color: var(--cyan);
}

.project-entry {
  position: relative;
  padding: 2.3mm 0;
  border-top: 1px solid var(--line);
}

.project-entry:last-child {
  border-bottom: 1px solid var(--line);
}

.project-heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 3.8mm;
  gap: 2.2mm;
  align-items: center;
}

.project-heading .cv-link-icon {
  justify-self: end;
}

.project-stack {
  min-width: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 6.8pt;
  font-weight: 500;
  text-align: right;
}

.project-entry p {
  margin: 1mm 0 0;
  color: var(--muted);
  font-size: 8pt;
}

.skill-block + .skill-block {
  margin-top: 3.2mm;
}

.skill-block h3 {
  color: var(--magenta);
  font-family: var(--mono);
  font-size: 7.3pt;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.skill-block p {
  margin: 0.8mm 0 0;
  color: var(--muted);
  font-size: 8pt;
}

.more-work ul {
  margin-top: 0;
}

.more-work li {
  font-size: 7.8pt;
}

blockquote {
  margin: 7mm 0 0;
  padding: 4mm;
  border-left: 2px solid var(--orange);
  background: #f2eee5;
}

blockquote p {
  margin: 0;
  font-size: 8.5pt;
  font-weight: 650;
  line-height: 1.45;
}

@media (max-width: 850px) {
  .cv-page {
    width: 100%;
    min-height: 0;
    margin: 0;
    padding: 1.4rem;
  }

  .cv-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .cv-header,
  .cv-columns {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  address {
    text-align: left;
  }

  .cv-summary {
    grid-template-columns: 1fr;
  }

  .cv-primary {
    padding-right: 0;
    border-right: 0;
  }
}

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

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

  .cv-actions {
    display: none;
  }

  .cv-page {
    margin: 0;
    box-shadow: none;
  }
}
