/* =============================================================================
   RXLUXURY — THE DARK EDITION
   =============================================================================
   ONE FILE, ONE BLOCK, NOTHING ELSE. Everything below restates a token that
   css/styles.css declares in its :root. There are no rules here — no
   html[data-dark] .something { } anywhere — because the paper sheet has no
   colour literals left outside its token block, so re-pointing the tokens is
   the whole of the edition.

   That is the property this file depends on and the reason to protect it: add
   a literal colour to styles.css and it will be the same colour at night, and
   nothing will fail — it will simply be wrong, in one edition, quietly.

   These are the values Rx.Luxury was designed in. The desk was built dark and
   the dark edition is not a derivation of the paper one; it is the original.

   THE VIEWER TOKENS ARE DELIBERATELY ABSENT. --viewer, --stage and
   --viewer-veil are black in both editions and are not restated here: a DICOM
   canvas is read against black because that is what a reading room is.
   ============================================================================= */
html[data-dark] {
  /* ==========================================================================
     THE HOUSE DARK, TO THE VALUE.
     --------------------------------------------------------------------------
     This was Rx.Luxury's own night palette — #071018 ground, #eef3f7 ink, and a
     WARM line at rgba(212,196,164,.12) — and beside any other dark page on the
     estate it read as a different site. The estate's dark edition is
     #0C1116 with white ink and a white hairline, and these are those numbers
     rather than an interpretation of them. Read the note in the shared
     assets/css/dark.css for why each one is what it is; the short version is
     that every one was measured against the ground it sits on.

     THE ONE THING THAT IS NOT THE HOUSE'S is the imaging stage, and it is not
     here at all — see the note beside --stage in styles.css.
     ========================================================================== */
  --bg:        #0C1116;   /* the page — the house ground, exactly */
  --bg-2:      #11171E;
  --elev:      #11171E;   /* a card is LIFTED off the ground at night */
  --elev-2:    #1A222C;
  --rail:      linear-gradient(180deg, #11171E 0%, #0C1116 100%);
  --bar:       rgba(12, 17, 22, 0.86);

  --line:      rgba(255, 255, 255, 0.16);
  --line-2:    rgba(255, 255, 255, 0.09);
  --text:      #FFFFFF;
  --muted:     #8A9199;   /* #717171 measures 3.0:1 on this ground */
  --faint:     #6B737B;

  /* The house vocabulary, pointed at the same values. */
  --ink:        #FFFFFF;
  --ink-77:     rgba(255, 255, 255, .72);
  --ink-55:     rgba(255, 255, 255, .58);
  --paper:      #0C1116;
  --tint:       #11171E;
  --deep:       #1A222C;
  --line-soft:  rgba(255, 255, 255, .09);
  --line-dark:  rgba(30, 38, 43, .22);
  --accent:     #F97316;
  --accent-fill: #F97316;

  --chrome-wash:   rgba(255, 255, 255, .05);
  --chrome-edge:   rgba(255, 255, 255, .34);
  --chrome-scrim:  rgba(0, 0, 0, .62);
  --chrome-shadow: rgba(0, 0, 0, .55);
  --on-ink:        #0C1116;

  /* The action is ink, which on this ground is white. */
  --teal:      #FFFFFF;
  --teal-dim:  rgba(255, 255, 255, 0.08);
  --teal-edge: rgba(255, 255, 255, 0.42);
  --teal-glow: rgba(0, 0, 0, 0.45);
  --on-teal:   #0C1116;
  --mark-fill: transparent;
  --wash-teal:   rgba(255, 255, 255, 0.03);
  --wash-teal-2: rgba(255, 255, 255, 0.05);

  --gold:      #F97316;
  --gold-dim:  rgba(249, 115, 22, 0.14);
  --gold-edge: rgba(249, 115, 22, 0.34);
  --gold-fill: #F97316;
  --on-gold:   #1A0E04;
  --wash-gold: rgba(249, 115, 22, 0.05);

  /* The semantic hues, three steps up their scale — the house rule. */
  --rose:      #F87171;
  --rose-dim:  rgba(248, 113, 113, 0.12);
  --rose-edge: rgba(248, 113, 113, 0.32);
  --ok:        #4ADE80;
  --ok-dim:    rgba(74, 222, 128, 0.10);
  --warn:      #FBBF24;
  --warn-dim:  rgba(251, 191, 36, 0.12);
  --blue:      #93C5FD;

  --away:      rgba(255, 255, 255, 0.58);
  --away-on:   rgba(255, 255, 255, 0.90);

  /* THE IMAGING STAGE, at night. Not pure black — the house ground, one step
     down, so the viewer is part of the page rather than a hole cut in it. */
  --stage:       #05080B;
  --viewer:      #000000;
  --viewer-veil: rgba(0, 0, 0, 0.62);

  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}
