/* KierMates — kolory, typografia, kształty i ruch (specyfikacja, rozdz. 6). */

:root {
  /* Kolory ze specyfikacji */
  --paper: #ffffff;
  --ink: #171719;
  --muted: #6f7075;
  --line: #e3e3e5;
  --soft: #f6f6f5;
  --red: #ff514f;
  --red-dark: #e43e3c;
  --red-soft: #fff1ef;
  --green: #20ae6d;

  /* Odcienie pomocnicze z prototypu.
     --red-text i --green-text to ciemniejsze wersje dla małego tekstu,
     żeby kontrast spełniał WCAG AA (czerwony #e43e3c na jasnym tle ma tylko ~3,9:1). */
  --red-text: #c4302e;
  --red-glow: #ff7774;
  --green-text: #17784f;
  --green-soft: #eaf7f1;
  --blue-soft: #edf5ff;
  --blue-text: #2868b4;
  --night: #19191c;
  --body-text: #35353a;
  --link: #314261;
  --hover-line: #c8c8cc;
  --filip: #9b3640;
  --mateusz: #30363a;

  /* Typografia: tylko czcionki systemowe, bez pobierania fontów */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  --tight: -0.045em;

  /* Kształty */
  --radius-card: 17px;
  --radius-panel: 20px;
  --radius-small: 9px;
  --radius-button: 14px;
  --pill: 999px;
  --shadow-panel: 0 24px 70px rgba(22, 22, 25, 0.15);
  --shadow-card: 0 13px 28px rgba(22, 22, 25, 0.07);

  /* Ruch */
  --lift: -3px;
  --zoom: 1.035;
  --panel-time: 280ms;
  --ease: ease;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  line-height: 1.1;
  letter-spacing: var(--tight);
}

img {
  max-width: 100%;
}

picture {
  display: contents;
}

[hidden] {
  display: none !important;
}

button,
a {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

a {
  text-decoration: none;
}

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

/* Tekst tylko dla czytników ekranu */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  border-radius: var(--radius-small);
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  transform: translateY(-160%);
}

.skip-link:focus-visible {
  transform: none;
}
