/* stepankotok.com — CV page, variant H "Bureau" in the Slate and lime theme.
   A fixed graphite letterhead on the left, a long light document on the right. Bitter for headings, Source Sans 3 for text. */

/* ---- Fonts: subsets latin, latin-ext, cyrillic ---- */
@font-face {
  font-family: "Bitter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/bitter-cyrillic-wght-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Bitter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/bitter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Bitter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/bitter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Bitter"; font-style: italic; font-weight: 100 900; font-display: swap;
  src: url("fonts/bitter-cyrillic-wght-italic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Bitter"; font-style: italic; font-weight: 100 900; font-display: swap;
  src: url("fonts/bitter-latin-ext-wght-italic.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Bitter"; font-style: italic; font-weight: 100 900; font-display: swap;
  src: url("fonts/bitter-latin-wght-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Sans 3"; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url("fonts/source-sans-3-cyrillic-wght-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Source Sans 3"; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url("fonts/source-sans-3-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Source Sans 3"; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url("fonts/source-sans-3-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


/* ---- Colour roles: Slate and lime, the only theme ----
   column = letterhead, report heads, rules; page = light document; accent = fills and the rail
   (text on it is --on-accent); mark = the accent as it must look on the light page. */
:root {
  color-scheme: light;
  --column: #27313A;
  --column-2: #323E49;
  --page: #F3F5F6;
  --surface: #FFFFFF;
  --accent: #C8F060;
  --on-accent: #161D23;
  --mark: #73990E;
  --on-mark: #FFFFFF;
  --ink: #161D23;
  --ink-soft: #505C66;
  --on-column: #F1F4F6;
  --on-column-soft: #BCC7D0;
  --hair: #DAE0E4;
  --photo-edge: #C8F060;

  --link: var(--column);
  --focus: var(--column);
  --focus-on-column: var(--surface);

  --font-head: "Bitter", Georgia, "Times New Roman", serif;
  --font-text: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 40px; --s6: 48px; --s8: 64px; --s12: 96px;
  --radius: 8px;
  --card-pad: 40px;
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: var(--s4); }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0; background: var(--page); color: var(--ink);
  font-family: var(--font-text); font-size: 1.125rem; line-height: 1.6; font-weight: 400;
  font-kerning: normal; -webkit-font-smoothing: antialiased;
}
::selection { background: var(--accent); color: var(--on-accent); }
img { display: block; max-width: 100%; }

h1, h2, h3 { font-family: var(--font-head); font-weight: 700; color: var(--ink); margin: 0; text-wrap: balance; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.15; letter-spacing: -0.01em; margin-bottom: var(--s3); }
h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); line-height: 1.25; margin: 0 0 var(--s1); }
.h2-sub { display: block; margin-top: 6px; font-weight: 400; font-size: 1.125rem; line-height: 1.3; letter-spacing: 0; color: var(--ink-soft); }
p, li, dd { max-width: 68ch; }
p { margin: 0 0 var(--s2); }
strong { font-weight: 700; }
em { font-family: var(--font-head); font-style: italic; font-weight: 400; }

a { color: var(--link); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .2em; }
a:hover { color: var(--ink); text-decoration-thickness: 3px; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.card :focus-visible { outline-color: var(--focus-on-column); outline-offset: 2px; }
.card .btn:focus-visible { outline-offset: 3px; }
main:focus { outline: none; }

.skip-link {
  position: absolute; left: var(--s2); top: var(--s1); z-index: 30;
  padding: 12px 20px; background: var(--surface); color: var(--ink);
  font-weight: 700; border-radius: var(--radius); text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; outline: 3px solid var(--column); outline-offset: 0; box-shadow: 0 0 0 3px var(--surface); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 8px 20px;
  background: var(--accent); color: var(--on-accent);
  font-family: var(--font-text); font-weight: 700; font-size: 1.0625rem; line-height: 1.2; text-align: center;
  text-decoration: none; border-radius: var(--radius);
  box-shadow: 0 3px 0 var(--ink);
}
.btn:hover { color: var(--on-accent); text-decoration: none; filter: brightness(1.05); }
.btn:active { transform: translateY(3px); box-shadow: none; }
.btn-2 { background: transparent; color: var(--on-column); border: 2px solid var(--on-column-soft); box-shadow: none; }
.btn-2:hover { color: var(--on-column); background: var(--column-2); filter: none; }
.btn-2:active { transform: none; }

.print-only { display: none; }

/* ---- Letterhead (left column) ---- */
.card { position: relative; display: flex; flex-direction: column; background: var(--column); color: var(--on-column); }
.card-body { flex: none; padding: var(--s4) var(--s3) var(--s3); }
.card-top { min-width: 0; }
.cv-lang { margin: 0 0 var(--s2); display: flex; justify-content: flex-end; max-width: none; }
.cv-lang a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border: 2px solid var(--on-column-soft); border-radius: 999px;
  color: var(--on-column); font-weight: 600; font-size: 1rem; line-height: 1; text-decoration: none;
}
.cv-lang a:hover { background: var(--column-2); color: var(--on-column); text-decoration: none; }
.card h1 {
  color: var(--on-column); font-size: clamp(1.875rem, 2.6vw, 2.5rem); line-height: 1.1; letter-spacing: -0.01em; margin: 0;
}
.h1-alt { display: block; margin-top: 4px; font-weight: 400; font-size: .5em; line-height: 1.3; letter-spacing: 0; color: var(--on-column-soft); }
.role { margin: var(--s1) 0 0; font-size: 1.0625rem; line-height: 1.35; color: var(--on-column); max-width: none; }
.stack-line { margin: 6px 0 0; font-size: .9375rem; line-height: 1.45; color: var(--on-column-soft); max-width: none; }

.nav-list { list-style: none; margin: var(--s2) -12px 0; padding: 4px 0 0; display: flex; overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--column-2) transparent; }
.nav-list li { margin: 0; max-width: none; flex: none; }
.nav-list a {
  display: flex; align-items: center; min-height: 44px; padding: 0 12px;
  border-bottom: 4px solid transparent;
  color: var(--on-column-soft); font-weight: 600; font-size: 1.0625rem; line-height: 1.3; white-space: nowrap;
  text-decoration: none;
}
.nav-list a:hover { color: var(--on-column); text-decoration: none; border-bottom-color: var(--on-column-soft); }
.nav-list a[aria-current="true"] { color: var(--on-column); border-bottom-color: var(--accent); }
.nav-list a:focus-visible { outline-offset: -3px; }

.card-copy { margin-top: var(--s2); padding-top: var(--s3); border-top: 1px solid var(--column-2); }
.card-actions { display: flex; flex-wrap: wrap; gap: var(--s1); }
.card-actions .btn { flex: 1 1 140px; }
.card-actions .card-btn { flex-grow: 1.5; }

.contact-list { list-style: none; margin: var(--s2) 0 0; padding: 0; font-size: .9375rem; line-height: 1.5; }
.contact-list li { margin: 0; max-width: none; padding: 0; }
.contact-list a { display: inline-flex; align-items: center; min-height: 36px; }
.card .contact-list { color: var(--on-column-soft); }
.card .contact-list a { color: var(--on-column); }
.card .contact-list li:first-child { margin-bottom: 2px; }
.c-print { display: none; }
.doc-contacts { display: none; }

.card-photo { position: relative; flex: none; height: 360px; background: var(--column-2); }
.card-photo picture, .card-photo img { display: block; width: 100%; height: 100%; }
.card-photo img { object-fit: cover; object-position: 50% 32%; }
.card-photo::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--photo-edge); pointer-events: none; }

.rail { display: none; }

/* ---- Document (right column) ---- */
.doc { min-width: 0; padding: var(--s4) var(--s3) 0; }
.doc > main, .doc > footer { max-width: 760px; margin-inline: auto; }

.section { position: relative; margin-top: var(--s8); padding-top: var(--s5); border-top: 2px solid var(--column); }
.section:first-of-type { margin-top: var(--s4); }
.section::before { content: ""; position: absolute; left: 0; top: -4px; width: 64px; height: 6px; background: var(--mark); }
.lead-p { font-size: 1.3125rem; line-height: 1.55; margin-bottom: var(--s2); }

main ul { list-style: none; padding: 0; margin: 0 0 var(--s2); }
main ul > li { position: relative; padding-left: 28px; margin-bottom: 12px; }
main ul > li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--mark); }
main ul ul { margin: 12px 0 0; }
main ul ul > li:last-child { margin-bottom: 0; }
main ul.contact-list > li { padding-left: 0; margin-bottom: 0; }
main ul.contact-list > li::before { content: none; }
main ul ul > li::before { width: 6px; height: 6px; top: .7em; background: transparent; border: 2px solid var(--mark); }

.meta { margin: 0 0 var(--s2); font-size: .9375rem; line-height: 1.5; color: var(--ink-soft); max-width: none; }
.meta-note { margin: -8px 0 var(--s2); font-size: .9375rem; line-height: 1.5; color: var(--ink-soft); max-width: none; }

/* ---- AI tools: the report ---- */
.report { background: var(--surface); border: 1px solid var(--hair); border-radius: var(--radius); overflow: hidden; }
.group + .group { border-top: 1px solid var(--hair); }
.group-head {
  margin: 0; padding: 14px var(--s3) 14px 20px; background: var(--column); color: var(--on-column);
  border-left: 6px solid var(--accent);
  font-size: 1.1875rem; line-height: 1.3; text-wrap: pretty;
}
.group-body { padding: var(--s3) var(--s3) var(--s1); }
.group-body ul { margin-bottom: var(--s1); }
.tools { margin: 0 0 var(--s2); }
.tools > div { padding: 14px 0; border-top: 1px solid var(--hair); }
.tools > div:first-child { padding-top: 0; border-top: 0; }
.tools > div:last-child { padding-bottom: 0; }
.tools dt, .tools dd { display: inline; margin: 0; }
.tools dt { font-family: var(--font-head); font-weight: 700; font-size: 1.125rem; line-height: 1.5; color: var(--ink); }
.tools dd { max-width: none; }
.nb { white-space: nowrap; }

/* ---- Projects ---- */
.project + .project { margin-top: var(--s5); padding-top: var(--s5); border-top: 1px solid var(--hair); }
.project p:last-child, .project ul:last-child { margin-bottom: 0; }

/* ---- Experience: timeline ---- */
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline > li { position: relative; max-width: 68ch; padding: 0 0 var(--s5) 44px; margin: 0; }
.timeline > li:last-child { padding-bottom: 0; }
.timeline > li > h3 { margin-bottom: 4px; }
.timeline > li > .meta { margin-bottom: 12px; }
.timeline > li::after { content: ""; position: absolute; left: 8px; top: 8px; bottom: -4px; width: 2px; background: var(--column); }
.timeline > li:last-child::after { bottom: auto; height: 12px; }
.job::before {
  content: ""; position: absolute; left: 0; top: 3px; z-index: 1; width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent); border: 3px solid var(--mark);
}
.job > ul { margin-bottom: 0; }

/* ---- Facts ---- */
.facts { margin: 0; max-width: 68ch; border-top: 1px solid var(--hair); }
.facts > div { padding: var(--s2) 0; border-bottom: 1px solid var(--hair); }
.facts dt { font-family: var(--font-head); font-weight: 600; font-size: 1.0625rem; line-height: 1.35; }
.facts dd { margin: 4px 0 0; }
@media (min-width: 640px) {
  .facts > div { display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: 0 var(--s3); }
  .facts dd { margin: 0; }
}
.langs { margin: 0; max-width: 68ch; border-top: 1px solid var(--hair); }
.langs > div { padding: var(--s2) 0; border-bottom: 1px solid var(--hair); }
.langs dt, .langs dd { display: inline; margin: 0; }
.langs dt { font-weight: 700; }

/* ---- Footer ---- */
.site-footer { margin-top: var(--s8); padding: var(--s4) 0 var(--s6); border-top: 1px solid var(--hair); }
.site-footer p { font-size: .9375rem; line-height: 1.55; color: var(--ink-soft); margin: 0; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); }

/* ---- Fixed call-to-action bar (phones) ---- */
.cta-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: flex; align-items: center; justify-content: center; text-align: center;
  height: calc(56px + env(safe-area-inset-bottom, 0px)); padding: 0 var(--s2) env(safe-area-inset-bottom, 0px);
  background: var(--accent); color: var(--on-accent);
  font-weight: 700; font-size: 1.0625rem; line-height: 1.2; text-decoration: none;
  transform: translateY(100%); visibility: hidden;
}
.cta-bar:hover { color: var(--on-accent); filter: brightness(1.05); text-decoration: none; }
.cta-bar:focus-visible { outline: 3px solid var(--on-accent); outline-offset: -8px; }
.cta-bar.is-on { transform: none; visibility: visible; }
@media (prefers-reduced-motion: no-preference) {
  .cta-bar { transition: transform 240ms ease-out, visibility 0s linear 240ms; }
  .cta-bar.is-on { transition-delay: 0s; }
}
.js .site-footer { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }

/* ---- Tablets and phones ---- */
@media (max-width: 959px) {
  .card-body { padding-bottom: var(--s4); }
  .section { margin-top: var(--s8); }
  .section:first-of-type { margin-top: var(--s3); }
}
@media (max-width: 639px) {
  .doc { padding-inline: 20px; }
  .card-body { padding-inline: 20px; }
  .group-head { padding-inline: 14px; }
  .group-body { padding: var(--s2) 16px 0; }
  .timeline > li { padding-left: 32px; }
  main ul > li { padding-left: 22px; }
  main ul > li::before { left: 2px; }
  .contact-list a { min-height: 44px; }
  .card .contact-list { display: flex; flex-wrap: wrap; gap: 0 20px; }
  .card .contact-list li:first-child { flex: 0 0 100%; margin-bottom: 0; }
}
@media (max-width: 479px) {
  .card-actions .btn { flex-basis: 100%; }
}

/* ---- Desktop: two independent zones ---- */
@media (min-width: 960px) {
  .shell { display: grid; grid-template-columns: minmax(360px, 36%) minmax(0, 1fr); }
  .card { position: sticky; top: 0; align-self: start; height: 100vh; height: 100svh; overflow: hidden; }
  .card-body { padding: var(--s4) var(--card-pad) 0; }
  .cv-lang { margin-bottom: var(--s1); }
  .cv-lang a { min-height: 34px; padding: 0 14px; }
  .nav-list { display: block; overflow: visible; margin: var(--s2) 0 0; padding: 0; border-left: 4px solid var(--column-2); }
  .nav-list a {
    display: block; min-height: 0; margin-left: -4px; padding: 3px 0 3px var(--s2);
    border-bottom: 0; border-left: 4px solid transparent;
  }
  .nav-list a:hover { border-bottom: 0; border-left-color: var(--on-column-soft); }
  .nav-list a[aria-current="true"] { border-bottom: 0; border-left-color: var(--accent); }
  .nav-list a:focus-visible { outline-offset: 2px; }
  .card-copy { margin-top: var(--s2); padding-top: var(--s2); }
  .card-photo { flex: 1 1 auto; height: auto; min-height: 140px; margin-top: var(--s3); }
  .card-photo picture { position: absolute; inset: 0; }

  .rail { display: block; position: absolute; top: 0; right: 0; bottom: 0; width: 4px; background: var(--column-2); z-index: 2; }
  .rail-fill { position: absolute; inset: 0; background: var(--accent); transform-origin: 50% 0; transform: scaleY(var(--p, 1)); }

  .doc { padding: var(--s5) var(--s4) 0 clamp(32px, 6vw, 96px); }
  .section { margin-top: var(--s12); }
  .section:first-of-type { margin-top: 0; }
  .site-footer { margin-top: var(--s8); }
  .js .site-footer { padding-bottom: var(--s6); }
  .cta-bar { display: none; }
  .group-body { padding: var(--s3) var(--s4) var(--s1) var(--s3); }
  .contact-list a { min-height: 0; }
}
@media (min-width: 1220px) {
  .card-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s2) var(--s3); align-items: start; }
  .card-top .nav-list { margin-top: 4px; }
}

/* Short windows: contacts move to the head of the document, the letterhead tightens. */
@media (min-width: 960px) and (max-height: 659px), (min-width: 960px) and (max-width: 1219px) and (max-height: 800px) {
  .card-contacts { display: none; }
  .doc-contacts {
    display: flex; flex-wrap: wrap; gap: 0 var(--s3); margin: 0 0 var(--s4); padding: 0 0 var(--s2);
    border-bottom: 1px solid var(--hair); font-size: 1rem;
  }
  .doc-contacts li { max-width: none; }
  .doc-contacts a { color: var(--ink); }
}
@media (min-width: 960px) and (max-height: 859px) {
  .card-body { padding-top: var(--s3); }
  .card h1 { font-size: clamp(1.75rem, 2.4vw, 2.25rem); }
  .nav-list { margin-top: 12px; }
  .nav-list a { padding-block: 1px; font-size: 1rem; }
  .card-copy { margin-top: 12px; }
  .btn { min-height: 48px; }
  .card-photo { margin-top: var(--s2); }
}
@media (min-width: 960px) and (max-width: 1219px) and (max-height: 620px) {
  .card-photo { display: none; }
}
@media (min-width: 960px) and (max-height: 559px) {
  .card { position: relative; height: auto; min-height: 100vh; overflow: visible; }
  .rail { display: none; }
  .card-photo { min-height: 240px; }
}

/* ---- The live rail: filled by scrolling, in CSS where the browser can ---- */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .rail-fill { animation: rail-fill 1s linear both; animation-timeline: scroll(root block); }
  }
}
@keyframes rail-fill { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* ---- Print: the letterhead becomes the head of page one, A4, white ---- */
@page { size: A4; margin: 12mm 14mm 12mm; }
@media print {
  html { scroll-padding-top: 0; }
  body { background: #FFFFFF; color: var(--ink); font-size: 9.5pt; line-height: 1.28; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .skip-link, .cv-lang, .nav-list, nav, .card-actions, .cta-bar, .rail, .doc-contacts, .site-footer, .c-screen { display: none; }
  /* The PDF is the two-page version for the vacancy: blocks marked print-hide stay on the web page only. */
  .print-hide { display: none; }
  .print-only { display: block; }
  .stack-line { margin: -1.2mm 0 1.2mm; font-size: 9pt; line-height: 1.35; color: var(--ink); }
  .langs-line { margin: -1.5mm 0 1.5mm; font-size: 9pt; color: var(--ink); max-width: none; }
  .c-print { display: inline; }
  .shell { display: block; }
  .card {
    position: static; height: auto; overflow: visible; display: grid; grid-template-columns: minmax(0, 1fr) 28mm; grid-template-rows: auto 1fr; column-gap: 8mm;
    background: #FFFFFF; color: var(--ink); margin-bottom: 2mm; padding-bottom: 1.5mm; border-bottom: 0;
  }
  .card-body { display: contents; padding: 0; }
  .card-top, .card-copy { grid-column: 1; margin: 0; padding: 0; border: 0; display: block; }
  .card-copy { grid-column: 1; align-self: start; }
  .card-photo { grid-column: 2; grid-row: 1 / span 2; width: 28mm; height: 35mm; min-height: 0; margin: 0; background: none; border-radius: 1.5mm; overflow: hidden; }
  .card-photo::after { display: none; }
  .card-photo img { object-position: 49% 30%; }
  .card h1 { color: var(--column); font-size: 23pt; line-height: 1.1; }
  .h1-alt { display: inline; margin: 0; font-size: 12pt; color: var(--ink-soft); }
  .role { margin: 1.2mm 0 2.5mm; font-size: 11pt; color: var(--ink); }
  .card .contact-list { display: flex; flex-wrap: wrap; margin: 0; font-size: 9pt; color: var(--ink); }
  /* Links in the PDF must be obvious: dark green text with an olive underline (contrast 6:1 on white). */
  a, .card .contact-list a, .contact-list a { color: #4A6609; text-decoration: underline; text-decoration-color: var(--mark); text-decoration-thickness: 1pt; text-underline-offset: 1.6pt; }
  .card .contact-list a, .contact-list a { display: inline; min-height: 0; }
  .card .contact-list li:not(:last-child)::after { content: "\00b7"; margin: 0 1.3mm; color: var(--mark); font-weight: 700; }
  .card .contact-list li:first-child { margin-bottom: 0; }

  .doc { padding: 0; }
  .doc > main, .timeline > li, .facts, .langs { max-width: none; }
  .doc .doc-contacts { display: none; }
  p, li, dd { max-width: none; orphans: 3; widows: 3; }
  p { margin-bottom: 1.2mm; }
  .section, .section:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
  .section::before { display: none; }
  h2 {
    margin: 2.4mm 0 1.3mm; padding-top: 2mm; border-top: 0; font-size: 16pt; letter-spacing: -0.01em; line-height: 1.2; color: var(--column); break-after: avoid;
    background: linear-gradient(var(--mark), var(--mark)) 0 0 / 18mm 3pt no-repeat, linear-gradient(var(--column), var(--column)) 0 0 / 100% 1.2pt no-repeat;
  }
  .section:first-of-type h2 { margin-top: 0; }
  .h2-sub { display: inline; margin: 0; font-size: 11pt; color: var(--ink-soft); }
  h3 { font-size: 10.5pt; line-height: 1.25; margin-bottom: 0.6mm; color: var(--ink); break-after: avoid; }
  .lead-p { font-size: 10pt; line-height: 1.38; }
  .meta, .meta-note { font-size: 9pt; margin-bottom: 1.4mm; break-after: avoid; }
  .meta-note { margin-top: -1mm; }
  main ul { margin-bottom: 1.5mm; }
  main ul > li { padding-left: 5mm; margin-bottom: 0.8mm; }
  main ul > li::before { left: 1mm; width: 5px; height: 5px; top: .55em; }
  main ul ul > li::before { width: 4px; height: 4px; border-width: 1.2pt; }

  .report { border: .75pt solid var(--hair); }
  .group-head { break-after: avoid; }
  .group li { break-inside: avoid; }
  .group-head { padding: 1.4mm 4mm; border-left-width: 4pt; font-size: 10.5pt; background: var(--column); color: var(--on-column); }
  .group-body { padding: 2mm 4mm 0.3mm; }
  .tools dt { font-size: 10.5pt; }
  .tools > div { padding: 1.1mm 0; break-inside: avoid; }
  .tools > div:first-child { padding-top: 0; }
  .job, .facts > div, .langs > div, .project li { break-inside: avoid; }
  .project + .project { margin-top: 1.8mm; padding-top: 1.8mm; }
  .timeline > li { padding: 0 0 1.2mm 8mm; }
  .timeline > li:last-child { padding-bottom: 0; }
  .timeline > li::after { left: 2.05mm; top: 2.2mm; }
  .job::before { top: .4mm; width: 4.4mm; height: 4.4mm; border-width: 1.6pt; }
  .facts > div { padding: 0.6mm 0; display: grid; grid-template-columns: 41mm minmax(0, 1fr); gap: 0 3mm; font-size: 9pt; }
  .facts dt { font-size: 9pt; white-space: nowrap; }
  .langs > div { padding: 0.6mm 0; font-size: 9pt; }
  .section-short { break-inside: avoid; }
}
