/* matejdobner.cz — plain CSS, no build step */

:root {
  --asphalt: #16181a;
  --asphalt-2: #22262a;
  --paper: #f4f2ec;
  --card: #fbfaf6;
  --ink: #16181a;
  --dim: #5f646b;
  --line: #d9d5c9;
  --belt: #f5d400;          /* seat-belt yellow */
  --on-dark: #f4f2ec;
  --on-dark-dim: #a2a7ad;

  --sans: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--belt); outline-offset: 3px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ── Top bar ─────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: var(--asphalt);
  color: var(--on-dark);
  border-bottom: 1px solid var(--asphalt-2);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: .01em; }
.mark {
  display: grid; place-items: center; width: 30px; height: 30px;
  background: var(--belt); color: var(--asphalt);
  font-family: var(--mono); font-size: 12px; font-weight: 700;
}
.topbar nav { display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; }
.topbar nav::-webkit-scrollbar { display: none; }
.topbar nav a {
  font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; color: var(--on-dark-dim); white-space: nowrap; padding: 6px 0;
}
.topbar nav a:hover { color: var(--belt); }

/* ── Hero ────────────────────────────────── */
.hero { background: var(--asphalt); color: var(--on-dark); }
.hero-grid {
  display: grid; grid-template-columns: 1.35fr 1fr; gap: 56px; align-items: center;
  padding-top: 72px; padding-bottom: 72px;
}
.eyebrow {
  margin: 0 0 18px; font-family: var(--mono); font-size: 12px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-dim);
}
h1 {
  margin: 0; font-size: clamp(56px, 10vw, 116px); line-height: .9;
  font-weight: 800; letter-spacing: -.035em; text-transform: uppercase;
}
.role {
  display: inline-block; margin: 22px 0 0; padding: 5px 10px;
  background: var(--belt); color: var(--asphalt);
  font-family: var(--mono); font-size: 13px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
}
.lede { max-width: 30em; margin: 24px 0 0; font-size: 19px; color: #d7d8d6; text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn {
  display: inline-block; padding: 12px 20px; border: 1px solid #5a6067;
  text-decoration: none; font-weight: 600; font-size: 15px; color: var(--on-dark);
  transition: border-color .15s, background .15s, color .15s;
}
.btn:hover { border-color: var(--belt); color: var(--belt); }
.btn-primary { background: var(--belt); border-color: var(--belt); color: var(--asphalt); }
.btn-primary:hover { background: #ffe433; color: var(--asphalt); }

.hero-side { display: grid; gap: 28px; justify-items: start; }
.portrait {
  width: 220px; height: 220px; border-radius: 50%; object-fit: cover; display: block;
  box-shadow: 0 0 0 4px var(--asphalt), 0 0 0 6px var(--belt);
}
.facts { margin: 0; width: 100%; border-top: 1px solid #3a3f45; }
.facts div { display: grid; grid-template-columns: 70px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid #3a3f45; }
.facts dt { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-dim); padding-top: 3px; }
.facts dd { margin: 0; font-size: 15px; }

/* kerb stripe closing the hero */
.kerb {
  height: 10px;
  background: repeating-linear-gradient(90deg, var(--belt) 0 44px, var(--asphalt) 44px 88px);
}

/* ── Sections ────────────────────────────── */
.section { padding: 80px 0; border-bottom: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 200px 1fr; gap: 40px; }
.tag {
  margin: 0; align-self: start; position: sticky; top: 84px;
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--dim);
}
.tag span { display: inline-block; margin-right: 8px; padding: 2px 6px; background: var(--ink); color: var(--paper); }
.col { min-width: 0; }
.section-sub { margin: 0 0 36px; font-size: 26px; line-height: 1.25; font-weight: 700; letter-spacing: -.015em; max-width: 22em; text-wrap: balance; }

.prose p { margin: 0 0 1em; font-size: 20px; line-height: 1.55; max-width: 34em; text-wrap: pretty; }
.prose p:last-child { margin-bottom: 0; }

/* Experience */
.jobs { list-style: none; margin: 0; padding: 0; }
.job { display: grid; grid-template-columns: 130px 1fr; gap: 24px; padding: 28px 0; border-top: 1px solid var(--line); }
.job:first-child { border-top: 2px solid var(--ink); }
.job-when { font-family: var(--mono); font-size: 13px; color: var(--dim); padding-top: 4px; font-variant-numeric: tabular-nums; }
.job h3 { margin: 0; font-size: 21px; line-height: 1.25; letter-spacing: -.01em; }
.job-org { margin: 2px 0 12px; font-weight: 600; color: var(--dim); }
.job-body > p:not(.job-org) { margin: 0 0 10px; max-width: 38em; }
.job ul { margin: 0; padding: 0; list-style: none; max-width: 38em; }
.job li { position: relative; padding-left: 20px; margin: 5px 0; color: #33373b; }
.job li::before { content: ""; position: absolute; left: 0; top: .68em; width: 10px; height: 3px; background: var(--belt); outline: 1px solid rgba(0,0,0,.25); }

.minor-head { margin: 48px 0 0; padding-bottom: 12px; border-bottom: 2px solid var(--ink); font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.plain-list { list-style: none; margin: 0; padding: 0; }
.plain-list li { display: grid; grid-template-columns: 130px 1fr; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.plain-list .when { font-family: var(--mono); font-size: 13px; color: var(--dim); padding-top: 3px; }

/* Skills */
.skill-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.skill { background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--ink); padding: 20px 22px; }
.skill h3 { margin: 0 0 10px; font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.skill ul { list-style: none; margin: 0; padding: 0; }
.skill li { padding: 7px 0; border-top: 1px solid var(--line); font-weight: 600; }
.skill li:first-child { border-top: 0; }

/* Training */
.laps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.lap { background: var(--asphalt); color: var(--on-dark); padding: 22px; border-bottom: 4px solid var(--belt); }
.lap-no { margin: 0 0 28px; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--belt); }
.lap h3 { margin: 0 0 4px; font-size: 19px; line-height: 1.25; }
.lap p:last-child { margin: 0; color: var(--on-dark-dim); font-size: 15px; }
.aside-note { margin: 28px 0 0; color: var(--dim); max-width: 38em; }

/* Contact */
.contact { border-bottom: 0; }
.contact-line { margin: 0 0 10px; color: var(--dim); }
.contact-mail {
  display: inline-block; font-size: clamp(22px, 4.6vw, 44px); font-weight: 800; letter-spacing: -.02em;
  text-decoration: none; overflow-wrap: anywhere;
  background: linear-gradient(var(--belt), var(--belt)) 0 100% / 100% 6px no-repeat;
  padding-bottom: 6px; transition: background-size .2s;
}
.contact-mail:hover { background-size: 100% 100%; }
.contact-meta { margin: 18px 0 0; font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }

/* Footer */
.foot { background: var(--asphalt); color: var(--on-dark-dim); font-family: var(--mono); font-size: 12px; letter-spacing: .06em; }
.foot-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 22px; padding-bottom: 22px; }

/* ── Small screens ───────────────────────── */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; padding-top: 48px; padding-bottom: 56px; }
  .hero-side { grid-template-columns: auto 1fr; align-items: center; gap: 24px; }
  .portrait { width: 132px; height: 132px; }
  .row { grid-template-columns: 1fr; gap: 20px; }
  .tag { position: static; }
  .section { padding: 56px 0; }
  .laps { grid-template-columns: 1fr; }
  .lap-no { margin-bottom: 14px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .brand-name { display: none; }
  .topbar nav { gap: 16px; }
  .hero-side { grid-template-columns: 1fr; }
  .job, .plain-list li { grid-template-columns: 1fr; gap: 6px; }
  .skill-grid { grid-template-columns: 1fr; }
  .section-sub { font-size: 22px; }
  .prose p { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
