/* Písma hostovaná u nás (ne z Google Fonts kvůli GDPR) */
@font-face { font-family: 'Outfit'; font-weight: 600; font-style: normal; font-display: swap; src: url('../fonts/outfit-latin-600-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: 'Outfit'; font-weight: 600; font-style: normal; font-display: swap; src: url('../fonts/outfit-latin-ext-600-normal.woff2') format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Outfit'; font-weight: 700; font-style: normal; font-display: swap; src: url('../fonts/outfit-latin-700-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: 'Outfit'; font-weight: 700; font-style: normal; font-display: swap; src: url('../fonts/outfit-latin-ext-700-normal.woff2') format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-weight: 400; font-style: normal; font-display: swap; src: url('../fonts/inter-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: 'Inter'; font-weight: 400; font-style: normal; font-display: swap; src: url('../fonts/inter-latin-ext-400-normal.woff2') format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-weight: 500; font-style: normal; font-display: swap; src: url('../fonts/inter-latin-500-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: 'Inter'; font-weight: 500; font-style: normal; font-display: swap; src: url('../fonts/inter-latin-ext-500-normal.woff2') format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-weight: 600; font-style: normal; font-display: swap; src: url('../fonts/inter-latin-600-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: 'Inter'; font-weight: 600; font-style: normal; font-display: swap; src: url('../fonts/inter-latin-ext-600-normal.woff2') format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--jm-paper);
  color: var(--jm-ink);
  font-family: var(--jm-font-body);
  font-size: var(--jm-size-body);
  line-height: var(--jm-lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3 {
  font-family: var(--jm-font-heading);
  font-weight: 700;
  letter-spacing: var(--jm-tracking-heading);
  line-height: var(--jm-lh-heading);
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: var(--jm-size-h1); line-height: var(--jm-lh-tight); }
h2 { font-size: var(--jm-size-h2); }
h3 { font-size: var(--jm-size-h3); font-weight: 600; }
p { margin: 0 0 var(--jm-space-16); text-wrap: pretty; }
ul { margin: 0; padding: 0; }
a { color: var(--jm-blue); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }

/* Viditelný fokus pro ovládání klávesnicí */
:focus-visible {
  outline: 3px solid var(--jm-blue);
  outline-offset: 2px;
  border-radius: var(--jm-radius-sm);
}

.skip-link {
  position: absolute; left: var(--jm-space-16); top: -100px;
  background: var(--jm-ink); color: var(--jm-paper);
  padding: var(--jm-space-12) var(--jm-space-16); border-radius: var(--jm-radius-sm);
  z-index: 100; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: var(--jm-space-16); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.container { width: 100%; max-width: calc(var(--jm-max) + 2 * var(--jm-gutter)); margin: 0 auto; padding: 0 var(--jm-gutter); }
.section { padding: var(--jm-section) 0; }
[id] { scroll-margin-top: 5rem; }

.label {
  display: inline-block;
  font: 600 var(--jm-size-caption)/1.2 var(--jm-font-body);
  letter-spacing: var(--jm-tracking-label);
  text-transform: uppercase;
  margin-bottom: var(--jm-space-16);
}
.lead { font-size: var(--jm-size-body-lg); color: var(--jm-muted); max-width: 38em; }

/* Jemné objevení při scrollu – jen když to návštěvník nemá vypnuté */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity var(--jm-motion-slow) var(--jm-ease), transform var(--jm-motion-slow) var(--jm-ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
