/* Song Card — "Dark Ink" brand tokens (PREVIEW ONLY, Oct 10 2026).
   Same palette as "Ink & Foil" (Oct 7 2026), flipped to match the Oct 10 social
   graphics: ink page, ivory type, champagne highlights, antique brass foil.
   This is the ONLY place brand colors and type are defined. Every page links
   this file before styles.css.

   ROLE NOTE: the existing class rules use --ink for "strongest text" and
   --ivory for "page ground". In this theme those two roles are swapped, so
   --ink holds ivory and --ivory holds ink. Fixed palette values that must not
   flip live in the --pal-* tokens below. Do not use --ink/--ivory for
   artifacts that must stay light (the downloadable keepsake PNG pins its own
   colors in s/index.html).

   Rules:
   - brass (--brass) is foil only: rules, seal rim, wordmark edge. Once per screen.
   - champagne is a highlight: links, hover, player progress.
   - oxblood is the WAX SEAL color (unchanged) plus the small "Best deal" badges.
     It is no longer a button fill: on ink it drops to 2.1:1 against the page.
   - Primary buttons are ivory fill + ink text (16:1), champagne on hover.
   - No pure black, no yellow/#FFD700, no second metallic, no gradient logo, no glass. */
:root {
  color-scheme: dark;

  /* Grant gold scale (Oct 22 2026 brand tint pass, PREVIEW): light-to-dark tints
     built from the main brand color, brass #B98B42 (= gold-500, hue 37).
     Every neutral below (page, panels, text, borders, shadows) now comes from this
     scale instead of pure/neutral white, black or gray. */
  --gold-50: #FAF5ED;
  --gold-100: #F4EBDD;
  --gold-200: #E4D6BE;
  --gold-300: #D1BA94;
  --gold-400: #C49F64;
  --gold-500: #B98B42;
  --gold-600: #977135;
  --gold-700: #73572B;
  --gold-800: #392F1D;
  --gold-850: #2D2518;
  --gold-900: #231D13;
  --gold-950: #19140D;
  --gold-975: #120F0A;

  /* Fixed palette (never flips) */
  --pal-ink: var(--gold-950);
  --pal-ink-2: var(--gold-900);   /* lighter ink: panels, cards */
  --pal-ink-3: var(--gold-850);   /* lighter still: cards on panels */
  --pal-ink-deep: var(--gold-975);/* player well (inset) */
  --pal-ivory: var(--gold-50);

  /* Role tokens (names kept from Ink & Foil so every page rule still applies) */
  --ink: var(--gold-50);         /* ROLE: wordmark, headlines, strong text (ivory) */
  --ivory: var(--gold-950);      /* ROLE: page background / inner cards (ink) */
  --stock: var(--gold-900);      /* ROLE: panels, intake screens, step cards (lighter ink) */
  --brass: #B98B42;      /* foil only, once per screen. Oct 14 2026: Grant's gold (was #B08958). 5.9:1 on ink; NOT for text on cream (2.7:1) */
  --brass-deep: #7A5A26; /* gold for text/icons on cream/ivory: 5.6:1 on #F6F1E8 (AA) */
  --champagne: #E4C99A;  /* highlights */
  --soft-ink: var(--gold-200);   /* body text (muted ivory) */
  --oxblood: #8C3A3A;    /* badges (the wax seal is gold + Grant mark since Oct 14 2026) */
  --groove: var(--gold-850);     /* inside the player only */

  /* New role tokens for dark */
  --cta-bg: var(--gold-50);     /* primary button fill (ivory) */
  --cta-fg: var(--gold-950);     /* primary button text (ink) */
  --cta-hover: #E4C99A;  /* primary button hover fill (champagne) */
  --cta-sub: rgba(25, 20, 13, 0.78); /* secondary text on the ivory buy card */
  --link: #E4C99A;       /* links + link buttons (champagne) */
  --error: #EDA595;      /* errors / warnings (light oxblood, legible on ink) */
  --on-oxblood: var(--gold-50); /* text on the oxblood badge */
  --well: var(--gold-975);       /* audio player well */

  /* Occasion tints: card edge only, never the logo */
  --tint-birthday: rgba(196, 132, 58, 0.14); /* amber #C4843A at 14% (a touch above 12% so it still reads on ink) */
  --tint-sage: #8A9A7D;                       /* sage, lifted for ink */

  /* Derived (ivory / oxblood at low alpha on ink) */
  --hairline: rgba(250, 245, 237, 0.12);
  --hairline-strong: rgba(250, 245, 237, 0.26);
  --field-border: rgba(250, 245, 237, 0.38);  /* inputs, chips, ghost + price buttons: 3.3:1 on ink (WCAG 1.4.11) */
  --ink-wash: rgba(250, 245, 237, 0.10);
  --oxblood-wash: rgba(140, 58, 58, 0.22);
  --ivory-soft: rgba(25, 20, 13, 0.78);       /* secondary text on the ivory buy card */
  --shadow: 0 1px 2px rgba(18, 15, 10, 0.30), 0 14px 34px rgba(18, 15, 10, 0.35);
  --shadow-card: 0 2px 4px rgba(18, 15, 10, 0.35), 0 22px 48px rgba(18, 15, 10, 0.45);
  --foil: linear-gradient(90deg, var(--brass) 0%, var(--champagne) 50%, var(--brass) 100%);

  /* Type (unchanged) */
  --font-display: "Fraunces", "Newsreader", Georgia, "Times New Roman", serif;
  --font-ui: "Geist", "Satoshi", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-script: "Pinyon Script", cursive; /* lyric card dedication line ONLY */
  --font: var(--font-ui);

  --radius: 16px;
}
