/* Inter variable, Latin + Latin Extended (polskie znaki). Licencja: public/seo/Inter-LICENSE.txt */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/seo/inter-latin-wght-normal.woff2') format('woff2-variations');
  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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/seo/inter-latin-ext-wght-normal.woff2') format('woff2-variations');
  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-20C0, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}

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

html {
  -webkit-text-size-adjust: 100%;
  /* Bez `scroll-behavior: smooth`. Przy plynnym przewijaniu sterowanym skryptem
     byly to dwa sprzeczne sterowania tym samym scrollem i kolko myszy gubilo
     wiekszosc ruchu. Kotwice dostaja plynnosc tylko tam, gdzie o nia prosimy. */
  scroll-behavior: auto;
}
/* Skok do sekcji z nawigacji ma byc plynny; reszta scrolla zostaje natywna. */
@media (prefers-reduced-motion: no-preference) {
  :target { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.6;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  margin: 0;
  line-height: var(--leading-head);
  font-weight: var(--weight-head);
  letter-spacing: var(--tracking-head);
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }

a { color: inherit; }

::selection { background: var(--green-primary); color: var(--ink); }

/* Pasek przewijania dostrojony do ciemnego tla. */
* { scrollbar-color: #aaa79f var(--page); }

/* Kotwice z nawigacji chowaly naglowki pod przyklejonym naglowkiem strony. */
[id] { scroll-margin-top: 6.5rem; }

/* Obramowanie focusu musi byc widoczne i na jasnym papierze, i na krajobrazie,
   wiec ciemny pierscien z zielona otoczka, a nie sama zielen. */
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  box-shadow: 0 0 0 5px rgb(208 250 152 / 0.8);
  border-radius: var(--r-sm);
}
.btn:focus-visible { border-radius: var(--r-pill); }

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

.skip-link {
  position: absolute; left: var(--gutter); top: -100px; z-index: 100;
  background: var(--accent); color: var(--ink);
  padding: 0.7rem 1.2rem; border-radius: var(--r-pill); text-decoration: none; font-weight: 500;
  transition: top 0.18s var(--ease-out);
}
.skip-link:focus { top: var(--gutter); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
