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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  color-scheme: dark;
}

body {
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--ff-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video, canvas, picture { display: block; max-width: 100%; }
img { height: auto; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
:where(ul, ol)[class] { list-style: none; padding: 0; }

h1, h2, h3 {
  font-family: var(--ff-display);
  font-weight: 700;
  text-transform: uppercase;
  text-wrap: balance;
}
h2 { font-size: var(--fs-h2); line-height: 0.95; letter-spacing: -0.005em; }
h3 { font-size: var(--fs-h3); line-height: 1.1; }
p { max-width: 64ch; text-wrap: pretty; }

/* Zielona puenta nagłówka */
.accent { color: var(--c-green); display: block; }

.lead { font-size: var(--fs-lead); line-height: 1.45; }
.muted { color: var(--c-text-muted); }
.small { font-size: var(--fs-small); font-weight: 500; line-height: 1.4; letter-spacing: 0.02em; }

:focus-visible { outline: 2px solid var(--c-text); outline-offset: 3px; }

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

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 1000;
  background: var(--c-green); color: #000;
  padding: 12px 20px; font-weight: 600;
}
.skip-link:focus { top: 16px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--pad-x));
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.section { padding-block: var(--section-y); position: relative; }

.icon {
  width: 24px; height: 24px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round;
}

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