/* ==========================================================================
   base.css — zmienne, reset, typografia
   Styl inspirowany Planar (Webflow): minimalizm, biel, zaokrąglenia, brak
   gradientów. Zmienne CSS przygotowane pod przyszły dark mode
   (data-theme="dark" na <html>), choć w MVP używamy tylko trybu jasnego.
   ========================================================================== */

:root {
  /* --- Kolory: paleta neutralna + 1 akcent (zgodnie z briefem, bez gradientów) --- */
  --color-bg: #ffffff;
  --color-bg-subtle: #fafafa;
  --color-surface: #ffffff;
  --color-border: #e7e7e7;
  --color-text: #111111;
  --color-text-muted: #6b6b6b;
  --color-text-faint: #9a9a9a;

  --color-accent: #111111;       /* głęboka czerń jako akcent, nie fiolet/gradient */
  --color-accent-contrast: #ffffff;
  --color-accent-soft: #f1f1f1;

  --color-success: #1a7f37;
  --color-danger: #c4291c;
  --color-warning: #9a6700;

  /* --- Promień zaokrągleń (sygnatura stylu Planar) --- */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  /* --- Odstępy --- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;

  /* --- Typografia --- */
  --font-base: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-md: 1rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.75rem;
  --fs-2xl: 2.25rem;

  /* --- Cień (subtelny, nie dekoracyjny — Planar woli obramowania) --- */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);

  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
}

/* Miejsce na tryb ciemny — nieużywane w MVP, ale gotowe na przyszłość */
[data-theme="dark"] {
  --color-bg: #0c0c0c;
  --color-bg-subtle: #131313;
  --color-surface: #161616;
  --color-border: #262626;
  --color-text: #f5f5f5;
  --color-text-muted: #a3a3a3;
  --color-text-faint: #717171;
  --color-accent: #ffffff;
  --color-accent-contrast: #111111;
  --color-accent-soft: #1f1f1f;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-base);
  font-size: var(--fs-md);
  color: var(--color-text);
  background: var(--color-bg-subtle);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin: 0 0 var(--space-3) 0;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h1 { font-size: var(--fs-2xl); }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-lg); }

p {
  margin: 0 0 var(--space-3) 0;
  color: var(--color-text-muted);
}

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

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

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* Dostępność: widoczny focus zawsze, nawet w minimalistycznym designie */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* Respektujemy preferencje ruchu */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
