/* Reset, typografia, elementy wspolne */
*, *::before, *::after { box-sizing: border-box; }

:root {
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: env(safe-area-inset-top, 0px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
}

a { color: inherit; }
p { margin: 0; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-head);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.4rem, 7.5vw, 4.6rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 4.5vw, 2.7rem); font-weight: 700; }
h3 { font-size: 1.35rem; font-weight: 700; }

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

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

.highlight {
  background: linear-gradient(transparent 62%, var(--yellow) 62%);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
