/* FNAF – Festival nahých forem, vzhled 2026 (varianta C po připomínkách klientky 11/2026)
   Jedno písmo (Oswald), větší text, bez tenkých linek a rámečků; oddělovačem je černý pásek aktualit. */

:root {
    --ink: #111111;
    --red: #e30613;
    --muted: #5f5f5f;
    --surface: #f0f0ee;
    --paper: #ffffff;
    --container: 1260px;
    --gutter: 20px;
    --font: "Oswald", "Arial Narrow", sans-serif;
}

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

[hidden] { display: none !important; }

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

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font);
    font-weight: 400;
    font-size: 19px;
    line-height: 1.5;
    letter-spacing: .01em;
}

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

.container {
    width: 100%;
    max-width: calc(var(--container) + 2 * var(--gutter));
    margin: 0 auto;
    padding: 0 var(--gutter);
}

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

h1, h2, h3, .label {
    font-weight: 500;
    text-transform: uppercase;
    line-height: 1.1;
    margin: 0;
}
h1 { font-size: 38px; font-weight: 600; }
h2 { font-size: 30px; }
h3 { font-size: 24px; }

.label { font-size: 16px; letter-spacing: .05em; text-decoration: none; }
.is-red { color: var(--red); }
.meta { color: var(--muted); font-size: 17px; }

.button-outline {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 18px;
    background: var(--ink); color: var(--paper);
    font-weight: 500; font-size: 17px;
    text-transform: uppercase; letter-spacing: .05em; text-decoration: none;
}
.button-outline:hover { background: var(--red); }

/* ---------- Hlavička ---------- */

.site-header { background: var(--paper); position: relative; z-index: 20; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 96px; }
.site-header__logo { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.site-header__logo img { width: 74px; height: auto; }
.site-header__name { font-weight: 500; font-size: 15px; line-height: 1.05; text-transform: uppercase; letter-spacing: .02em; }

.main-nav { display: flex; align-items: center; justify-content: space-between; flex: 1; gap: 16px; }
.main-nav__list, .main-nav__utility { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; }
.main-nav__list { gap: 30px; margin: 0 auto; }
.main-nav__link {
    display: flex; align-items: center; gap: 8px;
    text-decoration: none;
    font-weight: 500; font-size: 17px;
    text-transform: uppercase; letter-spacing: .04em;
}
.main-nav__link img { width: 44px; height: 40px; object-fit: contain; }
.main-nav__link:hover span, .main-nav__link.is-active span { color: var(--red); }

.main-nav__utility { gap: 14px; }
.util { display: flex; align-items: center; text-decoration: none; }
.util img { width: auto; height: 30px; }
.util--contact img { height: 21px; }
.util span { display: none; }
.util:hover img { opacity: .7; }
.lang { display: flex; gap: 10px; padding-left: 6px; font-weight: 500; font-size: 16px; letter-spacing: .04em; }
.lang a { text-decoration: none; }
.lang a.is-active, .lang a:hover { color: var(--red); }

.site-header__mobile { display: none; align-items: center; gap: 22px; }
.burger { background: none; border: 0; padding: 6px 0; cursor: pointer; display: grid; gap: 6px; }
.burger span { display: block; width: 32px; height: 3px; background: var(--ink); transition: transform .2s, opacity .2s; }
.menu-open .burger span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* kresby mají bílé neprůhledné pozadí: na šedém podkladu ho skrýt */
.year-cell img, .current-year__head img, .page-head__title img, .main-nav__link img { mix-blend-mode: multiply; }

/* ---------- Pásek aktualit (oddělovač na všech stránkách) ---------- */

.ticker {
    background: var(--ink); color: var(--paper);
    overflow: hidden; white-space: nowrap;
    font-weight: 500; font-size: 19px;
    text-transform: uppercase; letter-spacing: .03em;
}
.ticker__track { display: inline-flex; animation: ticker 40s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__group { display: inline-flex; }
.ticker__item { padding: 11px 40px 11px 0; }
.ticker__item::before { content: "●"; color: var(--red); margin-right: 16px; }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
    .ticker__track { animation: none; }
    .ticker { white-space: normal; }
}

/* ---------- Ročníky ---------- */

.years { padding: 16px 0 8px; }
.years__strip {
    display: grid; grid-auto-flow: column; grid-auto-columns: minmax(112px, 1fr);
    overflow-x: auto; scrollbar-width: thin;
}
.year-cell {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    padding: 10px 6px 12px; text-decoration: none; text-align: center;
}
.year-cell img { width: 96px; height: 90px; object-fit: contain; }
.year-cell span { font-weight: 500; font-size: 16px; letter-spacing: .03em; text-transform: uppercase; line-height: 1.15; }
.year-cell.is-current, .year-cell:hover { background: var(--surface); }

/* ---------- Fotka na úvodní straně ---------- */

.slider { padding: 16px 0 40px; }
.slider__inner { position: relative; display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; gap: 16px; }
.slider__track { min-width: 0; }
.slide { display: block; text-decoration: none; }
.slide__img { display: flex; align-items: center; justify-content: center; height: min(66vh, 640px); background: var(--paper); }
.slide__img img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.slide__caption { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; padding-top: 12px; text-align: center; }
.slide__caption strong { font-weight: 600; font-size: 24px; text-transform: uppercase; }
.slide__caption span { font-size: 20px; color: var(--muted); align-self: center; }
.slide:hover .slide__caption strong { color: var(--red); }
.slider__arrow {
    width: 64px; height: 64px; border: 0; border-radius: 50%;
    background: var(--ink); color: var(--paper);
    padding: 0; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s;
}
.slider__arrow:hover, .slider__arrow:focus-visible { background: var(--red); }
.slider__arrow svg { display: block; }
.slider__count { grid-column: 2; margin: 4px 0 0; text-align: center; color: var(--muted); font-size: 17px; }

/* ---------- Aktuální ročník ---------- */

.current-year { padding: 24px 0 56px; }
.current-year--page { padding-top: 0; }
.current-year__grid { display: grid; grid-template-columns: 400px 1fr; gap: 48px; }
.current-year__head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.current-year__head img { width: 96px; height: 90px; object-fit: contain; }
.current-year__head h2 { font-size: 48px; font-weight: 500; }

.program-days { list-style: none; margin: 8px 0 0; padding: 0; }
.program-days a { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; text-decoration: none; font-weight: 500; font-size: 20px; }
.program-days a:hover, .program-days a.is-active { color: var(--red); }
.arrow-link { color: var(--red); }

/* ---------- Text z editoru ---------- */

.rich-text { font-size: 20px; line-height: 1.55; max-width: 800px; }
.rich-text > :first-child { margin-top: 0; }
.rich-text p { margin: 0 0 .8em; }
.rich-text h1, .rich-text h2, .rich-text h3, .rich-text h4 { font-size: 26px; margin: 1.1em 0 .4em; }
.rich-text strong, .rich-text b { font-weight: 600; }
.rich-text a { color: var(--red); }
.rich-text ul, .rich-text ol { padding-left: 1.2em; }
.rich-text img { margin: 1em 0; }
.rich-text iframe { max-width: 100%; }
.rich-text.narrow { max-width: 800px; }
.lead { font-size: 22px; }

/* ---------- Hlavička podstránky ---------- */

.page-head { padding: 24px 0 0; margin-bottom: 36px; }
.page-head__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.page-head__title { display: flex; align-items: center; gap: 16px; }
.page-head__title img { width: 60px; height: 54px; object-fit: contain; }
.page-head__title .meta { margin: 4px 0 0; }
.page-head__icon { width: auto !important; height: 56px !important; }
.page-head__icon--2 { height: 32px !important; }

.select-filter select {
    appearance: none; -webkit-appearance: none;
    border: 0; border-radius: 0; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7'%3E%3Cpath d='M0 0l6 7 6-7z' fill='%23111'/%3E%3C/svg%3E") no-repeat right 14px center;
    padding: 7px 36px 7px 12px;
    font-weight: 500; font-size: 15px; letter-spacing: .04em; text-transform: uppercase;
    cursor: pointer;
}

/* ---------- Výpis sekce ---------- */

.listing { padding: 0 0 56px; }
.listing__grid { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: start; }

.artists__box { position: sticky; top: 12px; display: flex; flex-direction: column; max-height: calc(100vh - 24px); }
.artists__head { display: grid; gap: 10px; padding-bottom: 10px; }
.artists__filter { width: 100%; border: 0; background: var(--surface); padding: 9px 12px; font-size: 18px; }
.artists__list { overflow-y: auto; flex: 1; padding-right: 8px; }
.artists__letter { display: block; padding: 10px 0 2px; font-weight: 500; font-size: 18px; color: var(--red); }
.artists__item { display: block; padding: 3px 8px; margin-left: -8px; text-decoration: none; font-size: 19px; line-height: 1.3; }
.artists__item:hover { color: var(--red); }
.artists__item.is-active { background: var(--ink); color: var(--paper); }

.results__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 20px; }
.results__head > div { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.results__head .label { white-space: nowrap; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 28px; }
.cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { text-decoration: none; display: flex; flex-direction: column; gap: 8px; }
.card__img { aspect-ratio: 4 / 3; background: var(--surface); overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card__img img { transform: scale(1.03); }
.card__meta { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 17px; }
.card__meta .is-red { font-weight: 500; letter-spacing: .03em; text-transform: uppercase; }
.card__title { font-weight: 500; font-size: 24px; line-height: 1.15; text-transform: uppercase; }
.card:hover .card__title { color: var(--red); }

.pager { display: flex; align-items: center; gap: 16px; margin-top: 36px; }
.empty { font-size: 20px; color: var(--muted); }

/* ---------- Detail ---------- */

.detail__head { display: grid; grid-template-columns: 1fr 560px; gap: 48px; padding-top: 24px; padding-bottom: 32px; }
.breadcrumbs { color: var(--muted); font-size: 17px; margin-bottom: 10px; }
.breadcrumbs a { color: var(--red); text-decoration: none; }
.detail h1 { margin-bottom: 6px; }
.detail__author { font-weight: 500; font-size: 26px; text-transform: uppercase; margin: 0 0 16px; }
.detail__author a { text-decoration: none; }
.detail__author a span { color: var(--red); }
.detail__author a:hover { color: var(--red); }
.detail__perex { font-size: 22px; line-height: 1.45; margin: 0 0 16px; }
.detail__photo img { width: 100%; max-height: 720px; object-fit: contain; }
.facts { margin: 20px 0 0; }
.facts div { display: flex; gap: 12px; padding: 2px 0; }
.facts dt { color: var(--muted); }
.facts dt::after { content: ":"; }
.facts dd { margin: 0; font-weight: 500; text-transform: uppercase; }

.gallery, .more-by { padding: 16px 0 48px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.gallery__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.gallery__grid a { aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface); }
.gallery__grid img { width: 100%; height: 100%; object-fit: cover; transition: opacity .2s; }
.gallery__grid a:hover img { opacity: .85; }
.author-bio { display: grid; gap: 10px; margin-bottom: 36px; }

/* ---------- Program ---------- */

.program-page { display: grid; gap: 24px; }
.program-days--tabs { display: flex; flex-wrap: wrap; gap: 0 28px; margin: 0; }
.program-days--tabs a { padding: 4px 0; }
.program-list { list-style: none; margin: 0; padding: 0; max-width: 900px; }
.program-list li { display: grid; grid-template-columns: 140px 1fr; gap: 20px; padding: 10px 0; }
.program-list__time { font-weight: 500; color: var(--red); font-size: 20px; }
.program-list a { text-decoration: none; }
.program-list__name { display: block; font-weight: 600; font-size: 21px; }
.program-list__title { display: block; color: var(--muted); }
.program-list a:hover .program-list__name { color: var(--red); }

/* ---------- Stránky, hledání, kontakt ---------- */

.page-body { padding: 0 0 64px; }
.partners { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; margin-top: 32px; }
.partners img { max-height: 110px; width: auto; }
.social-links { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 6px; font-size: 22px; }
.social-links a { text-decoration: none; }
.social-links strong { color: var(--red); font-weight: 600; margin-right: 8px; }
.social-links a:hover { color: var(--red); }

.search-form { display: flex; background: var(--surface); margin-bottom: 10px; }
.search-form input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 12px 18px; font-size: 28px; outline: none; }
.search-form button { margin: 8px; border: 0; background: var(--ink); color: var(--paper); padding: 0 22px; font-weight: 500; font-size: 18px; letter-spacing: .05em; text-transform: uppercase; cursor: pointer; }
.search-form button:hover { background: var(--red); }
.tabs { display: flex; gap: 28px; margin: 20px 0 24px; flex-wrap: wrap; }
.tabs a { padding-bottom: 6px; border-bottom: 3px solid transparent; text-decoration: none; color: var(--muted); font-weight: 500; font-size: 18px; letter-spacing: .04em; text-transform: uppercase; }
.tabs a.is-active { color: var(--ink); border-color: var(--red); }
.search-artists { display: grid; gap: 8px; margin-bottom: 32px; }
.search-artist { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 18px; background: var(--surface); text-decoration: none; }
.search-artist strong { display: block; font-weight: 500; font-size: 24px; text-transform: uppercase; }
.search-artist .label:not(.is-red) { color: var(--muted); display: block; }

/* ---------- Zápatí (bílé, jednoduché) ---------- */

.site-footer { background: var(--paper); padding: 0 0 24px; }
.site-footer__top { border-top: 1px solid var(--ink); padding-top: 28px; }
.site-footer__top { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.site-footer__title { margin: 0; font-weight: 600; font-size: 34px; line-height: 1.05; text-transform: uppercase; }
.site-footer__links { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; }
.site-footer__links a { text-decoration: none; color: var(--red); font-weight: 500; font-size: 28px; text-transform: uppercase; }
.site-footer__links a:hover { color: var(--ink); }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 18px; color: var(--muted); font-size: 16px; }
.site-footer__bottom a { text-decoration: none; }
.site-footer__bottom a:hover { color: var(--red); }

/* ---------- Lightbox ---------- */

.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(10, 10, 10, .94); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox__figure { margin: 0; max-width: calc(100vw - 140px); max-height: 100vh; text-align: center; }
.lightbox__figure img { max-width: 100%; max-height: calc(100vh - 90px); margin: 0 auto; }
.lightbox__figure figcaption { color: #ddd; font-size: 18px; padding-top: 10px; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 38px; cursor: pointer; padding: 12px 18px; }
.lightbox__close { top: 6px; right: 10px; }
.lightbox__prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 8px; top: 50%; transform: translateY(-50%); }

/* ---------- Menší obrazovky ---------- */

@media (max-width: 1240px) {
    .site-header__name { display: none; }
    .main-nav__list { gap: 20px; }
    .main-nav__link { font-size: 16px; gap: 6px; }
    .main-nav__link img { width: 38px; height: 34px; }
    .cards--4, .gallery__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .detail__head { grid-template-columns: 1fr 440px; gap: 36px; }
}

@media (max-width: 1024px) {
    .site-header__inner { min-height: 76px; }
    .site-header__logo img { width: 60px; }
    .site-header__name { display: block; font-size: 15px; }
    .site-header__mobile { display: flex; }
    .main-nav {
        display: none;
        position: absolute; left: 0; right: 0; top: 100%;
        flex-direction: column; align-items: stretch; gap: 0;
        background: var(--paper); box-shadow: 0 12px 24px rgba(0, 0, 0, .12);
        padding: 0 var(--gutter) 24px;
        max-height: calc(100vh - 76px); overflow-y: auto;
    }
    .menu-open .main-nav { display: flex; }
    .main-nav__list { flex-direction: column; align-items: stretch; gap: 0; margin: 0; }
    .main-nav__link { padding: 8px 0; font-size: 30px; gap: 16px; }
    .main-nav__link img { width: 56px; height: 50px; }
    .main-nav__utility { flex-direction: column; align-items: stretch; gap: 0; padding-top: 10px; }
    .main-nav .util { gap: 14px; padding: 8px 0; }
    .main-nav .util img, .main-nav .util--contact img { width: 56px; height: 28px; object-fit: contain; }
    .main-nav .util span { display: inline; font-weight: 500; font-size: 20px; letter-spacing: .04em; text-transform: uppercase; }
    .lang { padding: 14px 0 0; font-size: 20px; }

    .current-year__grid, .listing__grid, .detail__head { grid-template-columns: 1fr; gap: 28px; }
    .artists__box { position: static; max-height: 340px; }
    .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    :root { --gutter: 16px; }
    body { font-size: 18px; }
    h1 { font-size: 30px; }
    h2 { font-size: 25px; }
    .ticker { font-size: 17px; }
    .ticker__item { padding: 10px 32px 10px 0; }
    .years { padding: 10px 0 0; }
    .years__strip { grid-auto-columns: 100px; }
    .year-cell img { width: 78px; height: 72px; }
    .year-cell span { font-size: 15px; }

    /* telefon: fotka přes celou šířku v pevné výšce, šipky přes fotku v jejím svislém středu */
    .slider { padding: 8px 0 28px; --slide-h: clamp(260px, 100vw, 66vh); }
    .slider__inner { display: block; position: relative; }
    .slide__img { height: var(--slide-h); }
    .slide__img img { max-height: 100%; }
    .slider__arrow {
        position: absolute; top: calc(var(--slide-h) / 2); transform: translateY(-50%); z-index: 2;
        width: 46px; height: 46px; background: rgba(17, 17, 17, .72);
    }
    .slider__arrow svg { width: 22px; height: 22px; }
    .slider__arrow--prev { left: calc(var(--gutter) + 6px); }
    .slider__arrow--next { right: calc(var(--gutter) + 6px); }
    .slider__count { margin: 6px 0 0; }
    .slide__caption strong { font-size: 22px; }
    .slide__caption span { font-size: 18px; }

    .current-year { padding: 16px 0 40px; }
    .current-year__head h2 { font-size: 38px; }
    .current-year__head img { width: 70px; height: 66px; }
    .rich-text { font-size: 19px; }
    .page-head { padding: 18px 0 0; margin-bottom: 24px; }
    .page-head__title img { width: 52px; height: 46px; }
    .cards, .cards--4 { grid-template-columns: 1fr; gap: 28px; }
    .gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .program-list li { grid-template-columns: 1fr; gap: 2px; }
    .search-form input { font-size: 22px; padding: 10px 12px; }
    .site-footer__title { font-size: 28px; }
    .site-footer__links a { font-size: 24px; }
    .lightbox__figure { max-width: 100vw; }
    .lightbox__prev, .lightbox__next { top: auto; bottom: 10px; transform: none; }
}
