/* RGMStudio — tokeny
   Warstwa 1: surowa paleta (nie używać w komponentach).
   Warstwa 2: tokeny znaczeniowe — jedyne, z których korzystają komponenty.
   Motyw: <html data-theme="light|dark">. Ton sekcji: .tone-ink (sekcja kontrastowa). */

:root{
  /* — paleta — */
  --ivory-50:#fafaf8; --ivory-100:#f2f1ed; --ivory-200:#e8e5dd; --paper:#f4f2ee; --white:#fff;
  --graphite-1000:#0a0a09; --graphite-950:#0e0e0d; --graphite-900:#111110; --graphite-850:#161514;
  --graphite-800:#1a1918; --graphite-750:#1c1b19; --graphite-700:#242220; --graphite-600:#3c3a36;
  --stone-700:#6f6b62; --stone-500:#8f8b82; --stone-400:#9c978c; --stone-300:#a9a59c; --stone-200:#c9c5ba; --cream:#f3f1ea;
  --gold-700:#7f6029; --gold-500:#b08a4a; --gold-400:#c9a25f; --gold-300:#d6b479; --gold-200:#e3c58e;
  --rec:#e04a3a;

  /* — typografia — */
  --serif:"RGM Serif","Instrument Serif",Georgia,serif;
  --sans:"RGM Sans","Geist",system-ui,-apple-system,"Segoe UI",sans-serif;
  --mono:"RGM Mono","Geist Mono",ui-monospace,Menlo,monospace;
  --serif-stretch:70%; --serif-weight:350;           /* dopasowanie cyrylicy (Noto Serif Display) */
  /* skala modularna 1,25 */
  --fs--2:.64rem; --fs--1:.8rem; --fs-0:1rem; --fs-1:1.25rem; --fs-2:1.563rem; --fs-3:1.953rem;
  --fs-4:2.441rem; --fs-5:3.052rem; --fs-6:3.815rem; --fs-7:4.768rem;
  --fs-h2:clamp(var(--fs-5),6.2vw,6.25rem);
  --fs-h1:clamp(3.4rem,9.2vw,10rem);
  --lh-body:1.6; --measure:68ch;

  /* — ruch: jedna krzywa, trzy czasy — */
  --ease:cubic-bezier(.7,0,.2,1);
  --dur-s:.35s; --dur-m:.7s; --dur-l:1.2s;

  /* — siatka — */
  --pad:clamp(1.25rem,4vw,3.5rem);
  --radius:6px; --radius-l:14px;
  --tap:44px;
}

/* ===== motyw jasny ===== */
:root,[data-theme=light]{
  color-scheme:light;
  --surface:var(--ivory-50);
  --surface-alt:var(--ivory-100);
  --surface-raised:var(--white);
  --surface-hall:var(--ivory-100);          /* tło pod mediami */
  --text:var(--graphite-900);
  --text-2:var(--graphite-600);
  --text-muted:var(--stone-700);            /* 5.2:1 na --surface */
  --accent:var(--gold-500);                 /* dekoracja i duże nagłówki (≥3:1) */
  --accent-text:var(--gold-700);            /* mały złoty tekst (≥4.5:1) */
  --accent-hi:var(--gold-300);              /* punkt świetlny (kropki, poświata) */
  --on-accent:var(--graphite-900);
  --line:rgb(17 17 16 / .09);
  --line-2:rgb(17 17 16 / .18);
  --rule:var(--graphite-900);               /* mocna linia podziału */
  --invert-bg:var(--graphite-900);
  --invert-text:var(--ivory-50);
  --media-bg:var(--paper);
  --wash:250 250 248;                       /* RGB zasłony na mediach */
  --header-bg:rgb(250 250 248 / .94);
  --scrim:rgb(17 17 16 / .55);
  --focus:var(--gold-700);
  --shadow:0 30px 60px -30px rgb(17 17 16 / .35);
  --glow:none;
  --grid-op:.55;
  --manifest-dim:rgb(17 17 16 / .13);
  --media-filter:none;                      /* filtr na jasnych mediach w tle */
}

/* ===== motyw ciemny ===== */
[data-theme=dark]{
  color-scheme:dark;
  --surface:var(--graphite-950);
  --surface-alt:var(--graphite-850);
  --surface-raised:var(--graphite-750);
  --surface-hall:var(--graphite-1000);
  --text:var(--cream);
  --text-2:var(--stone-200);
  --text-muted:var(--stone-400);
  --accent:var(--gold-400);
  --accent-text:var(--gold-300);
  --accent-hi:var(--gold-300);
  --on-accent:var(--graphite-950);
  --line:rgb(243 241 234 / .10);
  --line-2:rgb(243 241 234 / .18);
  --rule:rgb(243 241 234 / .32);
  --invert-bg:var(--cream);
  --invert-text:var(--graphite-950);
  --media-bg:var(--paper);
  --wash:14 14 13;
  --header-bg:rgb(14 14 13 / .9);
  --scrim:rgb(0 0 0 / .66);
  --focus:var(--gold-300);
  --shadow:0 30px 70px -30px rgb(0 0 0 / .8);
  --glow:0 0 18px rgb(214 180 121 / .28);
  --grid-op:.6;
  --manifest-dim:rgb(243 241 234 / .14);
  --media-filter:invert(1) hue-rotate(180deg) saturate(.8);
}

/* ===== ton sekcji kontrastowej (Oferta, Kontakt) =====
   jasny motyw: grafit; ciemny motyw: podniesiona powierzchnia ze złotą linią — nie odwracamy. */
.tone-ink{
  --surface:var(--graphite-900);
  --surface-alt:var(--graphite-800);
  --surface-raised:var(--graphite-800);
  --text:var(--ivory-50);
  --text-2:var(--stone-300);
  --text-muted:var(--stone-500);
  --accent:var(--gold-500);
  --accent-text:var(--gold-300);
  --line:rgb(250 250 248 / .10);
  --line-2:rgb(250 250 248 / .2);
  --rule:rgb(250 250 248 / .3);
  --invert-bg:var(--ivory-50);
  --invert-text:var(--graphite-900);
  --focus:var(--gold-300);
  --edge:transparent;
  color-scheme:dark;
}
[data-theme=dark] .tone-ink{
  --surface:var(--graphite-850);
  --surface-alt:var(--graphite-750);
  --surface-raised:var(--graphite-700);
  --text:var(--cream);
  --text-2:var(--stone-200);
  --text-muted:var(--stone-400);
  --accent:var(--gold-400);
  --invert-bg:var(--cream);
  --invert-text:var(--graphite-950);
  --edge:rgb(201 162 95 / .38);
}
/* karta wyróżniona w Ofercie */
.tone-paper{
  --surface-raised:var(--ivory-50);
  --text:var(--graphite-900);
  --text-2:var(--graphite-600);
  --text-muted:var(--stone-700);
  --accent-text:var(--gold-700);
  --line:rgb(17 17 16 / .09);
  --line-2:rgb(17 17 16 / .18);
}
[data-theme=dark] .tone-paper{
  --surface-raised:#2a2724;
  --text:var(--cream);
  --text-2:var(--stone-200);
  --text-muted:var(--stone-400);
  --accent-text:var(--gold-300);
  --line:rgb(214 180 121 / .22);
  --line-2:rgb(214 180 121 / .4);
}
