/* ============================================================
   PL:ON Design System — Colors & Typography
   Source: PLON_Brandbook.pdf v1.0 (Edition 2026)
   ============================================================ */

/* --- Web fonts (Google Fonts substitutes) ---------------------
   Brandbook directional families: Inter / Manrope / Helvetica Neue (sans),
   PT Serif Italic / Source Serif Italic / Lora Italic (serif).
   We use Inter + Source Serif 4 from Google Fonts.
   ⚠ SUBSTITUTION FLAG — replace with the dedicated brand font
   if/when the user supplies it (see brandbook §03).
*/
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Source+Serif+4:ital,wght@1,400;1,600;1,700&display=swap');
/* Fonty subbrandów (Camp=Anton, Młody=Bricolage Grotesque 800, AIR=Manrope) */
@import url('https://fonts.googleapis.com/css2?family=Anton&family=Bricolage+Grotesque:opsz,wght@12..96,800&family=Manrope:wght@700;800&display=swap');

:root {
  /* === COLOR TOKENS ============================================ */

  /* Base palette (brandbook §04) */
  --plon-black:    #0A0A0A;  /* Tło, typografia podstawowa */
  --plon-white:    #FFFFFF;  /* Tło logo, kontrast, oddech */
  --plon-mint:     #3CE8B0;  /* Akcent — hasła, wyróżnienia */
  --plon-mint-dark:#1FB084;  /* Akcent ciemny — hover, druk */
  --plon-graphite: #2A2A2A;  /* Powierzchnie wtórne, karty */
  --plon-gray:     #6B6B6B;  /* Tekst pomocniczy, captions */

  /* Supporting palette — grafika/gradienty ORAZ kolory subbrandów (orange/purple/red).
     Violet + green pozostają wyłącznie graficzne. */
  --plon-orange:   #FF7A45;
  --plon-purple:   #8B3FCC;
  --plon-violet:   #6B4DE6;
  --plon-green:    #00C46A;
  --plon-red:      #F5333A;  /* AIR — „on air", nadawanie (subbrand) */

  /* === SUBBRANDY (kolor + tekst-na-kolorze) ===================
     Wariant sygnatury: B „Kartusz" (decyzja zespołu 2026-06-10).
     Kolor niesie warstwa subbrandu; trzon PL:ON bez zmian. */
  --c-festiwal: var(--plon-mint);    --on-festiwal: #0A0A0A;
  --c-camp:     var(--plon-orange);  --on-camp:     #0A0A0A;
  --c-mlody:    var(--plon-purple);  --on-mlody:    #FFFFFF;
  --c-air:      var(--plon-red);     --on-air:      #FFFFFF;

  /* Greyscale rampa (interpolated for UI surfaces) */
  --plon-gray-900: #0A0A0A;
  --plon-gray-800: #1A1A1A;
  --plon-gray-700: #2A2A2A;
  --plon-gray-600: #3F3F3F;
  --plon-gray-500: #6B6B6B;
  --plon-gray-400: #9A9A9A;
  --plon-gray-300: #C4C4C4;
  --plon-gray-200: #E4E4E4;
  --plon-gray-100: #F2F2F2;
  --plon-gray-050: #FAFAFA;

  /* === SEMANTIC COLOR ROLES (dark mode is canonical) ============ */
  --bg:           var(--plon-black);
  --bg-elevated:  var(--plon-graphite);
  --bg-inverse:   var(--plon-white);

  --fg-1:         var(--plon-white);   /* primary text on dark */
  --fg-2:         var(--plon-gray-300);/* secondary text */
  --fg-3:         var(--plon-gray-500);/* tertiary / captions */
  --fg-inverse:   var(--plon-black);   /* text on white */

  --accent:       var(--plon-mint);
  --accent-hover: var(--plon-mint-dark);
  --accent-fg:    var(--plon-black);   /* text ON mint */

  --border:       var(--plon-gray-700);
  --border-soft:  rgba(255,255,255,0.08);
  --divider:      rgba(255,255,255,0.12);

  --focus-ring:   var(--plon-mint);

  /* === TYPOGRAPHY TOKENS ======================================== */
  --font-sans:  'Inter', 'Manrope', 'Helvetica Neue', Arial, system-ui, sans-serif;
  --font-serif: 'Source Serif 4', 'PT Serif', 'Lora', Georgia, serif;
  --font-mono:  ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --font-camp:  'Anton', var(--font-sans);
  --font-mlody: 'Bricolage Grotesque', var(--font-sans);
  --font-air:   'Manrope', var(--font-sans);
  /* Festiwal używa --font-serif (italic) — bez nowego tokenu */

  /* Type scale (brandbook §05 — pt converted to px @ ~1.33) */
  --fs-h1:       clamp(40px, 5vw, 72px);  /* 32–56pt */
  --fs-h2:       clamp(28px, 3vw, 36px);  /* 22–28pt */
  --fs-h3:       20px;                    /* 14–18pt */
  --fs-lead:     18px;                    /* 14–16pt */
  --fs-body:     16px;                    /* 10–12pt screen */
  --fs-caption:  12px;                    /* 8–9pt */
  --fs-haslo:    clamp(32px, 4vw, 56px);  /* hasła kampanijne 24–48pt */

  --lh-tight:    1.05;
  --lh-snug:     1.2;
  --lh-normal:   1.45;
  --lh-relaxed:  1.55;

  --tracking-tight:  -0.02em;
  --tracking-normal: 0;
  --tracking-wide:   0.08em;
  --tracking-caps:   0.14em;  /* eyebrow / kicker labels */

  /* === SPACING + RADII + ELEVATION ============================= */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  24px;
  --space-6:  32px;
  --space-7:  48px;
  --space-8:  64px;
  --space-9:  96px;
  --space-10: 128px;

  --radius-0:  0px;     /* sharp — default for cards (brand is rectangular) */
  --radius-1:  2px;
  --radius-2:  4px;     /* subtle softening, buttons */
  --radius-3:  8px;
  --radius-pill: 999px;

  /* Shadows are RARELY used. Brand is flat. */
  --shadow-1: 0 1px 2px rgba(0,0,0,0.4);
  --shadow-2: 0 8px 24px rgba(0,0,0,0.35);
  --shadow-mint: 0 0 0 1px var(--plon-mint), 0 8px 32px rgba(60,232,176,0.18);

  /* Layout */
  --max-w-prose:   720px;
  --max-w-content: 1200px;

  /* === MOTION (tokeny ruchu) ==================================
     Marka jest stonowana: „z energią, nie z patosem".
     Tylko transform/opacity (GPU). Bez bounce/elastic. */
  --dur-instant: 120ms;   /* feedback: klik, toggle */
  --dur-fast:    200ms;   /* hover, zmiana stanu */
  --dur-base:    300ms;   /* rozwijanie, modal */
  --dur-slow:    500ms;   /* wejścia, reveal */
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);   /* gładkie, wyrafinowane */
  --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);  /* nieco bardziej zdecydowane */
  --ease-out-expo:  cubic-bezier(0.16, 1, 0.3, 1);   /* pewne, kierunkowe */
}

/* Subbrand scope — ustawia --sb-color/--sb-on wg atrybutu data-sb */
[data-sb="festiwal"] { --sb-color: var(--c-festiwal); --sb-on: var(--on-festiwal); }
[data-sb="camp"]     { --sb-color: var(--c-camp);     --sb-on: var(--on-camp);     }
[data-sb="mlody"]    { --sb-color: var(--c-mlody);    --sb-on: var(--on-mlody);    }
[data-sb="air"]      { --sb-color: var(--c-air);      --sb-on: var(--on-air);      }

/* ============================================================
   ELEMENT DEFAULTS
   ============================================================ */
html, body {
  background: var(--bg);
  color: var(--fg-1);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, .h1 {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: var(--fs-h1);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
  margin: 0;
}

h2, .h2 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: var(--fs-h2);
  line-height: var(--lh-snug);
  letter-spacing: var(--tracking-tight);
  margin: 0;
}

h3, .h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: var(--fs-h3);
  line-height: var(--lh-snug);
  margin: 0;
}

p, .body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: var(--lh-relaxed);
  margin: 0;
}

.lead {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: var(--fs-lead);
  line-height: var(--lh-relaxed);
  color: var(--fg-2);
}

/* The signature serif italic — only for haslas, manifesto, quotes */
.haslo, .pull-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 700;
  font-size: var(--fs-haslo);
  line-height: var(--lh-snug);
  letter-spacing: var(--tracking-tight);
  margin: 0;
}

.haslo .accent, .haslo em {
  color: var(--accent);
  font-style: italic;  /* keep italic when em-ing */
}

blockquote, .quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: var(--fs-lead);
  line-height: var(--lh-relaxed);
  margin: 0;
  color: var(--fg-1);
}

.eyebrow, .kicker {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--fs-caption);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--fg-2);
}

.caption, small {
  font-family: var(--font-sans);
  font-size: var(--fs-caption);
  line-height: var(--lh-normal);
  color: var(--fg-3);
}

/* Brand mark text — used inline for the "PL:ON" wordmark fallback */
.wordmark {
  font-family: var(--font-sans);
  font-weight: 900;
  letter-spacing: -0.02em;
}

/* Selection */
::selection {
  background: var(--plon-mint);
  color: var(--plon-black);
}

/* Focus */
:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}
