@font-face {
  font-family: Hack;
  src: url("Hack-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Hack;
  src: url("Hack-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #f2f4f8;
  --ink: #121619;
  --accent: #343a3f;
  --meta: #697077;
  --line: #dde1e6;
  --a4w: 793.7008px;
  --a4h: 1122.5197px;
  --scale: min(1, calc((100vw - 20px) / var(--a4w)));
}

* {
  box-sizing: border-box;
}

html {
  background: #393939;
}

body {
  margin: 0;
  background: #393939;
  color: var(--ink);
  font-family: Hack, monospace;
  -webkit-text-size-adjust: 100%;
}

.target {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
}

.site {
  width: calc(var(--a4w) * var(--scale));
  margin: 14px auto 0;
  padding: 8px 10px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  background: #dde1e6;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
  font-size: 13px;
}
.site ul {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site li:first-child {
  margin-right: auto;
}
.site a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  text-decoration: none;
}
.site a:focus, .site a:hover {
  text-decoration: underline;
}
.site .icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.shell {
  display: flex;
  justify-content: center;
  padding: 16px 0 24px;
}

.viewport {
  width: calc(var(--a4w) * var(--scale));
  height: calc(var(--a4h) * var(--scale));
}

.sheet {
  display: flex;
  flex-direction: column;
  width: 210mm;
  height: 297mm;
  overflow: hidden;
  padding: 10mm 10mm 8.5mm;
  transform: scale(var(--scale));
  transform-origin: top left;
  background: var(--paper);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.24);
  color: var(--ink);
}

#cv p {
  margin: 0;
  font-size: 9pt;
  line-height: 1.205;
  text-align: justify;
}

#top {
  text-align: center;
}
#top h1 {
  margin: 0 0 4.5pt;
  font-size: 25pt;
  font-weight: 700;
  line-height: 31pt;
  text-transform: uppercase;
}
#top .title {
  margin: 0 0 3.3mm;
  color: var(--accent);
  font-size: 15.45pt;
  font-weight: 700;
  line-height: 19.1pt;
  text-align: center;
  text-transform: uppercase;
}

.contact {
  display: flex;
  justify-content: space-between;
  gap: 4mm;
  margin: 0 0 1mm;
  font-size: 8pt;
  font-style: normal;
  line-height: 1.2;
  text-align: left;
  white-space: nowrap;
}
.contact strong {
  color: var(--ink);
  font-size: 9pt;
  text-transform: uppercase;
}
.contact a {
  color: var(--accent);
  text-decoration: none;
}

.block {
  margin-top: 1.8mm;
}
.block > h2 {
  margin: 0 0 3.1mm;
  padding-bottom: 2mm;
  border-bottom: 0.2mm solid color-mix(in srgb, var(--accent) 45%, transparent);
  color: var(--accent);
  font-size: 9pt;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.employer + .employer {
  margin-top: 1.7mm;
  padding-top: 1.7mm;
  border-top: 0.2mm solid var(--line);
}

.entry + .entry {
  margin-top: 1.7mm;
}
.entry > header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: baseline;
  gap: 1mm;
}
.entry h3 {
  margin: 0;
  font-size: 10pt;
  font-weight: 400;
  line-height: 1.18;
  white-space: nowrap;
}

.role {
  font-weight: 700;
}

.where {
  color: var(--meta);
  font-size: 8pt;
  white-space: nowrap;
}

.place-date {
  display: none;
}

#cv .dates {
  display: flex;
  justify-content: flex-end;
  gap: 0.32em;
  color: var(--meta);
  font-size: 10pt;
  line-height: 1.18;
  white-space: nowrap;
}
#cv .dates span {
  display: inline-block;
}
#cv .stack {
  display: grid;
  grid-template-columns: 13.33mm 1fr;
  margin-top: 1mm;
  color: var(--meta);
  font-weight: 700;
  line-height: 1.18;
  text-align: left;
}
#cv .stack strong {
  grid-column: 1;
}
#cv .stack span {
  display: block;
  grid-column: 2;
}
#cv .entry > p:not(.stack):not(.dates):not(.place-date) {
  margin-top: 2mm;
}

.columns {
  display: grid;
  grid-template-columns: 47% 47%;
  gap: 6%;
  margin-top: 1.7mm;
}

#languages dl {
  display: grid;
  grid-template-columns: 20mm 1fr;
  margin: 0;
  font-size: 10pt;
  line-height: 1.22;
}
#languages dt {
  color: var(--accent);
  font-weight: 700;
}
#languages dd {
  margin: 0;
  font-size: 9pt;
}

#hobby ul {
  margin: 0;
  padding: 0 0 0 4mm;
  font-size: 9pt;
  line-height: 1.22;
  list-style: none;
}
#hobby li {
  position: relative;
  margin: 0.2mm 0;
}
#hobby li::before {
  position: absolute;
  left: -4mm;
  color: var(--meta);
  content: ">";
}

#cv .note {
  color: var(--meta);
  font-weight: 700;
  text-align: left;
}

#consent {
  margin-top: auto;
}
#consent p {
  color: var(--meta);
  font-size: 8pt;
  line-height: 1.15;
  text-align: left;
}

#mobile:target ~ .site {
  width: auto;
  margin: 0;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
  background: #dde1e6;
  box-shadow: none;
  font-size: 14px;
}
#mobile:target ~ .site a {
  color: var(--accent);
}
#mobile:target ~ .site a[href="#mobile"] {
  text-decoration: underline;
}
#mobile:target ~ .shell {
  display: block;
  padding: 0;
  background: var(--paper);
}
#mobile:target ~ .shell .viewport {
  width: auto;
  height: auto;
}
#mobile:target ~ .shell .sheet {
  width: 100%;
  height: auto;
  min-height: 0;
  overflow: visible;
  padding: 20px;
  transform: none;
  box-shadow: none;
}
#mobile:target ~ .shell .contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 31ch), 1fr));
  gap: 4px 14px;
  white-space: normal;
}
#mobile:target ~ .shell .contact span {
  min-width: 0;
}
#mobile:target ~ .shell .contact a {
  overflow-wrap: anywhere;
}
#mobile:target ~ .shell .columns {
  grid-template-columns: 1fr;
  gap: 1.8mm 0;
  margin-bottom: 1.8mm;
}
#mobile:target ~ .shell .entry > header {
  display: block;
}
#mobile:target ~ .shell .entry h3 {
  white-space: normal;
}
#mobile:target ~ .shell .entry .org .at {
  display: none;
}
#mobile:target ~ .shell .entry .workplace {
  display: block;
}
#mobile:target ~ .shell .entry .where {
  display: none;
}
#mobile:target ~ .shell .entry .place-date {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: baseline;
  gap: 1px 0.65em;
  margin: 2px 0 0;
  color: var(--meta);
  line-height: 1.25;
  text-align: left;
}
#mobile:target ~ .shell .entry .place-date .place,
#mobile:target ~ .shell .entry .place-date .range {
  font-size: 8pt;
}
#mobile:target ~ .shell .entry .place-date .place {
  overflow-wrap: anywhere;
}
#mobile:target ~ .shell .entry .place-date .range {
  display: inline-flex;
  gap: 0.32em;
  justify-self: end;
  white-space: nowrap;
}
#mobile:target ~ .shell #cv .dates {
  display: none;
}
#mobile:target ~ .shell #consent {
  margin-top: 7mm;
}

@media screen and (max-width: 700px) {
  :root {
    --scale: 1;
  }
  html,
  body {
    background: var(--paper);
  }
  .site {
    width: auto;
    margin: 0;
    padding: 12px 20px;
    border-bottom: 1px solid var(--line);
    background: #dde1e6;
    box-shadow: none;
    font-size: 14px;
  }
  .site a {
    color: var(--accent);
  }
  .shell {
    display: block;
    padding: 0;
    background: var(--paper);
  }
  .shell .viewport {
    width: auto;
    height: auto;
  }
  .shell .sheet {
    width: 100%;
    height: auto;
    min-height: 0;
    overflow: visible;
    padding: 20px;
    transform: none;
    box-shadow: none;
  }
  .shell .contact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 31ch), 1fr));
    gap: 4px 14px;
    white-space: normal;
  }
  .shell .contact span {
    min-width: 0;
  }
  .shell .contact a {
    overflow-wrap: anywhere;
  }
  .shell .columns {
    grid-template-columns: 1fr;
    gap: 1.8mm 0;
    margin-bottom: 1.8mm;
  }
  .shell .entry > header {
    display: block;
  }
  .shell .entry h3 {
    white-space: normal;
  }
  .shell .entry .org .at {
    display: none;
  }
  .shell .entry .workplace {
    display: block;
  }
  .shell .entry .where {
    display: none;
  }
  .shell .entry .place-date {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    align-items: baseline;
    gap: 1px 0.65em;
    margin: 2px 0 0;
    color: var(--meta);
    line-height: 1.25;
    text-align: left;
  }
  .shell .entry .place-date .place,
  .shell .entry .place-date .range {
    font-size: 8pt;
  }
  .shell .entry .place-date .place {
    overflow-wrap: anywhere;
  }
  .shell .entry .place-date .range {
    display: inline-flex;
    gap: 0.32em;
    justify-self: end;
    white-space: nowrap;
  }
  .shell #cv .dates {
    display: none;
  }
  .shell #consent {
    margin-top: 7mm;
  }
  .contact span:last-child {
    justify-self: start;
    text-align: left;
  }
}
@media print {
  @page {
    size: A4;
    margin: 0;
  }
  html,
  body {
    background: white;
  }
  .site {
    display: none;
  }
  .shell {
    display: block;
    padding: 0;
  }
  .viewport {
    width: auto;
    height: auto;
  }
  .sheet {
    padding: 10mm 10mm 8.5mm;
    transform: none;
    box-shadow: none;
  }
}
