/* ==========================================================================
   skins.css - the three skins and the structural tokens, for every page.

   Moved out of rack2.css (where the reasoning for each still is) so a page
   that is not a rack - the drawing page, draw.html - wears the same skin
   without taking the rack's layout. rack2.css imports this first; nothing
   in it changed on the way.
   ====================================================================== */

/* ========================================================== the skins == */
/* Each skin defines the same tokens and nothing else — v1's own rule.
   What is NEW in each is the five-step ramp and the ink-derived hairline:

     --ground   gutters and the page behind everything. Recedes furthest.
     --field    an inset control. Below the rail it sits in.
     --chrome   the rails: rack, report, titlebar, status.
     --raise    hover, sheets, anything lifted off the rail.
     --pane     the viewport ground. Advances furthest, because it is the
                thing being looked at.                                     */

/* -------------------------------------------------- skin: house (default) */
/* floftus.com's grey, given somewhere to step. #808080 was the whole app in
   v1; here it is the middle of a ramp and the panes sit above it.          */
:root,
:root[data-theme="house"] {
  --ground:   #6f6f6f;
  --field:    #7b7b7b;
  --chrome:   #888888;
  --raise:    #949494;
  --pane:     #9c9c9c;

  --ink:      #0a0a0a;
  --ink-dim:  #2e2e2e;
  --hair:     rgba(0,0,0,.14);
  --hair-2:   rgba(0,0,0,.28);
  --track:    rgba(0,0,0,.22);
  --fill:     rgba(0,0,0,.40);

  --accent:   #ffda48;   /* colour-1 — SELECTED, and focus. Nothing else. */
  --accent-2: #ffd43b;
  --on-accent:#000000;
  --rule:     #ed762e;   /* colour-3. One line under the titlebar, and that
                            is now its whole structural career. */
  --head:     #3f2408;   /* colour-6 darkened — column heads */
  --hi:       #101a6e;

  --cut:      #ed762e;   /* the laser's line — and now the ONLY orange in
                            the composition, which is what it was for */
  --fold:     #1c2cc8;
  --panel:    #530fc4;
  --hole:     #00842f;
  --inert:    #614125;

  --geom:     #101010;
  --geom-fill:#ffda48;
  --geom-2:   #3a3a3a;
  --dimline:  #530fc4;
  --grid:     rgba(0,0,0,.11);
  --grid-10:  rgba(0,0,0,.22);
}

/* ------------------------------------------------------------- skin: pcb */
/* pcb-rnd: a salmon board under pale silk chrome. Dense and unashamed —
   unchanged in character, given the same ramp.                            */
:root[data-theme="pcb"] {
  --ground:   #b46334;
  --field:    #ccd1c8;
  --chrome:   #dce0d8;
  --raise:    #ebeee7;
  --pane:     #d97a46;

  --ink:      #101010;
  --ink-dim:  #3f3f3f;
  --hair:     rgba(0,0,0,.15);
  --hair-2:   rgba(0,0,0,.30);
  --track:    rgba(0,0,0,.22);
  --fill:     rgba(0,0,0,.42);

  --accent:   #ffd43b;
  --accent-2: #ffe98a;
  --on-accent:#000000;
  --rule:     #7a3a18;
  --head:     #6b3214;
  --hi:       #16324e;

  --cut:      #232323;
  --fold:     #2f6fd0;
  --panel:    #7b3fbf;
  --hole:     #067a35;
  --inert:    #8a4a24;

  --geom:     #17324f;
  --geom-fill:#3f7fc8;
  --geom-2:   #4a86c8;
  --dimline:  #16324e;
  --grid:     rgba(0,0,0,.15);
  --grid-10:  rgba(0,0,0,.28);
}

/* ---------------------------------------------------------- skin: studio */
/* 3D Studio DOS r4: navy chrome, neutral grey viewports, high-chroma wires.
   The grey pane is not nostalgia — it is the correct ground to judge
   shading against, which is why every 3D tool still uses one.             */
:root[data-theme="studio"] {
  --ground:   #0b1520;
  --field:    #122740;
  --chrome:   #16324e;
  --raise:    #1f4166;
  --pane:     #3c3c3c;

  --ink:      #e2ecf7;
  --ink-dim:  #9db3cc;
  --hair:     rgba(255,255,255,.13);
  --hair-2:   rgba(255,255,255,.24);
  --track:    rgba(255,255,255,.18);
  --fill:     rgba(255,255,255,.42);

  --accent:   #ffe14d;
  --accent-2: #fff7b0;
  --on-accent:#000000;
  --rule:     #5fd0ff;
  --head:     #8fd4ff;
  --hi:       #ffe14d;

  --cut:      #ff5ea8;
  --fold:     #5fd0ff;
  --panel:    #b06cff;
  --hole:     #35d67a;
  --inert:    #6c7f96;

  --geom:     #e6f2ff;
  --geom-fill:#5f8fd8;
  --geom-2:   #7fb2e6;
  --dimline:  #5fd0ff;
  --grid:     rgba(255,255,255,.09);
  --grid-10:  rgba(255,255,255,.20);
}


/* ================================================ the structural tokens == */
/* Skin-independent. These are the ones that make v2 v2.                    */
:root {
  --s1: 4px;  --s2: 8px;  --s3: 12px;  --s4: 16px;  --s5: 24px;
  --r: 2px;

  /* Doto keeps the jobs a display face is FOR: the mark, the column heads,
     the pane labels, the slot names. Set large, uppercase, tracked. */
  --f-display: "Doto", ui-monospace, "SF Mono", Menlo, monospace;
  /* The reading text. System stack — SF Pro here, Segoe there. Zero
     requests, so this costs nothing and the payload actually falls. */
  --f-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, system-ui,
          "Helvetica Neue", Arial, sans-serif;
  /* Every figure. A measuring tool cannot have digits that change width. */
  --f-num: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  /* And every label drawn INSIDE a viewport. `draw2d.js` resolves this once
     and caches it, so the canvases and the chrome cannot drift apart -
     before this, ten `'10px Doto…'` literals across five files meant the
     stylesheet could not reach a single character in a pane. */
  --f-canvas: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;

  --t-xs: 10px; --t-sm: 11px; --t-md: 12px; --t-lg: 13px;
  --tr-wide: .10em;    /* tracking for uppercase display */
  --tr-mark: .16em;    /* the wordmark only */

  --row: 20px;         /* one control. Everything in the rack is a multiple */
  --bar: 30px;         /* titlebar */
  --foot: 22px;        /* status */
}
