@font-face {
  font-family: "Newsreader";
  src: url("./fonts/Newsreader-Variable.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Newsreader";
  src: url("./fonts/Newsreader-Italic-Variable.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Geist";
  src: url("./fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("./fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #111111;
  --ink-soft: #2a2a2a;
  --text-secondary: #555555;
  --text-tertiary: #737373;
  --text-muted: #8a8a8a;
  --bg: #ffffff;
  --rule: #e8e8e8;
  --rule-strong: #d4d4d4;
  --font-serif: "Newsreader", ui-serif, Georgia, Cambria, serif;
  --font-sans: "Geist", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 9.5pt;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

p {
  margin: 0;
}

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

@media screen {
  a:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
  }
}

.page {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 210mm;
  min-height: 297mm;
  margin: 0 auto;
  padding: 13mm 15mm 9mm;
  background: var(--bg);
  overflow: hidden;
}

.page + .page {
  page-break-before: always;
  break-before: page;
}

.page::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3.5px;
  background: var(--ink);
}

.page-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 6px;
  border-top: 1px solid var(--rule);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 7pt;
  letter-spacing: 0.04em;
}

.masthead {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px 28px;
  align-items: start;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ink);
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  font-size: 7.5pt;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 30pt;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 0.95;
}

.title-line {
  margin-top: 8px;
  max-width: 28em;
  color: var(--ink-soft);
  font-family: var(--font-serif);
  font-size: 11.5pt;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.intro {
  margin-top: 10px;
  max-width: 38em;
  color: var(--text-secondary);
  font-size: 9pt;
  line-height: 1.5;
  text-wrap: pretty;
}

.contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  padding-top: 22px;
  text-align: right;
  color: var(--text-secondary);
  font-size: 8pt;
  line-height: 1.35;
}

.contact .label {
  margin-bottom: 2px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 6.5pt;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact a,
.contact span {
  white-space: nowrap;
}

.focus {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}

.focus li {
  padding: 9px 10px;
  color: var(--ink);
  font-size: 8pt;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.section {
  margin-top: 16px;
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
}

.section-head h2 {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 7.5pt;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-head::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule-strong);
  transform: translateY(-2px);
}

.jobs {
  display: flex;
  flex-direction: column;
}

.job {
  display: grid;
  grid-template-columns: 28mm 1fr;
  gap: 0 14px;
  padding: 11px 0;
  border-top: 1px solid var(--rule);
}

.job:first-child {
  border-top: 0;
  padding-top: 0;
}

.job-aside {
  padding-top: 2px;
}

.job-duration {
  display: block;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  font-size: 7.5pt;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  line-height: 1.35;
}

.job-place {
  display: block;
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 7.5pt;
  line-height: 1.3;
}

.job-main h3 {
  margin: 0;
  font-size: 10.5pt;
  font-weight: 560;
  letter-spacing: -0.015em;
}

.job-role {
  margin-top: 2px;
  color: var(--ink-soft);
  font-family: var(--font-serif);
  font-size: 10pt;
  font-style: italic;
  font-weight: 400;
}

.job-desc {
  margin-top: 6px;
  color: var(--text-secondary);
  font-size: 9pt;
  line-height: 1.45;
  text-wrap: pretty;
}

.tech {
  margin-top: 6px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 7pt;
  letter-spacing: 0.01em;
  line-height: 1.4;
}

.bullets {
  margin: 7px 0 0;
  padding: 0;
  list-style: none;
}

.bullets li {
  position: relative;
  margin-top: 3.5px;
  padding-left: 12px;
  color: var(--text-secondary);
  font-size: 9pt;
  line-height: 1.4;
  text-wrap: pretty;
}

.bullets li::before {
  content: "";
  position: absolute;
  top: 0.55em;
  left: 0;
  width: 5px;
  height: 1px;
  background: var(--ink);
}

.split {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 18px;
  margin-top: 14px;
}

.split > .section {
  margin-top: 0;
}

.skills {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 5px 0;
  color: var(--text-secondary);
  font-size: 8.5pt;
}

.skills li:not(:last-child)::after {
  content: "·";
  margin: 0 8px;
  color: var(--text-muted);
}

.languages {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.languages li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--rule);
  color: var(--text-secondary);
  font-size: 8.5pt;
}

.languages li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.languages strong {
  color: var(--ink);
  font-weight: 550;
}

.languages span {
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  font-size: 7.5pt;
}

.page-continued .masthead-mini {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ink);
}

.page-continued > .section:first-of-type {
  margin-top: 0;
}

.masthead-mini .name {
  font-family: var(--font-serif);
  font-size: 14pt;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.masthead-mini .meta {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 7pt;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.edu .job-main h3 {
  font-size: 10.25pt;
}

.edu-meta {
  margin-top: 4px;
  color: var(--text-secondary);
  font-size: 9pt;
}

.screen-hint {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 10;
  max-width: 230px;
  padding: 11px 13px;
  border: 1px solid var(--rule-strong);
  background: #fafafa;
  color: var(--text-secondary);
  font-size: 11px;
  line-height: 1.4;
  box-shadow: 0 8px 28px rgb(0 0 0 / 8%);
}

.screen-hint strong {
  display: block;
  margin-bottom: 2px;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media screen {
  body {
    background: radial-gradient(ellipse at top, #fafafa 0%, #ececec 100%);
    padding: 28px 0 72px;
  }

  .page {
    box-shadow:
      0 1px 1px rgb(0 0 0 / 4%),
      0 18px 48px rgb(0 0 0 / 8%);
  }

  .page + .page {
    margin-top: 28px;
  }
}

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

@media print {
  body {
    background: white;
    padding: 0;
  }

  .page {
    width: 210mm;
    min-height: 297mm;
    height: 297mm;
    margin: 0;
    padding: 12mm 14mm 8mm;
    box-shadow: none;
    overflow: hidden;
  }

  .page::before {
    width: 2.5px;
  }

  .page + .page {
    page-break-before: always;
    break-before: page;
  }

  .screen-hint {
    display: none;
  }
}
