/* itisjaro.cz – jedna stránka, inspirace bejamas.com: chladná šedá / skoro černá, limetkový akcent,
   písmo Switzer (ITF Free Font License, fonts/), světlý/tmavý režim podle systému */

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

:root {
  --bg: #f3f3f4;
  --text: #131315;
  --muted: #6a6971;
  --line: #e0e2e6;
  --surface: #ffffff;
  --accent: #c6f36b;
  --accent-text: #131315;
  --link: var(--text);
  --font: "Switzer", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131315;
    --text: #f3f3f4;
    --muted: #a3a3ab;
    --line: rgba(255, 255, 255, 0.1);
    --surface: #1c1c1f;
    --link: var(--accent);
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 18px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: var(--accent-text); }

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

strong { font-weight: 500; }

.page {
  max-width: 46rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 4rem;
}

/* Hlavička */
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6rem;
}
.brand {
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--text);
  text-decoration: none;
}
.top-right { display: flex; align-items: center; gap: 1.5rem; }
.lang { font-size: 15px; color: var(--muted); }
.lang a { color: var(--muted); text-decoration: none; }
.lang a:hover { color: var(--text); }
.lang a[aria-current] { color: var(--text); }
.cta {
  display: inline-block;
  padding: 0.6rem 1.15rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-text);
  font-size: 15px;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 0.15s ease;
}
.cta:hover { transform: translateY(-1px); }

/* Úvod */
.intro { margin-bottom: 3.5rem; }
h1 {
  font-size: 4rem;
  line-height: 1.05;
  font-weight: 450;
  letter-spacing: -0.035em;
  margin: 0 0 1rem;
}
.nick {
  font-size: 15px;
  color: var(--muted);
  margin: 0;
}

hr.full {
  border: 0;
  border-top: 1px solid var(--line);
  width: 100vw;
  margin: 0 0 3.5rem calc(50% - 50vw);
}

.hero { margin-bottom: 4rem; }
.lead {
  font-size: 1.75rem;
  line-height: 1.35;
  letter-spacing: -0.02em;
  margin: 0 0 1.5rem;
}
.hero p:not(.lead) { color: var(--muted); }

/* Sekce: popisek vlevo, obsah vpravo */
section {
  display: grid;
  grid-template-columns: 10rem 1fr;
  gap: 0 2rem;
  padding: 2.5rem 0;
  border-top: 1px solid var(--line);
}
h2 {
  font-size: 15px;
  line-height: 1.75;
  font-weight: 400;
  color: var(--muted);
  margin: 0.1rem 0 0;
}
section > div > :first-child { margin-top: 0; }
section > div > :last-child { margin-bottom: 0; }

ul { padding-left: 1.1rem; }
li { margin-bottom: 0.65rem; }
li::marker { color: var(--muted); }

.note { color: var(--muted); font-size: 15px; }

/* Cesta: kroky se svislou linkou, poslední zvýrazněný akcentem */
ol.path {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  border-left: 1px solid var(--line);
}
ol.path li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.7rem;
}
ol.path li::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 0.6em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
}
ol.path li:last-child::before { background: var(--accent); box-shadow: 0 0 0 3px var(--bg), 0 0 0 4px var(--muted); }

.links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; }

footer {
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  margin-top: 1rem;
  font-size: 14px;
  color: var(--muted);
}


@media (max-width: 640px) {
  body { font-size: 17px; }
  .page { padding-top: 1.25rem; }
  .top { margin-bottom: 3.5rem; }
  .top-right { gap: 1rem; }
  .intro { margin-bottom: 2.5rem; }
  h1 { font-size: 2.75rem; }
  hr.full { margin-bottom: 2.5rem; }
  .hero { margin-bottom: 3rem; }
  .lead { font-size: 1.4rem; }
  section { grid-template-columns: 1fr; padding: 2rem 0; }
  h2 { margin-bottom: 0.6rem; }
}
