/* ==========================================================================
   TINOTE — reset, typografie, font-face
   ========================================================================== */

/* Titillium Web self-hosted (SIL OFL 1.1 — viz assets/fonts/titillium-web/OFL.txt).
   Self-host místo Google Fonts CDN kvůli GDPR (přenos IP do USA). */
@font-face { font-family: "Titillium Web"; font-weight: 300; font-style: normal; font-display: swap;
             src: url("../fonts/titillium-web/TitilliumWeb-Light.ttf") format("truetype"); }
@font-face { font-family: "Titillium Web"; font-weight: 400; font-style: normal; font-display: swap;
             src: url("../fonts/titillium-web/TitilliumWeb-Regular.ttf") format("truetype"); }
@font-face { font-family: "Titillium Web"; font-weight: 600; font-style: normal; font-display: swap;
             src: url("../fonts/titillium-web/TitilliumWeb-SemiBold.ttf") format("truetype"); }
@font-face { font-family: "Titillium Web"; font-weight: 700; font-style: normal; font-display: swap;
             src: url("../fonts/titillium-web/TitilliumWeb-Bold.ttf") format("truetype"); }

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  overscroll-behavior-x: contain;
}
html:focus-within { scroll-behavior: smooth; }

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

h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink-strong);
  font-weight: 700;
  line-height: var(--lh-head);
  letter-spacing: -0.015em;
}
h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

p  { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--green-ink); }

img, svg, video { display: block; max-width: 100%; height: auto; }

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--green-ink);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

.icon { width: 24px; height: 24px; flex: none; }
.icon--sm { width: 18px; height: 18px; }
.icon--lg { width: 32px; height: 32px; }

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

/* --- Scroll reveal (kap. 32: jemné objevení) ---------------------------
   Podmíněno třídou .js — bez JavaScriptu se obsah nikdy neskryje. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
}
