/* ============================================================================
   RISHI — MIDNIGHT SKIN · TOKENS
   Faithful reproduction of Marisha's own design: "Rishi — Brand & App.html"
   (Claude Design source of truth, 2 Nov). Night = default, Vellum = light.
   "The sky after midnight — not black, ink with a breath of blue. Text is warm
    parchment, never pure white. Brass is the only accent and behaves like light:
    thin lines, single points, never a large fill."
   Scoped entirely under body[data-skin="midnight"] so Atelier (default) and
   Astra are untouched. Every hex below is lifted verbatim from her color board.
   Fonts self-hosted (no gstatic — same IP-leak rule as the rest of the app).
   ============================================================================ */

/* --- HER THREE FACES (self-hosted woff2, extracted from her bundle) --------- */
@font-face{font-family:'Newsreader';font-style:normal;font-weight:300 600;font-display:swap;
  src:url("fonts/Newsreader-roman.woff2") format('woff2');}
@font-face{font-family:'Newsreader';font-style:italic;font-weight:300 500;font-display:swap;
  src:url("fonts/Newsreader-italic.woff2") format('woff2');}
@font-face{font-family:'Instrument Sans';font-style:normal;font-weight:400 600;font-stretch:100%;font-display:swap;
  src:url("fonts/InstrumentSans-var.woff2") format('woff2');}
@font-face{font-family:'DM Mono';font-style:normal;font-weight:400;font-display:swap;
  src:url("fonts/DMMono-400.woff2") format('woff2');}
@font-face{font-family:'DM Mono';font-style:normal;font-weight:500;font-display:swap;
  src:url("fonts/DMMono-500.woff2") format('woff2');}

/* ==========================================================================
   NIGHT (default) — her exact color board
   ========================================================================== */
body[data-skin="midnight"]{
  /* grounds (ink with a breath of blue) */
  --canvas:   #07080C;   /* page behind the app on desktop — deeper than ground */
  --cream:    #0B0D14;   /* Ground · app background */
  --card:     #11141D;   /* Surface · sheets, input wells */
  --card-2:   #0F1219;   /* in-chart data wells (reading "In your chart" box) */
  --raised:   #181C27;   /* Raised · cards, chat field */
  --blush:    #11141D;   /* love panels follow surface (no separate hue) */

  /* parchment text (never pure white) */
  --ink:       #EDE6D6;   /* Parchment · headlines */
  --ink-2:     #DCD4C3;   /* reading body */
  --ink-soft:  #DCD4C3;   /* heavy body on ground */
  --parch:     #EDE6D6;
  --parch-dim: #DCD4C3;
  --sec:       #A9A293;   /* Text-2 · secondary, captions */
  --text-3:    #938D7D;   /* Text-3 · labels, meta — nudged from #8A8475 for WCAG AA headroom on raised #181C27 (4.57:1 → 5.14:1) while staying the quiet rung below --sec */

  /* brass — the only accent, behaves like light */
  --gold:       #C8A46A;   /* Brass · accent, CTA text, chart */
  --goldBright: #E6CC95;   /* Brass-hi · points of light, italic voice */
  --goldText:   #C8A46A;   /* brass is legible as text on ground */
  --gold-dim:   #8C6E3E;   /* Brass-lo · sheen shadow */
  --gold-glow:  rgba(200,164,106,.14);

  /* the Moon + transits only */
  --moon:      #A9B8D0;    /* Moonlight */
  --oxide:     #C9714E;    /* Ember · rare: hard truths, warnings */
  --indigo:    #A9B8D0;

  /* hairlines */
  --hair:     #262A36;        /* Hairline · dividers, borders */
  --hair-2:   #1C202B;        /* fainter inner divider */
  --hair-ink: #262A36;

  /* primary button fill = parchment, dark text (Night) */
  --cta-fill:  #EDE6D6;
  --cta-text:  #0B0D14;
  --nav-bg:    rgba(11,13,20,.92);

  /* --- TYPE — her three faces + scale (from her typography board) --- */
  --serif: 'Newsreader',Georgia,'Times New Roman',serif;         /* voice: headlines, quotes, Rishi's words */
  --sans:  'Instrument Sans',system-ui,-apple-system,sans-serif; /* reading + interface */
  --mono:  'DM Mono',ui-monospace,SFMono-Regular,monospace;      /* the astronomer's hand: degrees, dates */

  /* ── CANONICAL TYPE SCALE ──────────────────────────────────────────────
     The "03 · Typography & scale" board is the source of truth. Each role is
     size/line · weight · track, lifted verbatim from Type.dc.html.
       display 52/56·300·−.025 · title 36/42·300·−.02 · quote 26/36·300 it·−.01
       heading 22/30·400·−.01 · lead 20/32·400 · body 17/28·400·.003
       ui 15/22·500 · caption 13/20·400 · label 11/16·500·.14 caps
       data 12/16·400·.06 caps                                                 */
  --t-display:    44px; --lh-display:    48px; --tr-display:   -0.025em;  /* screen title (Today) — a shade under the cover */
  --t-display-lg: 52px; --lh-display-lg: 56px; --tr-display-lg:-0.025em;  /* reading cover · "You rise in Scorpio" */
  --t-title:      36px; --lh-title:      42px; --tr-title:     -0.02em;   /* chapter title · "The Shape of You" */
  --t-subtitle:   22px; --lh-subtitle:   30px; --tr-subtitle:  -0.01em;  /* heading · "What your Moon is asking for" */
  --t-pull:       26px; --lh-pull:       36px; --tr-pull:      -0.01em;   /* pull-quote (serif italic voice) */
  --t-lead:       20px; --lh-lead:       32px;                            /* serif lead paragraph */
  --t-body:       17px; --lh-body:       28px; --tr-body:       0.003em;  /* reading body (Instrument Sans) */
  --t-label:      15px; --lh-label:      22px;                            /* ui · Continue (weight 500) */
  --t-caption:    13px; --lh-caption:    20px;                            /* caption */
  --t-micro:      11px; --lh-micro:      16px; --tr-micro:      0.14em;   /* tracked-caps mono label */
  --t-data:       12px; --lh-data:       16px; --tr-data:       0.06em;   /* MOON 14°08′ CANCER · 9TH */

  /* radii — her set (cards 16-20, sheets/panels 18-26) */
  --r-sm:   10px; --r-md:  14px; --r-lg:  18px; --r-xl:  26px; --r-pill: 999px;

  /* elevation — night is almost flat; depth is from hairlines + a faint brass sheen */
  --e1: 0 1px 2px rgba(0,0,0,.4);
  --e2: 0 2px 10px rgba(0,0,0,.45);
  --e3: 0 10px 34px rgba(0,0,0,.55);
  --e4: 0 20px 60px rgba(0,0,0,.6);
  --eInk: 0 10px 30px rgba(0,0,0,.5);
  --ring-hair: 0 0 0 1px var(--hair);
  --focus: 0 0 0 2px var(--cream), 0 0 0 4px var(--gold);

  /* motion — "slow as the sky" (her curves) */
  --ease:  cubic-bezier(.22,1,.36,1);   /* ease.arrive — light arrives, 8px rise */
  --expo:  cubic-bezier(.22,1,.36,1);
  --std:   cubic-bezier(.22,1,.36,1);
  --draw:  cubic-bezier(.65,0,.35,1);   /* ease.draw — lines write themselves */
  --d-micro: 180ms; --d-press: 180ms; --d-hover: 180ms; --d-move: 420ms; --d-slow: 900ms;
}

/* ==========================================================================
   VELLUM (light) — "a page by lamplight". Her exact light board.
   Activated by body[data-skin="midnight"][data-tone="vellum"].
   ========================================================================== */
body[data-skin="midnight"][data-tone="vellum"]{
  --canvas:   #EDE6D6;
  --cream:    #F4EFE6;   /* Ground */
  --card:     #FBF8F2;   /* Surface */
  --card-2:   #FBF8F2;
  --raised:   #FFFFFF;   /* Raised */
  --blush:    #FBF8F2;

  --ink:       #17161C;   /* Ink · headlines */
  --ink-2:     #2A2722;   /* reading body */
  --ink-soft:  #2A2722;
  --parch:     #17161C;
  --parch-dim: #2A2722;
  --sec:       #4F4A3F;   /* Text-2 */
  --text-3:    #6E6858;   /* Text-3 */

  --gold:       #A07E44;   /* Brass · chart lines, large type — nudged from #A8864C to clear WCAG 3:1 for UI/large on cream #F4EFE6 (2.97:1 → 3.30:1) */
  --goldBright: #7A5C28;   /* Brass-deep accent / CTA text */
  --goldText:   #7A5C28;
  --gold-dim:   #A8864C;
  --gold-glow:  rgba(200,164,106,.12);

  --moon:      #4E5F7D;    /* Dusk */
  --oxide:     #A4522F;    /* Ember */
  --indigo:    #4E5F7D;

  --hair:     #E2DACB;
  --hair-2:   #EAE3D6;
  --hair-ink: #E2DACB;

  --cta-fill:  #0B0D14;    /* Night · primary button fill on Vellum */
  --cta-text:  #F4EFE6;
  --nav-bg:    rgba(244,239,230,.94);

  --e1: 0 1px 2px rgba(60,44,24,.05);
  --e2: 0 2px 10px rgba(60,44,24,.07);
  --e3: 0 10px 30px rgba(50,36,18,.10);
  --e4: 0 20px 60px rgba(40,28,14,.14);
  --eInk: 0 10px 30px rgba(50,36,18,.12);
}
