/* Shared site-wide styles: skip link + consistent focus states.
   Loaded by every page so keyboard/focus behaviour never drifts per page. */

.skip-link {
  position: absolute;
  left: 0;
  top: -3rem;
  z-index: 100;
  background: #301102;
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 0.5rem 0;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 0;
}

/* A single, brand-consistent focus-visible ring for every interactive
   element on every page (buttons, links, form controls, accordions). */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid #9e4300;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Sticky hlavička (80 px) nesmí zakrýt cíl kotvy ani prvek s fokusem. */
html {
  scroll-padding-top: 6rem;
}

/* Patkové písmo (Fraunces, varianta Soft) o stupeň jemnější, než říká
   třída: Klára chtěla méně ostré a lehčí nadpisy. Mění se jen tady. */
.font-serif.font-bold { font-weight: 600; }
.font-serif.font-semibold { font-weight: 500; }

/* Vyvážené zalamování krátkých nadpisů. */
h1,
h2,
h3 {
  text-wrap: balance;
}

/* Velké systémové písmo: dlouhé tokeny (e-mail) se zalomí místo
   vodorovného posouvání stránky a řádky tabulek se složí pod sebe. */
body {
  overflow-wrap: anywhere;
}
dl > div.flex {
  flex-wrap: wrap;
  column-gap: 1.5rem;
}
dl > div.flex > dd {
  min-width: 0;
  margin-left: auto;
}
a[href^="mailto:"] > span:last-child {
  min-width: 0;
}

/* Okamžitá odezva na dotyk (bez posunu layoutu) a bez 300ms zpoždění. */
a,
button,
summary {
  touch-action: manipulation;
}
a:active,
button:active,
summary:active {
  opacity: 0.8;
}

/* Respektovat nastavení „omezit pohyb“ v systému. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Ornamenty z loga (kresba máku a makovice). Kreslí se jako maska,
   barvu bere z currentColor, takže stačí třída text-… z design tokenů. */
.ornament,
.ornament-makovice {
  display: block;
  pointer-events: none;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}
.ornament {
  aspect-ratio: 440 / 593;
  -webkit-mask-image: url("img/mak-linka.png");
  mask-image: url("img/mak-linka.png");
}
.ornament-makovice {
  aspect-ratio: 150 / 573;
  -webkit-mask-image: url("img/makovice-linka.png");
  mask-image: url("img/makovice-linka.png");
}

/* Material Symbols icons are decorative by default; a shared baseline so
   ligature glyphs never render oddly before the font finishes loading. */
.material-symbols-outlined {
  font-variation-settings:
    "FILL" 0,
    "wght" 400,
    "GRAD" 0,
    "opsz" 24;
}

/* ornamenty přesahující okraj nesmí vytvořit vodorovné posouvání (clip nerozbije sticky) */
html,body{overflow-x:clip}
