/* Family Meble — design tokens (Editorial Flow)
   Fonts loaded once via wp_enqueue_style(fm-redesign-font) — no @import. */

:root {
  --fm-red: #d62828;
  --fm-red-dark: #b91c1c;
  --fm-red-soft: #fef2f2;
  --fm-black: #111111;
  --fm-gray-900: #1f2937;
  --fm-gray-600: #6b7280;
  --fm-gray-400: #9ca3af;
  --fm-gray-200: #e5e7eb;
  --fm-gray-100: #f3f4f6;
  --fm-white: #ffffff;
  --fm-radius: 12px;
  --fm-radius-lg: 20px;
  --fm-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  --fm-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --fm-font: 'DM Sans', system-ui, -apple-system, sans-serif;
  --fm-serif: 'Cormorant Garamond', Georgia, serif;
  /* Single page rail — Agata-like (~1520 content; większa skala UI) */
  --fm-page-max: 1520px;
  --fm-max: var(--fm-page-max);
  --fm-gutter: 24px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--fm-font);
  color: var(--fm-gray-900);
  background: var(--fm-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.fm-container {
  max-width: var(--fm-page-max, var(--fm-max, 1240px));
  margin-inline: auto;
  margin-block: 0;
  padding-inline: var(--fm-gutter, 20px);
  padding-block: 0;
  width: 100%;
  box-sizing: border-box;
}

/* Mobile rhythm (Agata-like): węższy gutter, mniej „powietrza” */
@media (max-width: 900px) {
  :root {
    --fm-gutter: 16px;
  }
}

.fm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 28px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: background .15s, color .15s, transform .15s;
}
.fm-btn--primary {
  background: var(--fm-red);
  color: #fff;
}
.fm-btn--primary:hover { background: var(--fm-red-dark); }
.fm-btn--ghost {
  background: transparent;
  color: var(--fm-gray-900);
  border: 1px solid var(--fm-gray-200);
}
.fm-btn--ghost:hover {
  border-color: var(--fm-red);
  color: var(--fm-red);
}

.fm-section {
  padding: 64px 0;
}
.fm-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.fm-section__title {
  margin: 0;
  font-size: clamp(28px, 2.6vw, 36px);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.15;
}
.fm-section__kicker {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fm-red);
}
.fm-section__link {
  font-size: 13px;
  font-weight: 600;
  color: var(--fm-red);
  white-space: nowrap;
}
.fm-section__link:hover { text-decoration: underline; }

.fm-breadcrumb {
  padding: 16px 0;
  font-size: 12px;
  color: var(--fm-gray-600);
}
.fm-breadcrumb a:hover { color: var(--fm-red); }
.fm-breadcrumb span { color: var(--fm-gray-900); }
