/* Duke's Picks AI — brand theme.
   Every colour, typeface and shape token the app has lives here and NOWHERE
   else. app.css is brand-neutral structure; it only ever reads these.
   build-pages.mjs swaps this file (and the marks and the copy) per audience,
   which is how linefigures-ai looks nothing like ai.dukespicks.com off the same
   source. See ../brand/. */

:root {
  /* Gilded (Carson, 26 Nov 2026): dark is warm espresso with gold detailing,
     never pure black. Was #0a0908 / #050403 / #14110d / #191510. */
  --bg:          #17130d;
  --bg-deep:     #13100b;
  --bg-raised:   #1e1912;
  --bg-input:    #19140e;

  /* The accent is given as channels as well, because the app tints with it at
     five different opacities and a hex cannot be faded in a var. */
  --accent:            #d4af6f;
  --accent-soft:       #e7cf9f;
  --accent-rgb:        212, 175, 111;
  --accent-fill:       #d4af6f;
  --accent-fill-hover: #e7cf9f;
  --accent-ink:        #14110d;

  /* A loss, and the only colour in the app that is not the accent or the ink.
     Money going the wrong way is the one thing gold cannot say, because gold is
     what this brand uses for good news everywhere else. Break even carries the
     same value hardcoded at .b-ret--down; it predates this token. */
  --loss:        #d4625c;

  --ink:         #f3ead6;
  --ink-rgb:     243, 234, 214;

  /* Gilded finishes (gilded.css reads these). */
  --foil: linear-gradient(115deg, #a8822f 0%, #d4af6f 24%, #f6e8c2 44%, #e0c07e 60%, #b18a3a 80%, #e2c584 100%);
  --foil-line: linear-gradient(90deg, #b18a3a, #f6e8c2, #b18a3a);
  --foil-ink: #2a1d08;
  --hair:      rgba(212, 175, 111, 0.22);
  --hair-2:    rgba(212, 175, 111, 0.1);
  --hair-on:   rgba(212, 175, 111, 0.5);
  --plate:     #241d13;
  --espresso:     #2b2216;
  --espresso-ink: #f0dca8;
  --engrave:   0 -1px 0 rgba(0, 0, 0, 0.6);
  --lift-0: 0 1px 2px rgba(0, 0, 0, 0.3);
  --lift-1: 0 10px 22px -12px rgba(0, 0, 0, 0.7);
  --lift-2: 0 20px 40px -18px rgba(0, 0, 0, 0.85);
  --up:        #45c483;
  --up-fill:   #1d7a4f;
  --down:      #e3625f;
  --down-fill: #a8303a;

  --display: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono:    ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;

  --display-weight:    500;
  --display-tracking:  -0.01em;
  --display-transform: none;

  --eyebrow-tracking: 0.18em;

  /* Round 2, 13 October 2026: "rounded and not sharp but not a bubble".
     Cards 8, controls 6, as GHL's white theme (6) with a touch more. */
  --radius:    8px;
  --radius-sm: 6px;
  --btn-radius: 6px;
}

/* ---------------------------------------------------------------------------
   LIGHT. Carson, 12 October 2026: "a light and dark theme that can be
   adjusted in settings, along with a default of matching their browser."
   Dark stays on bare :root. Three states: no data-theme follows the browser;
   data-theme="light" or "dark" on <html> is the member's choice
   (client/tools.ts, stored in localStorage as dp_theme).

   Gilded (Carson, 26 Nov 2026: "Lets go with gilded"): cream and gold,
   engraved gold hairlines, brushed foil saved for the one main button.
   The mockups are in Dukes Picks/design-gilded-2026-11-26.md.
   --------------------------------------------------------------------------- */
:root { color-scheme: dark; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg:          #f7f1e4;
    --bg-deep:     #f4ecdc;
    --bg-raised:   #fffcf5;
    --bg-input:    #faf5ea;
    --line:        rgba(160, 122, 46, 0.28);
    --line-soft:   rgba(160, 122, 46, 0.16);
    --accent:            #8c6c2c;
    --accent-soft:       #7a5c1c;
    --accent-rgb:        160, 122, 46;
    --accent-fill:       #c9a457;
    --accent-fill-hover: #b8933f;
    --accent-ink:        #2a1d08;
    --loss:        #a3262e;
    --ink:         #22190c;
    --ink-rgb:     34, 25, 12;
    --foil: linear-gradient(115deg, #8a6826 0%, #c9a457 24%, #f2e0a8 44%, #d3af63 60%, #9f792f 80%, #d8b970 100%);
    --foil-line: linear-gradient(90deg, #9f792f, #f2e0a8, #9f792f);
    --foil-ink: #2a1d08;
    --hair:      rgba(160, 122, 46, 0.3);
    --hair-2:    rgba(160, 122, 46, 0.12);
    --hair-on:   rgba(160, 122, 46, 0.5);
    --plate:     #f8f0dd;
    --espresso:     #2a1f12;
    --espresso-ink: #f0dca8;
    --engrave:   0 1px 0 rgba(255, 255, 255, 0.85);
    --lift-0: 0 1px 2px rgba(80, 60, 20, 0.05);
    --lift-1: 0 1px 2px rgba(80, 60, 20, 0.06), 0 10px 22px -14px rgba(80, 60, 20, 0.22);
    --lift-2: 0 2px 4px rgba(80, 60, 20, 0.06), 0 22px 44px -20px rgba(80, 60, 20, 0.34);
    --up:        #14794a;
    --up-fill:   #12704a;
    --down:      #a8262e;
    --down-fill: #a3262e;
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg:          #f7f1e4;
  --bg-deep:     #f4ecdc;
  --bg-raised:   #fffcf5;
  --bg-input:    #faf5ea;
  --line:        rgba(160, 122, 46, 0.28);
  --line-soft:   rgba(160, 122, 46, 0.16);
  --accent:            #8c6c2c;
  --accent-soft:       #7a5c1c;
  --accent-rgb:        160, 122, 46;
  --accent-fill:       #c9a457;
  --accent-fill-hover: #b8933f;
  --accent-ink:        #2a1d08;
  --loss:        #a3262e;
  --ink:         #22190c;
  --ink-rgb:     34, 25, 12;
  --foil: linear-gradient(115deg, #8a6826 0%, #c9a457 24%, #f2e0a8 44%, #d3af63 60%, #9f792f 80%, #d8b970 100%);
  --foil-line: linear-gradient(90deg, #9f792f, #f2e0a8, #9f792f);
  --foil-ink: #2a1d08;
  --hair:      rgba(160, 122, 46, 0.3);
  --hair-2:    rgba(160, 122, 46, 0.12);
  --hair-on:   rgba(160, 122, 46, 0.5);
  --plate:     #f8f0dd;
  --espresso:     #2a1f12;
  --espresso-ink: #f0dca8;
  --engrave:   0 1px 0 rgba(255, 255, 255, 0.85);
  --lift-0: 0 1px 2px rgba(80, 60, 20, 0.05);
  --lift-1: 0 1px 2px rgba(80, 60, 20, 0.06), 0 10px 22px -14px rgba(80, 60, 20, 0.22);
  --lift-2: 0 2px 4px rgba(80, 60, 20, 0.06), 0 22px 44px -20px rgba(80, 60, 20, 0.34);
  --up:        #14794a;
  --up-fill:   #12704a;
  --down:      #a8262e;
  --down-fill: #a3262e;
  color-scheme: light;
}
