/* bimi.diy public design tokens (spec 900 stage A, docs/ui-review/stage-a/loop1-changes.md).
   Light mode only. site.css uses only these tokens (900 item 13). Fonts are self-hosted
   (000 §7 BRAND_FONTS): Inter 400/500/600 and JetBrains Mono 400/500 (OFL, see third_party/). */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("/static/fonts/inter-400.woff2?v=8909904ab6c8") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("/static/fonts/inter-500.woff2?v=f3779f1efccc") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("/static/fonts/inter-600.woff2?v=f9a06e79cd3a") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/static/fonts/jetbrains-mono-400.woff2?v=14425ba9c695") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/static/fonts/jetbrains-mono-500.woff2?v=cb182feeed4d") format("woff2"); }

:root {
  color-scheme: light;

  /* Neutrals */
  --ink: #0E1A24;            /* headings; dark surfaces (header, hero, footer) */
  --ink-2: #16252F;          /* second dark surface (cta band, page hero) */
  --body: #1F2A37;           /* body text */
  --muted: #526070;          /* secondary text, hints, placeholders: 6.43 on white, 5.92 on sunken */
  --surface: #FFFFFF;
  --surface-sunken: #F4F6F5;
  --border: #DDE3E1;         /* decorative only, never the only boundary of a control */
  --border-strong: #7A8794;  /* control boundaries: 3.67 on white */

  /* Accent: signal teal. Never teal on ink (2.89); use --accent-on-dark there. */
  --accent: #0B6E69;         /* 6.09 on white */
  --accent-hover: #08524F;
  --accent-soft: #E6F3F1;
  --accent-on-dark: #6FE3C9; /* 11.33 on ink, 10.08 on ink-2 */
  --accent-on-dark-hover: #A5EEDB;
  --accent-on-dark-a40: rgb(111 227 201 / .4);

  /* On dark surfaces */
  --on-dark-fg: #FFFFFF;
  --on-dark-muted: #B8C4CC;  /* 9.91 on ink */
  --on-dark-border: #868C92; /* 5.18 on ink: ghost button and toggle borders */
  --on-dark-line: rgb(255 255 255 / .12);
  --on-dark-dot: rgb(255 255 255 / .07);

  /* Status: strong = text, border, icon; soft = background (all >= 5.7 on soft) */
  --pass: #116A31;  --pass-soft: #EAF5EE;
  --warn: #8A4F00;  --warn-soft: #FDF3E6;
  --fail: #B42318;  --fail-soft: #FCEBEA;
  --info: #1B5E8C;  --info-soft: #E8F1F8;

  /* Focus: one global rule; .on-dark switches it to white, cards switch it back */
  --focus: var(--accent);
  --focus-width: 3px;
  --focus-offset: 2px;

  /* Type */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;

  --text-xs: .8125rem;   /* 13px */
  --text-sm: .9375rem;   /* 15px */
  --text-base: 1.0625rem;/* 17px */
  --text-md: 1.125rem;   /* 18px */
  --text-lg: 1.25rem;    /* 20px */
  --text-xl: clamp(1.25rem, 1.1rem + .6vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 1.3rem + 1vw, 2rem);
  --text-3xl: clamp(1.75rem, 1.4rem + 1.6vw, 2.75rem);
  --text-4xl: clamp(2.25rem, 1.5rem + 3.2vw, 4rem);

  --leading-tight: 1.08;
  --leading-snug: 1.25;
  --leading-body: 1.6;
  --tracking-tight: -.025em;
  --tracking-snug: -.01em;
  --tracking-mono: .02em;

  /* Spacing: 4px base */
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-section: clamp(3.5rem, 8vw, 6rem);
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --container: 72rem;
  --measure: 40rem;
  --header-h: 4rem;
  --target: 2.75rem;
  --target-row: 3rem;
  --control-h: 3rem;

  /* Radii */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 999px;

  /* Shadows (ink-tinted) */
  --shadow-ring: 0 0 0 1px rgb(14 26 36 / .04);
  --shadow-sm: 0 1px 2px rgb(14 26 36 / .06);
  --shadow-md: 0 1px 2px rgb(14 26 36 / .06), 0 6px 16px -4px rgb(14 26 36 / .10);
  --shadow-lg: 0 2px 4px rgb(0 0 0 / .10), 0 24px 48px -12px rgb(0 0 0 / .45);

  /* Motion */
  --ease: cubic-bezier(.2, .8, .2, 1);
  --dur-fast: 150ms;
  --dur-base: 200ms;

  /* Icons (data URIs; stroke = --ink) */
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 6l5 5 5-5' fill='none' stroke='%230E1A24' stroke-width='1.8'/%3E%3C/svg%3E");
  --chevron-accent: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 6l5 5 5-5' fill='none' stroke='%230B6E69' stroke-width='2'/%3E%3C/svg%3E");

  /* Logo inbox preview backgrounds (spec 404) */
  --logo-preview-light: #ffffff;
  --logo-preview-dark: #1f2329;
  --logo-preview-border: #d0d5dd;
  --logo-preview-mark: rgba(128, 128, 128, .22);
}
