/* Reset a základné štýly prvkov. */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-md);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p, ul, figure { margin: 0; }
h1, h2, h3 { font-weight: 650; line-height: 1.1; letter-spacing: -.025em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: 1.5rem; }

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
img, svg { display: block; max-width: 100%; }
svg { flex-shrink: 0; }

button, a, summary { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 5px; }
::selection { background: #ffd7c6; color: var(--ink); }

[hidden] { display: none !important; }

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

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

.ver-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border: 1px solid #deded6; border-radius: 999px; background: #f3f4f0; color: #1b1d20; font-size: 12px; font-weight: 600; white-space: nowrap; }
.ver-badge strong { color: #be3b15; font-weight: 800; }
