/* =====================================================================
   (nie)zastąpieni: wspólny wygląd wszystkich stron (listopad 2026)
   Wczytywany PO stylach strony, więc nadpisuje je tam, gdzie trzeba.
   Zasady: Fraunces (tytuły), Newsreader (tekst), Instrument Sans (interfejs),
   Caveat tylko jako „ręka”, ostre rogi, płaski nagłówek, pełne pasy zamiast
   zaokrąglonych paneli. Kolory zostają z palet strony.
   ===================================================================== */

:root {
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --text: 'Newsreader', Georgia, serif;
  --r: 2px;
  --r-lg: 0px;
  --pad-x: max(5vw, 18px);
  /* liczby i drobne metki: zamiast maszynowej czcionki szeryfowa jak na stronie głównej */
  --mono: 'Fraunces', Georgia, serif;
  --logo: 'Roboto Mono', ui-monospace, monospace;
}
.logo .word { font-family: var(--logo); }

/* ---------- typografia ---------- */
body { font-family: var(--text); font-size: 18px; line-height: 1.6; }
h1, h2, h3, .h2, .h3-like {
  font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em;
  font-variation-settings: "opsz" 96;
}
h1 { letter-spacing: -0.03em; font-variation-settings: "opsz" 144; }
h3 { letter-spacing: -0.01em; }
strong, b { font-weight: 600; }

/* elementy interfejsu zostają bezszeryfowe */
button, input, select, textarea, label, table, th, td, figcaption,
.btn, .nav, .pill, .small, .ticks, .eyebrow, .site-footer, .palette,
.text-link, .quiz, dialog, .tbl, .tag, .chip, .badge, .z-crumbs, .t-meta {
  font-family: var(--sans);
}

/* etykiety: bez maszynowej czcionki, krótkie wersaliki */
.eyebrow {
  font-family: var(--sans); font-size: 13px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
}

/* ---------- ostre rogi ---------- */
.btn { border-radius: 0; }
.btn-lg { min-height: 54px; padding: 0 28px; font-size: 17px; }
.pill { border-radius: 2px; }
.inv, .soft { margin-left: 0; margin-right: 0; border-radius: 0; }

/* ---------- nagłówek: płaski pasek ---------- */
.site-header {
  padding: 0; background: var(--bg); color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.site-header .bar {
  max-width: none; margin: 0; min-height: 64px;
  padding: 0 var(--pad-x); gap: 8px 28px;
  background: transparent; color: var(--ink);
  border-radius: 0; box-shadow: none;
}
.site-header .bar .logo { color: var(--ink); font-size: 20px; }
.site-header .bar .logo .hand { color: var(--accent); }
.site-header .nav { gap: 4px 24px; font-family: var(--sans); font-size: 15px; font-weight: 500; }
.site-header .nav a:not(.btn) { color: var(--sub); text-decoration: none; }
.site-header .nav a:not(.btn):hover,
.site-header .nav a[aria-current="page"] { color: var(--ink) !important; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.site-header .nav .btn {
  min-height: 40px; padding: 0 16px; background: transparent; color: var(--ink);
  border: 1.5px solid currentColor; border-radius: 0;
  font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
}
.site-header .nav .btn:hover { background: var(--ink); color: var(--bg); opacity: 1; }
.site-header .nav .btn .arrow { display: none; }

/* telefon: menu jako przewijany wiersz pod logo */
@media (max-width: 900px) {
  .site-header .bar { flex-wrap: wrap; padding-top: 10px; padding-bottom: 0; gap: 0 16px; }
  .site-header .nav { order: 3; width: calc(100% + 2 * var(--pad-x)); margin: 0 calc(-1 * var(--pad-x));
    padding: 6px var(--pad-x) 10px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 0 20px; }
  .site-header .nav::-webkit-scrollbar { display: none; }
  .site-header .nav a:not(.btn) { display: inline-flex !important; align-items: center; min-height: 36px; white-space: nowrap; font-size: 14px; }
  .site-header .nav .btn { position: absolute; right: var(--pad-x); top: 12px; min-height: 36px; }
  .site-header { position: sticky; }
  .site-header .bar { position: relative; min-height: 0; }
  .site-header .bar .logo { min-height: 36px; display: inline-flex; align-items: center; }
}

/* ---------- linki i drobne elementy ---------- */
.text-link { text-underline-offset: 5px; text-decoration-thickness: 1px; }
.site-footer h2, .site-footer h3, .site-footer .foot-h { font-family: var(--sans); }
.palette, .palette button { border-radius: 2px; }
