/* Adam Zikmund – shared structure. Fonts, colours and the type scale come from variant-a.css or variant-b.css. */
:root {
  --bg: #ffffff; --surface: #f7f7f7; --ink: #1a1a1a; --ink-2: #5f5f5f;
  --line: #dddddd; --line-strong: #c8c8c8; --grid: #ececec; --rule: var(--line);
  --navy: #22395b; --oxide: #b4472b; --cloud: #a3a3a3;
  --font-text: Georgia, serif; --font-chart: Georgia, serif; --chart-fs: 12px; --chart-bg: var(--bg);
  --gutter: 16px; --max: 1280px; --nav-h: 56px; --section-pad: 72px; --dur: 150ms;
  color-scheme: light;
}
@media (min-width: 640px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; --section-pad: 112px; } }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-text); font-size: 17px; line-height: 1.55;
  font-variant-numeric: proportional-nums lining-nums;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
@media (min-width: 640px) { body { font-size: 18px; line-height: 1.6; } }
body.nav-open { overflow: hidden; }
h1, h2, h3, p, dl, dd, dt, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
strong { font-weight: 600; }
a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color var(--dur); }
a:hover { color: var(--navy); }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
time, .row-date span, .ro dd, .ctl-value, .assets td, .ro-table td, .weights td, .corr input { font-variant-numeric: tabular-nums lining-nums; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: var(--gutter); top: -100px; background: var(--ink); color: var(--bg); padding: 8px 12px; z-index: 100; }
.skip:focus { top: 8px; }

/* ---------- layout ---------- */
.nav, .hero, .section, .site-footer { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- nav ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); }
.nav { height: var(--nav-h); display: flex; align-items: center; gap: 14px; }
.brand { font-weight: 600; font-size: 16px; text-decoration: none; margin-right: auto; padding: 10px 0; }
.brand:hover { color: var(--ink); }
.nav-list { display: none; }
.nav-list a { text-decoration: none; font-size: 15px; padding: 4px 0; border-bottom: 1px solid transparent; }
.nav-list a:hover { color: var(--navy); border-bottom-color: var(--navy); }
.nav-list a.is-active { border-bottom-color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 16px; }
.nav-cv { text-decoration: none; color: var(--navy); font-weight: 500; font-size: 15px; white-space: nowrap; padding: 10px 0; }
.nav-cv:hover { text-decoration: underline; }
.nav-cv .t-long { display: none; }
.nav-lang { font-size: 15px; display: inline-flex; gap: 6px; }
.nav-lang .is-current { color: var(--ink); }
.nav-lang a { color: var(--ink-2); text-decoration: none; padding: 10px 6px; margin: -10px -6px; }
.nav-lang a:hover { color: var(--navy); text-decoration: underline; }
.nav-lang .sep { color: var(--line-strong); }
.nav-menu .nav-lang { display: none; }
@media (max-width: 639px) { .nav-right > .nav-lang { display: none; } .nav-menu .nav-lang { display: inline-flex; margin-top: 24px; } }
.nav-toggle { font: inherit; font-size: 15px; background: none; border: 0; padding: 4px 0; cursor: pointer; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.nav-toggle .t-close { display: none; }
body.nav-open .nav-toggle .t-open { display: none; }
body.nav-open .nav-toggle .t-close { display: inline; }
@media (max-width: 1023px) {
  .nav-menu { position: fixed; inset: var(--nav-h) 0 0 0; background: var(--bg); display: none; overflow: auto; padding: 16px var(--gutter) 48px; }
  body.nav-open .nav-menu { display: block; }
  body.nav-open .nav-list { display: block; }
  .nav-list li { border-bottom: 1px solid var(--line); }
  .nav-list a { display: block; font-size: 28px; padding: 16px 0; border-bottom: 0; }
  .nav-list a.is-active, .nav-list a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }
}
@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .nav-menu { display: block; }
  .nav-list { display: flex; gap: 26px; }
  .nav-cv .t-long { display: inline; }
  .nav-cv .t-short { display: none; }
  .nav-right { margin-left: 22px; padding-left: 22px; border-left: 1px solid var(--line); }
}

/* ---------- hero ---------- */
.hero { padding-top: 48px; padding-bottom: 48px; display: grid; gap: 40px; position: relative; }
.hero::after { content: ""; position: absolute; left: var(--gutter); right: var(--gutter); bottom: 0; border-bottom: 1px solid var(--line); }
.hero h1 { font-weight: 400; font-size: clamp(34px, 4.6vw, 60px); line-height: 1.07; letter-spacing: -0.01em; max-width: 20ch; text-wrap: balance; }
.hero h1 .line { display: inline; }
.hero h1 .line:only-child { display: block; font-size: 0.62em; line-height: 1.2; max-width: 32ch; }
.hero h1 .line + .line { display: block; margin-top: 0.7em; font-size: 0.5em; font-weight: 500; line-height: 1.3; letter-spacing: 0; max-width: 40ch; text-wrap: pretty; }
.deck { font-size: 18px; line-height: 1.5; margin-top: 28px; max-width: 56ch; }
.actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: baseline; }
.cv-link { color: var(--navy); font-weight: 500; }
.sheet-rows { border-top: 1px solid var(--rule); }
.sheet-row { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.sheet-row dt { font-size: 15px; color: var(--ink-2); }
.sheet-row dd { font-size: 16px; line-height: 1.45; text-wrap: pretty; }
.sheet-row dd a { color: var(--navy); }
@media (min-width: 640px) {
  .hero { padding-top: 64px; padding-bottom: 64px; }
  .deck { font-size: 20px; }
  .sheet-row { grid-template-columns: 120px 1fr; gap: 16px; align-items: baseline; }
}
@media (min-width: 1024px) {
  .hero { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; padding-top: 88px; padding-bottom: 80px; }
  .hero-text { grid-column: 1 / span 6; }
  .sheet { grid-column: 7 / span 6; padding-top: 12px; }
  .sheet-row { grid-template-columns: 104px 1fr; padding: 11px 0; }
}
@media (min-width: 1280px) { .hero-text { grid-column: 1 / span 7; } .sheet { grid-column: 8 / span 5; } }

/* ---------- sections ---------- */
.section { padding-top: var(--section-pad); display: grid; gap: 24px; }
.rail { padding-bottom: 10px; border-bottom: 1px solid var(--rule); }
.rail h2 { font-size: 30px; font-weight: 400; letter-spacing: -0.01em; line-height: 1.15; }
.content { min-width: 0; }
.lead { font-size: 19px; line-height: 1.55; max-width: 62ch; }
.section-heading { font-size: 24px; font-weight: 400; letter-spacing: -0.01em; line-height: 1.25; max-width: 32ch; text-wrap: balance; }
@media (min-width: 640px) { .lead { font-size: 21px; } .rail h2 { font-size: 38px; } .section-heading { font-size: 28px; } }
@media (min-width: 1024px) { .section-heading { font-size: 38px; line-height: 1.2; } }
@media (min-width: 1024px) {
  .section { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
  .rail { grid-column: 1 / span 2; border-bottom: 0; padding-bottom: 0; align-self: start; padding-top: 6px; }
  .rail h2 { font-size: 20px; font-weight: 600; letter-spacing: 0; line-height: 1.3; }
  .content { grid-column: 3 / span 10; }
}

/* key–value lists */
.kv-block { margin-top: 48px; }
.kv-block h3 { font-size: 17px; font-weight: 600; margin-bottom: 10px; }
.kv-row { display: grid; grid-template-columns: 1fr; gap: 0; padding: 6px 0; }
.kv-row dt { font-size: 16px; font-weight: 600; color: var(--ink); }
.kv-row dd { font-size: 16px; line-height: 1.5; }
@media (min-width: 640px) { .kv-row { grid-template-columns: 220px 1fr; gap: 24px; padding: 4px 0; } }

/* ledger rows (experience, projects, education) */
.ledger { border-top: 1px solid var(--line); }
.row { display: grid; gap: 8px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.row-date time, .row-date span { font-size: 15px; color: var(--ink-2); }
.row-head h3 { font-size: 21px; font-weight: 600; line-height: 1.3; }
.row-head h3 a { text-decoration: none; }
.row-head h3 a:hover { text-decoration: underline; }
.row-role { font-size: 16px; font-style: italic; color: var(--ink-2); margin-top: 2px; }
.results { list-style: disc outside; padding-left: 1.1em; }
.results li { font-size: 16px; line-height: 1.5; }
.results li::marker, .method li::marker { color: var(--ink-2); }
.results li + li { margin-top: 8px; }
.row-stack { font-size: 15px; color: var(--ink-2); margin-top: 12px; }
@media (min-width: 640px) {
  .row { grid-template-columns: 136px 1fr; column-gap: 24px; padding: 30px 0; }
  .row-date { grid-row: 1 / span 2; }
  .row-body { grid-column: 2; }
}
@media (min-width: 1024px) {
  .row { grid-template-columns: repeat(10, minmax(0, 1fr)); column-gap: 24px; padding: 32px 0; }
  .row-date { grid-column: 1 / span 2; grid-row: auto; }
  .row-head { grid-column: 3 / span 3; }
  .row-body { grid-column: 6 / span 5; }
  .row-head h3 { font-size: 22px; }
  #vzdelani .row, #education .row { padding: 26px 0; }
}

/* skills */
.skills-grid { display: grid; gap: 24px; border-top: 1px solid var(--line); padding-top: 24px; }
.skill dt { font-size: 17px; font-weight: 600; margin-bottom: 4px; }
.skill dd { font-size: 16px; line-height: 1.5; }
.interests, .edu-note { margin-top: 40px; font-size: 17px; line-height: 1.55; max-width: 70ch; }
.row-exit { margin-top: 10px; font-size: 15px; line-height: 1.5; color: var(--ink-2); max-width: 64ch; }
.row-exit-k { font-weight: 600; color: var(--ink); }
@media (min-width: 640px) { .skills-grid { grid-template-columns: 1fr 1fr; gap: 32px 28px; } }
@media (min-width: 1024px) { .skills-grid { grid-template-columns: repeat(4, 1fr); } }

/* AI engineering frame inside skills: the cells reuse .skill */
.card-frame { margin-top: 32px; border: 1px solid var(--line); padding: 16px 16px 14px; }
.card-frame + .card-frame { margin-top: 16px; }
.card-title { font-size: 20px; font-weight: 600; line-height: 1.2; margin-bottom: 12px; }
.interests-card .interests { margin-top: 0; }
.ai-grid { display: grid; gap: 14px; }
.ai-cert { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 16px; line-height: 1.5; }
@media (min-width: 640px) { .card-frame { margin-top: 36px; padding: 18px 20px; } .card-frame + .card-frame { margin-top: 20px; } .ai-grid { gap: 18px; } .ai-cert { margin-top: 16px; padding-top: 14px; } }
@media (min-width: 900px) { .ai-grid { grid-template-columns: repeat(3, 1fr); gap: 0 28px; } }

/* contact */
.contact-email { font-size: 28px; line-height: 1.2; margin-bottom: 28px; word-break: break-all; }
.contact-list { display: grid; gap: 8px; font-size: 18px; }
.contact-list a { display: inline-block; padding: 4px 0; margin: -4px 0; }
@media (min-width: 640px) { .contact-email { font-size: 40px; line-height: 1.1; word-break: normal; } .contact-list { font-size: 20px; } }

/* footer */
.site-footer { position: relative; margin-top: var(--section-pad); padding-top: 24px; padding-bottom: 40px; display: grid; gap: 6px; font-size: 14px; color: var(--ink-2); }
.site-footer::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); border-top: 1px solid var(--line); }
.site-footer .is-current { color: var(--ink); }
.site-footer a { color: var(--ink-2); display: inline-block; padding: 8px 6px; margin: -8px -6px; }
@media (min-width: 640px) { .site-footer { grid-template-columns: 1fr auto; } .footer-note { grid-column: 1; grid-row: 2; } .footer-lang { grid-column: 2; grid-row: 1; } }

/* ---------- tools / instruments ---------- */
.tools { display: grid; gap: 80px; margin-top: 40px; }
.tool-title { font-size: 22px; font-weight: 600; }
.tool-quote { font-size: 18px; line-height: 1.5; margin-top: 8px; max-width: 60ch; }
.tool-spec { font-size: 15px; color: var(--ink-2); margin-top: 8px; }
@media (min-width: 640px) { .tool-quote { font-size: 19px; } }
.panel { margin-top: 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.panel-body { display: grid; }
.controls, .chart, .readouts { padding: 20px 0; min-width: 0; }
.chart { border-top: 1px solid var(--line); }
.readouts { border-top: 1px solid var(--line); }
.chart canvas { display: block; width: 100%; height: 240px; }
@media (min-width: 640px) { .readouts > * { max-width: 480px; } }
.chart-note { font-size: 14px; color: var(--ink-2); margin-top: 8px; }
.chart-note.is-warn { color: var(--ink); }
.chart-noscript { font-size: 15px; color: var(--ink-2); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; font-size: 14px; color: var(--ink-2); }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.sw { display: inline-block; width: 18px; height: 0; border-top: 1.5px solid var(--ink); }
.sw-dash { border-top-style: dashed; border-color: var(--cloud); }
.sw-oxide { border-color: var(--oxide); }
.sw-oxide-dash { border-color: var(--oxide); border-top-style: dashed; }
.sw-navy { border-color: var(--navy); }
.sw-cloud { border-top: 0; height: 4px; background: radial-gradient(circle, var(--cloud) 1px, transparent 1.5px) 0 0 / 6px 4px repeat-x; }
@media (min-width: 640px) {
  .chart canvas { height: 300px; }
  .controls, .chart, .readouts { padding: 24px 0; }
}
@media (min-width: 1024px) {
  .panel-body { grid-template-columns: 272px minmax(0, 1fr); }
  .controls { padding-right: 24px; }
  .chart { border-top: 0; border-left: 1px solid var(--line); padding: 24px 0 24px 24px; }
  .readouts { grid-column: 1 / -1; }
  .chart canvas { height: 340px; }
  .controls .toggle { grid-template-columns: 1fr; gap: 2px; }
  .controls .toggle-options { justify-content: flex-start; gap: 0 14px; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .readouts > * { max-width: none; }
  .readouts .ro-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .readouts .ro-sep { margin-top: 0; border-top: 0; }
  .readouts .ro-table, .readouts .weights { max-width: 560px; }
}
@media (min-width: 1280px) {
  .panel-body { grid-template-columns: 272px minmax(0, 1fr) 264px; }
  .chart { border-right: 1px solid var(--line); padding: 24px; }
  .readouts { grid-column: auto; border-top: 0; padding-left: 24px; }
  .chart canvas { height: 360px; }
}

/* controls */
.ctl { display: grid; grid-template-columns: 1fr auto; align-items: center; row-gap: 6px; padding: 8px 0; }
.ctl-label { font-size: 15px; }
.ctl-value { display: inline-flex; align-items: baseline; gap: 4px; font-size: 15px; }
.ctl-value input, .assets input, .corr input {
  font: inherit; font-size: 15px; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--ink-2); border-radius: 0;
  width: 64px; text-align: right; padding: 4px 2px;
}
.ctl-value input:focus, .assets input:focus, .corr input:focus { border-bottom-color: var(--navy); outline: none; }
.ctl-value .unit { color: var(--ink-2); font-size: 14px; display: inline-block; min-width: 1.6ch; }
.ctl-range { grid-column: 1 / -1; width: 100%; height: 24px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
.ctl-range::-webkit-slider-runnable-track { height: 1px; background: var(--ink-2); }
.ctl-range::-moz-range-track { height: 1px; background: var(--ink-2); }
.ctl-range::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; margin-top: -5.5px; background: var(--ink); border: 0; border-radius: 50%; }
.ctl-range::-moz-range-thumb { width: 12px; height: 12px; background: var(--ink); border: 0; border-radius: 50%; }
.ctl-range:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.toggle { border: 0; padding: 8px 0; margin: 0; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; }
.toggle legend { float: left; font-size: 15px; padding: 0; }
.toggle-options { display: flex; flex-wrap: wrap; gap: 0 8px; justify-content: flex-end; }
.toggle button { font: inherit; font-size: 15px; background: none; border: 0; padding: 6px 3px 4px; min-width: 28px; min-height: 32px; cursor: pointer; color: var(--ink-2); border-bottom: 1px solid transparent; font-variant-numeric: tabular-nums; }
@media (pointer: coarse) {
  .toggle button { min-height: 44px; min-width: 40px; padding-inline: 6px; }
  .toggle-options { gap: 0 4px; }
  .text-btn { padding: 10px 0; }
  /* iOS zooms into inputs smaller than 16px; keep them at 16px on touch screens */
  .ctl-value input, .assets input, .corr input { font-size: 16px; padding: 6px 2px; }
  /* finger-sized slider thumbs */
  .ctl-range { height: 36px; }
  .ctl-range::-webkit-slider-thumb { width: 22px; height: 22px; margin-top: -10.5px; }
  .ctl-range::-moz-range-thumb { width: 22px; height: 22px; }
}
.toggle button:hover { color: var(--ink); }
.toggle button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 2px 22px; margin-top: 14px; }
.text-btn { font: inherit; font-size: 15px; font-weight: 500; background: none; border: 0; padding: 6px 0; cursor: pointer; color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.text-btn:hover { color: var(--navy); }
@media (pointer: coarse) { .text-btn { padding: 10px 0; } .nav-toggle { min-height: 44px; min-width: 44px; padding: 0 6px; margin-right: -6px; } .contact-list a { padding-block: 8px; margin-block: -4px; } }
.text-btn[aria-pressed="true"] { color: var(--oxide); }
.assets { width: 100%; border-collapse: collapse; font-size: 15px; }
.assets th { font-weight: 400; text-align: left; padding: 6px 0; font-size: 14px; color: var(--ink-2); }
.assets thead th { border-bottom: 1px solid var(--line); }
.assets thead th:not(:first-child) { text-align: right; padding-right: 2px; }
.assets td { padding: 4px 0; text-align: right; }
.assets tbody th { color: var(--ink); font-size: 15px; }
.corr { display: grid; gap: 6px; padding: 12px 0; font-size: 15px; color: var(--ink-2); }
.corr label { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.corr input { width: 56px; }

/* readouts */
.ro-title { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.ro-list { border-top: 1px solid var(--line); }
.ro { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.ro dt { font-size: 15px; color: var(--ink-2); }
.ro dd { font-size: 18px; font-weight: 600; text-align: right; }
.ro-main dd { font-size: 24px; }
.ro-sep { margin-top: 12px; border-top: 1px solid var(--line); }
.ro dd.is-neg { color: inherit; }
.ro-table, .weights { width: 100%; border-collapse: collapse; font-size: 15px; }
.ro-table th, .weights th { font-weight: 400; text-align: left; color: var(--ink-2); padding: 7px 0; }
.ro-table thead th, .weights thead th { border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; padding-left: 14px; font-size: 14px; }
.ro-table thead th:first-child, .weights thead th:first-child { text-align: left; padding-left: 0; }
.ro-table td, .weights td { text-align: right; padding: 7px 0 7px 8px; border-bottom: 1px solid var(--grid); font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.ro-table tbody th { border-bottom: 1px solid var(--grid); }
.ro-table td.is-active { color: var(--ink); }
.ro-table tr.is-oxide td.is-active { color: var(--oxide); }
.ro-table thead th.is-active { color: var(--ink); }
.ro-table .row-delta td { color: var(--oxide); }
.weights td { color: var(--ink); }
.weights tbody th { border-bottom: 1px solid var(--grid); }
.weights .wbar { display: inline-block; width: 52px; height: 1px; position: relative; vertical-align: middle; margin-right: 10px; background: var(--grid); }
.weights .wbar i { position: absolute; left: 0; top: -1px; height: 3px; background: var(--ink); max-width: 100%; }
.weights .wbar i.is-neg { background: var(--oxide); left: auto; right: 0; }
.weights .col-err { color: var(--oxide); }
.insight { padding: 18px 0; border-top: 1px solid var(--line); font-size: 16px; line-height: 1.55; color: var(--ink); }
@media (min-width: 1024px) { .insight { padding-right: 30%; } }
.method { border-top: 1px solid var(--line); padding: 0; font-size: 15px; line-height: 1.6; }
.method summary { cursor: pointer; padding: 12px 0; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; width: max-content; }
.method summary:hover { color: var(--navy); }
.method ul { padding: 0 0 16px 1.1em; display: grid; gap: 6px; list-style: disc outside; }

sub { font-size: 0.75em; line-height: 0; vertical-align: -0.25em; }
