/* Baza: font z fonty/ (bez Google Fonts), reset, kolumna aplikacji do 560 px, fokus i ograniczenie ruchu. */

@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url('../../fonty/source-sans-3-latin-ext-wght.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: 'Source Sans 3';
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url('../../fonty/source-sans-3-latin-wght.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;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--tlo-strona);
  color: var(--tekst-glowny);
  font-family: var(--font);
  font-size: var(--tekst-podstawowy);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p {
  margin: 0;
}

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

button {
  cursor: pointer;
}

a {
  color: inherit;
}

svg {
  flex: none;
}

[hidden] {
  display: none !important;
}

/* Kolumna aplikacji: telefon na pelna szerokosc, szerszy ekran — ta sama kolumna wysrodkowana. */
#aplikacja {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  max-width: var(--szerokosc-kolumny);
  margin: 0 auto;
  background: var(--tlo-strona);
}

@media (min-width: 600px) {
  body {
    background: var(--tlo-miekkie);
  }

  #aplikacja {
    border-inline: 1px solid var(--linia-podzial);
  }
}

.tresc {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: var(--odstep-ekranu);
}

.wizualnie-ukryte {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.liczba {
  font-variant-numeric: tabular-nums;
}

/* Fokus z klawiatury: obrys w kolorze akcji, na ciemnym tle jasny; nie chowa sie pod dolnym paskiem. */
:focus-visible {
  outline: 2px solid var(--marka-zielen);
  outline-offset: 2px;
}

.naglowek :focus-visible {
  outline-color: var(--tekst-na-ciemnym);
}

[tabindex='-1']:focus {
  outline: none;
}

html {
  scroll-padding-bottom: calc(var(--cel-dotyku) + 32px);
}

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