/* Copyright (c) 2026 DamPhi Enterprises. All rights reserved. Proprietary and confidential: licensed for use only; copying, modifying or distributing it without written permission is not allowed. */
/* =====================================================================
   DAMPHI DESIGN TOKENS
   ---------------------------------------------------------------------
   Colours, type and spacing for every DamPhi app. Values are the
   DamPhi house colours and fonts. Customer-specific overrides (accent colour) are
   applied at runtime from config/tenant.js; nothing here is customer
   specific.
   ===================================================================== */

/* === SECTION: FONTS === */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-700-normal.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-800-normal.woff2") format("woff2");
  font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-latin-700-normal.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
/* === /SECTION: FONTS === */

/* === SECTION: COLOUR TOKENS === */
:root {
  /* DamPhi brand */
  --bg: #f4efe6;
  --bg-alt: #ffffff;
  --circle: #ede8df;
  --coral: #ff4d2e;
  --coral-hover: #ff6a4f;
  --coral-deep: #c93a1e;
  --cream: #f4efe6;
  --card: #ffffff;
  --ink: #14110f;
  --sub: #6a6258;
  --muted: #6a6258;
  --line: #dcd5c8;
  --white: #ffffff;

  /* The same colours as red, green, blue numbers, for see-through shades */
  --bg-rgb: 244, 239, 230;
  --bg-alt-rgb: 255, 255, 255;
  --bg-deep-rgb: 20, 17, 15;
  --accent-rgb: 255, 77, 46;

  /* Text on the page itself (light on a dark page, dark on a light page) */
  --on-shell: #14110f;
  --on-shell-strong: #14110f;

  /* Accent used by buttons and highlights (tenant can override) */
  --accent: var(--coral);
  --accent-hover: var(--coral-hover);
  --accent-ink: var(--ink);
  /* Accent used for small text and icons on the page (a deeper shade on light pages) */
  --accent-text: #c93a1e;

  /* Light surfaces (forms, tables) */
  --surface: #ffffff;
  --surface-2: #f4efe6;
  --surface-line: #dcd5c8;
  --surface-ink: var(--ink);
  --surface-sub: var(--sub);

  /* Status colours: on light surfaces */
  --ok: #1f7a4f;
  --ok-soft: #d6eadc;
  --warn: #8a5a00;
  --warn-soft: #f6e5bf;
  --bad: #a8321a;
  --bad-soft: #f6d6cb;
  --info: #1d5f73;
  --info-soft: #d3e6ea;

  /* Status colours: on the dark background */
  --ok-dark: #1f7a4f;
  --warn-dark: #a86a00;
  --bad-dark: #c2391b;

  --focus: #14110f;
}
/* === /SECTION: COLOUR TOKENS === */

/* === SECTION: TYPE AND SPACE TOKENS === */
:root {
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --fs-xs: 12px;
  --fs-sm: 14px;
  --fs-md: 16px;
  --fs-lg: 18px;
  --fs-xl: 22px;
  --fs-2xl: clamp(26px, 4vw, 34px);
  --fs-3xl: clamp(32px, 5.5vw, 52px);

  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;

  --radius: 14px;
  --radius-md: 10px;
  --radius-sm: 6px;
  --radius-pill: 999px;

  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.18), 0 4px 14px rgba(0, 0, 0, 0.14);
  --shadow-2: 0 10px 40px rgba(0, 0, 0, 0.35);

  --header-h: 64px;
  --nav-h: 68px;
  --rail-w: 232px;
  --content-max: 1180px;

  --ease: cubic-bezier(.2, .7, .2, 1);
}
/* === /SECTION: TYPE AND SPACE TOKENS === */
