/* ============================================================================
   ShareMockups — COMMAND
   Graphic and high contrast, with one settled accent that only ever marks
   what needs action, so it never becomes wallpaper.

   Rules this system enforces:
     · There is ONE theme. Light. The dark counterpart was taken out, and with
       it the switch, the stored preference and every [data-theme] override —
       a value in this file is the value, not one of two.
     · The accent is sky blue, and it has THREE jobs that need three values.
       The FILL (--ac) is #2276C9, because the fill has to carry white text:
       white on the #4C9DE9 the brand is built on measures 2.87:1 and fails,
       and no amount of weight fixes that. --on-ac is white; never hard-code it.
     · --ac-tx is the accent AS TEXT, on paper: #1A64A8, 5.57:1. Fills use --ac,
       words use --ac-tx, and neither is the other.
     · The mark is one colour and takes currentColor, so no token is reserved
       for it — it is the ink of whatever it sits on.
     · Mint is the data/second-series hue — charts, comment counts, the comment
       badge. It clears the accent by ΔE 29.2, the widest separation the chart's
       two series have had. It does NOT clear the success green, which is a
       deliberate trade: the 15 floor governs marks told apart by
       colour ALONE, and an Approved pill always carries a tick and the word
       while a data mark never carries either. See CHANGES.md.
     · In progress carries no urgency, so it carries no hue: --info is a cool
       slate that stays out of the accent's way.
     · Headings and numerals are Sora; everything else is Figtree. The wordmark
       keeps Manrope, because it is the lockup the SVG logo files are drawn in.
     · Elevation comes from a 1px line plus a soft 1px shadow, not a drop.

   Every pair below carries its measured WCAG ratio. All body text clears AA.
   ========================================================================= */

:root {
  /* Native UI — the select popup, the date picker, scrollbars, autofill — is
     painted by the browser, not by us, and it takes its cue from color-scheme.
     It is declared rather than left to default so a machine set to dark does
     not drop a dark popup list into a light page. */
  color-scheme: light;

  /* ---------- Type ---------- */
  --font-display: 'Sora', system-ui, sans-serif;
  --font-ui: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  /* The logo gets its own face and its own fallback chain. It is a neutral
     grotesque rather than the display face, and the chain names real grotesques
     all the way down — a two-name stack can land on a host's default serif the
     moment the webfont is missing, which is how a sans-serif logo turns up set
     in Times inside Figma, Word or a print RIP. */
  --font-mark:
    'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica, Arial,
    sans-serif;

  /* ---------- Radii ----------
     The rounded language: chips and small controls, controls and fields,
     inner cards, outer panels, and fully-round buttons and toggles. */
  --r-1: 8px;
  --r-2: 11px;
  --r-3: 14px;
  --r-4: 18px;
  --r-pill: 999px;

  /* ---------- Surfaces ---------- */
  --canvas: #f4f4f7; /* page behind everything */
  --bg: #f4f4f7;
  --pane: #ffffff; /* cards */
  --pane-2: #f1f1f4; /* hover, wells, chart tracks */
  --pane-3: #e9e9ee; /* pressed, thumbs */
  --line: #e3e3e9;
  --line-2: #cdcdd6;

  /* ---------- Elevation ----------
     Three steps and no more: a card at rest, something floating over the page,
     and something that has taken the page over. Each is one soft shadow plus
     the 1px line the surfaces already carry — a drop shadow doing the work
     alone is what makes an interface look like a slide deck. */
  --sh-1: 0 1px 2px rgba(16, 16, 24, 0.05);
  --sh-2: 0 16px 40px -18px rgba(16, 16, 24, 0.2), 0 2px 6px rgba(16, 16, 24, 0.05);
  --sh-3: 0 40px 90px -34px rgba(16, 16, 24, 0.3), 0 4px 12px rgba(16, 16, 24, 0.07);

  /* A canvas that is one flat value reads as a slab. This is the accent at an
     alpha you cannot name, laid over the top of the page, so the screen has a
     light source without anything on it changing colour. */
  --wash: radial-gradient(1200px 520px at 50% -180px, rgba(34, 118, 201, 0.07), transparent 70%);

  /* ---------- Text ---------- */
  --tx: #0b0b0f; /* 19.64:1 on --pane */
  --tx-2: #52525e; /*  7.70:1 */
  --tx-3: #63636e; /*  5.55:1 — anything lighter drops under AA on --pane-2 */

  /* ---------- Accent — sky ----------
     The one bright thing on the page. #4C9DE9 is the brand blue — the logo ring
     and the hue behind every tint — but a filled control has to carry a word,
     and white on #4C9DE9 is 2.87:1. So the fill steps down one rung to #2276C9,
     the lightest blue in the same family that clears AA with white on it, and
     the accent AS TEXT steps down further still to #1A64A8 to clear AA on
     paper. */
  --ac: #2276c9; /* the FILL — deep enough to carry white */
  --ac-tx: #1a64a8; /* the accent as a WORD on paper — 5.57:1 */
  --on-ac: #ffffff; /* text ON the accent fill — 4.66:1 */
  --on-fill: #ffffff; /* on --ok 9.38:1 · the mint uses --on-vi instead */

  --ac-dim: #eaf3fc; /* accent tint surface — keyed to #4C9DE9, not the fill */
  --ac-line: #c2def8;
  --ac-ring: rgba(34, 118, 201, 0.28);

  /* ---------- Data / second series — mint ----------
     A light mint, so whatever sits ON it is ink, not white — hence --on-vi,
     separate from --on-fill, which still serves the deep green/amber/slate
     fills. */
  --vi: #60cd96; /* fills, bars, badges — ΔE 29.2 from the accent */
  --vi-tx: #0f7a55; /* mint as a WORD on paper — 4.86:1 */
  --on-vi: #0b0b0f; /* text ON the mint — 9.98:1 */
  --vi-dim: #e7f5ee;

  /* ---------- Semantic ---------- */
  /* Success moved when the accent became green: at #5CC98C it measured ΔE 6.3
     against the accent — two greens a third of the way to being the same
     colour. #2BB981 is bluer and more saturated, which takes it to ΔE 11.3. */
  --ok: #00513a;
  --ok-bg: #e6eeeb;
  --ok-line: #b8cec8; /* 9.38:1 */
  --warn: #8a5200;
  --warn-bg: #fbf0d8;
  --warn-line: #eedcaf; /* 5.64:1 */
  --bad: #a32828;
  --bad-bg: #fbe4e2;
  --bad-line: #f0c8c4; /* 5.98:1 */
  /* In progress. A cool slate, not a hue: it sat on periwinkle, which came to
     ΔE 8.0 from the new accent — a status pill reading as a call to action. */
  --info: #43536b;
  --info-bg: #ebeef3;
  --info-line: #cfd6e0; /* 7.86:1 */
}

/* Inheriting color-scheme from :root is enough in most browsers, but Chrome on
   Windows paints a popup from the CONTROL's own colours when its background is
   transparent, taking its cue from the machine rather than the page. Declaring
   it on the controls themselves closes that. */
select,
input[type='date'],
input[type='time'],
input[type='number'],
textarea {
  color-scheme: light;
}
