/* Bandwagon UI kit: tokens (Stamp and seal). Type picked by Justinas on 22 Nov 2026: Instrument Serif + Inter Tight.
   The fonts load from here, so a page only needs tokens.css, components.css and ui.js.
   (Self-host the files before launch if you want zero third-party requests; all are OFL.) */
@import url("https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Inter+Tight:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Geist+Mono:wght@400;500&family=Bitter:wght@900&family=Courier+Prime:wght@700&display=swap");

:root {
  color-scheme: light;

  /* Brand colour (from mockups/brand/seal/tokens.css) */
  --bw-oxblood: #8c1c13;   /* the stamp ink: primary actions, active nav, focus, links */
  --bw-wax: #5c120d;       /* pressed and hover on oxblood */
  --bw-cream: #f4ede1;     /* the page behind everything */
  --bw-paper: #fbf8f2;     /* the main content surface */
  --bw-sheet: #fffdf9;     /* cards, inputs and anything that sits on paper */
  --bw-ink: #1f1b18;       /* body text */
  --bw-muted: #6b6259;     /* secondary text, 5.3:1 on cream */
  --bw-faint: #8f8478;     /* placeholders and disabled text only, never real content */
  --bw-line: #dccfb9;      /* borders, rules */
  --bw-line-soft: #e9e0d0; /* inner rules, table rows */
  --bw-brass: #b8862b;     /* tiny highlights only, never text (2.9:1) */

  /* Tints (built from the brand colours) */
  --bw-ox-tint: #f6e6e1;   /* selected chips, active nav, oxblood notices */
  --bw-ox-wash: rgba(140, 28, 19, .06);
  --bw-ink-wash: rgba(31, 27, 24, .05);

  /* States */
  --bw-ok: #2f6b3c;        /* Approved, Looks good, Verified. 6.1:1 on sheet */
  --bw-ok-bg: #e6eedf;
  --bw-warn: #7a5512;      /* Needs you. 6.4:1 on its background */
  --bw-warn-bg: #f6e8c6;
  --bw-warn-line: #e6cf98;
  --bw-bad: var(--bw-oxblood); /* errors use the brand ink, on purpose */
  --bw-bad-bg: #f8e3de;

  /* Type */
  --bw-display: "Instrument Serif", "Times New Roman", serif;         /* headings and big numbers. One weight only: use --bw-display-weight, never 700+ */
  --bw-display-weight: 400;
  --bw-display-track: -.012em;
  --bw-body: "Inter Tight", "Helvetica Neue", Arial, sans-serif;       /* everything people read, 400 to 600; tables and prices use its tabular figures */
  --bw-stamp: "Courier Prime", "Courier New", monospace;               /* 700 caps: stamp marks only (.stamp) */
  --bw-mark: "Bitter", Georgia, serif;                                 /* the wordmark in .logo, never anything else */
  --bw-label: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace; /* step labels, table heads, codes, example tags */
  --bw-label-weight: 500;

  /* Type scale (app). Body is 15px: dashboards are dense, 17 to 18 is for the landing page.
     Instrument Serif sets small and narrow, so display sizes run larger than a grotesk would */
  --bw-t-12: 12px;  /* stamp labels, table heads */
  --bw-t-13: 13px;  /* hints, captions */
  --bw-t-14: 14px;  /* labels, nav, small buttons */
  --bw-t-15: 15px;  /* body */
  --bw-t-17: 17px;  /* lead text under page titles */
  --bw-t-20: 20px;  /* small display headings */
  --bw-t-26: 30px;  /* section titles */
  --bw-t-36: 44px;  /* page and step titles */
  --bw-t-48: 56px;  /* big numbers */
  --bw-lh-tight: 1.1;
  --bw-lh-snug: 1.3;
  --bw-lh-body: 1.55;

  /* Space (4px grid) */
  --bw-s-1: 4px;
  --bw-s-2: 8px;
  --bw-s-3: 12px;
  --bw-s-4: 16px;
  --bw-s-5: 20px;
  --bw-s-6: 24px;
  --bw-s-8: 32px;
  --bw-s-10: 40px;
  --bw-s-12: 48px;
  --bw-s-16: 64px;

  /* Radius: paper corners are small; only the seal and avatars are round */
  --bw-r-sm: 6px;   /* inputs, buttons, chips */
  --bw-r-md: 10px;  /* cards, dropzone, toasts */
  --bw-r-lg: 14px;  /* the main panel, dialogs */
  --bw-r-pill: 999px; /* badges, handle chip */

  /* Shadow: warm and low. Most things use a 1px line, not a shadow */
  --bw-sh-1: 0 1px 0 rgba(92, 18, 13, .04), 0 1px 2px rgba(31, 27, 24, .05);
  --bw-sh-2: 0 1px 2px rgba(31, 27, 24, .06), 0 6px 16px -6px rgba(31, 27, 24, .14);
  --bw-sh-3: 0 2px 4px rgba(31, 27, 24, .06), 0 18px 40px -12px rgba(31, 27, 24, .28);
  --bw-focus: 0 0 0 3px rgba(140, 28, 19, .22);

  /* Motion: 100 / 150 / 200 / 300 only. Enter ease-out, exit ease-in. Transform and opacity only */
  --bw-d-100: 100ms;
  --bw-d-150: 150ms;
  --bw-d-200: 200ms;
  --bw-d-300: 300ms;
  --bw-out: cubic-bezier(.23, 1, .32, 1);
  --bw-in: cubic-bezier(.7, 0, .84, 0);
  --bw-move: cubic-bezier(.77, 0, .175, 1); /* things moving on screen: reorder, flip, slide between positions */
  --bw-stamp-in: 200ms; /* a stamp lands: scale 1.15 to 1, a 3deg turn, opacity, once */

  /* Layout */
  --bw-sidebar: 232px;
  --bw-sidebar-collapsed: 68px;
  --bw-topbar: 56px;
  --bw-content: 880px;   /* reading width of a dashboard page */
  --bw-form: 640px;      /* one question per screen */
  --bw-gutter: 32px;
  --bw-z-sidebar: 30;
  --bw-z-topbar: 20;
  --bw-z-dialog: 60;
  --bw-z-toast: 70;
}

@media (max-width: 640px) {
  :root {
    --bw-gutter: 16px;
    --bw-t-36: 36px;
    --bw-t-48: 46px;
  }
}
