/* Reset a globální typografie. */

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

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

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto,
        "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    color: var(--hub-text);
    background: var(--hub-bg-base);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }

a {
    color: var(--hub-accent);
    text-decoration: none;
    transition: color 0.2s ease;
}
a:hover { color: var(--hub-accent-hover); }

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

input[type="search"] {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    outline: 0;
    width: 100%;
}
input[type="search"]::-webkit-search-cancel-button { display: none; }

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

code {
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
    font-size: 0.9em;
    padding: 0.1em 0.35em;
    background: var(--hub-link-chip-bg);
    border-radius: 4px;
}

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

/* Reduced motion — vypneme všechny dlouhé animace. */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Fokus pro klávesnici, neviditelný pro myš. */
:focus { outline: none; }
:focus-visible {
    outline: 2px solid var(--hub-accent);
    outline-offset: 2px;
    border-radius: 8px;
}
