/* Odkrywamy Lubuskie: what every page shares - the logo's colours, the one menu (the compass's chapters), the small
   3D logo in the corner, the sound, the buttons, and the passage from page to page. */
/* the two fonts, on our own server (7a, 2026-10-16): no render-blocking call to Google, and no visitor's address sent to
   it (the EU's GDPR). Sora is one variable file per subset; both under the SIL Open Font License (fonts/OFL-*.txt). */
@font-face { font-family: "Sora"; font-style: normal; font-weight: 200 400; font-display: swap; src: url("fonts/Sora-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Sora"; font-style: normal; font-weight: 200 400; font-display: swap; src: url("fonts/Sora-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/IBMPlexMono-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/IBMPlexMono-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
:root {
  --zelen: #0A1F16;
  --zelen-2: #10291e;
  --biela: #ffffff;
  --zlta: #FFC149;
  --text-2: rgba(255, 255, 255, .78);
  --text-3: rgba(255, 255, 255, .52);
  --ciara: rgba(255, 255, 255, .14);
  --sans: "Sora", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --okraj: clamp(16px, 4.5vw, 64px);
  --hlavicka: 100px;            /* the header's height, the same on every page */
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--zelen); color: var(--biela); }
body { font-family: var(--sans); font-weight: 300; background: var(--zelen); -webkit-font-smoothing: antialiased; }
img { display: block; }
a { color: inherit; }
[hidden] { display: none !important; }
/* a click or a tap never paints a blue selection or a highlight (the owner, 2026-10-16) */
html { -webkit-tap-highlight-color: transparent; }
a, button, svg, .znacka, .kompas, .mapa, .legenda, .podmenu, .hlavicka, .latarka, .okno-hot, .karta, .trasa-hlava, .mini { -webkit-user-select: none; user-select: none; }
:focus:not(:focus-visible) { outline: none; }
:focus-visible { outline: 2px solid var(--zlta); outline-offset: 3px; }
.stitok { font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--zlta); margin-bottom: 18px; }
.lead { font-size: clamp(16px, 1.25vw, 19px); line-height: 1.6; color: var(--text-2); max-width: 46ch; }

/* the header: the small 3D logo, the menu, the phone */
.hlavicka {
  position: fixed; inset: 0 0 auto 0; z-index: 40; display: flex; align-items: center; gap: 20px;
  height: var(--hlavicka); padding: 0 var(--okraj); pointer-events: none;
}
.hlavicka::before {
  content: ""; position: absolute; inset: 0 0 -36px 0; z-index: -1; pointer-events: none;
  background: linear-gradient(rgba(10, 31, 22, .82), rgba(10, 31, 22, 0));
}
.hlavicka > * { pointer-events: auto; }
.mini { position: relative; display: block; flex: none; width: 128px; aspect-ratio: 796 / 524; transition: opacity .5s ease; }
.mini img { display: block; width: 100%; height: 100%; }
.mini.skryte { opacity: 0; pointer-events: none; }
.menu { display: flex; gap: clamp(14px, 2vw, 30px); margin: 0 auto; }
.menu a { position: relative; font-size: 15px; white-space: nowrap; text-decoration: none; color: var(--text-2); padding: 12px 0; transition: color .25s ease; }
.menu a:hover, .menu a[aria-current="page"] { color: var(--biela); }
.menu a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 1px; background: var(--zlta); transform: scaleX(0); transform-origin: left; transition: transform .35s ease; }
.menu a:hover::after, .menu a[aria-current="page"]::after { transform: scaleX(1); }
.cta {
  flex: none; font-size: 14px; text-decoration: none; padding: 0 22px; min-height: 46px; display: inline-flex; align-items: center;
  border-radius: 999px; background: var(--biela); color: var(--zelen); font-weight: 400;
}
.menu-btn { display: none; }
/* the chapters' "← Mapa" and the home's "Mapa ↓": one width, so the menu beside it sits in the same place on every page */
.spat-kompas {
  flex: none; width: 6.6em; font-size: 14px; text-decoration: none; min-height: 44px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; border: 1px solid rgba(255, 193, 73, .55); color: var(--zlta); background: rgba(10, 31, 22, .45); backdrop-filter: blur(8px);
}
.spat-kompas:hover { background: rgba(255, 193, 73, .12); }

/* the cooperative's data, the whole site's field (Správca "udaje"): the home's footer and contact, every chapter's end */
.udaje { margin-top: 18px; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; line-height: 1.6; color: var(--text-3); }
.udaje-dalej { margin-top: 2px; }
.udaje a { color: inherit; text-underline-offset: 3px; }
.udaje a:hover, .udaje a:focus-visible { color: var(--text-2); }
/* a text page (the privacy notice, P5.2): one readable column under the header */
.text-stranka { max-width: 70ch; margin: 0 auto; padding: calc(var(--hlavicka) + 40px) var(--okraj) 120px; color: var(--text-2); line-height: 1.65; }
.text-stranka h1 { font-size: clamp(30px, 4vw, 46px); line-height: 1.1; margin: 0 0 28px; color: var(--biela); }
.text-stranka h2 { font-size: clamp(18px, 1.6vw, 21px); margin: 34px 0 8px; color: var(--biela); }
.text-stranka p, .text-stranka li { font-size: 16px; }
.text-stranka ul { padding-left: 1.2em; margin: 0; display: grid; gap: 8px; }
.text-stranka a { color: var(--zlta); text-underline-offset: 3px; }
.text-stranka .udaje { margin-top: 48px; }
/* the text page scrolls under the header: a solid header there, not the chapters' fade over a photo */
.tekst .hlavicka::before { inset: 0; background: var(--zelen); border-bottom: 1px solid var(--ciara); }

/* buttons */
.akcie { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.btn, .btn-2 {
  font: inherit; font-size: 14px; min-height: 48px; padding: 0 22px; display: inline-flex; align-items: center; gap: 8px;
  border-radius: 999px; text-decoration: none; cursor: pointer;
}
.btn { background: var(--zlta); color: #111; border: 1px solid var(--zlta); font-weight: 400; }
.btn-2 { background: rgba(10, 31, 22, .35); color: var(--biela); border: 1px solid rgba(255, 255, 255, .34); }

/* the sound */
.dzwiek {
  position: fixed; z-index: 45; left: var(--okraj); bottom: 16px; display: inline-flex; align-items: center; gap: 10px;
  font: inherit; font-size: 12px; color: var(--text-2); background: none; border: 0; cursor: pointer; min-height: 44px;
}
.dzwiek svg { width: 40px; height: 40px; padding: 10px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); background: rgba(10, 31, 22, .55); backdrop-filter: blur(8px); color: var(--biela); }
.dzwiek .fala { opacity: .25; transition: opacity .3s ease; }
.dzwiek.zapnute .fala { opacity: 1; }
.dzwiek.zapnute svg { border-color: var(--zlta); color: var(--zlta); }

/* the Land Rover, on the home's map and on a chapter's route (spolocne.js, OL.dzip) */
.pojazd .karoseria { fill: var(--zlta); }
.pojazd .okno { fill: #0f2a1f; }
.pojazd .kolo { fill: #0b1712; stroke: var(--zlta); stroke-width: 2; }
.pojazd .rezerva { fill: #0b1712; stroke: rgba(255, 193, 73, .7); stroke-width: 2; }

@view-transition { navigation: auto; }          /* the browser keeps the old page until the new one is painted: no flash */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .9s; animation-timing-function: ease-in-out; }
/* the bar and the sound stay put between pages: their new picture is there at once, the old one never fades (the
   owner, 2026-10-16: they seemed to load again); the page under them crossfades slowly */
.hlavicka { view-transition-name: hlavicka; }
.dzwiek { view-transition-name: dzwiek; }
::view-transition-group(hlavicka), ::view-transition-group(dzwiek),
::view-transition-new(hlavicka), ::view-transition-new(dzwiek) { animation: none; }
::view-transition-old(hlavicka), ::view-transition-old(dzwiek) { display: none; }

.koncept-stitok { position: fixed; right: 12px; bottom: 8px; z-index: 50; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); pointer-events: none; }

@media (max-width: 1240px) {          /* the nine items fit the bar from 1241 px (7d: Projekt UE in the menu) */
  .menu {
    position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; gap: 4px; padding: 0 var(--okraj);
    background: rgba(10, 31, 22, .97); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .3s ease, visibility 0s linear .3s;
  }
  .menu a { font-size: clamp(28px, 7vw, 44px); font-weight: 200; color: var(--biela); padding: 6px 0; }
  .menu a::after { bottom: 0; }
  .hlavicka.otvorene .menu { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .3s ease; }   /* closed, its links take no focus */
  .menu-btn {
    display: inline-flex; align-items: center; margin-left: auto; font: inherit; font-size: 14px; min-height: 46px; padding: 0 20px;
    border-radius: 999px; border: 1px solid rgba(255, 255, 255, .34); background: rgba(10, 31, 22, .45); color: var(--biela); cursor: pointer;
  }
  .cta { margin-left: 0; }
}
@media (max-width: 760px) {
  :root { --hlavicka: 76px; }
  .mini { width: 96px; }
  .cta { display: none; }
  .dzwiek span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
