/**
 * BASE — Reset, ciało dokumentu, narzędzia layoutu
 */

/* ── Reset ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  background-color: var(--color-bg);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a { text-decoration: none; color: inherit; }

ul, ol { list-style: none; }

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
  padding: 0;
}

/* ── Dostępność ── */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

/* ── Layout utilities ── */
.container {
  max-width: var(--max-width);
  margin-inline: auto;
}

.container--wide {
  max-width: var(--max-width-wide);
  margin-inline: auto;
}

/* Wrapper sekcji */
.section {
  padding: var(--section-py) var(--section-px);
}

.section--alt  { background-color: var(--color-bg-alt); }
.section--dark { background-color: var(--color-bg-dark); color: var(--color-text-on-dark); }
.section--ink  { background-color: var(--color-bg-ink);  color: var(--color-text-on-dark); }
