/* ============================================================
   DIGITAL PUNKT · DESIGN TOKENS
   Custom properties only. No selectors that carry layout,
   colour or type rules directly. Everything else is app.css.

   ------------------------------------------------------------
   BRAND APPLIED, 2026-08-20.
   Accent is the real Digital Punkt orange #FF6600, taken from
   the supplied logo. Surfaces are a dark petrol derived from
   the logo's own #092F3A. The Punkt geometry below is
   unchanged and still parametric; only its colour is mapped.

   Still pending: node geometry re-derivation from the mark.
   ------------------------------------------------------------
   RESOLVED BY THE BRAND ASSETS (was D9)

     --accent        #FF6600   the Digital Punkt orange, from the logo
     --accent-text   #FF6600   the same value. The surface ladder below
                               was chosen so one orange clears AA as
                               text everywhere, rather than shipping a
                               second lighter "text orange"
     --accent-on     #071F27   text ON an orange fill. White fails at 2.94
     --accent-inv    #B34600   accent as small text on the light section,
                               where #FF6600 fails at 2.69
     --accent-weak             #FF6600 at 14%
     --grid-line               #FF6600 at 7%
     --bg-base       #071F27   dark petrol, derived from the logo
     --bg-s1         #092F3A   the logo's own petrol, branded surface

   STILL PENDING

     --node-r        3px       base node radius of the Punkt
                               primitive, to be re-derived from
                               the real mark
     --node-step     32px      lattice step every node position
                               is a multiple of
     --plane-dx      14px      plane offset, horizontal
     --plane-dy      -10px     plane offset, vertical
     --plane-lift    72px      plane separation in the SCALE
                               state of the system diagram

   Nothing else in this file is waiting on anything.
   ============================================================ */

:root{
  /* surfaces */
  --bg-base:#071F27;   /* dark petrol, derived from the logo's #092F3A */
  --bg-s1:#092F3A;     /* branded surface: cards, panels. The logo's own value */
  --bg-s2:#0A2A34;     /* raised: inputs, panel heads, selected fills.
                          Deliberately a DARKER step than --bg-s1, not lighter,
                          so the exact brand orange stays AA-legible as text on
                          every surface (5.13:1 here, 4.84:1 on s1, 5.79:1 on
                          base). A lighter step drops it to 4.0 and would force
                          a second, off-brand "text orange". */
  --bg-inv:#F4F5F7;
  --bg-inv2:#FFFFFF;

  /* lines and grid */
  --line-1:rgba(255,255,255,.08);
  --line-2:rgba(255,255,255,.14);
  --line-inv:rgba(11,13,16,.12);
  --edge:rgba(255,255,255,.18);

  /* text */
  --text-1:#F2F4F7;
  --text-2:#9AA3AE;
  --text-3:#818B98;
  --text-inv-1:#101318;
  --text-inv-2:#565E6B;

  /* accent: the Digital Punkt orange. One value, used for fills, marks and
     text alike, because the surface ladder above keeps it AA everywhere. */
  --accent:#FF6600;
  --accent-text:#FF6600;
  --accent-weak:rgba(255,102,0,.14);
  --grid-line:rgba(255,102,0,.07);
  /* text placed ON an orange fill. White measures 2.94:1 and fails; the
     petrol base measures 5.79:1. */
  --accent-on:#071F27;
  /* accent as small text on the light proof section. #FF6600 measures 2.69:1
     on --bg-inv and fails, so that one context darkens the orange. */
  --accent-inv:#B34600;

  /* status, never themed */
  --status-good:#0CA30C;
  --status-warn:#FAB219;
  --status-serious:#EC835A;
  --status-critical:#D03B3B;

  /* radii */
  --r-sm:2px; --r-md:4px; --r-pill:999px;

  /* space scale */
  --s1:4px;--s2:8px;--s3:12px;--s4:16px;--s5:24px;--s6:32px;
  --s7:48px;--s8:64px;--s9:96px;--s10:128px;--s11:160px;

  /* motion */
  --dur-micro:120ms; --dur-state:180ms; --dur-enter:240ms; --dur-cross:300ms;
  --dur-tilt:640ms;
  --ease-out:cubic-bezier(.2,0,0,1);
  --ease-inout:cubic-bezier(.4,0,.2,1);

  /* layout */
  --max:1280px; --gutter:24px; --margin:72px;

  /* type families */
  --font-sans:'Inter',ui-sans-serif,system-ui,-apple-system,'Segoe UI',sans-serif;
  --font-mono:'JetBrains Mono',ui-monospace,SFMono-Regular,Menlo,monospace;

  /* Punkt primitive geometry, placeholder */
  --node-r:3px;
  --node-step:32px;
  --plane-dx:14px;
  --plane-dy:-10px;
  --plane-lift:72px;

  /* defaults for the register system, overridden per section below */
  --sec-pad:var(--s10);
  --grid-a:.055;
}

/* ------------------------------------------------------------
   REGISTERS (D14). Density is a token, not a matter of taste.
   A = pristupacno, B = neutralno, C = tehnicki.
   ------------------------------------------------------------ */
section[data-reg="a"]{
  --text-1:#F6F4F1;
  --text-2:#ADA8A2;
  --text-3:#938E88;
  /* Register A stays the warmer register, but warm now means petrol shifted
     toward green rather than warm grey. The previous neutral-warm greys read
     as dirty against the petrol page. */
  --bg-s1:#0A3138;
  --bg-s2:#0B2A31;
  --line-1:rgba(240,255,250,.09);
  --line-2:rgba(240,255,250,.16);
  --sec-pad:var(--s11);
  --grid-a:.030;
}
section[data-reg="b"]{
  --sec-pad:var(--s10);
  --grid-a:.055;
}
section[data-reg="c"]{
  --sec-pad:var(--s8);
  --grid-a:.085;
}

/* ------------------------------------------------------------
   RESPONSIVE TOKEN STEPS
   ------------------------------------------------------------ */
@media (max-width:1100px){
  :root{--margin:40px}
}
@media (max-width:760px){
  :root{--margin:20px;--grid-line:rgba(255,255,255,.04)}
  section[data-reg="a"]{--sec-pad:var(--s7)}
  section[data-reg="b"]{--sec-pad:var(--s8)}
  section[data-reg="c"]{--sec-pad:var(--s7)}
}
