/* Paleta, reset, typografie. Komponenty jsou ve style.css. */

:root {
  --pozadi: #0f0f0f;
  --plocha: #1a1a1a;
  --plocha-svetla: #232323;
  --linka: #2b2b2b;
  --text: #f2f2f2;
  --text-tlumeny: #8a8a8a;
  --akcent: #e8923a;
  --akcent-tmavy: #c9752a;

  --pismo-nadpis: "Barlow Condensed", "Arial Narrow", sans-serif;
  --pismo-text: "Inter", system-ui, sans-serif;
  --pismo-mono: "JetBrains Mono", ui-monospace, monospace;

  /* Sirka obsahu a boky. Boky rostou plynule, aby na 375 px nebyl obsah u kraje
     a na velkem monitoru nelepil k okraji. */
  --sirka: 1240px;
  --bok: clamp(1.25rem, 5vw, 3.5rem);

  --prechod: 220ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

* {
  margin: 0;
}

html {
  background: var(--pozadi);
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  /* Kotvy nesmi skoncit pod fixni hlavickou. */
  scroll-padding-top: 6rem;
}

body {
  min-height: 100svh;
  background: var(--pozadi);
  color: var(--text);
  font-family: var(--pismo-text);
  font-size: 1rem;
  line-height: 1.65;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg,
picture {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

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

button {
  background: none;
  border: 0;
  cursor: pointer;
}

h1,
h2,
h3,
h4 {
  font-family: var(--pismo-nadpis);
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.75rem, 8.5vw, 5.75rem);
}

h2 {
  font-size: clamp(2rem, 5.5vw, 3.5rem);
}

h3 {
  font-family: var(--pismo-nadpis);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
  text-wrap: pretty;
}

a {
  color: inherit;
  text-decoration-color: color-mix(in srgb, var(--akcent) 60%, transparent);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--akcent);
}

:focus-visible {
  outline: 2px solid var(--akcent);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection {
  background: var(--akcent);
  color: #0f0f0f;
}

/* --- utility --------------------------------------------------------------- */

.obal {
  width: 100%;
  max-width: var(--sirka);
  margin-inline: auto;
  padding-inline: var(--bok);
}

.mono {
  font-family: var(--pismo-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-tlumeny);
}

.tlumeny {
  color: var(--text-tlumeny);
}

/* Kratka oranzova linka nad nadpisem - misto cislovani sekci. */
.linka-nad {
  display: block;
  width: 3rem;
  height: 2px;
  background: var(--akcent);
  margin-bottom: 1.25rem;
}

.skryte {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Preskocit na obsah - viditelne az pri fokusu z klavesnice. */
.preskocit {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--akcent);
  color: #0f0f0f;
  font-weight: 600;
  transform: translateY(-150%);
  transition: transform var(--prechod);
}

.preskocit:focus-visible {
  transform: translateY(0);
  color: #0f0f0f;
}
