/* =============================================================
   v5 Base — reset, typography, focus, skip-link, font-face
   ============================================================= */

/* Font-face: Overpass lokálně */
@font-face {
  font-family: "Overpass";
  src: url("../fonts/overpass/overpass-regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Overpass";
  src: url("../fonts/overpass/overpass-medium.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Overpass";
  src: url("../fonts/overpass/overpass-semibold.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Overpass";
  src: url("../fonts/overpass/overpass-bold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: var(--fs-body-d);
  line-height: var(--lh-body);
  color: var(--brand-black);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@media (max-width: 719px) {
  body { font-size: var(--fs-body-m); }
}

img, picture, svg, video { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }

/* Typografie */
h1, h2, h3, h4 { line-height: var(--lh-heading); font-weight: 700; }
h1 { font-size: var(--fs-h1-d); }
h2 { font-size: var(--fs-h2-d); }
h3 { font-size: var(--fs-h3-d); font-weight: 600; }
@media (max-width: 719px) {
  h1 { font-size: var(--fs-h1-m); }
  h2 { font-size: var(--fs-h2-m); }
  h3 { font-size: var(--fs-h3-m); }
}

p { max-width: var(--content-max); }
a {
  color: var(--brand-green-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--t-fast);
}
a:hover:not(.btn) { color: var(--brand-green); }

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-4);
  background: var(--brand-green);
  color: #fff;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 600;
  z-index: 1000;
  transition: top var(--t-fast);
}
.skip-link:focus { top: var(--space-4); color: #fff; outline: 3px solid #fff; outline-offset: 2px; }

/* Focus visible (global) */
:focus-visible {
  outline: 3px solid var(--brand-green);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* visually-hidden */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Selection */
::selection { background: var(--brand-yellow); color: var(--brand-black); }
