/*
 * tokens.css — design tokens for bsm-theme.
 *
 * Source: ../obsidian/10_Projects/bsm_website/theme/theme-spec.md (section 3).
 * Approved by Oleg on 2026-09-19.
 *
 * Only the light theme is supported (no dark mode yet).
 */

:root {
  /* ============================================================
   * Colors (section 3.1)
   * ============================================================ */

  /* Primary */
  --navy: #1E3A5F;          /* main dark - headings, logo, accents */
  --navy-deep: #142844;     /* hover for navy */
  --accent: #2D8A6F;        /* main green - CTA, active, rules */
  --accent-strong: #226650; /* hover for accent */
  --accent-light: #5BA98A;  /* light green - badge backgrounds */
  --accent-soft: #E8F1ED;   /* very light green - eyebrow, soft badges */

  /* Backgrounds */
  --bg: #FAFAF8;            /* page background (warm white) */
  --bg-soft: #F4F2EE;       /* soft selection background */
  --surface: #FFFFFF;       /* surfaces (cards, topnav) */

  /* Text */
  --text: #1A1A1A;           /* primary text */
  --text-secondary: #4A5568; /* secondary text (subheads, descriptions) */
  --gray: #6B7280;           /* meta, breadcrumbs */

  /* Lines and dividers */
  --line: #E5E7EB;           /* light border */
  --line-strong: #C9C8C2;    /* accent border (form, selection) */

  /* Pre-composed borders (ready-to-use) */
  --hairline: 1px solid var(--line);             /* for hairlines */
  --accent-rule: 3px solid var(--accent);        /* for accent rules / border-left */

  /* Status colors */
  --success: #2D8A6F;        /* same as --accent */
  --warning: #F5B700;
  --warning-bg: #FEF6E0;
  --danger: #DC2626;
  --danger-bg: #FBEAE7;
  --info: #1E3A5F;           /* same as --navy */

  /* ============================================================
   * Fonts (section 3.2)
   * Google Fonts (Inter) is wired in Phase 7; for now the
   * fallback chain in --font-family-base guarantees readable
   * text on every system.
   * ============================================================ */

  --font-family-base: 'Inter', 'Calibri', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --font-size-base: 14px;
  --font-size-h1: 40px;      /* H1 - page title */
  --font-size-h2: 32px;      /* H2 - section in content */
  --font-size-h3: 22px;      /* H3 - subsection */
  --font-size-h4: 17px;      /* H4 - card title */
  --font-size-body: 15px;    /* body copy */
  --font-size-small: 13px;   /* meta */
  --font-size-tiny: 11px;    /* eyebrow, tags */

  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  --line-height-base: 1.55;
  --line-height-heading: 1.1;
  --letter-spacing-eyebrow: 0.1em;

  /* ============================================================
   * Spacing and sizing (section 3.3)
   * ============================================================ */

  --topnav-h: 68px;
  --breadcrumb-h: 52px;
  --subnav-h: 56px;
  --container-max: 1320px;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* Radii - design is FLAT (no rounding) */
  --radius: 0;
  --radius-md: 4px;          /* buttons, inputs */
  --radius-pill: 999px;      /* pills, badges */

  /* ============================================================
   * Shadows (section 3.5)
   * Design is FLAT - no shadows except dropdowns and flyouts.
   * ============================================================ */

  --shadow-dropdown: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-flyout: 0 8px 24px rgba(0, 0, 0, 0.06);
}
