/* Draci Strakonice: fonts, reset, type, links, focus, prose, utilities. */

/* ---------- fonts (self-hosted, SIL OFL 1.1; latin + latin-ext so č ř ž š ě ů render) ---------- */
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin-ext-TTPlvkN.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
  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: "Figtree";
  src: url("../fonts/figtree-latin-PJhrdvF.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
  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: "League Spartan";
  src: url("../fonts/league-spartan-700-latin-ext-fuH-Tvn.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
  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: "League Spartan";
  src: url("../fonts/league-spartan-700-latin-vfkXvSl.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
  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;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--step-body);
  line-height: 1.5;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul[class], ol[class] { padding: 0; list-style: none; }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
table { border-collapse: collapse; }
[hidden] { display: none !important; }
:target { scroll-margin-top: 5rem; }

/* ---------- type ---------- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  text-wrap: balance;
  hyphens: none;
}
.display { font-size: var(--step-display); line-height: var(--display-leading); letter-spacing: var(--display-tracking); }
.head { font-size: var(--step-head); line-height: 0.98; letter-spacing: var(--head-tracking); }
.lead { font-size: var(--step-lead); line-height: 1.35; max-width: 40ch; }
.small { font-size: var(--step-small); line-height: 1.45; }
.muted { color: var(--muted); }
.nums { font-variant-numeric: tabular-nums; }
p { max-width: var(--measure); text-wrap: pretty; }
p + p { margin-top: 0.9em; }
strong { font-weight: 600; }

/* ---------- links, focus, selection ---------- */
a { color: inherit; text-decoration-thickness: 0.07em; text-underline-offset: 0.18em; }
.link { text-decoration: underline; text-decoration-color: currentColor; transition: text-decoration-color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) {
  .link:hover { text-decoration-thickness: 0.12em; }
}
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--accent-ink); }

/* ---------- prose: ported WordPress content ---------- */
.prose { max-width: var(--measure); }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: var(--step-sub); line-height: 1.05; letter-spacing: -0.02em; margin-top: 2.2em; }
.prose h3 { font-size: var(--step-lead); line-height: 1.15; margin-top: 1.8em; }
.prose h2 + *, .prose h3 + * { margin-top: 0.6em; }
.prose a { text-decoration: underline; }
.prose ul { padding: 0; list-style: none; }
.prose ul > li { position: relative; padding-left: 1.6em; }
.prose ul > li + li { margin-top: 0.6em; }
.prose ul > li::before { /* the hull as bullet */
  content: ""; position: absolute; left: 0; top: 0.55em; width: 1em; height: 0.42em;
  background: var(--accent);
  clip-path: polygon(0 50%, 30% 0, 70% 0, 100% 50%, 70% 100%, 30% 100%);
}
.prose ol { padding-left: 1.4em; }
.prose blockquote { font-size: var(--step-lead); line-height: 1.35; }

/* WordPress block markup as imported: columns, images, galleries, buttons, separators, alignment.
   Long registration numbers and addresses wrap instead of widening the page. */
.prose { overflow-wrap: anywhere; }
.prose h1 { font-size: var(--step-sub); line-height: 1.05; letter-spacing: -0.02em; margin-top: 2.2em; }
.prose h1 + * { margin-top: 0.6em; }
.prose :is(h1, h2, h3):first-child { margin-top: 0; }
.prose p:empty, .prose .wp-block-column:empty { display: none; }
.prose :is(.wp-block-group, .wp-block-column) > * + * { margin-top: 1em; }
.prose .wp-block-columns { display: flex; flex-wrap: wrap; gap: 1.5rem var(--gutter); }
.prose .wp-block-column { flex: 1 1 0; min-width: 0; }
.prose .wp-block-column.is-vertically-aligned-top { align-self: flex-start; }
.prose .wp-block-column.is-vertically-aligned-center { align-self: center; }
.prose .wp-block-column.is-vertically-aligned-bottom { align-self: flex-end; }
/* Below 1024px the body shares the width with an aside or splits it three ways: too narrow for columns, so they stack. */
@media (max-width: 63.99em) { .prose .wp-block-column { flex-basis: 100%; } }
.prose figcaption { margin-top: 0.5rem; font-size: var(--step-small); color: var(--muted); }
.prose .aligncenter, .prose .has-text-align-center { margin-inline: auto; text-align: center; }
.prose .aligncenter img { margin-inline: auto; }
.prose .alignright img { margin-left: auto; }
.prose .has-text-align-right:not(h1, h2, h3, h4) { text-align: right; } /* headings keep to the left edge, like every heading on the site */
.prose .has-text-align-left { text-align: left; }
.prose .wp-block-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 12rem), 1fr)); gap: 0.5rem; }
.prose .wp-block-gallery.is-cropped img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.prose .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.prose .wp-block-button__link { display: inline-flex; align-items: center; min-height: var(--touch); font-weight: 600; }
.prose .wp-block-separator { border: 0; margin-block: 2.5em 0; } /* no hairlines: a separator is space */
.prose blockquote cite { display: block; margin-top: 0.5em; font-size: var(--step-small); font-style: normal; color: var(--muted); }

/* ---------- utilities ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: var(--margin); top: -4rem; z-index: 200; background: var(--ink); color: var(--on-ink); padding: 0.75rem 1rem; }
.skip-link:focus { top: 0.5rem; }

/* ---------- reduced motion: everything in place, every change instant (the motion itself is in motion.css) ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
}
