/* base.css — reset, elementy, siatka, dostępność. Patrz CLAUDE.md sekcja 7 i 13. */

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--f-body);
  font-weight: var(--fw-regular);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  color: var(--c-ink);
  background: var(--c-white);
  /* prealokowana metryka fallbacku — chroni przed CLS przy font swap */
  font-size-adjust: 0.5;
}

h1, h2, h3 {
  font-family: var(--f-display);
  line-height: var(--lh-tight);
  font-weight: var(--fw-semibold);
  margin: 0 0 var(--s-3);
  color: var(--c-ink);
}

h1 { font-size: var(--fs-hero); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

p { margin: 0 0 var(--s-3); }

a { color: var(--c-sea-mid); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

ul { margin: 0; padding: 0; list-style: none; }

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

/* ---- Dostępność ---- */
:focus-visible {
  outline: 3px solid var(--c-sea-mid);
  outline-offset: 2px;
  border-radius: 2px;
}

.visually-hidden {
  position: absolute;
  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: var(--s-2);
  top: -100px;
  z-index: 200;
  background: var(--c-white);
  color: var(--c-ink);
  padding: var(--s-2) var(--s-3);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: var(--s-2); }

/* ---- Siatka / kontener ---- */
.container {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--s-4);
}

/* Padding sekcji sumuje się z paddingiem sąsiada — 48px daje 96px przerwy
   między treścią. Tła (paper/wash) i tak rozdzielają sekcje wizualnie,
   więc powietrze nie musi tego robić drugi raz. */
.section {
  position: relative;
  overflow: hidden;
  padding-block: var(--s-5);
}
@media (min-width: 900px) {
  .section { padding-block: var(--s-6); }
}
.section > .container { position: relative; z-index: 1; }

.section--paper { background: var(--g-paper); }

/* Dekoracyjne plamy — miękkie, w tle, nie robią z sekcji niebieskiego kafla */
.section--wash-tr::before,
.section--wash-bl::before,
.section--wash-warm::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.section--wash-tr::before   { background: var(--wash-tr); }
.section--wash-bl::before   { background: var(--wash-bl); }
.section--wash-warm::before { background: var(--wash-warm); }

.section__head {
  max-width: 60ch;
  margin-bottom: var(--s-4);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-sea-mid);
  margin-bottom: var(--s-2);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--c-brand), var(--c-sea-mid));
}

/* Cele dotykowe min. 44x44 */
.tap { min-width: 44px; min-height: 44px; }
