/* Brand of Agro-Invest, taken from the client's site agro-116.ru (theme "agroinvest", 24.11.2026).
   Fonts and the logo come from the same site; see docs/brand.md for the source of every value and the open
   license question about GT Walsheim Pro. */

@font-face {
  font-family: "GT Walsheim Pro";
  src: url("fonts/GTWalsheimPro-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* style.md allows only 400 and 600; the site uses Bold for every emphasis, so 600 is served by Bold. */
@font-face {
  font-family: "GT Walsheim Pro";
  src: url("fonts/GTWalsheimPro-Bold.woff") format("woff");
  font-weight: 600 700;
  font-style: normal;
  font-display: swap;
}

/* Black is for the "АГРОИНВЕСТ" wordmark in the header only. */
@font-face {
  font-family: "GT Walsheim Pro Black";
  src: url("fonts/GTWalsheimPro-Black.woff") format("woff");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --font: "GT Walsheim Pro", "Helvetica Neue", Arial, sans-serif;
  --font-wordmark: "GT Walsheim Pro Black", "GT Walsheim Pro", "Helvetica Neue", Arial, sans-serif;

  /* Brand: logo square, main button, active tab. Not for problems: they use --danger / --warn with ⚠. */
  --brand: #ec3333;
  --brand-light: #fe4343;       /* the site's button edge and hover */
  --on-brand: #ffffff;
  --wordmark: #1c3b2b;          /* "АГРОИНВЕСТ" next to the logo */

  --bg: #f5f5f6;                /* the site's gray sections */
  --surface: #ffffff;
  --text: #20262b;              /* the site's charcoal: top bar, dark panels */
  --text-muted: #6d737f;        /* on --surface only: 4.4:1 on --bg */
  --text-faint: #a5acb2;        /* footer and breadcrumbs on the site; not for body text */
  --border: #e3e3e3;

  /* Ours, not from the site: problems must not look like the brand red. */
  --danger: #b42318;
  --warn: #9a5b00;
}

:root[data-theme="dark"] {
  --brand: #ec3333;
  --brand-light: #fe4343;
  --on-brand: #ffffff;
  --wordmark: #f5f5f6;

  --bg: #15191c;
  --surface: #20262b;
  --text: #eef0f2;
  --text-muted: #a5acb2;
  --text-faint: #6d737f;
  --border: #333a40;

  --danger: #ff8a80;
  --warn: #f5b74a;
}
