/* Weard brand tokens. The one palette of every Weard application.
   Section 1 is the website (getweard.com, static-website2 src/index.css and src/refine.css),
   same names and same values. Section 2 is what a data tool needs and the website does not
   define. Apps alias these; they never define a colour of their own. See README.md. */
:root {
  /* ---------- 1. The website ---------- */
  --bg-base: #050810;
  --bg-surface-1: #0a0f1c;
  --bg-surface-2: #0e1424;
  --bg-surface-3: #131a2c;
  --bg-elevated: #1a2236;
  --border-subtle: rgba(64, 85, 122, 0.15);
  --border-default: rgba(64, 85, 122, 0.22);
  --border-mint: rgba(46, 229, 164, 0.25);
  --border-mint-strong: rgba(46, 229, 164, 0.55);
  --mint: #2ee5a4;
  --mint-bright: #5cf2bf;
  --mint-deep: #14b884;
  --mint-glow: rgba(46, 229, 164, 0.18);
  --mint-glow-strong: rgba(46, 229, 164, 0.35);
  --text-primary: #e8edf5;
  --text-secondary: #98a4ba;
  --text-muted: #5a6781; /* 3.05:1 to 3.52:1 on these surfaces: decoration, borders and disabled only, never text people must read */
  --text-mint-dim: rgba(46, 229, 164, 0.72);
  --on-mint: #052016; /* the ink on a mint button */
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 20px 40px -20px rgba(0, 0, 0, 0.5);
  --shadow-mint: 0 0 40px -10px var(--mint-glow);
  --font-sans: 'Geist', -apple-system, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --font-display: 'Geist', sans-serif;
  --font-serif: 'Instrument Serif', serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --dur-press: 140ms;
  --dur-ui: 220ms;
  --dur-reveal: 720ms;
  --radius-control: 8px; /* .btn-primary, .btn-secondary, .nav-cta, nav links */
  --radius-menu: 10px;   /* .nav-menu-btn */
  --radius-card: 16px;   /* .problem-card and the other cards */
  --grad-mint: linear-gradient(180deg, var(--mint-bright), var(--mint)); /* .btn-primary */
  --glow-button: 0 0 0 1px rgba(46, 229, 164, 0.3), 0 8px 24px -8px var(--mint-glow-strong);
  --glow-button-hover: 0 0 0 1px rgba(46, 229, 164, 0.45), 0 14px 32px -10px var(--mint-glow-strong);
  --bg-nav: rgba(5, 8, 16, 0.82);        /* nav.nav--scrolled */
  --wash-white: rgba(255, 255, 255, 0.03); /* .btn-secondary */
  --wash-text: rgba(232, 237, 245, 0.06);  /* .nav-hover-pill */
  --wash-mint: rgba(46, 229, 164, 0.04);   /* .btn-secondary:hover */
  --tint-mint: rgba(46, 229, 164, 0.1);
  --atmosphere-glow:
    radial-gradient(ellipse 80% 50% at 20% 10%, rgba(46, 229, 164, 0.08), transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 0%, rgba(46, 229, 164, 0.04), transparent 60%); /* .atmosphere::after */
  --atmosphere-dots: radial-gradient(circle at 1px 1px, rgba(120, 145, 180, 0.08) 1px, transparent 0) 0 0 / 32px 32px; /* .atmosphere::before */

  /* ---------- 2. Data tools: states, kinds and code ---------- */
  /* A control's edge must reach 3:1 (WCAG 1.4.11); the website's hairlines do not. */
  --line-strong: rgba(64, 85, 122, 0.42);
  --line-control: var(--text-muted);

  /* States keep their meaning: good is the brand mint, the rest are never replaced by it. */
  --status-ok: var(--mint);
  --status-warn: #F59E0B;
  --status-bad: #EF4444;
  --status-bad-text: #F87171;
  --status-info: #3B82F6;
  --status-info-text: #60A5FA;
  --status-neutral: #94A3B8;

  /* Record kinds: the kind icon and its tile tint only, never text and never a state. */
  --violet-300: #C4B5FD;
  --sky-300: #7DD3FC;
  --orange-300: #FDBA74;
  --pink-300: #F9A8D4;
  --indigo-300: #A5B4FC;
  --slate-200: #E2E8F0;

  /* Syntax colours of raw records and code blocks. */
  --syntax-key: #7DD3FC;
  --syntax-string: #86EFAC;
  --syntax-number: #FCD34D;
  --syntax-bool: #C4B5FD;

  --scrim-base: rgba(2, 6, 16, 0.56);
  --shadow-float-base: 0 24px 60px -20px rgba(2, 6, 16, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.03);
}
