/*
 * theme.css: every colour and font of the online resume.
 * layout.css and print.css hold structure only and read these variables, so a new palette
 * means editing (or swapping) this file alone. Gold-accent theme after Imran's own earlier resume:
 * grey text, dark-gold section bars and bullets, a dark grey footer, white paper on a light grey page.
 */
:root {
  /* Fonts */
  --font-body: "Segoe UI", "Open Sans", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;

  /* Gold accent set: section bars, bullets, the name underline, project names */
  --color-accent: #b8860b;               /* dark gold */
  --color-accent-strong: #9a7009;        /* project names and other gold text on white */
  --color-accent-text: #ffffff;          /* text on the gold bars */
  --color-accent-soft: #fbf5e6;          /* light gold tint (hover, active nav) */
  --color-accent-line: #e8d7a8;          /* light gold borders */
  --color-icon: var(--color-accent);     /* icons on white: contact line, certificate link */
  --color-icon-on-dark: var(--color-accent); /* icons on the dark grey footer bar: the same gold-brown */

  /* Page, paper and surfaces */
  --color-page: #e9e9e9;                 /* light grey behind the paper */
  --color-paper: #ffffff;
  --color-paper-shadow: rgba(0, 0, 0, 0.12);
  --color-surface: #ffffff;
  --color-surface-alt: #f7f7f5;
  --color-border: #e3e3e0;
  --color-border-strong: #cfcfcb;
  --color-box-border: #c9c9c9;           /* the thin grey boxes of the header and company rows */
  --color-shadow: rgba(0, 0, 0, 0.07);

  /* Text */
  --color-text: #444444;
  --color-text-muted: #7a7a7a;
  --color-heading: #2b2b2b;
  --color-name: #707070;                 /* the big small-caps name */
  --color-quote: #6e6e6e;
  --color-strip-text: #2b2b2b;           /* highlight strip under the name */

  /* Footer bar */
  --color-footer-bg: #4f4f4f;
  --color-footer-text: #f0f0f0;

  /* Top bar */
  --color-topbar: #ffffff;
  --color-topbar-text: #4a4a4a;
  --color-topbar-active: #7a5a07;

  /* Primary action (buttons, links): dark gold to match the accent */
  --color-primary: #9a7009;
  --color-primary-hover: #7a5a07;
  --color-primary-text: #ffffff;
  --color-primary-soft: #fbf5e6;
  --color-link: #8a6508;
  --color-focus: rgba(184, 134, 11, 0.4);

  /* Secondary (outline) buttons */
  --color-button: #ffffff;
  --color-button-hover: #f4f4f2;
  --color-button-text: #333333;

  /* Stack tags: plain grey */
  --color-tag: #f1f1ef;
  --color-tag-text: #555555;

  /* Highlight tick badges (sovereign AI, on-prem ...): gold tint, so they match the accent */
  --color-highlight-bg: #fbf5e6;
  --color-highlight-border: #e3cc8f;
  --color-highlight-text: #6b4e05;
  --color-highlight-tick: #b8860b;
  --color-highlight-active: #9a7009;
  --color-highlight-active-text: #ffffff;

  /* Status */
  --color-draft: #92400e;
  --color-page-break: #f59e0b;          /* page-break guide line in Print view */
  --color-draft-bg: #fffbeb;
  --color-draft-border: #fcd34d;
  --color-approved: #15803d;
  --color-live: #16a34a;
  --color-live-stale: #94a3b8;
  --color-error: #b91c1c;
  --color-error-bg: #fef2f2;
  --color-error-border: #fecaca;

  /* Popups */
  --color-backdrop: rgba(15, 23, 42, 0.45);

  /* Timeline and diagram */
  --color-timeline-line: #cbd5e1;
  --color-timeline-dot: #1d4ed8;
  --color-timeline-dot-key: #15803d;
  --color-node: #eff6ff;
  --color-node-border: #93c5fd;
  --color-node-title: #1e3a8a;
  --color-io: #f8fafc;
  --color-arrow: #64748b;

  /* Chart sketch */
  --color-chart-actual: #1d4ed8;
  --color-chart-predicted: #94a3b8;
  --color-chart-band: rgba(148, 163, 184, 0.18);
  --color-chart-alert: #dc2626;
  --color-chart-grid: #e2e8f0;

  /* Mock-ups (pages in mockups/) */
  --color-mock-nav: #ffffff;
  --color-mock-brand: #1e3a8a;
  --color-mock-tag: #f1f5f9;
  --color-mock-today: #eff6ff;
  --color-mock-other-month: #f8fafc;
  --color-success: #15803d;
  --color-success-hover: #166534;
  --color-danger: #b91c1c;
  --color-danger-soft: #fef2f2;
  --color-count: #1e293b;
  --color-count-text: #ffffff;

  /* Maintenance statuses */
  --color-status-confirmed: #16a34a;
  --color-status-tentative: #ea580c;
  --color-status-inprocess: #2563eb;
  --color-status-rescheduled: #7c3aed;
  --color-status-cancelled: #94a3b8;
  --color-status-completed: #0e7490;

  /* Topology mock-up: device icon colour per tenant, links, group boxes */
  --color-tenant-a: #2563eb;
  --color-tenant-b: #059669;
  --color-tenant-c: #d97706;
  --color-tenant-d: #7c3aed;
  --color-tenant-none: #94a3b8;
  --color-topo-icon-fg: #ffffff;
  --color-topo-canvas: #fcfcfd;
  --color-topo-label: #334155;
  --color-topo-link: #a3afbf;
  --color-topo-link-error: #dc2626;
  --color-topo-region: #f1f5f9;
  --color-topo-region-border: #cbd5e1;
  --color-topo-site: #ffffff;
  --color-topo-site-border: #d5dde7;
  --color-topo-select: #1d4ed8;
  /* Cable traffic rate: one blue scale, so it never clashes with the red error cables */
  --color-traffic-idle: #cbd5e1;
  --color-traffic-low: #93c5fd;
  --color-traffic-mid: #3b82f6;
  --color-traffic-high: #1e3a8a;
  --color-cli-bg: #0f172a;
  --color-cli-text: #e2e8f0;
}
