/* tomashodbod.cz: jeden úzký textový sloupec, serif Newsreader, popisky v Geist, jedna barva odkazů, tmavý režim */
:root {
  --bg: #fbfbfa;
  --fg: #1d1f21;
  --muted: #6b6f74;
  --rule: #e4e5e3;
  --accent: #2a5db0;
  --accent-soft: rgba(42, 93, 176, 0.4);
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #151617; --fg: #e6e6e3; --muted: #9a9da1; --rule: #2a2c2e; --accent: #8db4f0; --accent-soft: rgba(141, 180, 240, 0.4); color-scheme: dark; }
}
:root[data-theme="dark"] { --bg: #151617; --fg: #e6e6e3; --muted: #9a9da1; --rule: #2a2c2e; --accent: #8db4f0; --accent-soft: rgba(141, 180, 240, 0.4); color-scheme: dark; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg); color: var(--fg);
  font-family: var(--serif);
  font-size: 1.125rem; line-height: 1.6;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 0 5rem;
  -webkit-font-smoothing: antialiased;
}
.lang { max-width: 36rem; margin: 0 auto; padding-top: 1.25rem; text-align: right; font-family: var(--sans); font-size: 0.8125rem; }
.flag { font-family: var(--sans); font-size: 0.75rem; color: var(--muted); letter-spacing: 0.02em; }
main { max-width: 36rem; margin: 0 auto; padding-top: clamp(2rem, 10vh, 5.5rem); display: flex; flex-direction: column; gap: 2.25rem; }
p { margin: 0; }
h1 { margin: 0; font-size: 1.5rem; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; text-wrap: balance; }
a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; text-decoration-color: var(--accent-soft); }
a:hover { text-decoration-color: currentColor; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

.intro { display: flex; flex-direction: column; gap: 0.75rem; }
.head { display: flex; align-items: center; gap: 1.1rem; margin-bottom: 0.5rem; }
.photo { flex: none; width: 4.5rem; height: 4.5rem; border-radius: 50%; object-fit: cover; border: 1px solid var(--rule); }
.id { min-width: 0; display: flex; flex-direction: column; gap: 0.2rem; }
.links { display: flex; flex-wrap: wrap; gap: 0.1rem 0.9rem; font-family: var(--sans); font-size: 0.875rem; }
.back { font-family: var(--sans); font-size: 0.875rem; }

section { display: flex; flex-direction: column; gap: 0.6rem; }
.label { font-family: var(--sans); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0; }
ul.list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.35rem; }
.note { color: var(--muted); }
.past li { display: grid; grid-template-columns: 6.5rem 1fr; gap: 0.75rem; }
.past li > span:last-child { min-width: 0; }
.years { color: var(--muted); font-variant-numeric: tabular-nums; }
.projects li { display: flex; flex-direction: column; gap: 0.15rem; }
.projects .meta { font-family: var(--sans); font-size: 0.8125rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.projects ul.list { gap: 1.25rem; }

footer { max-width: 36rem; margin: 3rem auto 0; color: var(--muted); font-size: 0.875rem; font-family: var(--sans); border-top: 1px solid var(--rule); padding-top: 1rem; }

@media (max-width: 480px) {
  .past li { grid-template-columns: 1fr; gap: 0; }
  .past ul.list { gap: 0.8rem; }
}
