/* slingr.io primary accent — the one colour for the single primary action in a viewport.
 *
 * Every primary button on the site reads these tokens; nothing else does. Gold
 * (--gold, #D2A04C) is NOT defined here: it stays in each page's own tokens and is
 * for eyebrow labels and hairline rules only.
 *
 * EXPERIMENT (2026-11-29): lime primary accent.
 * To revert the whole experiment, change `@media all` below to `@media not all`.
 * That one edit restores the gold filled buttons, including the nav button.
 *
 * Not used yet, flagged for later: burgundy #5C1024 as a section-band background.
 */

/* Baseline: gold filled buttons, as before the experiment. */
:root {
  --primary: #D2A04C;
  --primary-hover: #D2A04C;
  --primary-active: #C4923F;
  --on-primary: #18222C;
  --primary-wash: rgba(210, 160, 76, 0.28);
  --primary-ring: #E9E3D6;
  --primary-disabled: #4A5660;
  --on-primary-disabled: #B9BEC3;
  /* Second-rank buttons that share a viewport with a primary one (the nav button,
     the hero prompt's Ask button). Filled like a primary in the baseline. */
  --cta2-bg: #D2A04C;
  --cta2-fg: #18222C;
  --cta2-border: transparent;
}

/* Experiment: lime. Lime appears once per viewport, on the primary button only. */
@media all {
  :root {
    --primary: #A8D62E;        /* 9.45:1 on #18222C */
    --primary-hover: #93BE22;  /* 7.38:1 */
    --primary-active: #7FA61C; /* 5.65:1 */
    --on-primary: #16210B;     /* 9.81:1 on lime; never cream on lime */
    --primary-wash: rgba(168, 214, 46, 0.12); /* subtle fills, hairlines, focus halos only */
    /* second-rank buttons become outlined, so the viewport has one filled accent */
    --cta2-bg: transparent;
    --cta2-fg: #E9E3D6;
    --cta2-border: #8A9199;
  }
}

/* States for buttons styled inline (no class to hang a rule on). Class-styled buttons
   get the same states next to their own rule in each page. */
[style*="var(--primary)"]:hover { background: var(--primary-hover) !important; }
[style*="var(--primary)"]:active { background: var(--primary-active) !important; }
[style*="var(--primary)"]:focus-visible { outline: 2px solid var(--primary-ring); outline-offset: 2px; box-shadow: 0 0 0 6px var(--primary-wash); }
[style*="var(--primary)"]:disabled { background: var(--primary-disabled) !important; color: var(--on-primary-disabled) !important; opacity: 1 !important; cursor: not-allowed; }
