/* =========================================================================
   Design tokens — Kot bez wyobraźni (portfolio) / Sroki za ogoń (sklep)
   Extracted from Figma file zkgF9koyLNTisnq00ApCkY, 2026-08-14.

   SINGLE SOURCE OF TRUTH. Consumed by BOTH:
     - the static portfolio (srokizaogon.pl)
     - the Hummingbird child theme (kotbezwyobrazni.pl)
   If this file ever forks into two copies, the two domains will visibly
   drift apart. Import it; don't duplicate it.

   The Figma file publishes no styles or components, so every value below
   was read off individual nodes and counted. Usage counts are noted so a
   later reader can tell a deliberate token from a one-off.
   ========================================================================= */

:root {

  /* --- Core palette --------------------------------------------------- */
  /* Counted across the 6 desktop frames + the shared footer.             */

  --c-black:        #000000;  /* 68 uses — dominant text colour           */
  --c-white:        #ffffff;  /* 49 uses                                  */
  --c-ink:          #0e1301;  /* 21 uses — near-black with a green cast   */
  --c-icon:         #1e1e1e;  /* 16 uses — every VECTOR "Icon" stroke     */
  --c-sage:         #7b927d;  /* 13 uses — the one true brand accent      */
  --c-paper:        #f4ede7;  /*  6 uses — warm off-white page ground     */

  /* --- Per-page accents ------------------------------------------------
     The design themes each page with its own accent + background tint.
     Section headings take the accent; block backgrounds take the tint.
     Keep this structure — it is deliberate, not noise.                   */

  --c-accent-warsztaty:      #975cef;  /* 7 uses: "dla kogo?", "voucher"… */
  --c-tint-warsztaty:        #dec8ff;

  --c-accent-fotografia:     #8c0c0c;  /* 5 uses: "co otrzymasz?" etc.    */
  --c-tint-fotografia:       #f8e8e8;

  --c-accent-o-mnie:         #8c0c0c;  /* was #860909 in Figma — see note */
  --c-tint-o-mnie:           #ffd9d9;

  --c-tint-opieka:           #d7feda;  /* mint; no distinct accent found  */
  --c-tint-warm:             #ffe3a6;  /* shared: fotografia + opieka     */

  /* NOTE: Figma has #860909 on "małgorzata gawlik" (o mnie) and #8c0c0c
     on the fotografia headings. A 6-unit difference across one channel is
     hand-drift, not intent — unified to #8c0c0c here. Revert if Gosia
     says otherwise.
     EXCLUDED: #d9d9d9 — a single Figma-default placeholder rectangle
     ("Rectangle 21", warsztaty). Not a token.                            */

  /* --- Semantic aliases -------------------------------------------------
     Prefer these in components; swap the mapping, not every call site.   */

  --c-text:         var(--c-black);
  --c-text-muted:   var(--c-ink);
  --c-bg:           var(--c-paper);
  --c-bg-alt:       var(--c-white);
  --c-accent:       var(--c-sage);   /* per-page override via [data-page] */
  --c-rule:         var(--c-ink);


  /* --- Typography -------------------------------------------------------
     Two real families. Everything else in the file is a stray — see the
     note at the bottom.                                                  */

  /* IM Fell DW Pica SC — the face Gosia chose. Decision confirmed 2026-08-15
     with the tradeoff understood and accepted:

     IM Fell has NO Polish diacritics except ó/Ó. It is missing all 16 of
     ą ć ę ł ń ś ź ż Ą Ć Ę Ł Ń Ś Ź Ż, and 19 of its 71 text nodes (27%) contain
     at least one — including the homepage CTA "skontaktuj się ze mną".
     Browsers fall back PER GLYPH, so those words render in two faces at once.

     "IM Fell PL Fallback" is Cormorant SC scoped by unicode-range to exactly
     those 16 characters, with size-adjust:113% so they match IM Fell's cap
     height (0.702em vs 0.625em) instead of sitting visibly small. It is
     defined in site.css and in the theme's overrides.css. Do not remove it —
     without it the size mismatch is obvious. */
  /* IM FELL English PRO (SIL OFL 1.1) carries all 18 Polish characters and a
     real `smcp` feature, so it replaced IM Fell DW Pica SC + the Cormorant
     unicode-range fallback on 2026-09-02. Anything using --f-display must also
     set `font-variant-caps: small-caps` — the face is a roman. */
  --f-display: "IM FELL English PRO", Georgia, serif;
  --f-body:    "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* IM Fell DW Pica ROMAN — the non-small-caps cut, for the long intro
     paragraph on each page. Those 8 nodes report fontFamily "Inter" with
     fontPostScriptName: null, which is Figma saying it could NOT resolve the
     real font and is substituting Inter to display it. Confirmed by Gosia as
     IM Fell DW Pica regular. Same cap height as the SC cut (0.702em), so the
     Polish fallback needs the ROMAN variant though — the small-caps fallback
     used by --f-display renders ą/ć/ę as small capitals, which is invisible in
     all-caps headings but glaring in running text. */
  --f-prose:   "IM FELL English PRO", Georgia, serif;

  /* Line heights are Figma "auto" throughout: ~1.22 for Montserrat,
     1.25 for the display face. No manual overrides found.                */
  --lh-display: 1.25;
  --lh-body:    1.22;
  --ls-normal:  0;      /* letterSpacing is 0 on every single text node   */

  /* Type scale, in the sizes actually used (px in Figma → rem here at
     16px root). Counts show which are load-bearing.                      */

  --t-hero:     8rem;      /* 128px — IM Fell English, 1 use (see note)   */
  --t-h1:       2.5rem;    /*  40px — display, 13 uses                    */
  --t-h2:       2rem;      /*  32px — display,  2 uses                    */
  --t-h3:       1.5rem;    /*  24px — display, 49 uses ← most common      */
  --t-body-lg:  1.5rem;    /*  24px — body,     5 uses                    */
  --t-body:     1.25rem;   /*  20px — body,    18 uses ← default body     */
  --t-body-sm:  1.125rem;  /*  18px — body,     7 uses                    */
  --t-caption:  1rem;      /*  16px — body 300, 1 use                     */
  --t-fine:     0.9375rem; /*  15px — body,     1 use                     */

  --w-light:    300;
  --w-regular:  400;


  /* --- Spacing ----------------------------------------------------------
     Sparse: the file leans on absolute positioning, so only auto-layout
     frames yield real numbers. Treat as a starting rhythm, not gospel.   */

  --s-gap:      10px;  /* itemSpacing, 50 uses — the only gap value       */
  --s-pad:      12px;  /* padding,    176 uses — dominant                 */
  --s-pad-lg:   29px;  /* padding,     12 uses                            */


  /* --- Radii ------------------------------------------------------------
     46px on ~54px-tall elements is a pill in practice; 90px likewise on
     larger blocks. Expressed by intent rather than literal value.        */

  --r-pill:     999px;   /* was 46px (50 uses) / 90px (20 uses)           */
  --r-soft:     67px;    /* 3 uses                                        */


  /* --- Elevation --------------------------------------------------------
     None. Zero visible effects across all seven frames. The design is
     completely flat — do not add shadows "to help".                      */
}


/* --- Per-page accent switching -----------------------------------------
   Set data-page on <body>; components read var(--c-accent) unchanged.    */

[data-page="warsztaty"]  { --c-accent: var(--c-accent-warsztaty);
                           --c-tint:   var(--c-tint-warsztaty); }
[data-page="fotografia"] { --c-accent: var(--c-accent-fotografia);
                           --c-tint:   var(--c-tint-fotografia); }
[data-page="o-mnie"]     { --c-accent: var(--c-accent-o-mnie);
                           --c-tint:   var(--c-tint-o-mnie); }
[data-page="opieka"]     { --c-accent: var(--c-sage);
                           --c-tint:   var(--c-tint-opieka); }


/* =========================================================================
   STRAY STYLES — flagged, deliberately NOT tokenised.

   These appear a handful of times each and look like leftovers rather
   than design intent. Confirm with Gosia before honouring any of them:

     Inter 400 24/29           —  8 uses. Figma's default UI font. Almost
                                  certainly unstyled text that was never
                                  set to Montserrat.
     IM Fell English 400       —  3 uses (20px, 22px, and one 128px).
                                  A *different* IM Fell cut from the SC
                                  face used everywhere else.
     IM Fell Double Pica 400   —  1 use, 22px. Third IM Fell variant.
     Cormorant Garamond 700    —  1 use, 36px. Unrelated family entirely.

   The 128px IM Fell English node is the only large display type in the
   file, so --t-hero above is provisional: if that node turns out to be a
   stray too, the real display ceiling is --t-h1 (40px).
   ========================================================================= */


/* =========================================================================
   FONT LICENSING — all clear, all self-hostable.

     IM Fell DW Pica SC   Igino Marini, 2007 — SIL Open Font License 1.1
     Montserrat           SIL Open Font License 1.1
     Inter                SIL Open Font License 1.1
     Cormorant Garamond   SIL Open Font License 1.1

   Every family in the file is OFL and available from Google Fonts, so web
   embedding is permitted for commercial use. Self-host the woff2 files
   rather than hotlinking Google — fewer requests, no third-party origin,
   and it keeps the store's cookie/consent story simple under GDPR.
   OFL requires shipping the licence text alongside the font files.
   ========================================================================= */


/* =========================================================================
   STORE — srokizaogon.pl (Gosia's store frames, 2026-10-31).
   Read off the Figma nodes; see store-design/SPEC.md for where each is used.
   The store has its OWN palette and type, distinct from the portfolio's
   above — these are prefixed --s- so the two never collide.
   ========================================================================= */
:root {
  --s-paper:        #e9e0d1;  /* page ground on every store page            */
  --s-paper-light:  #f4ede7;  /* product cards, product page ground         */
  --s-sand:         #e8d8c1;  /* collection author band, related products   */
  --s-panel:        #1d1d1d;  /* dark panels — always under the paper grain */
  --s-ink:          #0e1301;  /* text on paper                              */
  --s-title:        #242a25;  /* Barriecito page titles on paper            */
  --s-lavender:     #a8a9ff;  /* logo plate, home band, footer              */
  --s-red:          #8c0c0c;  /* collection + product titles, eyebrows      */
  --s-icon:         #1e1e1e;

  --s-f-title:   "Barriecito", "Comic Neue", system-ui, sans-serif;
  --s-f-sans:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --s-f-serif:   "Cormorant", "Cormorant Garamond", Georgia, serif;
  --s-f-garamond:"Cormorant Garamond", "Cormorant", Georgia, serif;
  /* Gosia holds the Helvetica licence; served from the visitor's system. */
  --s-f-helv:    "Helvetica Neue", Helvetica, Arial, sans-serif;

  --s-track:     0.04em;      /* the file's default letter-spacing (4%)    */
  --s-gutter:    clamp(16px, 6vw, 86px);
}
