/* ==========================================================================
   Základ: proměnné (barvy, písma), reset, typografie a pomocné třídy
   ========================================================================== */

:root {
    /* barvy */
    --bg: #21212c;
    --surface: #2a2a38;
    --text: #fff;
    --muted: #ababb5;
    --accent: #d5846e;       /* terakota – drobné nadpisy nad titulky */
    --gold: #b08450;         /* zlatá – nadpisy, tlačítka */
    --gold-light: #ba9a63;   /* světlejší zlatá – menu, ikony v patičce */
    --line: rgba(182, 189, 197, .12);

    /* písma */
    --font-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
    --font-title: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-ui: 'Roboto', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
    --font-label: 'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;

    /* rozměry */
    --container: 1140px;
    --container-wide: 1200px;
}

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

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

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 400 16px/24px var(--font-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
}

h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote, dl, dd {
    margin: 0;
}

ul, ol {
    padding: 0;
}

img, svg, iframe {
    max-width: 100%;
}

img {
    display: block;
    height: auto;
    border: 0;
}

a {
    color: inherit;
}

table {
    border-collapse: collapse;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

/* ---------- přístupnost ---------- */

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

.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 1000;
    padding: 10px 16px;
    background: var(--gold);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.skip-link:focus {
    top: 16px;
}

:focus-visible {
    outline: 2px solid var(--gold-light);
    outline-offset: 3px;
}

/* ---------- viditelnost podle šířky obrazovky (počítač > 1024 px, tablet 768–1024 px, mobil ≤ 767 px) ---------- */

@media (min-width: 1025px) {
    .hide-desktop { display: none !important; }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .hide-tablet { display: none !important; }
}

@media (max-width: 767px) {
    .hide-mobile { display: none !important; }
}

/* ---------- formátování textu z editoru (barvy, velikosti, zarovnání) ---------- */

.c-white { color: #fff; }
.c-light { color: #d8d5d0; }
.c-gold { color: var(--gold-light); }
.c-copper { color: var(--gold); }
.c-accent { color: var(--accent); }
.c-muted { color: var(--muted); }
.c-dark { color: #1a1a1a; }

.fs-small { font-size: .85em; }
.fs-large { font-size: 1.25em; }
.fs-xlarge { font-size: 1.6em; }
.fs-huge { font-size: 2.2em; }

/* zarovnání celého bloku z editoru musí přebít zarovnání z komponenty */
.align-left { text-align: left !important; }
.align-center { text-align: center !important; }
.align-right { text-align: right !important; }
.align-justify { text-align: justify !important; }

/* ---------- pohyb: nenápadné odkrytí obsahu při rolování ----------
   Skript (scripts/site.js) přidá <html> třídu "js" a prvky odkrývá; bez skriptu je vše hned vidět. */

.js .reveal {
    opacity: 0;
    transition: opacity .8s ease, transform .8s ease;
}

.js .reveal--left { transform: translateX(-40px); }
.js .reveal--zoom { transform: scale(.85); }
.js .reveal--bounce { transition: none; }

.js .reveal.is-visible {
    opacity: 1;
    transform: none;
}

.js .reveal--bounce.is-visible {
    animation: bounce-in .75s both;
}

@keyframes bounce-in {
    0% { opacity: 0; transform: scale(.3); }
    20% { transform: scale(1.1); }
    40% { transform: scale(.9); }
    60% { opacity: 1; transform: scale(1.03); }
    80% { transform: scale(.97); }
    100% { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .js .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .js .reveal--bounce.is-visible {
        animation: none;
    }
}
