/* =========================================================
   DreamsWEB — design tokens & motion tokens
   Jedno źródło prawdy dla kolorów, typografii, odstępów i ruchu.
   (Te same wartości ruchu są w assets/js/core/motion.js)
   Paleta: obsydian i grafit, porcelanowy tekst, kobalt i lodowy błękit jako światło.
   Nazwy ról (paper/sage/ink/accent) są niezależne od koloru — zmiana palety = zmiana tego pliku.
   ========================================================= */
:root {
  /* Kolor — tła */
  --paper: #09090b;        /* obsydian — tło podstawowe */
  --paper-2: #121318;      /* grafit — sekcje naprzemienne */
  --paper-3: #1f2026;      /* jaśniejszy grafit — pola, wypełnienia */
  --sage: #0e1018;         /* granatowa czerń — druga rodzina sekcji */
  --sage-2: #151a2b;       /* nocny granat */
  --sage-3: #232a44;

  /* Kolor — tekst i akcent */
  --ink: #f2f0ea;          /* porcelana — tekst */
  --ink-2: #d4d3cf;
  --muted: #a7a9b2;        /* srebro — tekst drugorzędny */
  --muted-2: #74767f;
  --accent: #536bff;       /* kobalt — światło, aktywne stany */
  --accent-deep: #a9b9ff;  /* błękit do tekstu akcentowego na czerni */
  --accent-soft: #c9d7ff;  /* lód */
  --clay: #3348d6;
  --line: rgba(242, 240, 234, 0.12);
  --line-strong: rgba(242, 240, 234, 0.26);
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 18px 40px -18px rgba(0, 0, 0, .8);

  --bg: var(--paper);
  --fg: var(--ink);

  /* Aliasy zgodności (starsze nazwy używane w 404 / polityce prywatności) */
  --obsidian: #09090b;
  --graphite: #17181c;
  --graphite-2: #1f2026;
  --porcelain: #f2f0ea;
  --porcelain-2: #e6e3da;
  --silver: var(--muted);
  --silver-dim: var(--muted-2);
  --cobalt: #536bff;
  --cobalt-deep: #3348d6;
  --ice: #c9d7ff;
  --line-dark: var(--line);
  --line-light: rgba(9, 9, 11, 0.14);

  /* Typografia */
  --font-display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Instrument Serif", "Times New Roman", Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --fs-mega: clamp(4.2rem, 15.5vw, 17rem);
  --fs-hero: clamp(2.3rem, 5.6vw, 5.9rem);
  --fs-h2: clamp(2.4rem, 6.2vw, 6.6rem);
  --fs-h2-serif: clamp(2.6rem, 7vw, 7.6rem);
  --fs-h3: clamp(1.6rem, 3vw, 2.9rem);
  --fs-lead: clamp(1.08rem, 1.45vw, 1.42rem);
  --fs-body: clamp(1rem, 1.05vw, 1.1rem);
  --fs-small: 0.875rem;
  --fs-label: 0.72rem;
  --track-label: 0.18em;

  /* Przestrzeń */
  --gutter: clamp(1.15rem, 4vw, 4.5rem);
  --section-y: clamp(6rem, 14vw, 14rem);
  --max: 1680px;
  --radius: 10px;
  --radius-lg: 22px;
  --nav-h: 76px;

  /* Ruch */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);        /* wejścia, odkrycia */
  --ease-inout: cubic-bezier(0.65, 0, 0.35, 1);     /* przejścia scen */
  --ease-precise: cubic-bezier(0.32, 0.72, 0, 1);   /* mikrointerakcje */
  --t-micro: 240ms;
  --t-reveal: 800ms;
  --t-scene: 1200ms;

  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

@media (max-width: 760px) {
  :root { --nav-h: 64px; }
}
