/* Copyright Ayers Electronics Inc. All rights reserved. */
/* HAND-KEPT. Edit this file directly: nothing generates it and no freshness check gates the deploy.
   The site tree deploys on its own and cannot reach brand/, so this is the site's own copy of the
   palette — keep it in step with brand/tokens.css by hand when a brand colour changes. */
/* Howland design tokens — single source of truth for the palette.
   Green accent stays constant across light/dark; surfaces flip. */

:root {
  /* brand */
  --howland-primary: #5bbaab; /* parrot teal-green */
  --howland-primary-deep: #3e8d82; /* 4.61:1 on --howland-bg; was #3D8B80 at 4.49:1 — it is link-text hover, so it reads (check-kit-css) */
  /* The primary at its brightest: hue 170, lighter and more saturated than --howland-primary
     (170.5). The brand file is the complete source of truth, so a colour a surface uses is a
     colour the brand file names — never leave one as an unnamed literal on a surface. Used as a
     glow core, never as text. */
  --howland-primary-bright: #9fe8dc;
  --howland-status-ok: #4ade80;
  --howland-beak: #e4896a; /* coral accent, sparing use */

  /* dark surfaces (default) */
  --howland-bg: #0a1628;
  --howland-bg-panel: #0d1e30;
  --howland-bg-raised: #0f1f35;
  --howland-bg-element: #162942;
  --howland-border: #1e3a5f;

  /* dark text */
  --howland-text: #f5f0e6; /* cream */
  --howland-text-muted: #8a9bb5;
  --howland-text-dim: #5c80b6; /* 4.51:1 on --howland-bg; was #4a6fa5 at 3.55:1 */

  /* type */
  --howland-font-display: "Asimovian", sans-serif;
  --howland-font-body: "IBM Plex Sans", system-ui, sans-serif;
  --howland-font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

@media (prefers-color-scheme: light) {
  :root {
    --howland-bg: #f5f0e6;
    --howland-bg-panel: #ffffff;
    --howland-bg-raised: #faf6ee;
    --howland-bg-element: #eee7d8;
    --howland-border: #d5cbb8;

    --howland-text: #0a1628;
    --howland-text-muted: #4a5d7a;
    --howland-text-dim: #576b8e; /* 4.74:1 on light --howland-bg; was #8a9bb5 at 2.49:1 — small footer text takes the full bar (check-kit-css) */

    /* ACCENTS FOLLOW THE GROUND. This block must flip the accents as well as the eight surface
       and ink tokens: an accent left at its dark-ground value on this light ground measures
       primary 2.04:1, beak 2.29:1, status-ok 1.53:1 against #f5f0e6, where the bar for text is
       4.5:1. Not "too pale" — the right colours for the wrong ground.

       Hue and saturation are preserved; only lightness moves, to the first value that clears the
       bar. Dark mode is untouched.

       THE HOVER STEP FLIPS DIRECTION AND THAT IS THE POINT. -deep is darker than -primary in both
       modes, but on the navy ground darker means LOWER contrast (7.82 -> 4.49) and on the cream
       ground it means HIGHER (4.51 -> 6.53). The step itself stays comparable: 1.74:1 dark,
       1.45:1 light. A light block that copied the dark relationship would have made the hover
       vanish. */
    --howland-primary: #33796e; /* 4.51:1 */
    --howland-primary-deep: #295e57; /* 6.53:1 */
    --howland-beak: #bb4922; /* 4.52:1 */
    /* 3.02:1 — the WCAG 1.4.11 bar for meaningful NON-TEXT, which is what a glow core is; the
       4.5 text bar does not apply. Hue and saturation preserved. On cream the dark-ground value
       is 1.23:1 and invisible, which is the accents-follow-the-ground defect this block exists
       to prevent — a token is not complete until it has a value for both grounds, even where the
       only surface using it today is dark-only. */
    --howland-primary-bright: #259b88;
    --howland-status-ok: #177e3d; /* 4.52:1 */
  }
}
