/* Page: Design Tokens, Date: 2026-11-17, Prompt: 10-TOKENS.md */

@font-face {
  font-family: "Dana";
  src: url("../fonts/dana/DanaFaNum-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Dana";
  src: url("../fonts/dana/DanaFaNum-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Dana";
  src: url("../fonts/dana/DanaFaNum-DemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  /*
   * 1. Light Industrial Kraft (AKB-06C)
   */
  --ink: #603A18;
  --text: #231F20;
  --muted: #575558;
  --accent: #D48B54;
  --accent-ink: #753F1E;
  --cta: #8A481F;
  --cta-hover: #723A19;
  --cta-active: var(--ink);
  --surface: #FFFFFF;
  --surface-2: #F7F7F5;
  --surface-kraft: #F0E7DC;
  --surface-raised: var(--surface);
  --surface-dark: #29282A;
  --surface-dark-muted: #DEDCDE;
  --line-dark: #69666A;
  --border: #85817F;
  --line: #DFDDDA;
  --success: #276443;
  --error: #A3322A;
  --warning: #744706;
  --success-surface: #EBF3EA;
  --error-surface: #FAEBE7;
  --warning-surface: #F7ECD4;
  --focus: #753F1E;
  --focus-inverse: #F6CBA8;
  --disabled-surface: #EBEAE8;
  --disabled-ink: #615D62;
  --text-on-cta: var(--surface);
  --shadow-ink: rgb(35 31 32 / 0.10);

  /*
   * 2. Typography
   */
  --font-body: "Dana", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --weight-strong: 600;
  --line-height-body: 1.9;
  --line-height-heading: 1.3;
  --type-hero: clamp(2.25rem, 4.6vw, 4.75rem);
  --type-title: clamp(1.9rem, 3.1vw, 3.25rem);
  --type-section: clamp(1.55rem, 2.65vw, 2.5rem);
  --type-card: clamp(1.1rem, 1.45vw, 1.35rem);
  --type-support: 0.9rem;

  /*
   * 3. 8px Spacing Scale
   */
  --space-4: 4px;
  --space-8: 8px;
  --space-16: 16px;
  --space-24: 24px;
  --space-32: 32px;
  --space-48: 48px;
  --space-64: 64px;
  --space-96: 96px;

  /*
   * 4. Shapes and Borders
   */
  --radius-sm: 4px;
  --radius-md: 8px;
  --border-width: 1px;
  --border-width-hover: 2px;

  /*
   * 5. Elevation and interaction
   */
  --shadow-subtle: 0 2px 8px var(--shadow-ink);
  --shadow-card: 0 6px 24px var(--shadow-ink);
  --interaction-time: 180ms;
  --interaction-ease: ease-out;

  /*
   * 6. Layout and Accessibility Limits
   */
  --container-max: 1200px;
  --sticky-header-offset: 6rem;
  --min-touch-target: 44px;              /* V-13: minimum 44px touch target */
  --max-line-ch: 75ch;                   /* V-14: Persian line length 65-75ch */
  --min-line-ch: 65ch;

  /*
   * 7. Admin panel shell (docs/prompts/40-ADMIN.md)
   */
  --admin-sidebar-width: 240px;
  --admin-topbar-height: 56px;
  --admin-content-max: 1100px;
  --admin-gutter: 32px;

  /*
   * 8. Inquiry status colours, STA-01 to STA-09 (J-3)
   * Each status keeps a colour AND an icon AND a text label so colour is
   * never the only channel.
   */
  --sta-new: var(--focus);
  --sta-review: var(--warning);
  --sta-quoted: var(--accent-ink);
  --sta-won: var(--success);
  --sta-archived: var(--muted);
  --sta-rejected: var(--error);
  --sta-sms-pending: var(--muted);
  --sta-sms-sent: var(--success);
  --sta-sms-failed: var(--error);
  --sta-sms-retrying: var(--warning);
}
