@font-face {
  font-family: "FixelGT";
  src: url("assets/fixel-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 75% 100%;
  font-display: swap;
}

:root {
  --ink: #0a0e0f;
  --paper: #f2efe7;
  --muted: #66706e;
  --acid: #9dd8c0;
  --signal: #c99165;
  --rule: rgba(10, 14, 15, .18);
  --dark-rule: rgba(242, 239, 231, .16);
  --sans: "FixelGT", Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }
body {
  margin: 0;
  background: #080b0c;
  color: var(--paper);
  font-family: var(--sans);
  font-stretch: 75%;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button { color: inherit; font: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--acid); outline-offset: 4px; }
.skip-link { position: fixed; top: -80px; left: 18px; z-index: 20; padding: 12px 16px; background: var(--acid); color: var(--ink); }
.skip-link:focus { top: 18px; }

.cv-toolbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  width: min(1120px, calc(100% - 36px));
  min-height: 64px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--dark-rule);
  background: rgba(8, 11, 12, .88);
  backdrop-filter: blur(16px);
}
.toolbar-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 12px; font-weight: 700; letter-spacing: -.035em; }
.toolbar-brand svg { width: 28px; height: 22px; }
.toolbar-actions { display: flex; align-items: center; gap: 8px; }
.toolbar-actions a, .toolbar-actions button {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border: 1px solid var(--dark-rule);
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  font-size: 10px;
  font-weight: 650;
  line-height: 1;
}
.toolbar-actions a:hover, .toolbar-actions button:hover { border-color: var(--acid); color: var(--acid); }
.toolbar-actions .toolbar-download {
  border-color: var(--acid);
  background: var(--acid);
  color: var(--ink);
  font-weight: 750;
}
.toolbar-actions .toolbar-download:hover {
  border-color: var(--paper);
  background: var(--paper);
  color: var(--ink);
}

.cv-page {
  position: relative;
  width: min(1040px, calc(100% - 36px));
  margin: 44px auto 28px;
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 42px 110px rgba(0, 0, 0, .34);
}
.cv-page::before { content: ""; position: absolute; inset: 0 0 auto; height: 7px; background: linear-gradient(90deg, var(--acid) 0 64%, var(--signal) 64%); }
.cv-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: clamp(36px, 6vw, 74px);
  align-items: end;
  padding: 64px 66px 54px;
  border-bottom: 1px solid var(--rule);
}
.cv-kicker { margin: 0 0 31px; color: var(--signal); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(64px, 8.7vw, 104px); font-weight: 720; line-height: .78; letter-spacing: -.075em; }
.cv-role { margin: 32px 0 0; color: #31544d; font-size: clamp(22px, 3vw, 34px); line-height: 1; letter-spacing: -.045em; }
.contact-list { display: flex; margin: 33px 0 0; padding: 0; list-style: none; flex-wrap: wrap; gap: 8px 19px; color: #3f4846; font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 1.4; }
.contact-list li:not(:last-child)::after { content: "/"; margin-left: 19px; color: var(--signal); }
.contact-list a { text-underline-offset: 3px; }
.cv-portrait { position: relative; margin: 0; }
.cv-portrait::before { content: ""; position: absolute; z-index: 1; top: -12px; right: -12px; width: 48px; height: 48px; border-top: 2px solid var(--signal); border-right: 2px solid var(--signal); }
.cv-portrait img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px)); background: var(--ink); }
.cv-portrait figcaption { margin-top: 10px; color: var(--muted); font-size: 9px; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; }

.cv-body { padding: 0 66px 64px; }
.cv-section { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 32px; padding: 43px 0; border-top: 1px solid var(--rule); }
.cv-section:first-child { border-top: 0; }
.section-heading { align-self: start; }
.section-heading span { display: block; margin-bottom: 13px; color: var(--signal); font: 500 37px/1 Arial, Helvetica, sans-serif; letter-spacing: -.065em; }
.section-heading h2 { margin: 0; font-size: 11px; font-weight: 720; letter-spacing: .055em; text-transform: uppercase; }
.section-content { min-width: 0; }
.section-content > :first-child { margin-top: 0; }
.section-content > :last-child { margin-bottom: 0; }
.profile .section-content { font-size: 17px; line-height: 1.58; letter-spacing: -.018em; }
.profile .section-content p { margin: 0 0 15px; }
.position + .position { margin-top: 35px; padding-top: 33px; border-top: 1px solid var(--rule); }
.position-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: start; }
.position-heading h3 { margin: 0; font-size: 18px; line-height: 1.25; letter-spacing: -.025em; }
.position-heading p { max-width: 178px; margin: 2px 0 0; color: var(--muted); font-family: Arial, Helvetica, sans-serif; font-size: 10px; line-height: 1.35; text-align: right; }
.position ul, .compact ul { margin: 18px 0 0; padding-left: 18px; }
.position li { margin: 0 0 8px; padding-left: 5px; font-family: Arial, Helvetica, sans-serif; font-size: 12.5px; line-height: 1.48; }
.position li::marker { color: var(--signal); }
.skill-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.skill-groups p { margin: 0; padding: 13px 0; border-top: 1px solid var(--rule); font-family: Arial, Helvetica, sans-serif; font-size: 12.5px; line-height: 1.5; }
.skill-groups p:first-child, .skill-groups p:nth-child(2) { border-top: 0; padding-top: 0; }
.skill-groups strong { font-family: var(--sans); }
.compact { padding-block: 31px; }
.compact ul { margin: 0; }
.compact li { margin-bottom: 8px; font-family: Arial, Helvetica, sans-serif; font-size: 12.5px; }
.working-style .section-content { font-size: 15px; line-height: 1.55; }
.working-style p { margin: 0; }

.cv-footer { display: flex; width: min(1040px, calc(100% - 36px)); margin: 0 auto 46px; justify-content: space-between; color: #89918f; font-size: 9px; letter-spacing: .04em; }
.cv-footer a { text-decoration: none; }

@media (max-width: 760px) {
  .cv-toolbar { position: relative; width: calc(100% - 30px); padding: 13px 0; align-items: flex-start; }
  .toolbar-brand { padding-top: 7px; }
  .toolbar-brand span { display: none; }
  .toolbar-actions { justify-content: flex-end; flex-wrap: wrap; }
  .toolbar-actions a:first-child { display: none; }
  .cv-page { width: 100%; margin-top: 18px; }
  .cv-header { grid-template-columns: minmax(0, 1fr) 98px; gap: 22px; padding: 46px 20px 36px; align-items: start; }
  .cv-kicker { margin-bottom: 23px; font-size: 9px; }
  h1 { font-size: clamp(50px, 15vw, 72px); }
  .cv-role { margin-top: 24px; font-size: 22px; }
  .contact-list { display: block; margin-top: 25px; }
  .contact-list li { margin-top: 6px; }
  .contact-list li::after { display: none; }
  .cv-portrait::before { top: -7px; right: -7px; width: 28px; height: 28px; }
  .cv-portrait figcaption { display: none; }
  .cv-body { padding: 0 20px 42px; }
  .cv-section { grid-template-columns: 1fr; gap: 22px; padding: 34px 0; }
  .section-heading { display: flex; align-items: baseline; gap: 13px; }
  .section-heading span { margin: 0; font-size: 27px; }
  .position-heading { grid-template-columns: 1fr; gap: 7px; }
  .position-heading p { max-width: none; text-align: left; }
  .skill-groups { grid-template-columns: 1fr; }
  .skill-groups p:nth-child(2) { padding-top: 13px; border-top: 1px solid var(--rule); }
  .cv-footer { width: calc(100% - 30px); margin-bottom: 28px; }
}

@media print {
  @page { size: A4; margin: 10mm 12mm; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  html { color-scheme: light; }
  body { background: #fff; color: #111; font-family: Arial, Helvetica, sans-serif; font-size: 9.2pt; line-height: 1.28; }
  .skip-link, .cv-toolbar, .cv-portrait, .cv-footer { display: none !important; }
  .cv-page { width: auto; margin: 0; overflow: visible; background: #fff; box-shadow: none; }
  .cv-page::before { display: none; }
  .cv-header { display: block; padding: 0 0 8mm; border-bottom: 1px solid #777; }
  .cv-kicker { margin: 0 0 2.5mm; color: #333; font-size: 8pt; letter-spacing: .04em; }
  h1 { font-size: 25pt; line-height: .92; letter-spacing: -.035em; }
  .cv-role { margin: 3mm 0 0; color: #111; font-size: 13pt; }
  .contact-list { display: flex; margin-top: 3mm; gap: 1.5mm 4mm; color: #111; font-size: 8.6pt; }
  .contact-list li:not(:last-child)::after { margin-left: 4mm; color: #555; }
  .contact-list a { text-decoration: none; }
  .cv-body { padding: 0; }
  .cv-section { display: block; padding: 4mm 0; border-top: 1px solid #aaa; }
  .cv-section:first-child { border-top: 0; }
  .section-heading { display: block; margin-bottom: 2mm; }
  .section-heading span { display: none; }
  .section-heading h2 { font-size: 10.5pt; letter-spacing: .035em; }
  .profile .section-content { font-size: 9.2pt; line-height: 1.3; }
  .profile .section-content p { margin: 0 0 2mm; }
  .position + .position { margin-top: 3mm; padding-top: 3mm; border-top: 1px solid #ccc; }
  .position-heading { display: block; break-after: avoid; }
  .position-heading h3 { font-size: 10pt; line-height: 1.2; }
  .position-heading p { max-width: none; margin-top: 1mm; color: #333; font-size: 8.4pt; text-align: left; }
  .position ul, .compact ul { margin: 1.5mm 0 0; padding-left: 4.5mm; }
  .position li { margin-bottom: 1mm; padding-left: 1mm; font-size: 8.7pt; line-height: 1.24; }
  .skill-groups { display: block; }
  .skill-groups p, .skill-groups p:nth-child(2) { margin: 0 0 1.2mm; padding: 0; border: 0; font-size: 8.7pt; line-height: 1.25; }
  .compact { padding-block: 3mm; break-inside: avoid; }
  .compact li { margin-bottom: 1mm; font-size: 8.7pt; }
  .working-style { break-inside: avoid; }
  .working-style .section-content { font-size: 8.9pt; line-height: 1.3; }
  a { color: #111; }
}
